-
Notifications
You must be signed in to change notification settings - Fork 11
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
stat.ink API Error "Rank After Exp must be no less than 0." #36
Comments
In exported file, rankState.rankPoint = -1
|
I'm sorry this happened, and I will look into how to solve this problem as soon as possible. Please try not to play more than 50 games during this period, otherwise data may be lost. |
It may return the same before and after state.
It may return the same before and after state.
It should be fixed, could you try again with latest version? Please re-open this issue if not fixed. |
Thank you for your quick response. I found reporting to stat.ink succeeded with s3si.ts version 0.1.31. My test process:
Then Rank-Up Battle |
@spacemeowx2 |
I may need to explain the reason for this issue. s3si.ts has a RankTracker module. When you don't manually enter a Rank, it will initialize your rankPoint when it finds the first successful promotion and save it in profile.json for later upload. Before version 0.1.32, this module had some problems working. It would start uploading rankPoint after a program run, not immediately after a successful promotion. When I fixed it in 0.1.32 I introduced another bug, which had actually appeared in RankTracker before, so I fixed that bug. However, I haven't succeeded in promotion recently (3 consecutive failures :(. so I couldn't find and fix the problem for now. In the latest version, it is expected that the rankState is not the same as the version you can work with. As long as the rankPoint of the rankState in all json is not -1, this should fix the problem. Since -1 is just a placeholder, it should not be uploaded to stat.ink |
I think I got it. Thanks for your explanation. So one of workaround is maybe...
Is it right? |
You are right. |
Thank you. I will do so that way. |
FYI The stat.ink API checks rank_after_exp >= 0, but actually rank point can be minus value. So this check is strange. I reported this here. If it is fixed, |
Oops, I didn't even realize that negative |
Stat.ink now accepts negative UDEMAE points ( |
Describe the bug
Reporting to stat.ink causes API error
{ error: { rank_after_exp: "Rank After Exp must be no less than 0." } }
, (maybe) after success of Rank-Up Battle.Reproducing profile.json did not work.
To Reproduce
deno run -Ar https://raw.githubusercontent.com/spacemeowx2/s3si.ts/main/s3si.ts
Expected behavior
Reporting with no error.
Screenshots or Links
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: