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] Map editor load error

4 months ago

When trying to edit saved scenario in map editor I get the following error:

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

Error while running event minime::on_pre_player_removed (ID 138)
minime/scripts/player.lua:1261: attempt to index field 'player_data' (a nil value)
stack traceback:
minime/scripts/player.lua:1261: in function 'event_handler'
minime/scripts/events.lua:288: in function <minime/scripts/events.lua:285>

4 months ago

Thanks for the report! The bug should be fixed in version 1.1.40. Can you confirm that?

4 months ago

Now I'm getting this:

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

Error while running event minime::on_pre_player_removed (ID 138)
minime/scripts/player.lua:1274: attempt to index field 'player_data' (a nil value)
stack traceback:
minime/scripts/player.lua:1274: in function 'event_handler'
minime/scripts/events.lua:288: in function <minime/scripts/events.lua:285>

4 months ago

Can you try to edit file scripts/player.lua, swapping lines 1273 and 1274, so that end is after global.player_data[player] = nil? I'd like to see whether that was the last crash you've got -- don't want to spam too many releases for fixing so trivial bugs. :-D

4 months ago

changed:
-- Remove dummy
if p_data then
if p_data.dummy and p_data.dummy.valid then
p_data.dummy.destroy()
minime.writeDebug("Removed dummy character!")
end
end
global.player_data[player] = nil
minime.writeDebug("Removed data of player %s!", {player or "nil"})

into:
-- Remove dummy
if p_data then
if p_data.dummy and p_data.dummy.valid then
p_data.dummy.destroy()
minime.writeDebug("Removed dummy character!")
end
global.player_data[player] = nil
end
minime.writeDebug("Removed data of player %s!", {player or "nil"})

Now it loads fine (both new scenarios and even the old ones).

4 months ago
(updated 4 months ago)

Thanks! I've just uploaded version 1.1.41 which should fix this issue for good.

By the way, if you want to insert code in the future, indent each line with 4 spaces. That's the way to tell Markdown this is code, so the original indentation will be preserved -- this makes it easier to read the code. (For short inline code you can add one ` before and one after it.)

New response