[2.0.28] [RESOLVED] Turret color does not match player colour after changing hosts

Bugs that are actually features.
Echo4364
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jan 13, 2025 9:18 pm
Contact:

[2.0.28] [RESOLVED] Turret color does not match player colour after changing hosts

Post by Echo4364 »

I had a save file that my friend was hosting our playthrough on. He abandoned the playthrough and sent me the file. Now even though I am hosting, everything is tied to his colour.

-This effects all pre existing structures and new structures.

-Having him join and change the colour does work, but is not really a good solution.

-Changing the colour with a Lua command is not viable as this disables achievements.

I expected the colours to match mine after switching hosts, but this did not happen. If anyone knows a fix for this or how I can edit this in HxD, that would be greatly appreciated.
Last edited by Echo4364 on Tue Jan 14, 2025 5:25 pm, edited 1 time in total.
eugenekay
Filter Inserter
Filter Inserter
Posts: 687
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: [2.0.28] Turret color does not match player colour after changing hosts

Post by eugenekay »

I think you can do this (without Disabling achievements) by:

- Log out of Factorio / or use a “standalone” installation (from Factorio.com; not from Steam)
- Open the Savegame file
- Change the force’s color using the Console command "/c game.player.force.custom_color={0,0,0}“ (from 125386
- Save the game
- Open in your normal Factorio installation.

Good Luck!

Edit: Nope, I’m wrong. You need to use a Hex editor. See this thread which includes some Tools (source available) to do it for you. It’s up to you if this counts as “cheating” :-)
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4118
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.28] Turret color does not match player colour after changing hosts

Post by boskid »

Turret's color is based on force color, which is usually based on color of the first player. A solution for you that does not involve running commands that would disable achievements is to:

1/ host the save file (make sure you have admin permissions)
2/ in console type `/admin` (this will not disable any achievements)
3/ on the list of players, find a player name of your friend
4/ under operations click "Manage"
5/ in "Manage <player name>" gui click "Delete"

Now that player should be completly removed from the game and if there are no other players all the turrets should take your color as you will be the first player of the "players" force.

As for the bug report itself, that is a Not a bug as the behavior you see is working exactly as designed: take color of the first player (full logic has slightly more steps involved, and players color is not even a first step in it).
Echo4364
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jan 13, 2025 9:18 pm
Contact:

Re: [2.0.28] [RESOLVED] Turret color does not match player colour after changing hosts

Post by Echo4364 »

Thank you so much Boskid. This helped me resolve my issue with ease. I didn't even know there was an Admin panel!
Post Reply

Return to “Not a bug”