Skip to content

Conversation

@SilasD
Copy link
Contributor

@SilasD SilasD commented Nov 29, 2025

combine.lua This enhances the here command-line parameter.

If a stockpile is not selected, try finding it using these alternate methods:

  • If an item is selected/viewed, find the stockpile (if any) that it is in.
  • If a dwarfmode/ViewSheets/ITEM_LIST is active in the UI (per matchFocusString()), find the stockpile (if any) of the first item in that item list.

Note: I edited the documentation .rst file, but did not test creating the actual documentation.

Side note: It is technically possible to have items in the same DF item list located in different tiles, and in different buildings, and probably different containers (not tested), but I do not believe the game ever shows such item lists. This state can be caused by DFHack by manipulating items' locations while the DF item list is open. This does not break the DF item list but could result in the combine script having unexpected behavior.

If a stockpile is not selected, try finding it using these:
* If an item is selected, find the stockpile (if any) that it is in.
* If a dwarfmode/ViewSheets/ITEM_LIST is active in the UI, find the
  stockpile (if any) of the tile being viewed.
Note: I did not try to rebuild the documentation .txt and .html files.
this delta removes two inline comments which uselessly documented a
function parameter.
minimal testing -- one minute total to test the four ways that
stockpiles can be selected.
@ab9rf ab9rf merged commit db60966 into DFHack:master Dec 6, 2025
18 of 19 checks passed
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