Hi, i'm currently making a game which involves the use of Richard Jones' tmx.py to load my tilemaps that i made in Tiled. i used the code 14-tilemap.py from his pygame tutorial https://bitbucket.org/r1chardj0n3s/pyga ... at=default with my own tile/tileset and map, named 'tiles' and 'map' respectively.Whenever i run the program (using Stani's python editor), i always get " KeyError: 'triggers' " and refers to line 384 in tmx.py. i understand that 'triggers' is the name of an object layer in the map.tmx file but when i run 14-tilemap.py with the files provided in the link above it runs without a problem. Im fairly new to pygame and i don't know how to tackle this, Is there anyway i can load/blit my map onto a pygame window without any errors?

P.S i also noticed that 14-tilemap.py wont run without 'tiles.tsx' and 'triggers.tsx', does this link to this problem in any way?

I didn't mispell it or use capital letters, i made sure of that. When i load Richard Jones' original map, it works perfectly although there's no object layer called 'triggers' (but there's a tile layer called 'triggers') but my map has an object layer called 'triggers' and it still won't run.

Hmm, this is quite a strange one. I have personally never had any luck using object layers. I had lot's of problems trying to do so. In the end, I didn't even bother with object layers, I decided to just use tile layers, as you can acheive the same thing. Sorry I couldn't be of more help.

Thanks for your help, i managed the tmx loader to work. by the way, i have quick question regarding the actuall maps themselves, Is it possible to load maps from a sub directory when the main file you're loading to is in the parent directory?Also, Sorry for taking long to reply