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 [Fixed?] cant load save .. again

2 years ago

got new one for you :P out of blue same save that i got working and was loading alright i tried load it today and got this , dont ask what changed cos i got no idea
just reporting no need to fix it as you prolly got better stuff to do , save i play atm works fine

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

Error while running event minime::on_runtime_mod_setting_changed (ID 61)
minime/scripts/gui_stuff/gui_available_chars.lua:586: bad argument #2 of 2 to 'table_size' (table expected, got nil)
stack traceback:
[C]: in function 'table_size'
minime/scripts/gui_stuff/gui_available_chars.lua:586: in function 'init_gui'
minime/scripts/gui.lua:162: in function 'init_guis'
minime/scripts/player.lua:269: in function 'event_handler'
minime/scripts/events.lua:188: in function <minime/scripts/events.lua:185>

2 years ago

Please try exchanging lines 562-564:

  -- Make sure player has a  list of available characters!
  p_data.available_characters = p_data.available_characters or
                                minime_gui.available.init_player_character_list(player)

against

  if not p_data.available_characters then
    minime_gui.available.init_player_character_list(player)
  end
2 years ago

Note to myself:

p_data.available_characters = p_data.available_characters or
              minime_gui.available.init_player_character_list(player)

looks correct, but isn't: The function will set p_data.available_characters directly and return nil, so if p_data.available_characters was empty to begin with, it will be set to a table, and then be reset to nil immediately after the function is finished.

New response