Page 1 of 1

train signal control

Posted: Sat Aug 29, 2015 1:06 pm
by @xi@g@me
Hi,

I wish to create some kind of rail signal, but which could be controlled by some signal (as it is the case for lamps, etc...)
Is there a method/member of rail signal entity types to control the said signal state ?

Thanks for your answers and help :)

Re: train signal control

Posted: Sun Aug 30, 2015 9:38 pm
by SirRichie
At the moment, you are out of luck.

You can read signal_state of an entity (that entity must be a rail signal), but it is a read only property.

Re: train signal control

Posted: Mon Aug 31, 2015 11:17 am
by @xi@g@me
Yup, found this too while looking through the wiki. That's sad :(

I'll try something else, but I first have to find how to open a GUI when left clicking an entity which does not have a default GUI.
I still did not get any info about how to do this on the wiki/forums.

Re: train signal control

Posted: Wed Sep 02, 2015 12:33 pm
by @xi@g@me
Still nothing... does anyone konw how to do that / if that's possible ?

Re: train signal control

Posted: Mon Sep 07, 2015 9:59 am
by SirRichie
No, but it is generally not a good idea to post another question to in the thread of an already existing question, as people won't read that.

Re: train signal control

Posted: Mon Sep 07, 2015 5:15 pm
by orzelek
Tbh I don't think that direct signal control is feasible - added complexity seems tricky.

It creates very tricky pathfinder cases if signal on the route can suddenly switch. And switching to anything else then red would lead to potential collisions.

There is a mod that simply removes the rail but it abuses a bit the fact that even full speed train will simply stop in place when it encounters end of rail. If there was a damage from this or some kind of derailment - mod would also have a risk of damaging your rolling stock.

Re: train signal control

Posted: Mon Sep 07, 2015 6:06 pm
by ratchetfreak
What would be nice is being able to reserve a path with signals

In other word when a circuit signal is active on a train signal it will turn the other signals red and prevent a train from going through them (those that can't stop can still barrel through)

having a sensor to detect if a block is taken would also be nice/needed.

Re: train signal control

Posted: Tue Sep 08, 2015 9:35 pm
by SirRichie
For that kind of pathing control of trains, you'll have to put your hopes up for 0.13, though I doubt that will be in there.

While tighter control over train scheduling/routing allows for much more optimized control, I am not sure that this will ever be the focus of the devs.
Yes, everyone loves OpenTTD, but Factorio's trains are only a comparatively small part (albeit a lovely one) to the overall production automation theme. Trains as they are now are already "good enough" (safe for some usability issues)

Re: train signal control

Posted: Thu Sep 10, 2015 11:43 am
by @xi@g@me
Yes, I think that controlling the schedules would be the best thing to do for my case.
I downloaded a mod which enables LUA combinators, I can use them to control the schedules.

Otherwhise, I thought about creating a new type of "special" stations, with an additionnal GUI. The GUI could control train schedules depending on input signals for the trains that stop there.

Re: train signal control

Posted: Thu Sep 10, 2015 2:50 pm
by SirRichie
In that case, checkout Choumiko's Smart Trains mod: https://forums.factorio.com/forum/vie ... 97&t=14432
I do not think it does exactly what you want, but it is very close - so might be better to built off that.