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 month ago
0.16 - 1.1
20.9K

b [Fixed] Error on loading save

1 year, 1 month ago

My game fails when I load space exploration save with following error:

The mod miniMAXIme: Character scaler and selector (1.1.27) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event minime::on_init()
minime/libs/assertions.lua:90: Wrong argument! nilcharacter is not valid!
stack traceback:
[C]: in function 'error'
minime/libs/assertions.lua:90: in function 'arg_err'
minime/scripts/character.lua:971: in function 'copy_character'
minime/scripts/player.lua:810: in function 'init_player'
minime/scripts/gui.lua:112: in function 'make_gui_character_pages'
minime/scripts/character.lua:954: in function 'update_character_list'
minime/control.lua:182: in function 'init'
minime/control.lua:250: in function <minime/control.lua:247>

my guesses for reasons:
1) This is save from game running on headless server, server player does not have character and therefore causes it.
2) someone was using navigation satelite, but i saw fixed bugs from SE so I guess it is compatible
3) i also have BlueprintLab mod and you also do not have character there, but it should work like satelite
those are totally guesses, I have zero modding experience, so I may be wrong.

P.S. I really want these genshin impact characters on server, please fix it :)

1 year, 1 month ago

I tried to load same mod configuration on server, it produced different error:

The mod miniMAXIme: Character scaler and selector (1.1.27) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event minime::on_init()
minime/scripts/gui_stuff/gui_available_chars.lua:580: attempt to index local 'p_data' (a nil value)
stack traceback:
minime/scripts/gui_stuff/gui_available_chars.lua:580: in function 'init_gui'
minime/scripts/gui.lua:162: in function 'init_guis'
minime/scripts/player.lua:272: in function 'update_global_settings'
minime/control.lua:206: in function 'init'
minime/control.lua:250: in function <minime/control.lua:247>"

1 year, 1 month ago

I created a new file on server with only dependencies for genshin-impact-charaters mod, it gave the same error, so I think the issue is with loading on headless server.

1 year, 1 month ago

Thanks for the report!

My game fails when I load space exploration save with following error:

The mod miniMAXIme: Character scaler and selector (1.1.27) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event minime::on_init()
minime/libs/assertions.lua:90: Wrong argument! nilcharacter is not valid!

my guesses for reasons:
1) This is save from game running on headless server, server player does not have character and therefore causes it.
2) someone was using navigation satelite, but i saw fixed bugs from SE so I guess it is compatible
3) i also have BlueprintLab mod and you also do not have character there, but it should work like satelite
those are totally guesses, I have zero modding experience, so I may be wrong.

I could reproduce that when loading a game where I'd turned on SE's nav-view and then deleted my old character, so it's probably not an issue of using headless. Replacing lines 809+810 of scripts/player.lua with the following seems to fix that:

if p_data.detached_character and p_data.detached_character.valid and
    p_data.dummy and p_data.dummy.valid then

  minime.writeDebug("Backing up detached character!")
  minime_character.copy_character(p_data.detached_character, p_data.dummy)
end

Does that work for you as well, or do you get into problems with SE later on?

I tried to load same mod configuration on server, it produced different error:

The mod miniMAXIme: Character scaler and selector (1.1.27) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event minime::on_init()
minime/scripts/gui_stuff/gui_available_chars.lua:580: attempt to index local 'p_data' (a nil value)

Could you provide the saved game? That bug has already been reported here but I couldn't reproduce it yet.

1 year, 30 days ago

Error while running event minime::on_init()
minime/scripts/gui_stuff/gui_available_chars.lua:580: attempt to index local 'p_data' (a nil value)

OK, I could reproduce that by adding the mod to an existing game. Let's see how to fix this. :-)

1 year, 29 days ago

so, do you need the save?

1 year, 27 days ago

so, do you need the save?

Version 1.1.28 should fix this. If it doesn't, I'd appreciate getting a saved game. :-)

1 year, 26 days ago

yes, the new version works good, thank you!

1 year, 26 days ago

You're welcome!

New response