Auto coloring Train Stations

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Arcani_Victus
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sun Jun 03, 2018 12:54 am
Contact:

Auto coloring Train Stations

Post by Arcani_Victus »

For the sake of future generations I humbly request your consideration

TL;DR
The ability for train stations to set color through circuit.

What?
Could it be possible to do something similar as the Selector Combinator and its ability to output stack size by inputting an item? Instead you input an item signal into the train station and it sets its color to the predefined color of said item?
Why?
This life is about automation and we can now set trains to automatically change color depending on destination station color and automatically set parameters on station blueprints; however, we are forced to manually edit each and every station’s color….DISGUSTING!

Thank you for your time and for existing! Wube, like factorio, is amazing. I look forward to this feature in a coming update. <3



Don’t forget the children!
User avatar
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 843
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: Auto coloring Train Stations

Post by IsaacOscar »

Well now your asking for Wube to assign a colour to every single item in the game...
Which is a lot of work! (although this mod has already done that, https://mods.factorio.com/mod/Automatic_Train_Painter, and they include colours for many other mods)

Also, you might find this mod useful https://mods.factorio.com/mod/automatic-station-painter
Arcani_Victus
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sun Jun 03, 2018 12:54 am
Contact:

Re: Auto coloring Train Stations

Post by Arcani_Victus »

IsaacOscar wrote: Mon Dec 30, 2024 2:45 pm Well now your asking for Wube to assign a colour to every single item in the game...
Which is a lot of work! (although this mod has already done that, https://mods.factorio.com/mod/Automatic_Train_Painter, and they include colours for many other mods)

Also, you might find this mod useful https://mods.factorio.com/mod/automatic-station-painter
I know I ask a lot, but I believe in Wube! As for the mods, they don’t exactly resolve the current dilemma in the most elegant manor. That’s two scripts that I would have to have running constantly while playing. In fact, I am currently playing the game the way the good lord intended, modless.

I believe Wube can do it better and maybe just hadn’t thought of this ideal yet, but once they do will be inspired to go forth and impress.
Muche
Filter Inserter
Filter Inserter
Posts: 870
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: Auto coloring Train Stations

Post by Muche »

I'd say assigning colour to a train stop could work the same way a lamp colour is set - mapping / components / packed RGB.
Then if you want some mapping from item to colour you can use a simple circuit, such as
Arcani_Victus
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sun Jun 03, 2018 12:54 am
Contact:

Re: Auto coloring Train Stations

Post by Arcani_Victus »

Muche wrote: Mon Dec 30, 2024 4:37 pm I'd say assigning colour to a train stop could work the same way a lamp colour is set - mapping / components / packed RGB.
Then if you want some mapping from item to colour you can use a simple circuit, such as
That is a bit more complicated then what I was referring too. I feel like the logic from the train auto color to station and Selector Combinator stack size setting merged into something simple and easy. My 2.0 train stations already have a constant combinator feeding a signal of the item into a Selector Combinator to handle item stack size for math. I could feed that constant combinator into a second Selector Combinator wired to the station for setting the color.
Muche
Filter Inserter
Filter Inserter
Posts: 870
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: Auto coloring Train Stations

Post by Muche »

Arcani_Victus wrote: Mon Dec 30, 2024 9:41 pm That is a bit more complicated then what I was referring too.
I'm not sure what you mean.

Of the two constant combinators in the BP, one is simulating input.

The other contains colour definitions; I don't see any way you can get rid of it to allow players to customize item to colour mapping.
Or do you mean that it should be hardcoded that an iron-ore station is always a certain shade of blue, a copper-ore a certain shade of red and I could not make all ores to make the same colour, because that's how I want my trains to work?

Of the two active combinators, decider is filtering the signals, arithmetic is renaming the signal for the lamp.
It can indeed be made using only one arithmetic, at the price of putting more limits on input signal - applicable item signal has to have value of 1.

If that's what you have/can guarantee, you've saved one combinator. If not, you have to add a decider [item>0 -> item=1] anyways.
Arcani_Victus
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sun Jun 03, 2018 12:54 am
Contact:

Re: Auto coloring Train Stations

Post by Arcani_Victus »

Muche wrote: Mon Dec 30, 2024 11:37 pm
Arcani_Victus wrote: Mon Dec 30, 2024 9:41 pm That is a bit more complicated then what I was referring too.
I'm not sure what you mean.

Of the two constant combinators in the BP, one is simulating input.

The other contains colour definitions; I don't see any way you can get rid of it to allow players to customize item to colour mapping.
Or do you mean that it should be hardcoded that an iron-ore station is always a certain shade of blue, a copper-ore a certain shade of red and I could not make all ores to make the same colour, because that's how I want my trains to work?

Of the two active combinators, decider is filtering the signals, arithmetic is renaming the signal for the lamp.
It can indeed be made using only one arithmetic, at the price of putting more limits on input signal - applicable item signal has to have value of 1.

If that's what you have/can guarantee, you've saved one combinator. If not, you have to add a decider [item>0 -> item=1] anyways.
My apologies, but, I feel we are misunderstanding one another.

My suggested way of Wube to implement my ideal is as such.

Currently the new Selector Combinator (added with 2.0) has a predefined table of every item in the game from which it pulls stack size data from and out puts as a signal.

Therefore, I figure something similar could be done for item colors. Then allow the station color to be set via that signal.

Another option even more simple is just feed the item signal directly into the station and it pulls the color from a predefined table of items and their corresponding color.

In either suggestion it would require only a single Combinator, selector or constant respectively.
Muche
Filter Inserter
Filter Inserter
Posts: 870
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: Auto coloring Train Stations

Post by Muche »

Indeed.

The core misunderstanding seems to be that items don't have any game-related colour associated with them.
Iron ore definition
They have defined stack size and weight (transformed into rocket capacity), but no colour.
(color_hint is a text hint used for show-color-hints advanced hidden setting.)

Yes, theoretically it would be possible to take icon graphics and average all pixels to get one colour.
(Even averaging could be done in two ways - ignore black background pixels, or count them in.)
I just don't see how useful it would be to do that. Colour coding trains and stops is highly subjective.

For example, based on icons, iron ore would be bluish-grey (similar to water, speed modules, solar panels, chemical science pack), iron products (plate, steel, gears, barrels) would be grey, as would be bricks, concrete, refined concrete, solid fuel, calcite, steam, and military science pack.
Do you assign different colours for these items, or do they share the same colour in your trains?
Arcani_Victus
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sun Jun 03, 2018 12:54 am
Contact:

Re: Auto coloring Train Stations

Post by Arcani_Victus »

Muche wrote: Tue Dec 31, 2024 7:46 pm Indeed.

The core misunderstanding seems to be that items don't have any game-related colour associated with them.
Iron ore definition
They have defined stack size and weight (transformed into rocket capacity), but no colour.
(color_hint is a text hint used for show-color-hints advanced hidden setting.)

Yes, theoretically it would be possible to take icon graphics and average all pixels to get one colour.
(Even averaging could be done in two ways - ignore black background pixels, or count them in.)
I just don't see how useful it would be to do that. Colour coding trains and stops is highly subjective.

For example, based on icons, iron ore would be bluish-grey (similar to water, speed modules, solar panels, chemical science pack), iron products (plate, steel, gears, barrels) would be grey, as would be bricks, concrete, refined concrete, solid fuel, calcite, steam, and military science pack.
Do you assign different colours for these items, or do they share the same colour in your trains?
Yes, my thought was they could add a RGB code specific to each item much like what the factorio cheat sheet site has listed. However, that might be more involved than I think.
Post Reply

Return to “Ideas and Suggestions”