Hello, I've been playing around with the sample files and I finally got around to trying to load some of my own artwork into the engine, however I have ran into an error that I'm not sure how to fix. I've basically taken the Platformer.py sample and replaced the tilemap with one that I have made personally. Everything is the same I just changed lines 64 and 65 the file to redirect to my tmx files. Doing this I get the error "tilengine.TilengineException: 'Invalid Tileset reference'" Any ideas what might be wrong?
Without having your artwork and the contents of the line you have changed, I can't tell the problem. However my guess is that you've produced 32-bit ARGB artwork, whereas Tilengine requires 8-bit indexed color format, and it's refusing to load it. It's a common mistake. Make sure your PNGs are 8-bit and index 0 is the transparent color.
The python binding is a bit outdated, but the core library got a TLN_SetLogLevel() function in release 2.10 to print this kind of errors to the standard output before they crash something.
(11-13-2019, 07:10 AM)megamarc Wrote: Without having your artwork and the contents of the line you have changed, I can't tell the problem. However my guess is that you've produced 32-bit ARGB artwork, whereas Tilengine requires 8-bit indexed color format, and it's refusing to load it. It's a common mistake. Make sure your PNGs are 8-bit and index 0 is the transparent color.
The python binding is a bit outdated, but the core library got a TLN_SetLogLevel() function in release 2.10 to print this kind of errors to the standard output before they crash something.
Thanks and goog luck!
Hey Marc, thank you for reply, unfortunately the file is already an 8-bit indexed color PNG. Would it be possible for me to send you the file which I'm having trouble with so you could take a look?
I didn't try loading more assets as I saw the error with the sprites. I was going to try it now, but I'm on another computer and you've removed the attachment from the post
11-13-2019, 09:25 PM (This post was last modified: 11-13-2019, 09:33 PM by megamarc.)
(11-13-2019, 06:04 PM)megamarc Wrote: Hi again,
I didn't try loading more assets as I saw the error with the sprites. I was going to try it now, but I'm on another computer and you've removed the attachment from the post
Oh sorry, I just didn't want any others getting a hold of my art, I'll upload it one more time, just let me know when you got it so I can delete it again.
Done. The problem is that Tilengine doesn't load tilesets embedded inside tilemaps (something that Tiled editor itself can do), they must be exported as stand-alone tilesets. I've done it, here you can find attached the resulting decoupled tmx/tsx files. I haven't included the png.