Player colour in single player mode?

Post all other topics which do not belong to any other category.
Post Reply
User avatar
GlassDeviant
Fast Inserter
Fast Inserter
Posts: 170
Joined: Wed Feb 11, 2015 1:51 am
Contact:

Player colour in single player mode?

Post 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.
Last edited by GlassDeviant on Sun Mar 08, 2015 11:38 am, edited 1 time in total.
- GD

Sorry if my posts are becoming difficult to read, my typing ability is rapidly deteriorating due to a nerve disorder. I try to clean them up before posting but don't always get every last typo.

FishSandwich
Smart Inserter
Smart Inserter
Posts: 1847
Joined: Sun Feb 23, 2014 3:37 pm
Contact:

Re: Player colour in single player mode?

Post by FishSandwich »

Players, not player. ;)

User avatar
GlassDeviant
Fast Inserter
Fast Inserter
Posts: 170
Joined: Wed Feb 11, 2015 1:51 am
Contact:

Re: Player colour in single player mode?

Post by GlassDeviant »

So I am stuck with orange until and if they decide to let you pick your colour in the new game setup?
- GD

Sorry if my posts are becoming difficult to read, my typing ability is rapidly deteriorating due to a nerve disorder. I try to clean them up before posting but don't always get every last typo.

FishSandwich
Smart Inserter
Smart Inserter
Posts: 1847
Joined: Sun Feb 23, 2014 3:37 pm
Contact:

Re: Player colour in single player mode?

Post 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

User avatar
GlassDeviant
Fast Inserter
Fast Inserter
Posts: 170
Joined: Wed Feb 11, 2015 1:51 am
Contact:

Re: Player colour in single player mode?

Post by GlassDeviant »

Great, I'll try that right off.
- GD

Sorry if my posts are becoming difficult to read, my typing ability is rapidly deteriorating due to a nerve disorder. I try to clean them up before posting but don't always get every last typo.

User avatar
Kokelvogel
Inserter
Inserter
Posts: 29
Joined: Thu Apr 16, 2015 3:26 pm
Contact:

Re: Player colour in single player mode?

Post 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.

Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: Player colour in single player mode?

Post 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

IrishWolf
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Oct 25, 2017 12:46 am
Contact:

Re: Player colour in single player mode?

Post by IrishWolf »

Currently in 0.17.31, all you need to do in single player for simple colours is (/color green) for example

Qon
Smart Inserter
Smart Inserter
Posts: 2118
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: Player colour in single player mode?

Post 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.

User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: Player colour in single player mode?

Post by TruePikachu »

Am I the only person who noticed the massive necro?

Koub
Global Moderator
Global Moderator
Posts: 7203
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Player colour in single player mode?

Post by Koub »

TruePikachu wrote:
Wed Apr 17, 2019 9:55 pm
Am I the only person who noticed the massive necro?
No.
Koub - Please consider English is not my native language.

FishSandwich
Smart Inserter
Smart Inserter
Posts: 1847
Joined: Sun Feb 23, 2014 3:37 pm
Contact:

Re: Player colour in single player mode?

Post by FishSandwich »

TruePikachu wrote:
Wed Apr 17, 2019 9:55 pm
Am I the only person who noticed the massive necro?
Blame IrishWolf.

Post Reply

Return to “General discussion”