Leave corpse on exit

by Pi-C

In multiplayer games, corpses will be created for the characters of players who leave or are permanently removed from the game.

Content
9 months ago
1.1 - 2.0
92
Storage

b Server crash with map corruption

12 days ago

Hi, I created and started a dedicated Factorio server with Krastorio 2 spaced out. The server crashed after a player joined and then left shortly afterwards. It managed to restart, but crashed again whenever someone tried to join the game. I loaded the map in single-player mode and received the following error message:

The mod Leave Corpse On Exit (2.0.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event leave_corpse_on_exit::on_pre_player_left_game (ID 125)
Pi-C_lib/libs/assertions.lua:431: Wrong argument! nil is not a valid unit_number of character!
stack traceback:
[C]: in function 'error'
Pi-C_lib/libs/assertions.lua:431: in function 'arg_err'
Pi-C_lib/libs/assertions.lua:514: in function 'assert'
leave_corpse_on_exit/scripts/corpse.lua:915: in function 'add_to_burial_site_corpses'
leave_corpse_on_exit/scripts/corpse.lua:878: in function 'store_data'
leave_corpse_on_exit/scripts/player.lua:828: in function 'event_handler'
leave_corpse_on_exit/scripts/events.lua:317: in function <leave_corpse_on_exit/scripts/events.lua:314>

Mod List:

base 2.0.77
elevated-rails 2.0.77
quality 2.0.77
space-age 2.0.77

AfraidOfTheDark_1.0.31
auto_sort_chests_2.0.0
ChangeInserterDropLane_1.2.0
flib_0.16.5
k2so-assets_1.0.5
Krastorio2-spaced-out_1.6.18
Krastorio2Assets_2.0.4
Krastorio2MenuSimulations_2.0.2
squeak-through-2_0.1.4

leave_corpse_on_exit_2.0.0
Pi-C_lib_2.0.4

If you'd like, I'd be happy to upload the map.

New response