Unable to import /tmx file with 2 tilesets

Bugs will be moved here once resolved.

Post » Sun Jun 12, 2016 4:53 pm

Message: KMDES can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Problem Description
When importing a tiled TMX file with more than 1 tile set is throws this error on all projects. "Error parsing XLM file. Check the file is a valid Tiled TMX file."

Attach a Capx
http://www.kmdes.com/tmx_error.capx

Description of Capx
It does nothing. It is a blank project and still throws the error.

Steps to Reproduce Bug
  • Step 1
    Drag and drop .tmx file onto Construct 2.
  • Step 2
    Error is thrown.
  • Step 3

Observed Result
Error is thrown.

Expected Result
Error gets thrown.

Affected Browsers
  • Chrome: (YES/NO)
    No
  • FireFox: (YES/NO)
    No
  • Internet Explorer: (YES/NO)
    No

Operating System and Service Pack
Windows 7 Service Pack 1

Construct 2 Version ID
Release 227
B
8
S
1
Posts: 7
Reputation: 501

Post » Sun Jun 12, 2016 4:59 pm

It's a known limitation, most likely fixed with C3.
Till then use separate tile objects, or marked instances if it's the same tileset texture, and load them one at a time.
Image ImageImage
B
169
S
50
G
173
Posts: 8,313
Reputation: 110,270

Post » Sun Jun 12, 2016 7:18 pm

Why not now fix in C2 ?.
So complicated is a solution to this ?.


There is still time for C3
B
29
S
12
G
21
Posts: 801
Reputation: 14,453

Post » Tue Jun 14, 2016 8:01 am

thank for your suggestion

gclub
B
4
Posts: 3
Reputation: 202

Post » Mon Jun 20, 2016 3:07 pm

I can't reproduce this without the TMX file you are using. Can you attach that?
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,486

Post » Mon Jun 20, 2016 6:26 pm

KMDES wrote:Problem Description
When importing a tiled TMX file with more than 1 tile set is throws this error on all projects. "Error parsing XLM file. Check the file is a valid Tiled TMX file."

Attach a Capx
http://www.kmdes.com/tmx_error.capx

Description of Capx
It does nothing. It is a blank project and still throws the error.

Steps to Reproduce Bug
  • Step 1
    Drag and drop .tmx file onto Construct 2.
  • Step 2
    Error is thrown.
  • Step 3

Observed Result
Error is thrown.

Expected Result
Error gets thrown.

Affected Browsers
  • Chrome: (YES/NO)
    No
  • FireFox: (YES/NO)
    No
  • Internet Explorer: (YES/NO)
    No

Operating System and Service Pack
Windows 7 Service Pack 1

Construct 2 Version ID
Release 227


Yep, this issue is super-annoying, as is not being able to duplicate a tilemap object and change the tileset it's using (I know the reason behind this is "optimization" but not making it optional is really inconvenient for loading tmx files at runtime, aside from how little use the optimization is for desktop games). What I ended up doing was using the tmx importer plugin and having a few different tilemap objects available to use for the different tilesets on layered tilemap stages. You can parse through the different tilesets used this way and spawn different tilemap objects for each tileset. It's a bit of a pain in the butt, and this feature should be native to C2 (as well as being able to use one tilemap object with multiple tilesets), but it works.
B
80
S
46
G
24
Posts: 525
Reputation: 20,955

Post » Fri Jan 27, 2017 1:14 am

Can we get this fixed sometime?? it's really annoying having to delete all my textures in each tmx except one texture, just to import it, and then when I do, I can only import the layer that uses that texture. So if I want to import other layers in the tmx, I have to go back and undo the deleted textures, leaving the texture for whichever layeri need to import.. this is really annoying.
@Ashley
B
45
S
20
G
65
Posts: 1,115
Reputation: 38,121

Post » Fri Jan 27, 2017 11:30 am

I asked previously for all the necessary files to reproduce the problem. I still don't see that anyone has provided them. I cannot investigate the issue without that.
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,486

Post » Fri Jan 27, 2017 6:00 pm

https://1drv.ms/u/s!AhHSZHEulqh_gXZqaXEf4YQLPDOq

There is a zip file containing a capx, tmx, and png files. If you extract those and try to import the tmx into the tilemap object, it will throw an error.
@Ashley , let me know if you need anything else and I can provide it.
B
45
S
20
G
65
Posts: 1,115
Reputation: 38,121

Post » Thu Feb 16, 2017 8:36 pm

This is something I just do not like about C2, what I do not understand is why you can not edit tilesets directly from tool... i do not understand why you have to download, install and use a third-party program to do something as simple as importing a png file and trim/crop/edit them properly as 32x32 tiles (for example), is a job that the image editor done admirably for sprites and animations, it should not be difficult to add similar functions for tileset mapping... sorry my english
B
11
S
6
G
3
Posts: 277
Reputation: 3,210

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests