[0.18.6]In game name change not staying changed.

This subforum contains all the issues which we already resolved.
superstalkerX
Inserter
Inserter
Posts: 20
Joined: Mon Mar 04, 2019 7:53 pm
Contact:

[0.18.6]In game name change not staying changed.

Post by superstalkerX »

When using the in-game name change command such as :

/c game.player.name = "new_name"

/c game.players["original_name"] = "new_name"

The player is correctly renamed but once that player logs out and logs back in, the player's data becomes entirely reset as if it's the first time on the map.

This bug was experienced in Multiplayer, singleplayer has not been tested.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14403
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.18.6]In game name change not staying changed.

Post by Rseding91 »

Thanks for the report. I don't know why that exists: writing the username runtime just breaks everything since it's what links connecting to the game in multiplayer back to your character.

So, I'm just going to remove support to write username from the Lua API.
If you want to get ahold of me I'm almost always on Discord.
Repairmanski
Burner Inserter
Burner Inserter
Posts: 17
Joined: Tue Apr 09, 2019 11:49 pm
Contact:

Re: [0.18.6]In game name change not staying changed.

Post by Repairmanski »

Disregarding multiplayer for a moment, is there another method (or more preferable means) for renaming the avatar when loading another player's save?

I suppose that the expected behavior would be to share the save as a scenario instead of a standard save but that seems to be an uncommon occurrence.
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.18.6]In game name change not staying changed.

Post by Bilka »

Repairmanski wrote: Tue Feb 18, 2020 3:47 pm Disregarding multiplayer for a moment, is there another method (or more preferable means) for renaming the avatar when loading another player's save?
/swap-players <player> [player] - Swaps your character with the given player’s character, or if two players are given swaps the two player characters. Sounds like what you are looking for.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
darklich14
Long Handed Inserter
Long Handed Inserter
Posts: 94
Joined: Sat Feb 24, 2018 3:07 am
Contact:

Re: [0.18.6]In game name change not staying changed.

Post by darklich14 »

I have seen some pretty cool scenarios that depend on changing your player name. Examples were a "hardcore" survival scenario where you became inmates stranded on a planet fighting to get off the planet. You were renamed to "Inmate-1234" so you couldn't tell who you were playing with. Another one was a bit more fun but just had arbitrary holiday or christmas themed names such as "DelictiblySucculentHam" -- I think some folks might get upset that their (cool) scenario concepts are broken if they can no longer rename players.
User avatar
ptx0
Smart Inserter
Smart Inserter
Posts: 1507
Joined: Wed Jan 01, 2020 7:16 pm
Contact:

Re: [0.18.6]In game name change not staying changed.

Post by ptx0 »

Rseding91 wrote: Tue Feb 18, 2020 11:37 am Thanks for the report. I don't know why that exists: writing the username runtime just breaks everything since it's what links connecting to the game in multiplayer back to your character.

So, I'm just going to remove support to write username from the Lua API.
really? what does it break (EVERYTHING?) other than inventory tracking?

also this:

https://mods.factorio.com/mod/nick-changer

will be broken by your change.
Post Reply

Return to “Resolved Problems and Bugs”