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

getGJLevelScores211.php chk inputs are incorrect #134

Open
xBZZZZ opened this issue Dec 6, 2023 · 1 comment
Open

getGJLevelScores211.php chk inputs are incorrect #134

xBZZZZ opened this issue Dec 6, 2023 · 1 comment

Comments

@xBZZZZ
Copy link

xBZZZZ commented Dec 6, 2023

https://github.com/gd-programming/gd.docs/blob/docs/docs/encoding/checks.md#level-leaderboard table is incorrect:

## [Level Leaderboard][get_level_leaderboard]
| name | description |
|---------------|---------------------------------------------------------------------------|
| `accountID` | The account ID of the user requesting. |
| `levelID` | ID of the level to find leaderboard for. |
| `percent` | The record percentage on the level. |
| `jumps` | The total count of jumps on the level. |
| `attempts` | The total count of attempts spent. |
| `seed` | See [generating leaderboard seed][leaderboard_seed] for more information. |
| `differences` | Personal best differences, e.g `0 -> 13 -> 100 => 13,87`. |
| `unknown` | Unknown functionality. Set to `1`. |
| `coins` | The coins count on the level. |
| `timelyID` | The timely ID of the level (`0` if not timely). |
| `seed` | [Random String][random_string]. |

here is my theory what inputs to chk sha1 hash are: https://docs.google.com/spreadsheets/d/1waEPGS9qCFvSQxfA4fysIHf9YrOm9KxHycszvJcL3vs/edit (blue background cells) but that's just a theory a game theory!

@xBZZZZ
Copy link
Author

xBZZZZ commented Dec 7, 2023

and my old theory (column L is sign(percent)) is wrong

new theory: column L is 1 if k89 of level in CCGameManager.dat exists else 0

but how to derive that from POST params other than chk?

edit: column L might be 1 if s5>CONSTANT_MYSTERY_NUMBER else 0

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