ppy / osu

rhythm is just a *click* away!
https://osu.ppy.sh
MIT License
15.37k stars 2.29k forks source link

The Touch Device mod is hidden from replays #29817

Closed ZenoG2 closed 2 weeks ago

ZenoG2 commented 2 months ago

Type

Cosmetic

Bug description

Touch devices are not signaled correctly.

Screenshots or videos

Screenshot 2024-09-09 133103 Screenshot 2024-09-09 133114 Screenshot 2024-09-09 133120 Screenshot 2024-09-09 133126

Version

2024.906.2-lazer

Logs

compressed-logs.zip

bdach commented 2 months ago

So I presume this is happening if the user starts the play using mouse but then starts touching midway through the game because this 100% impacts only some replays. The fact of starting the touching is not conveyed to osu-server-spectator, which is responsible for recording replays, and thus is blissfully unaware of this; submission happens at the end of the score, with TD successfully present, but web will serve the replay recorded by osu-server-spectator raw which means that the information about TD is dropped from the replay.

The two obvious fixes are to either:

@ppy/team-client opinions?

peppy commented 1 month ago

probably by sending them in the frame bundles - possibly wasteful if not done with a bit of deduplication to only send changes

Frame bundles are already seldom enough that sending in them should be okay. As long as it's not some insanely huge json blob.