Page 1 of 1
[0.18.6]In game name change not staying changed.
Posted: Tue Feb 18, 2020 5:18 am
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.
Re: [0.18.6]In game name change not staying changed.
Posted: Tue Feb 18, 2020 11:37 am
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.
Re: [0.18.6]In game name change not staying changed.
Posted: Tue Feb 18, 2020 3:47 pm
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.
Re: [0.18.6]In game name change not staying changed.
Posted: Tue Feb 18, 2020 3:50 pm
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.
Re: [0.18.6]In game name change not staying changed.
Posted: Tue Feb 18, 2020 11:59 pm
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.
Re: [0.18.6]In game name change not staying changed.
Posted: Wed Feb 19, 2020 12:04 am
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.