rank card shows negative numbers

Me
No description
12 Replies
Lolo
Lolo4w ago
Ayako does not apply level-up logic to the very first message that meets requirements. If you send a second one (that passes all leveling checks) you're gonna get the correct level
ray
rayOP4w ago
No. Even each level of logic does not return. Rly need help Thats broken
Lolo
Lolo4w ago
please pick a more meaningful title next time can you send a message again that meets all leveling requirements, i added something that makes it fix itself
ray
rayOP4w ago
Ok wait I reset my level, gained experience and got a negative number. After the second time I gained experience, I don't get it anymore The bug remains
Lolo
Lolo4w ago
wait but thats the solution i told you about earlier ayako does not apply levelup logic on the first message, therefore you will see negative xp in the rank card this is desired behaviour
ray
rayOP4w ago
But then everything breaks
Lolo
Lolo4w ago
how does everything break when you get negative numbers in the rank card once the rank card is just a display thing. the negative numbers are not stored anywhere in ayakos database therefore they have no effect on how she operates
ray
rayOP4w ago
Ok ok lets me test again If so, then the first message does not count. Right?
Lolo
Lolo4w ago
it does count, it just doesnt let you level up
ray
rayOP4w ago
Strange logic
Lolo
Lolo4w ago
if the first message gave you a million xp, that million xp would still be stored into the DB, just with level 1 once you send a second message, gaining another million xp, you'd get the according level Ayako is open source and open for pull requests if you have better ideas
ray
rayOP4w ago
No no. I apologize. Thanks for the fix!

Did you find this page helpful?