Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TwinofSian

macrumors member
Original poster
Oct 23, 2011
53
0
heya, I have been getting errors trying to mod a community sourced game named Quexlor. An imported map produced with Tiled produces a crash in the Iphone Simulator, and here's the console error I get:

<truncated>

This in particular:
2011-10-22 23:36:21.662 QuexlorLoF[411:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'TMX: unsupported compression method'

So apparently it's having problems with the file .TMX compression??

FYI, .TMX is the header for all the map files in the game, not sure why the file I imported is giving it errors. And yes, the headers and file directories are correct. I triple-checked.

I was running Tiled 6.0, but I just updated to 7.1.
 
So I also restructured the hierarchy of the Map Levels. The map levels were organized like:

level0.tmx
level1.tmx
level2.tmx
level3.tmx

etc.

When I was getting the .TMX compression error, My structure I had introduced was:
leveltest.tmx
level0.tmx
level1.tmx
level2.tmx
etc.

a new test I tried was:
level0.tmx
leveltest.tmx
level1.tmx
level2.tmx

Upon clicking the "New Game" button during the test-run, Quexlor didnt crash this time, but only the game UI appeared with a black screen. The console gave this insight:

2011-10-23 15:11:53.532 QuexlorLoF[384:207] *** Assertion failure in -[Level init], /Users/USERNAME/Desktop/Directory/Quexlor/Classes/Level.m:32
2011-10-23 15:11:53.533 QuexlorLoF[384:207] level init exception: NSInternalInconsistencyException: The level file 'testlevel.tmx' must exist in resources
So why the .TMX compression error has gone away, but now it appears though there's a directory issue. Anyone know how to make the file "exist in resources?"
 
I notice in the error from the console it says the name of the file is "testlevel.tmx", but when you typed the names, you typed "leveltest.tmx". Make sure the name you used in code and the name of the files are the same.
 
I notice in the error from the console it says the name of the file is "testlevel.tmx", but when you typed the names, you typed "leveltest.tmx". Make sure the name you used in code and the name of the files are the same.

Well, I corrected that. and now I return to my original problem:

[Session started at 2011-10-23 22:08:08 -0700.]
<truncated>
This part:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'TMX: unsupported compression method'

So at least now I get consistency: The program is apparently having problems with Tiled's compression...which is weird since all the called files are the same header (.TMX)

Alright guys, I googled the error and found that the compression of TILED has to be changed in the preferences--the standard setting is usually zlib, which should be changed to gzip.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.