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 when disconnecting from avatar that was placed before anchoring a space ship in Space Exploration

1 year, 10 months ago

In order to reproduce, on Space Exploration place an avatar in a ship and anchor the ship to an orbit/planet or launch the ship, whatever makes it switch surfaces.

After switching surface, control the previously placed avatar, when trying to disconnect from it this error will happen:

The mod Avatars (0.5.24) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Avatars::avatars_disconnect (ID 183)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
        [C]: in function '__index'
        __Avatars__/scripts/avatar_control.lua:62: in function 'bodySwap'
        __Avatars__/scripts/avatar_control.lua:189: in function 'loseAvatarControl'
        __Avatars__/control.lua:309: in function <__Avatars__/control.lua:306>

For some reason it was possible to save the game afer the crash but the saved game became unusable, every time it was restarted on multiplayer or single player it would crash with this message:

The mod Avatars (0.5.24) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Avatars::on_pre_player_left_game (ID 109)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
        [C]: in function '__index'
        __Avatars__/scripts/avatar_control.lua:62: in function 'bodySwap'
        __Avatars__/scripts/avatar_control.lua:189: in function 'loseAvatarControl'
        __Avatars__/control.lua:29: in function <__Avatars__/control.lua:27>
1 year, 10 months ago

Hm, where is the Avatar Control Center and the player's original character at during the above events? Those lines refer to the original character being no longer valid for Avatars to find and switch back to.

1 year, 10 months ago

Forgot to mention that, it's in the space ship that switches surfaces.

1 year, 10 months ago

Ok, this should be covered on my end, but I can test around with this and try to find out what is happening.

1 year, 9 months ago

This has been fixed, but I'm waiting to release it with the fix for the geometric structure issue you also reported (if it still is an issue).

New response