Skip to content

Add locate-stone tool and docs#1593

Open
Koussy wants to merge 5 commits into
DFHack:masterfrom
Koussy:master
Open

Add locate-stone tool and docs#1593
Koussy wants to merge 5 commits into
DFHack:masterfrom
Koussy:master

Conversation

@Koussy

@Koussy Koussy commented Jun 15, 2026

Copy link
Copy Markdown

DFHack/dfhack#2679
Introduce a new DFHack script (locate-stone.lua) and documentation (docs/locate-stone.rst). The tool is a fork of locate-ore that also detects stone and fuel sources by scanning mineral events. Flux stones are not mineral events and so was not able to add them.

Koussy added 4 commits June 14, 2026 22:17
Linked with issue 2679.
Introduce a new DFHack script (locate-stone.lua) and documentation (docs/locate-stone.rst). The tool is a fork of locate-ore that also detects stone and fuel sources by scanning mineral events. Flux stones are not mineral events and so was not able to add them. First draft so would appreciate any feedback.
Linked with issue 2679.
Add locate-stone.lua and accompanying docs/locate-stone.rst. The new DFHack script (a fork of locate-ore) scans mineral events for stone, ore and fuel sources. Linked with issue 2679. Fork of locate-ore that also shows stones and bituminous coal and lignite. Flux stones are not mineral events and so was not able to add them.
@Koussy

Koussy commented Jun 15, 2026

Copy link
Copy Markdown
Author

pre-commit.ci autofix

@ab9rf

ab9rf commented Jun 15, 2026

Copy link
Copy Markdown
Member

History has shown us that allowing someone to take an existing tool, copy its code, make changes to the copy, and then add that as a separate tool always leads to maintenance nightmares.

This PR should, instead, generalize locate-ore into a single tool that can perform both functions, rather than create a separate, detached, and modified copy of locate-ore.

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.

2 participants