Page 1 of 1

Player colour in single player mode?

Posted: Sun Mar 08, 2015 8:50 am
by GlassDeviant
I've noticed that everyone's player colour (in YT vids) seems to be different. Mine always default to some muddy orangey-brown. I understand that game.player[1].color= can be used from the console to change the color, but what are the value ranges, and does it work in single player or only multiplayer?

I have tried game.player[1].color={g=50,b=200,r=200,a=.9} and game.player[1].color={g=50,b=200,r=200,a=.9}, both with and without prefacing it with "/c".

I have tried 0 as the index for player[].

The response is alwaus Error (yadda...yadda). LuaPlayer doesn't contain key 0.

Re: Player colour in single player mode?

Posted: Sun Mar 08, 2015 11:32 am
by FishSandwich
Players, not player. ;)

Re: Player colour in single player mode?

Posted: Sun Mar 08, 2015 11:49 am
by GlassDeviant
So I am stuck with orange until and if they decide to let you pick your colour in the new game setup?

Re: Player colour in single player mode?

Posted: Sun Mar 08, 2015 12:06 pm
by FishSandwich
No.. I was implying that it should be:

/c game.players[1].color={g=50,b=200,r=200,a=.9}

Edit:
Now that I think about it, if it's single player you don't need the [1] in there. So it'd be just:

/c game.player.color={g=50,b=200,r=200,a=.9}

Both commands work either way.

Also this might help you with the numbers: https://forums.factorio.com/wiki/inde ... ypes/color

Re: Player colour in single player mode?

Posted: Sun Mar 08, 2015 5:31 pm
by GlassDeviant
Great, I'll try that right off.

Re: Player colour in single player mode?

Posted: Sat May 16, 2015 2:37 pm
by Kokelvogel
FishSandwich wrote:No.. I was implying that it should be:

/c game.players[1].color={g=50,b=200,r=200,a=.9}

Edit:
Now that I think about it, if it's single player you don't need the [1] in there. So it'd be just:
I play single player, I tried changing my colour and it only worked when I put in the [1] :shock: Either I am doing something wrong (which I am half willing to believe) or else there is some reason the number of players needs to be stated even if there is only one player to choose from *shrugs*

Thank you all for putting this information up, I'd never be able to change the settings on my own.

Re: Player colour in single player mode?

Posted: Sat May 16, 2015 2:45 pm
by Choumiko
Kokelvogel wrote:I play single player, I tried changing my colour and it only worked when I put in the [1] :shock:
did you use game.players or game.player ? with players you need the [1], with player you shouldn't

Re: Player colour in single player mode?

Posted: Mon Apr 15, 2019 10:02 pm
by IrishWolf
Currently in 0.17.31, all you need to do in single player for simple colours is (/color green) for example

Re: Player colour in single player mode?

Posted: Wed Apr 17, 2019 6:19 pm
by Qon
FishSandwich wrote:
Sun Mar 08, 2015 12:06 pm
Edit:
Now that I think about it, if it's single player you don't need the [1] in there. So it'd be just:

/c game.player.color={g=50,b=200,r=200,a=.9}
Use game.player in multiplayer if you want to modify yourself. game.players[1] is the player that made the game world.
game.player refers to the player that is typing that command into the console.

But if all you want is a color swap then use /color <color_name> as IrishWolf said. It doesn't disable achievements and works in multiplayer worlds where you don't have console "/c" command rights.

Re: Player colour in single player mode?

Posted: Wed Apr 17, 2019 9:55 pm
by TruePikachu
Am I the only person who noticed the massive necro?

Re: Player colour in single player mode?

Posted: Thu Apr 18, 2019 5:34 am
by Koub
TruePikachu wrote:
Wed Apr 17, 2019 9:55 pm
Am I the only person who noticed the massive necro?
No.

Re: Player colour in single player mode?

Posted: Fri May 17, 2019 11:29 pm
by FishSandwich
TruePikachu wrote:
Wed Apr 17, 2019 9:55 pm
Am I the only person who noticed the massive necro?
Blame IrishWolf.