[2.0.66] Crash when calling 'Player::onCharacterDied()' with modded character
Posted: Wed Sep 24, 2025 7:32 pm
I've been porting the hive mind mod that lets you play as the biters to 2.0.
As part of the mod the player character gets replaced with a biter model. Killing this biter player consistently crashes the game.
Reproduction Steps:
Load factorio with the attached mods
Start a new game with the scenario "Hive Mind Hallowed/Hivemind" added by the mod
Dismiss the text popup with tab
Stand on the left platform to join the biters team
Wait 15 seconds for the game to start
Run '/c game.players[1].character.die()' in the console to force a death (other methods of death result in the same crash, my initial testing found it by getting killed by another player)
Result:
The game crashes
Expected Result:
The death gets handled properly or an error is thrown that should be reported to the mod author
Reproducability:
100%
As part of the mod the player character gets replaced with a biter model. Killing this biter player consistently crashes the game.
Reproduction Steps:
Load factorio with the attached mods
Start a new game with the scenario "Hive Mind Hallowed/Hivemind" added by the mod
Dismiss the text popup with tab
Stand on the left platform to join the biters team
Wait 15 seconds for the game to start
Run '/c game.players[1].character.die()' in the console to force a death (other methods of death result in the same crash, my initial testing found it by getting killed by another player)
Result:
The game crashes
Expected Result:
The death gets handled properly or an error is thrown that should be reported to the mod author
Reproducability:
100%