Hello
I am trying to figure out how Flare the tile set definitions are generated and am a little confused about it..I'm trying to get an understanding of how the the maps, and art assets are integrated into the game and the tile set definition part of the process is not clear to me.
I can see there is tile set definitions in:
1)flare-game\mods\fantasycore\tilesetdefs
and this directory has tile set definitions for cave, dungeon, grasslands and snowplains that relate to tilesets in:
flare-game\mods\fantasycore\images\tilesets
2)flare-game\mods\empyrean_campaign\maps
and this directory has map definition files.
What are the tools used to generate these tileset and map definition files? I found the Flare team's Flare Tileset Definition Generator repository on Github. The python script is generating something similar to the tileSetDefs in part (1) above but also there is some small differences. Is this tool redunandant? How are the definitions for part (2) generated?
Hope I am clear and thanks to anyone that can help.
Bonus question: The Flare Tileset Definition Generator also talks about packing the images with ImageMagick. I can see some code relating to that in earlier versions of the script. Was this used for FanastyCore and the script changed for Empyrean campaign?
The Flare Tileset Definition Generator does indeed create the tilesetdefs in part 1 of your post. The reason they appear different is that the flare-game tilesets are single images, whereas the generator keeps the images separate (the part about Imagemagik being used in the generator is no longer true).
For packing, I use the 'flare/spritesheetpacker.py' script in this repo: https://github.com/dorkster/RectangleBinPack. The script has a --tileset option for processing Flare tilesetdefs.
The files in part 2 of your post are the actual map files exported from Tiled (via the Flare plugin). See this tutorial for enabling the plugin: https://github.com/flareteam/flare-engine/wiki/Creating-a-Map-in-Tiled
Thanks so much Dorkster - that explains a lot about the whole process to me.