-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating maps with Tiled for FLARE engine? #830
Comments
I think Flare's base tilesets were done by hand, because there used to be a limitation of one image per tileset. @clintbellanger might be able to expand on this. I have since made a tool that will generate the tileset definition file (e.g. tilesetdefs/tileset_grassland.txt) without having to combine the images. |
Ok a few questions just to make sure i'm clear: 1.) You say there used to be a limitation of 1 image per tileset but is that still the case? If not does your tool handle this? I'm just trying to make sure I understand the whole process. I looked through the script and I couldn't tell where or how it properly converts the numbers from the individuals tilesets into 1 overall numbering system? |
1.) Yes. Each image is assigned its own It's been a while since I wrote that script, but here's an overview: |
Ok I think I finally understand but just 1 more question based on the steps I think I know: 1.) Tiled as you said does modify the ID's to be uniform on the final output even though putting your mouse over the tile just shows the ID of that individual tileset. Last things as I have not run python in awhile: I really appreciate all the help and hope this helps anyone else with these questions as well. |
Your observations in 1-3 are all correct.
If you wanted to create a single PNG, yes you would need to create a tool to do that. And as for running the script, what you outlined should do the trick. |
Ok thanks. The script is looking for python 2 and the latest python 3.7 gives a bunch of errors but I'm working on fixing them. Thank you for all the help. =) |
Ah, sorry about that. The script is pretty old, but I should have ported it to Python 3 by now. |
Actually I just figured out your script works (the print needs () around it but that is it) as long as the tilesets are embedded into the map. If I add an external tileset, then for some reason it reads the information as "None" as gives errors? I can embedded mine but I was not so that if I modified 1 tileset it would affect the others in my other maps as well. Any ideas on that? |
My script doesn't have support for external tilesets. I'll have to work on that. I've opened an issue if you want to keep tabs on it. I've been busy lately, so it'll be some time before I get to it. |
Thats no problem, just wanted to make sure I was not doing something wrong. Again thank you for your patience and all your help. =) |
I can't find documentation about this process. Specifically if you open the "Arrival.txt" map file that is in the engine in Tiled it shows all the different tilesets that was used to make it. Though there is that custom attribute "tileset=tilesetdefs/tileset_grassland.txt" which has all the tiles used in one giant png with a text file listing each tile's ID, location, etc....
My question is where did that file come from? Looking in Tiled the tile ids are what is in the individual tilesets listed under the [tilesets] section but looking at the final arrival.txt file under [layer] for instance the tile ID's are what is in that final 1 large png. So is there a step or tool that I am missing that converts these and creates that massive 1 png?
The text was updated successfully, but these errors were encountered: