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

Score submission is enabled when autoplay has been disabled before the end of the song #479

Open
florczakraf opened this issue Jul 9, 2023 · 0 comments

Comments

@florczakraf
Copy link

Summary

Automatic score submission doesn't consider the fact that autoplay was present during the song, it's only checked at the end, which in turn can cause scores like the one below to be submitted:

image

image

Reproduction steps

  • start a song
  • enable autoplay
  • let it play for a while
  • disable autoplay somewhere before the end of the song
  • start playing so that you have score > 0 and your lifebar is > 0 (GS seem to reject 0% scores but the submission also happens in that case)
  • wait for the result screen

Expected behavior

Disable the QR and automatic score submission with a proper reason like below (screenshot taken when played with autoplay until the end):
image

Possible solutions

I'm not really familiar with the code of SL or the engine itself but it seems that the current approach of verifying the autoplay relies on the engine:

IsAutoplay = function(player)
	return GAMESTATE:GetPlayerState(player):GetPlayerController() == "PlayerController_Autoplay"
end

which doesn't track the fact that the autoplay was present during a song. Therefore it might be a lot of work to fix it that way. However, I noticed that the scores submitted after playing with autoplay have inconsistent number of steps (they do not sum up to total steps):
image
so we could probably use that to verify the integrity of the score.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant