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
11 days ago
0.16 - 2.0
26.4K

b [Fixed] Departure with error

2 years ago

Good afternoon! While testing the game with a number of mods, I got the following error message:

The mod miniMAXIme: Scale and switch characters (1.1.4) caused a fatal error.
Please report this bug to the mod author.

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

Link to the log https://disk.yandex.kz/d/VmiUE2QkB806Ng

2 years ago

Thanks for the report! Please change this in scripts/corpse.lua (starting at line 124):

-- Both event corpse and stored corpse are valid, so we can check if all
-- their properties are identical
if corpse and corpse.valid and corpse_data.entity and corpse_data.entity.valid and
  corpse.name == corpse_data.name or
  (corpse.name == minime.generic_corpse_name and corpse_data.use_generic) then

to this:

-- Both event corpse and stored corpse are valid, so we can check if all
-- their properties are identical
if corpse and corpse.valid and
  (corpse_data.entity and corpse_data.entity.valid and corpse.name == corpse_data.name) or
  (corpse.name == minime.generic_corpse_name and corpse_data.use_generic) then

Does that work?

2 years ago

Did as you advised - changed the code.

On subsequent tests, this error no longer appears.
I think the bug has been fixed.

Thank you very much!

2 years ago

Thanks for confirming that it works. I just uploaded version 1.1.5 with the fix.

New response