-
Notifications
You must be signed in to change notification settings - Fork 2
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
Make teams mandatory #35
Comments
Do the teams always have the same time? |
yes, that's already like that. race starts when first one crosses the start tiles - race ends when last one crosses the finish-tiles |
and if you type /rank, it should show the best record you made with anyone |
without joining mysql tables it's possible to break it by putting a ',' in your nick. but saving the names for the records in another table is too different from the normal saving. names in mysql should be saved like that "noother, WTF Dreamor" (natural alphabetical [W > n]) if someone has a "," in his nick, just strip it before saving/reading the score or better escape it.. then, if you do /rank go through all records, split them by ', '& check if a name matches. |
or since it's mysql just do a LIKE %[NAME]% to get only a few for better performance, but still go through these results and check if the name really matches (or else "noother" and "nootherone" will conflict) |
copy'paste from the other issue: I try to explain from the beginning. First, we have an empty ranking, no one finished the map yet.
Note that Tsin is now twice in the ranking, but with a different partner and a worse time. My record with Tsin didn't touch Saavik's record with Tsin at all.
Tsin & noother's record got updated, just like normal records get updated. This means, 1 team setup counts like 1 unique person. This can easily get achivied by manipulating the name that's used for inserting records. Just don't use a single name, but a concatenation of all Team members. To have that concatenation always the same for the same team, order them alphabetically (natural, 'G' > 'a') If you type /rank, your best time with whatever partner should be returned. I will do it. |
Teams must be required to make records. People can still play without joining a team, but their records won't get saved. Otherwise it would still be possible to cheat by skipping parts
Records will be saved like that:
Output of /top5:
The text was updated successfully, but these errors were encountered: