Change in-game player name after game has started? (Single player)

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
Crixomix
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Wed Feb 24, 2016 1:10 am
Contact:

Change in-game player name after game has started? (Single player)

Post by Crixomix »

Hello all,

I'm wondering if there is a way to change the player-name after the game has started. I tried an old console command I found but it doesn't work:

/c game.player.name = "yourname"

I'm not talking about changing the name in such a way that fixes it for FUTURE saves, I'm talking about a way to change the player name for a current save. Is it possible? I'm not needing achievements so I'm willing to try anything.

Thanks,

Loewchen
Global Moderator
Global Moderator
Posts: 8320
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Change in-game player name after game has started? (Single player)

Post by Loewchen »

Try /c game.local_player.name="yourname"

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Change in-game player name after game has started? (Single player)

Post by eradicator »

Loewchen wrote:
Tue Dec 22, 2020 6:30 am
Try /c game.local_player.name="yourname"
"local_player" has been renamed "player" in... 0.13.0! :p. And LuaPlayer.name has been made read-only in 0.18.7. I don't konw any method to change the displayed name seperately.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
NotRexButCaesar
Smart Inserter
Smart Inserter
Posts: 1121
Joined: Sun Feb 16, 2020 12:47 am
Contact:

Re: Change in-game player name after game has started? (Single player)

Post by NotRexButCaesar »

What I did was convert the save to a scenario, load the scenario, and then save over the original.
—Crevez, chiens, si vous n'étes pas contents!

Crixomix
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Wed Feb 24, 2016 1:10 am
Contact:

Re: Change in-game player name after game has started? (Single player)

Post by Crixomix »

AmericanPatriot wrote:
Tue Dec 22, 2020 7:44 pm
What I did was convert the save to a scenario, load the scenario, and then save over the original.
That's brilliant. Thank you!

BaliAgha
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Mar 05, 2019 3:59 am
Contact:

Re: Change in-game player name after game has started? (Single player)

Post by BaliAgha »

NotRexButCaesar wrote:
Tue Dec 22, 2020 7:44 pm
What I did was convert the save to a scenario, load the scenario, and then save over the original.
This comment still helps today.

Thank you for this unique and perfect work-a-round.

Story: "Downloaded save game from Bold Viking (Pyanodon save) and I did not want to have his name for my character. Going this route completely fixed my problem."

Post Reply

Return to “Gameplay Help”