Raise events when train stop limits are changed
-
notnotatschool
- Burner Inserter

- Posts: 14
- Joined: Wed Feb 17, 2021 1:01 am
- Contact:
Raise events when train stop limits are changed
I'd like it if it were possible for mods to react to train stop limits changing. I imagine this would raise an event with the associated train stop, the old limit, and the new limit. This would be useful for a mod that I am working on but have not yet released.
Re: Raise events when train stop limits are changed
I second this suggestion. I've been playing around with a train scheduling mod myself, and it would be useful to be able to have an event handler trigger when a stop "requests" that a train be sent to it by increasing its trains_limit property.
Re: Raise events when train stop limits are changed
I was just about to make that request myself.
on_train_stop_changed() when Limit (incl. deactivate) or priority changes.
The vanilla train system is almost complete, the one thing I miss is that requests get fulfilled in the order they appear. This would be possible with this kind of event via a simple mod.
on_train_stop_changed() when Limit (incl. deactivate) or priority changes.
The vanilla train system is almost complete, the one thing I miss is that requests get fulfilled in the order they appear. This would be possible with this kind of event via a simple mod.
I haven't lost my mind, it's backed up on tape somewhere.


