liam-mitchell / inne

The N++ discord server chatbot
MIT License
3 stars 6 forks source link

Replay analysis and tie ordering #49

Closed edelkas closed 4 years ago

edelkas commented 5 years ago

When ordering ties, both the actual order of the list received from the server and the rank field are wrong in some levels, probably being vestiges from before the ties issue was corrected in 2017, hence showing wrongly in inne. We concluded in the Discord that N++ uses the replay id to determine the proper order for tied scores, so I've added a quick method to correct the ties of received scores and now it's working properly.

Secondly, I finished implemented the replay analysis function for inne, which also forces to require the zlib library. Since downloading the replay is a process very similar to downloading a leaderboard, instead of creating a whole new set of methods I've modified the old ones slightly with an optional parameter to adapt them to also downloading replays.