View Issue Details

IDProjectCategoryView StatusLast Update
0000443Medieval EngineersBugpublic2023-02-15 20:21
Reporterxaerthus Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Target Version0.7.5 (unreleased) 
Summary0000443: Stumps aren't rendered using the environment item system and are entities instead - problems with regrowing

Stumps are not existing as environment items which causes problems with them regrowing and going in the PermaDead state.

Steps To Reproduce
  1. Cut tree, but leave stump
  2. Wait beyond regrowth time
TagsNo tags attached.


related to 0000450 resolvedequinox Stumps don't delete environment items after reloading the environment sector  



2023-02-13 21:51

administrator   #~0000376

Last edited: 2023-02-13 22:11

After further investigation it appears stumps get a CuttableTreeComponent that destroys the environment item on the base sector when it grows.
There may be an issue where the root isn't destroyed when the entity is destroyed through certain code paths (directly closed by decay system?), or the tree is cut in a way that the root ball entity never exists (unknown)

Also, if the stump is somehow loaded and destroyed while the environment sector is unloaded the stump will be destroyed without the environment item being destroyed.
Also, the stump stores the entity ID of the environment sector, which in older versions didn't change between sector loads, but in 0.7 DOES. This means that destroying a stump after a sector reload will cause the environment item to fail to delete.

Issue History

Date Modified Username Field Change
2023-01-27 13:15 xaerthus New Issue
2023-02-04 15:54 equinox Target Version => 0.7.5 (unreleased)
2023-02-13 21:51 equinox Note Added: 0000376
2023-02-13 21:58 equinox Note Edited: 0000376
2023-02-13 22:10 equinox Note Edited: 0000376
2023-02-13 22:11 equinox Note Edited: 0000376
2023-02-15 20:21 equinox Relationship added related to 0000450