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.
[0.18.6]In game name change not staying changed.
-
- Inserter
- Posts: 20
- Joined: Mon Mar 04, 2019 7:53 pm
- Contact:
Re: [0.18.6]In game name change not staying changed.
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.
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.
-
- Burner Inserter
- Posts: 17
- Joined: Tue Apr 09, 2019 11:49 pm
- Contact:
Re: [0.18.6]In game name change not staying changed.
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.
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.
Re: [0.18.6]In game name change not staying changed.
/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.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?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
-
- 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.
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.
Re: [0.18.6]In game name change not staying changed.
really? what does it break (EVERYTHING?) other than inventory tracking?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.
also this:
https://mods.factorio.com/mod/nick-changer
will be broken by your change.