-
Notifications
You must be signed in to change notification settings - Fork 489
Migrate nestboxes to lua and add to autobutcher #4947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Birkow
wants to merge
18
commits into
DFHack:develop
Choose a base branch
from
Birkow:migrate_nestboxes_to_autobutcher
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8d1a6ec
Add dfhack.internal.readPersistentSiteConfigInt(key, index) function …
Birkow 97846f5
removed nestboxes.cpp
Birkow e473424
add lua nestboxes to autobutcher plugin
Birkow 72b26e1
removed white spaces
Birkow cc69bce
added nestboxes to Removed.rst
Birkow 8fbd3c5
add description to autobutcher.rst, take autobutcher setting into acc…
Birkow 3e4633a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c9bf89e
updated changelog.txt
Birkow b014ec6
Merge remote-tracking branch 'DFHack/dfhack/develop' into migrate_nes…
Birkow eef2928
Merge remote-tracking branch 'DFHack/dfhack/develop' into migrate_nes…
Birkow 7b4fa31
Split too long line
Birkow 5d67042
move if conditions around to improve readability
Birkow 94077f2
simplify if conditions to further improve readibility
Birkow 98c4fb8
print reason for not checking eggs when verbose mode is enabled
Birkow b6252a0
update changelog
Birkow 3a86a04
add info about race to messages
Birkow 69be8f5
adjust messages, extract condition for missing animal count to separa…
Birkow e5e6fe6
make persistState and readPersistentConfig functions local, no need t…
Birkow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| local _ENV = mkmodule('plugins.autobutcher.common') | ||
|
|
||
| verbose = verbose or nil | ||
| prefix = prefix or '' | ||
|
|
||
| function printLocal(text) | ||
| print(prefix .. ': ' .. text) | ||
| end | ||
|
|
||
| function handleError(text) | ||
| qerror(prefix .. ': ' .. text) | ||
| end | ||
|
|
||
| function printDetails(text) | ||
| if verbose then | ||
| printLocal(text) | ||
| end | ||
| end | ||
|
|
||
| function dumpToString(o) | ||
| if type(o) == 'table' then | ||
| local s = '{ ' | ||
| for k, v in pairs(o) do | ||
| if type(k) ~= 'number' then | ||
| k = '"' .. k .. '"' | ||
| end | ||
| s = s .. '[' .. k .. '] = ' .. dumpToString(v) .. ',' | ||
| end | ||
| return s .. '} ' | ||
| else | ||
| return tostring(o) | ||
| end | ||
| end | ||
| return _ENV |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.