Multiplayer Inventory lost

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Unic
Inserter
Inserter
Posts: 32
Joined: Sun Jul 05, 2015 10:39 am
Contact:

Multiplayer Inventory lost

Post 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
NoPantsMcDance
Filter Inserter
Filter Inserter
Posts: 478
Joined: Fri Jul 17, 2015 6:56 pm
Contact:

Re: Multiplayer Inventory lost

Post 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.
Looking for a multiplayer server? Check out my servers Vanilla Server
tmr_2000
Burner Inserter
Burner Inserter
Posts: 17
Joined: Fri Apr 03, 2015 4:07 pm
Contact:

Re: Multiplayer Inventory lost

Post 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.
Bartimaeus
Inserter
Inserter
Posts: 42
Joined: Sun Aug 16, 2015 10:23 am
Contact:

Re: Multiplayer Inventory lost

Post 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?
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5207
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Multiplayer Inventory lost

Post 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.
Post Reply

Return to “Technical Help”