Page 1 of 1
Multiplayer Inventory lost
Posted: Fri Mar 04, 2016 9:28 pm
by Unic
HI,
just updated server and client from 0.12.24 to 0.12.25 and wanted to test the steamversion. After connecting to the Server (iwth last save) my inventory was lost (looks like a fresh spawned) why is this ?
is there a way to get it back ?
Thanks for help
Re: Multiplayer Inventory lost
Posted: Fri Mar 04, 2016 9:48 pm
by NoPantsMcDance
If you change your name you will lose your inventory. Your name has the be EXACTLY as it was before as it is case-sensitive.
Re: Multiplayer Inventory lost
Posted: Sat Mar 05, 2016 4:30 pm
by tmr_2000
That's happened to me before. I immediatley re-logged, and my inventory re-appeared. I still don't know what caused it though.
Re: Multiplayer Inventory lost
Posted: Mon Feb 19, 2018 10:28 pm
by Bartimaeus
Hi,
I was playing a multiplayer game with a friend ... but when we saved and reloaded I got spawned with an empty inventory.
I know you need to have the same name ... but I know I didnt change my name ... its Bartimaeus for both Singleplayer and Multiplayer games.
If I check the list of players by using
Code: Select all
/c game.player.print(game.players[1].name)
I will get my friends name for player[1] ... my name for player[2] and my name again for player[3]
The game shows that I am logged in as Bartimaeus and also my LAN name is Bartimaeus ...
is there a way to reclaim my lost inventory?
Re: Multiplayer Inventory lost
Posted: Mon Feb 19, 2018 10:53 pm
by eradicator
You can try copying the inventory off your old alter ego.
Code: Select all
/c
local function copy(invtyp,source,target)
local s = game.players[source].get_inventory(invtyp)
local t = game.players[target].get_inventory(invtyp)
for i=1,#s do
t[i].set_stack(s[i])
end
end
copy(defines.inventory.player_main,2,3)
copy(defines.inventory.player_quickbar,2,3)
I has a similar issue once and it resolved itself after leaving and rejoining i think.