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
Have autochop limit trees cut in a year #1269
Comments
|
It should be possible for autochop to detect if there is a tree diplomacy agreement currently in force, and if there is, limit chopping so as to not exceed the limit in the agreement. (I need a savegame with a tree diplomacy agreement currently in force in order to investigate this.) Note, however, that autochop currently simply marks all eligible trees for chopping and then unmarks them when the threshold is exceeded. It would be better if autochop would instead only mark the largest eligible trees, up to the lesser of the limit allowed by the agreement or the number required to reach its cutoff threshold, but this is a significantly more difficult strategy to implement. |
|
autochop designates the largest trees first now, so adding code to detect how many trees have been cut down in a year and abort early should be relatively straightforward |
|
It would need to persist some state so when the game is reloaded it can remember how many trees have been cut so far this year, which is doable. Also autochop would have to become aware of trees chopped down outside of autochop's control, which is not so simple. |
isn't this already tracked in the diplomacy agreement? edit hm, do we actually know where elven tree-cutting agreements are stored? |
|
That's a good point. Let DF do the tracking. But yeah we might need reverse engineering to find it. |
|
someone on the unofficial df discord pointed me to some saves that have active tree cuttnig agreements, dffd links below save 1 (agreement entered for a quota of 123 trees in year 246) |
To satisfy the demands of the elvish diplomats, I would like it if it were possible for autochop to limit the total number of trees cut. I could just set a limit that autochop could decrement for every tree cut, and then undesignate when it gets to 0.
The text was updated successfully, but these errors were encountered: