flareteam / tilesetdef-generator

Tool to convert tilesets embedded in a TMX file to Flare's tileset format.
The Unlicense
3 stars 2 forks source link

Support external Tiled tilesets #1

Open dorkster opened 3 years ago

dorkster commented 3 years ago

As of now, only embedded tilesets are supported.

dorkster commented 3 years ago

FYI: External tileset support is part of the flare.js script in flare-tiled-tools. It is much easier to use, so I recommend using it over tilesetdef-generator, even for embedded tilesets.

dorkster commented 1 year ago

The images in the tiled directory can be considered the "source" files. Flare used to have a limitation where a tileset could only be a single image file. Which is why some tilesets are multiple images when in Tiled, but only a single image in Flare. This limitation is no longer true, but we still use a single image for most tilesets.Also, the Flare tilesets have been packed with RectangleBinPack for efficiency (my fork supports Flare tileset definitions: https://github.com/dorkster/RectangleBinPack). So if you plan on migrating them to another game engine, I would suggest using the already packed versions from the mods folders.

On Tue, Nov 29, 2022 at 6:17 AM Des-Nerger @.***> wrote:

@dorkster https://github.com/dorkster, am I right that neither tilesetdef-generator, nor flare-tiled-tools were used to produce the actual tilesets in flare-game/mods/fantasycore/{tilesetdefs,images/tilesets} ? Unlike flare-engine, Tiled doesn't seem to support setting rectangles for tiles individually, it's only because of that I suppose they had to be split across multiple png images and had much more unnecessery space between them, right? I'm just a bit confused: should tilesets in /mods/fantasy/ be considered source and those in /tiled/ to be their derivatives, or vice versa? I'm currently working on extracting Diablo II Shareware tilesets and map pieces: https://github.com/Des-Nerger/d2sw_tiled_project and got the tilesets part almost done, but I need to decide on the best format for flare-engine / Tiled ecosystem to consume. The Tiled tileset format is so ineffective and result would be so ugly, so I'm considering rather converting to {tilesetdefs/.txt,images/tilesets/.png} directly.

— Reply to this email directly, view it on GitHub https://github.com/flareteam/tilesetdef-generator/issues/1#issuecomment-1330471222, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG7EPX3DJH4QOYNUNFDLT3WKXQ55ANCNFSM4TOCPUBA . You are receiving this because you were mentioned.Message ID: @.***>