Set default runtime tint during datastage for spider-vehicle

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 442
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Set default runtime tint during datastage for spider-vehicle

Post by Stringweasel »

Request?
The ability to set the default colour of spider-vechiles during the datastage. This colour will then be taken into account when the spider is picked up and stored with the item.

The request is for spider-vehicles specifically, but could be extended to trains as well, even though their colours are not remembered when picked up. Possibly cars and tanks too.
Proposed Behaviour
Adding an additional field to the spider-vehicle prototype (and possibly train) that sets the default colour when placing it down. If the colour is then changed during runtime and the spider picked up, then the item will only store the colour tag if it's not the new defined default colour.

If functionality is implemented for cars and trains too, then it only applies the default colour when placed down. Item's obviously don't remember the colour.
Why this will be benificial
There are many mods that add new types of vehicles, and sometimes these vehicles look cooler if they're not the default orange colour. Modders could change the tint during datastage to whatever they like, but then it would be hardcoded and not changeable during runtime.

The workaround is to keep the orange default colour, and then when the entity is created check if it's the default colour. If it is, then change it to what you want, otherwise keep it. For example here or here. This is the disadvantage that the entity-in-cursor looks odd, and if a player really wants the orange colour and picked up the spider, then his colour choice is lost.

Mods that could benifit after a quick search which currently needs to work around this problem:
- Space Spidertron
- Spidertron Extended
- Spidertron Tiers

And possibly more. For example, if implemented for trains too, the FARL train could default to yellow.
Alt-F4 Author | Factorio Modder
Probably known for: (Configurable) Valves | Better Victory Screen | Space Spidertron | Fluidic Power
Official Contributor to Space Exploration
Post Reply

Return to “Modding interface requests”