Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011764Dwarf FortressMiscellaneous Crashespublic2021-06-07 16:532021-06-07 19:13
squamous 
 
normalcrashalways
newopen 
WindowsWindows 10
0.47.05 
 
0011764: Creatures with the CAN_LEARN tag randomly CTD the game (modding bug only I think)
I have inadvertently screwed something up, and now any creature with the CAN_LEARN tag will randomly have a chance to crash the game when it is loaded into the player's game map.
Use the save provided here:

open it in arena mode, and just keep spawning humans. Eventually the game will CTD. Using any other CAN_LEARN creature will work as well.
No tags attached.
Issue History
2021-06-07 16:53squamousNew Issue
2021-06-07 16:54squamousNote Added: 0041076
2021-06-07 17:26Shonai_DwellerNote Added: 0041077
2021-06-07 17:30squamousNote Added: 0041078
2021-06-07 17:32squamousNote Edited: 0041078bug_revision_view_page.php?bugnote_id=0041078#r16706
2021-06-07 17:34squamousNote Edited: 0041078bug_revision_view_page.php?bugnote_id=0041078#r16707
2021-06-07 17:36squamousNote Edited: 0041078bug_revision_view_page.php?bugnote_id=0041078#r16708
2021-06-07 17:38squamousNote Edited: 0041078bug_revision_view_page.php?bugnote_id=0041078#r16709
2021-06-07 17:42squamousNote Edited: 0041078bug_revision_view_page.php?bugnote_id=0041078#r16710
2021-06-07 19:13squamousNote Added: 0041079
2021-06-07 19:14squamousNote Edited: 0041079bug_revision_view_page.php?bugnote_id=0041079#r16712

Notes
(0041076)
squamous   
2021-06-07 16:54   
Whoops I forgot to provide the save: https://dffd.bay12games.com/file.php?id=15566 [^]
(0041077)
Shonai_Dweller   
2021-06-07 17:26   
Surely this is a question for the modding forum to help with. Has any actual DF bug been identified as the cause?
(0041078)
squamous   
2021-06-07 17:30   
(edited on: 2021-06-07 17:42)
Well I'm not really sure about that is the thing. see here:

https://puu.sh/HN7aN/feeb12beba.png [^]

this is what my raw folder looks like after trying to isolate the cause. The crash still happens even after pruning it to this degree, so I'm not entirely sure if its a raw problem or a DF problem. It could be a raw problem, but it might have something to do with a hardcoded feature of DF as well, I'm just not sure. I have also changed nothing besides worldgen parameters and some init settings which have always worked fine before, so I don't think I could have messed something up outside of this folder. The errorlog also provides no explanation, so I have very little to go on. It could be an issue that only modding the game incurs, but is impossible to actually determine the cause of using the knowledge available to the public, so I am reporting it on the off chance it is that sort of situation.

(0041079)
squamous   
2021-06-07 19:13   
(edited on: 2021-06-07 19:14)
Alright, I actually think I have figured it out, I'll leave it to others whether this counts as a bug or not.

in my particular case, at least, the issue is that my mod did not have shields. Apparently, if a mod gets rid of shields, clothing, weapons, or some other such thing, the game will periodically crash (I think it has something to do with preferences)

So basically, if you want your mod to not have shields for example, you still need to have them in the raw files but never use them. Deleting them will cause these crashes. Even if it's not a bug, I've never heard of this before so at the very least its rare info.