miniMAXIme: Character scaler and selector

by Pi-C

The player stands like a giant near the vehicles. Now you can adjust the size of your character -- and you can change your appearance at any time if you've other mods that provide extra characters!

Tweaks
a day ago
0.16 - 2.0
28.2K

b [Can't reproduce] crash 2

2 years ago

Error while running event minime::on_character_corpse_expired (ID 93)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__minime
/scripts/corpse.lua:131: in function 'event_handler'
minime/scripts/events.lua:155: in function <minime/scripts/events.lua:152>

2 years ago

I can't reproduce that, corpses expire fine for me. Could you send me a saved game where that happens?
(I did find and fix another bug, however: Character corpses would be removed in on_pre_player_mined_item, so none of the items could be transferred when on_player_ mined _item was triggered.)

2 years ago
(updated 2 years ago)

just add

 if(entity.valid)
2 years ago
(updated 2 years ago)

129: if corpse and corpse.valid and
130: (corpse_data.entity and corpse_data.entity.valid and corpse.name == corpse_data.name) or
131: (corpse.name == minime.generic_corpse_name and corpse_data.use_generic) then
132: minime.writeDebug("Both corpses are valid!")

I already took care that the corpse is valid before trying to index it, and I get "Both corpses are valid!" in my log file. That's what's so astonishing. :-)

(Also, "corpse_data.name" is not a typo, I've stored the name separately so I will still be able to read it when the entity has expired.)

2 years ago

Please provide a saved game if this is still a problem! If I can't reproduce the bug, I can't fix it.

2 years ago

The archive is gone. I put a bunch of corpses on the ground, and then the interface was switched out. After that, when the corpses disappeared, an error was reported.

2 years ago

I put several corpses on the ground, fast forwarded to shortly before they'd expire, and saved the game. They expired without an error. I then removed the character mods and reloaded. The old corpses were replaced with generic corpses, and those also expired without a problem.

Nothing I can do about this. If you happen to get that crash again, please provide a saved game that shows what's going wrong. Until then I'll put this off as not reproducible.

2 years ago

ok

New response