locomotives set themselves to "use destination train stop color" every time I uncouple and recouple train cars.

Bugs that are actually features.
Bow-Tied_Engineer
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Nov 01, 2024 7:54 pm
Contact:

locomotives set themselves to "use destination train stop color" every time I uncouple and recouple train cars.

Post by Bow-Tied_Engineer »

I have some trains I like to use for manual operations, but I also have stations set up so they can autopilot there. But almost every time I have them take me to a station, they reset the locomotive color, because I used the train for shunting and it re ticked that stupid checkbox. It's driving me nuts. I just want my locomotives to stay the colors I've set them.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4152
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: locomotives set themselves to "use destination train stop color" every time I uncouple and recouple train cars.

Post by boskid »

Thanks for the report however i will need some type of reproduction of the issue, a save file with some instructions because i am unable to reproduce any issues about what you are saying. State of the "use destination train stop color" checkbox is held by a particular locomotive instance and has nothing to do with recoupling trains. Straight from the code i can tell you that once the value is initially set (from the prototype or blueprint), there are not many ways this checkbox can change its value: its either through lua api, from locomotive's gui using the checkbox or when copying settings between locomotives. None of those actions match what you say and when i do what you say i am unable to reproduce any issues.
Bow-Tied_Engineer
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Nov 01, 2024 7:54 pm
Contact:

Re: locomotives set themselves to "use destination train stop color" every time I uncouple and recouple train cars.

Post by Bow-Tied_Engineer »

It must be a mod conflict then. I have a couple of mods that modify train behavior. Sorry about that, I should have looked into that before posting this as a bug report.
robot256
Smart Inserter
Smart Inserter
Posts: 1262
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: locomotives set themselves to "use destination train stop color" every time I uncouple and recouple train cars.

Post by robot256 »

This would happen with Multiple Unit Train Control if your shunting is connecting and disconnecting locomotives from each other because it creates a new entity with the default value.

I just posted an update to Robot256Lib that will fix this behavior and preserve the copy_color... flag for each locomotive when changing between MU and normal entities. Thanks for posting about it.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
robot256
Smart Inserter
Smart Inserter
Posts: 1262
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: locomotives set themselves to "use destination train stop color" every time I uncouple and recouple train cars.

Post by robot256 »

I assume this can be moved to Not a Bug, as it was almost certainly caused by my mod which has since been fixed.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Bow-Tied_Engineer
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Nov 01, 2024 7:54 pm
Contact:

Re: locomotives set themselves to "use destination train stop color" every time I uncouple and recouple train cars.

Post by Bow-Tied_Engineer »

That's almost certainly it! Thanks for the mod update, sorry for posting in the wrong place LOL.
Post Reply

Return to “Not a bug”