[2.0.66] Crash when calling 'Player::onCharacterDied()' with modded character

Bugs which we just recently fixed in our development version and will reach you in the next release.
Hallowed
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Sep 24, 2025 7:08 pm
Contact:

[2.0.66] Crash when calling 'Player::onCharacterDied()' with modded character

Post by Hallowed »

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%
Attachments
mods.7z
(7.49 MiB) Downloaded 6 times
factorio-previous.log
(16.01 KiB) Downloaded 10 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16138
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.66] Crash when calling 'Player::onCharacterDied()' with modded character

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved for the next release”