devilution icon indicating copy to clipboard operation
devilution copied to clipboard

Add tools for designing stuff

Open ghost opened this issue 6 years ago • 6 comments

So, now that devilution is nearly complete, we are missing a few tools that would've been present to help with making stuff. Possible tools to add:

  • [ ] CEL/CL2 <-> GIF converter
  • [ ] Tabbed text to C header
  • [ ] .DUN map creator
  • [ ] Base game setup/installer

There are already some existing tools for CEL stuff, but most of them are 10+ years old and didnt provide the source. I already have a working .txt -> .cpp converter, but it needs a bit of safe-proofing before it's good to go.

ghost avatar Aug 06 '19 08:08 ghost

  • CEL/CL2 <-> GIF converter

https://github.com/sanctuary/formats converts CEL/CL2 to PNG images, when we could use ImageMagick to convert to GIF.

mewmew avatar Aug 06 '19 08:08 mewmew

Hmm yeah I think PNG should suffice as long as we have a way to convert them to CEL. I'd just be curious to see it work with GIF for the kick of it, since we have some in the MPQ. Also your tool is what helped me learn the CEL formats! I'm taking a look now to see what we can do.

Also regarding the dungeon editor I'd like to have something like what Technorbog does with an in-game realtime editor, even though they probably had something separate.

ghost avatar Aug 06 '19 08:08 ghost

  • Mewmew made a tool for converting PNG to animated CEL, don't know if he posted it anywhere?
  • The Dark Graphics can convert between CEL/CL2 <-> BMP, but creating animated CEL/CL2 is a manual process.
  • CelMaker can convert between CEL/CL2 <-> BMP, it's not exactly intuitive.
  • DunEdit can create DUN files.
  • I still favor using https://www.mapeditor.org/ to create the maps and then either teaching Diablo how to load JSON-maps or make a tool for converting them to DUN. I think there might already be a tool for converting DUN to JSON-maps?

AJenbo avatar Aug 06 '19 12:08 AJenbo

Mewmew made a tool for converting PNG to animated CEL, don't know if he posted it anywhere?

Don't know if I still have the code. Perhaps @7i does? :)

I still favor using https://www.mapeditor.org/ to create the maps and then either teaching Diablo how to load JSON-maps or make a tool for converting them to DUN. I think there might already be a tool for converting DUN to JSON-maps?

:+1: Indeed, using the Tiled map editor is definitely the way to go.

mewmew avatar Aug 06 '19 13:08 mewmew

Any other tools?

khanduras avatar Apr 06 '20 04:04 khanduras

The modding-tools repository has been created for the development of modding tools. Currently there exist a TMX to DUN map converter.

TMX map editing

mewmew avatar May 13 '20 20:05 mewmew