[CC Compat] setSchedule not working with schedules that have a progress value/progress value not always present or wrong in getSchedule #6959
Labels
status: confirmed
Issue's details are known, it is consistently reproducible, and it needs a fix
type: bug
Issue where something isn't working
Description
Steps to reproduce:
Create a schedule with multiple entries like
If this schedule is assigned to a train, without changing the active entry or just resetting it, the schedule will have no "progress" entry when reading it with getSchedule at the station. If the schedule is taken off the train (after reaching the station), it will have the progress marker on the station.
Putting it into the train again and now reading the schedule with getSchedule will result in the schedule table containing a "progress" entry.
Trying to assign this schedule via setSchedule results in a "Not a valid schedule" error.
Caused by:
Create/src/main/java/com/simibubi/create/compat/computercraft/implementation/peripherals/StationPeripheral.java
Line 154 in aa15182
Because the schedule table has 3 entries (cyclic, entries, progress)
The other problem (progress not being present or wrong) seems to be caused by the progress being tracked in
(
Create/src/main/java/com/simibubi/create/content/trains/schedule/ScheduleRuntime.java
Line 47 in aa15182
Game Log
Debug Information
No response
The text was updated successfully, but these errors were encountered: