Avatars


This mod allows players to create and remotely control Avatars. Avatars act like players, with a few minor exceptions. The mod also includes a few custom entities to control and create the Avatars.

8 months ago
0.13 - 1.1
11.9K

b Crash on entering and picking up avatar

4 years ago
(updated 4 years ago)

Version 0.5.10

On trying to control avatar:

Error while running event Avatars::on_gui_click (ID 1)
Avatars/scripts/avatar_control.lua:129: attempt to index field 'avatarQuickBars' (a nil value)
stack traceback:
Avatars/scripts/avatar_control.lua:129: in function 'gainAvatarControl'
Avatars/control.lua:85: in function <Avatars/control.lua:59>

On pick up:

Error while running event Avatars::on_pre_player_mined_item (ID 11)
Avatars/scripts/storage.lua:73: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
Avatars/scripts/storage.lua:73: in function 'removeFromTableByKey'
Avatars/scripts/storage.lua:282: in function 'migrateAvatarQuickBars'
Avatars/scripts/storage.lua:130: in function 'remove'
Avatars/control.lua:188: in function <Avatars/control.lua:169>

I run a bunch of mods on my game, but these errors reproduce after disabling every other mod.

Any help appreciated.

4 years ago

Is this an old save that had a prior version of Avatars?

4 years ago
(updated 4 years ago)

Yes, I did have a previous version of avatars on this save.

Though I didn't use any of avatars mod items until 0.5.10 (I haven't research them with space exploration massive requirements).

Tried out a few things, mod doesn't crash on a brand new game (cheat mode) even with full set of mods I had on a save that does crash

4 years ago

Thank you for the hint. Disabling the mod, re-saving and enabling the mod back did the trick

4 years ago

Ya, a new save should be fine, it must be something with the migration I did from the prior versions. I'll still look into it, but I'm glad that was able to fix your save.

4 years ago

Brainfart on how to compare numbers, this bug should be fixed.

New response