@mewmew has a tool for convertingn .dun files to the Tiled format, it would be good to have support for loading maps that have been build using Tiled
This simple implementation may help us in doing so
https://github.com/RandyGaul/cute_headers/blob/master/cute_tiled.h
Alternatively we could develop a .dun plugin for Tiled https://github.com/bjorn/tiled/tree/master/src/plugins the benefit being that it would work with any Diablo engine.
Similar issue for DGE with some how to load maps:
https://github.com/dgengin/DGEngine/wiki/Tiled-map-support
DUN file format specefications:
https://github.com/savagesteel/d1-file-formats/blob/master/DUN.md
@mewmew has a tool for convertingn .dun files to the Tiled format, it would be good to have support for loading maps that have been build using Tiled
For a quick step by step, this is how to convert DUN files to TMX:
# Set GOAPTH
$ export GOPATH=/tmp/go
$ export PATH=$GOPATH/bin:$PATH
# Extract DIABDAT.MPQ
$ go get github.com/sanctuary/mpq
$ mpq -m /path/to/diabdat.mpq
# Convert DUN files to TMX format
$ go get github.com/sanctuary/formats/cmd/dun_dump
$ dun_dump -a
# Merge Tristram sectors into a single DUN file
$ go get github.com/sanctuary/formats/cmd/dun_merge
$ dun_merge -o diabdat/levels/towndata/tristram.dun diabdat/levels/towndata/sector1s.dun diabdat/levels/towndata/sector2s.dun diabdat/levels/towndata/sector3s.dun diabdat/levels/towndata/sector4s.dun
# Convert Tristram DUN file to TMX format
$ dun_dump diabdat/levels/towndata/tristram.dun

@mewmew has a tool for convertingn .dun files to the Tiled format
Kinda off-topic: where can I get that tool? Sounds really interesting.
@julealgon good question, it used to be here, I think: https://github.com/sanctuary/djavul
Now, there is no project at: https://github.com/sanctuary/
@julealgon Take a look at: https://github.com/diasurgical/modding-tools
Most helpful comment
For a quick step by step, this is how to convert DUN files to TMX: