Skip to content

gui/export-world-map: precise locations of bridges; materials of bridges and roads - #1647

Open
Nekkowe wants to merge 8 commits into
DFHack:masterfrom
Nekkowe:bridge-export-exact-position
Open

Nekkowe wants to merge 8 commits into
DFHack:masterfrom
Nekkowe:bridge-export-exact-position

Conversation

@Nekkowe

@Nekkowe Nekkowe commented Oct 5, 2026 •

Copy link
Copy Markdown

This PR addresses the position of bridges in the geodata export (as discussed on Discord), pinpointing them down to the midmap tile rather than the world tile as before.

As a result, they now correctly coincide with roads crossing rivers (diamonds = old, starbursts = new):
image

image

It also adds an attribute for the exact materials of bridges and roads (e.g. mudstone, pear wood, willow...) using dfhack.matinfo.decode/2 for the names.

@Nekkowe Nekkowe changed the title export-world-map: precise locations of bridges, down from world tiles to midmap tiles gui/export-world-map: precise locations of bridges, down from world tiles to midmap tiles Oct 6, 2026
@Nekkowe Nekkowe changed the title gui/export-world-map: precise locations of bridges, down from world tiles to midmap tiles gui/export-world-map: precise locations of bridges; materials of bridges and roads Oct 6, 2026

@chdoc chdoc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty good, the requested changes are mostly nitpicks.

Comment thread internal/export-world-map/export-roads.lua Outdated
Comment thread internal/export-world-map/export-roads.lua Outdated
Comment thread internal/export-world-map/export-roads.lua Outdated
Comment thread internal/export-world-map/export-roads.lua
Comment thread internal/export-world-map/export-roads.lua Outdated

@SilasD SilasD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is in good shape. chdoc covered my quibbles and more.

I did find one place the code could be more elegant. up to you if you change it.

Comment thread internal/export-world-map/export-roads.lua Outdated
Comment thread internal/export-world-map/export-roads.lua
@Nekkowe
Nekkowe requested a review from chdoc October 7, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants