Mitigation for the exploding phantom tree bug - #1605
Conversation
verified that this runs ok.
chdoc
left a comment
There was a problem hiding this comment.
This looks technically solid, I just had some comments on the documentation. You went a bit overboard on paragraphs. If a sentence uses references like "these" to expand on a previous sentence, I wouldn't put a paragraph break in between.
| -- removes "phantom" trees before they can explode. | ||
| --[====[ | ||
| fix/exploding-trees | ||
| =================== | ||
|
|
||
| By default, this script runs once a month by the Control Panel's Bug Fixes tab. | ||
|
|
||
| This script mitigates a longstanding Dwarf Fortress bug. | ||
|
|
||
| Once a year, trees check if they should grow. The exact day and time of this | ||
| growth is different for every tree. | ||
|
|
||
| Occasionally, when a tree is cut down or otherwise removed from the game, the | ||
| game engine doesn't remove the tree's data from the list of plants. The exact | ||
| details of this are not currently understood. | ||
|
|
||
| For some reason, these "phantom" trees will sometimes collapse during this | ||
| growth. This can stun, injure, or kill units which happen to be near this | ||
| collapse. | ||
|
|
||
| This script finds those trees and sets their dead flag, preventing them from | ||
| growing and collapsing. | ||
| --]====] |
There was a problem hiding this comment.
There is no need for duplicating the documentation.
| -- removes "phantom" trees before they can explode. | |
| --[====[ | |
| fix/exploding-trees | |
| =================== | |
| By default, this script runs once a month by the Control Panel's Bug Fixes tab. | |
| This script mitigates a longstanding Dwarf Fortress bug. | |
| Once a year, trees check if they should grow. The exact day and time of this | |
| growth is different for every tree. | |
| Occasionally, when a tree is cut down or otherwise removed from the game, the | |
| game engine doesn't remove the tree's data from the list of plants. The exact | |
| details of this are not currently understood. | |
| For some reason, these "phantom" trees will sometimes collapse during this | |
| growth. This can stun, injure, or kill units which happen to be near this | |
| collapse. | |
| This script finds those trees and sets their dead flag, preventing them from | |
| growing and collapsing. | |
| --]====] |
| end | ||
| end | ||
|
|
||
| suppress_phantom_exploding_trees() No newline at end of file |
| :summary: Removes "phantom" trees before they can explode. | ||
| :tags: fort bugfix | ||
|
|
||
| By default, this script runs once a month by the Control Panel's Bug Fixes tab. |
There was a problem hiding this comment.
| By default, this script runs once a month by the Control Panel's Bug Fixes tab. | |
| By default, this script is run once a month by the control panel. This can be disabled in the ``Bug Fixes`` tab. |
|
|
||
| By default, this script runs once a month by the Control Panel's Bug Fixes tab. | ||
|
|
||
| This script mitigates a longstanding Dwarf Fortress bug. |
There was a problem hiding this comment.
| This script mitigates a longstanding Dwarf Fortress bug. | |
| This script mitigates the "exploding trees" bug in Dwarf Fortress. |
| Once a year, trees check if they should grow. The exact day and time of this | ||
| growth is different for every tree. | ||
|
|
||
| Occasionally, when a tree is cut down or otherwise removed from the game, the | ||
| game engine doesn't remove the tree's data from the list of plants. The exact | ||
| details of this are not currently understood. |
There was a problem hiding this comment.
| Once a year, trees check if they should grow. The exact day and time of this | |
| growth is different for every tree. | |
| Occasionally, when a tree is cut down or otherwise removed from the game, the | |
| game engine doesn't remove the tree's data from the list of plants. The exact | |
| details of this are not currently understood. | |
| Once a year, trees check if they should grow. The exact day and time of this | |
| growth is different for every tree. Occasionally, when a tree is cut down or | |
| otherwise removed from the game, the game engine doesn't remove the tree's | |
| data from the list of plants. The exact details of this are not currently understood. |
| For some reason, these "phantom" trees will sometimes collapse during this | ||
| growth. This can stun, injure, or kill units which happen to be near this | ||
| collapse. | ||
|
|
||
| This script finds those trees and sets their dead flag, preventing them from | ||
| growing and collapsing. |
There was a problem hiding this comment.
| For some reason, these "phantom" trees will sometimes collapse during this | |
| growth. This can stun, injure, or kill units which happen to be near this | |
| collapse. | |
| This script finds those trees and sets their dead flag, preventing them from | |
| growing and collapsing. | |
| These "phantom" trees will sometimes collapse during this growth. This | |
| can stun, injure, or kill units which happen to be near this collapse. This | |
| script finds those trees and sets their dead flag, preventing them from | |
| growing and collapsing. |
|
Community feedback has determined that setting the |
|
okay, converting this to draft. I think I'll still finish out the requested changes, as practice. today or tomorrow. |
this is closely based on ab9rf's work:
https://discord.com/channels/793331351645323264/807444515194798090/1537901782515318876
more discussion in DFHack Discord #feature-discuss
https://discord.com/channels/793331351645323264/807444515194798090/1537577051073290281
and in Kitfox Discord #bug-discussion
https://discord.com/channels/329272032778780672/1049402643342168114/1537342125543530507
verified that this runs ok.
accidentally pushed directly to the main scripts repo.
guess that's because I have privileges now.
glad I was in a new branch. guess I'll continue.