Player colour in single player mode?
- GlassDeviant
- Fast Inserter
- Posts: 170
- Joined: Wed Feb 11, 2015 1:51 am
- Contact:
Player colour in single player mode?
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.
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.
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.
-
- Smart Inserter
- Posts: 1847
- Joined: Sun Feb 23, 2014 3:37 pm
- Contact:
Re: Player colour in single player mode?
Players, not player.
- GlassDeviant
- Fast Inserter
- Posts: 170
- Joined: Wed Feb 11, 2015 1:51 am
- Contact:
Re: Player colour in single player mode?
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.
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.
-
- Smart Inserter
- Posts: 1847
- Joined: Sun Feb 23, 2014 3:37 pm
- Contact:
Re: Player colour in single player mode?
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
/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
- GlassDeviant
- Fast Inserter
- Posts: 170
- Joined: Wed Feb 11, 2015 1:51 am
- Contact:
Re: Player colour in single player mode?
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.
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.
- Kokelvogel
- Inserter
- Posts: 29
- Joined: Thu Apr 16, 2015 3:26 pm
- Contact:
Re: Player colour in single player mode?
I play single player, I tried changing my colour and it only worked when I put in the [1] 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*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:
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?
did you use game.players or game.player ? with players you need the [1], with player you shouldn'tKokelvogel wrote:I play single player, I tried changing my colour and it only worked when I put in the [1]
Re: Player colour in single player mode?
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?
Use game.player in multiplayer if you want to modify yourself. game.players[1] is the player that made the game world.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}
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.
My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
- TruePikachu
- Filter Inserter
- Posts: 978
- Joined: Sat Apr 09, 2016 8:39 pm
- Contact:
Re: Player colour in single player mode?
Am I the only person who noticed the massive necro?
Re: Player colour in single player mode?
No.
Koub - Please consider English is not my native language.
-
- Smart Inserter
- Posts: 1847
- Joined: Sun Feb 23, 2014 3:37 pm
- Contact:
Re: Player colour in single player mode?
Blame IrishWolf.