Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CC Compat] setSchedule not working with schedules that have a progress value/progress value not always present or wrong in getSchedule #6959

Open
tobi-blackscale opened this issue Sep 18, 2024 · 0 comments
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

Comments

@tobi-blackscale
Copy link

tobi-blackscale commented Sep 18, 2024

Description

Steps to reproduce:
Create a schedule with multiple entries like

  • Limit Max Speed
  • Power Redstone Link
  • Travel To Station (wait for station powered)

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:


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
(

) while driving and only being written to the schedule when turning it into an item.

Game Log

Debug Information

No response

@tobi-blackscale tobi-blackscale added the type: bug Issue where something isn't working label Sep 18, 2024
@IThundxr IThundxr added the status: confirmed Issue's details are known, it is consistently reproducible, and it needs a fix label Sep 18, 2024
@tobi-blackscale tobi-blackscale changed the title [CC Compat] setSchedule not working with schedules that have a progress value/progress value not always present or wrong [CC Compat] setSchedule not working with schedules that have a progress value/progress value not always present or wrong in getSchedule Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants