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] Crash loading MP world with 1.1.2

2 years ago
(updated 2 years ago)

91.825 Error AppManagerStates.cpp:1595: The mod miniMAXIme: Character scaler and selector (1.1.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event minime::on_configuration_changed
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__minime
/scripts/corpse.lua:59: in function 'remove_corpse_data'
minime/scripts/corpse.lua:307: in function 'check_corpses'
minime/control.lua:368: in function <minime/control.lua:276>

2 years ago

Disabling the mod, saving the world without the mod active, and then re-enabling the mod fixed the crash. I can send you a backed up copy of the world file if you need it.

2 years ago

Oh dang nevermind now my character is missing and trying to select a character gives this error:

44.641 Error ServerMultiplayerManager.cpp:91: MultiplayerManager failed: "The mod miniMAXIme: Character scaler and selector (1.1.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event minime::on_gui_click (ID 1)
minime/scripts/character.lua:117: bad argument #2 of 2 to 'newindex' (table expected, got nil)
stack traceback:
[C]: in function '__newindex'
__minime
/scripts/character.lua:117: in function 'copy_properties'
minime/scripts/character.lua:895: in function 'copy_character'
minime/scripts/character.lua:1402: in function 'switch_characters'
minime/scripts/gui.lua:662: in function 'button_click'
minime/scripts/gui.lua:713: in function 'event_handler'
minime/scripts/events.lua:151: in function <minime/scripts/events.lua:148>"

2 years ago

Thanks for the report! It would be great if you could send saved games for reproducing both crashes. :-)

2 years ago

If it helps, the workaround for getting a working save after this was to temporarily disable the conditional block at line 59 in corpse.lua and load and re-save.

2 years ago

If it helps, the workaround for getting a working save after this was to temporarily disable the conditional block at line 59 in corpse.lua and load and re-save.

You're right, that block doesn't make much sense. The function is supposed to handle cases where either an entity or nil is passed on. If there was an entity, I wanted to make sure that it really is a character-corpse entity, which only works if the entity is valid. However, that breaks if the function is fed data of an already expired (invalid) corpse.

The other bug is a bit more complicated. There are properties that can't be nil, so they should be initialized with a sane default value. Working on it …

2 years ago

Thanks so much for your work on it!

2 years ago

Thanks so much for your work on it!

You're welcome! Both bugs should be fixed in version 1.1.3. Can you confirm that it works now?

2 years ago

Just tested and it appears fixed.

2 years ago

Great! :-)

New response