raiguard / TrainGroups

A Factorio mod that eases the process of configuring train schedules.
MIT License
5 stars 0 forks source link

Allow syncing by script #26

Open mikelat opened 3 months ago

mikelat commented 3 months ago

Description

https://github.com/raiguard/TrainGroups/blob/9bdfab0ed5a81952f2d9520198e19272fb64a1d1/scripts/groups.lua#L468

Because of the e.player_index check, any scripts that update schedule do not get synced. Can we get a interface to manually trigger a schedule update with a train?

Although on that note, is there a reason that exists? I'm just curious as there's a few cases where it doesn't trigger a change:

Maybe also an event for a train that fires when a schedule gets synced as well so mods can tap into that too? Just thinking.

Reproduction

No response