-
Notifications
You must be signed in to change notification settings - Fork 35
feat: board integration, autosubmit refactor #258
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
base: master
Are you sure you want to change the base?
Conversation
|
Just added option to store all keys in the same file (useful for p2common users), e.g.: And now key files with old format get automatically converted to new one, accounting for the change I just made. |
6a9f6a5 to
af9240e
Compare
|
don't plan on merging until the crash is fixed and LP is supported (maybe just use the builtin lp thing if that's possible) |
f9f7cdc to
409a6e5
Compare
* merged AutoSubmit and AutoSubmitMod (everything uses autosubmit.key format now) * FIXME: heap gets corrupted on run finish * TODO: top-scores API not implemented currently (needs to be done server-side first) * TODO: map IDs should be stored server-side
409a6e5 to
685e2db
Compare
|
oops that was an accident |
src/Features/AutoSubmit.cpp
Outdated
| json11::Json::array AutoSubmit::GetLeastPortals(std::string &map_id) { | ||
| if (!ensureCurlReady(&g_curl_search)) return {}; | ||
|
|
||
| auto response = request(g_curl_search, "lp.pektezol.dev/api/v1/maps/" + map_id + "/leaderboards?page=1&pageSize=40"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Integrate boards into the in-game leaderboards.
Technical stuff
AutoSubmitandAutoSubmitMod, everything uses theautosubmit.keyformat (first line for website URL, second line for key), this should be changed on the main boards website as the download.top-scoresAPI (from Mel boards) needs to be implemented to main boards (so we can actually display top 40 scores around the player).Notes