osu-replay-parser
osu-replay-parser copied to clipboard
Replay offsets if there is a skip at the beginning of the map
When trying read and write replay with skip at beginning, it offsets. I used this code:
from osrparse import Replay
replay = Replay.from_path("replay_file.osr")
replay.write_path("out.osr")
replay_file.osr works as intended, but out.osr gets offset
This is a result of the v7.0.0 release.
I hadn't considered that users would expect written replays to preserve the initial break frames. I think @kszlim was right in suggesting we add a parameter to preserve these frames - it's a bit of a sticky situation all around, but the parameter is likely the best solution.
I tried again and now it works fine, I did nothing Edit: Nevermind, it breaks after changing something in replay, but after trying to export the replay even without changes, it breaks