Skip to content

[Bug]: Music Desyncs from game script time #3462

@Alasdairbugs

Description

@Alasdairbugs

SuperTux Version

Latest Nightlies

System Information

Win 10 64-bit

Expected Behavior

Being able to predict game actions via scripting based on music ques are not possible due to Math and rounding errors.
However, you are able to account for rounding errors by counting any remainder left during operations, you can approximate a music action (like a beat) to the nearest frame, which luckily doesnt amount to any humanly perceivable problems.

Actual Behavior

The music still desyncs from scripting, so this solution for math and rounding errors are not possible

Steps To Reproduce Actual Behavior

cave_of_dreams.zip

Use the WIP "Cave of Dreams" level from BI2 to investigate this issue. I seriously doubt its my math that's the issue, as I've come up with multiple different solutions, all of which have not worked. Some worked better than others, but thats only due to the accuracy of my remainder sum tracker in the while loops.

Additional Information

No response

Guidelines For Reporting Issues

  • I have read https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports.
  • I have verified this isn't an issue that's already been reported.
  • I have verified this isn't a discussion, or an issue about a crash or a feature request, but rather an actual bug ─ that is, the game did something not intended.
  • I have verified this issue is not about wrong translations (use Transifex for those), or anything unsupported (e.g. third-party add-ons).
  • In this report, I have only included details about one (1) bug.
  • If I make a mistake while submitting this report, I agree to use the "Edit" feature to correct it, instead of closing this issue and opening a new one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions