Commit Graph

133 Commits

Author SHA1 Message Date
rtldg
cb8c7e8d56 add shavit_rankings_new_db_connection, shavit_stats_new_db_connection, and shavit_wr_new_db_connection 2021-10-17 04:46:01 +00:00
rtldg
235cc9f241 work on improving rankings queries 2021-10-05 11:00:13 +00:00
rtldg
22a87ce3ee add Shavit_GuessPointsForTime so we can recalc styles only on WR 2021-10-05 04:43:10 +00:00
rtldg
828240849c Revert "change admin menu permissions used"
This reverts commit e4081a5622.
2021-10-04 04:13:34 +00:00
rtldg
e4081a5622 change admin menu permissions used 2021-10-04 04:09:47 +00:00
rtldg
480dbefabc add this format back because i messed up spectating someone 2021-10-02 10:45:51 +00:00
rtldg
44cb918759 some strategic map lowercasings 2021-09-22 06:04:30 +00:00
rtldg
00d16405f6 use Transaction2 in more places 2021-09-14 01:43:23 +00:00
rtldg
4d03e30e6f add dominatingme symbols for wr holders on a map 2021-09-05 17:42:43 +00:00
rtldg
f10fd5614c add disabled wrs_min removal thing 2021-09-05 16:27:15 +00:00
rtldg
762c9a1923 swap GetTimerDatabaseHandle2 with Shavit_GetDatabase in a few places 2021-08-31 20:03:59 +00:00
rtldg
5eae3f686a remove thing that was wiping !wr menu cache 2021-08-31 17:43:19 +00:00
rtldg
c80515496a add !wrn, !wrpre, !wrsw, etc for style commands 2021-08-28 02:27:56 +00:00
rtldg
82c1605e94 make !wr menu remember page on back button 2021-08-28 01:11:59 +00:00
rtldg
b893486972 refresh player's cache when their time is deleted 2021-08-28 00:20:40 +00:00
rtldg
8ee42d6490 revert shavit-wr Shavit_OnStyleConfigLoaded changes that resulted in handles leaking 2021-08-28 00:03:11 +00:00
GAMMACASE
94f30693c0 Move trim function to shavit.inc 2021-08-23 22:42:44 +03:00
GAMMACASE
60d9609b7d Increase buffer size for player names in !recent menu 2021-08-23 08:13:11 +03:00
rtldg
09f34bcef3 empty wr cache on map end 2021-08-20 22:50:15 +00:00
rtldg
309421ad18 fix some errors that come up due to due to migrations 2021-08-20 22:37:37 +00:00
rtldg
2b4d77d281 add sql logging define 2021-08-18 15:10:42 +00:00
rtldg
077cbe9a01 use lowercase strings when sending to GuessBestMapName 2021-08-17 23:50:51 +00:00
rtldg
958c87ccf4 remove unnecessary format for translation 2021-08-12 11:38:40 +00:00
rtldg
a373329499 only print wr message 2 for non-autohop 2021-08-12 11:32:11 +00:00
rtldg
9c344ee225 a few more mapname buffers adjusted to PLATFORM_MAX_PATH 2021-08-08 15:55:16 +00:00
rtldg
845223bf6f reduce some more loops 2021-08-08 15:55:16 +00:00
rtldg
aa5aaf9f6a change some wr stuff around again 2021-08-08 15:55:16 +00:00
rtldg
6c5be61344 try to consistently use lowercase mapnames and PLATFORM_MAX_PATH for mapname buffers 2021-08-08 15:55:09 +00:00
rtldg
b68aba6fd2 reorganize some things to stop looping so much when a player joins 2021-08-01 18:07:06 +00:00
rtldg
fea39ce643 make Shavit_OnDatabaseLoaded run after migration like it's supposed to and attempt to use it for things 2021-07-30 08:17:31 +00:00
rtldg
435a23f065 move avg/max vel & perfs to another message so the buffer doesn't get cut off anymore 2021-07-23 08:54:57 +00:00
rtldg
ca6ad88b7b fix 2 completions bug thing the better way 2021-07-15 07:37:57 +00:00
rtldg
7b4d2f5b23 fix bug that'd give 2 completions on first map finish 2021-07-13 08:49:35 +00:00
rtldg
a6be0127ee add exact_time_int to playertimes to deal with floating point imprecision 2021-07-11 07:16:00 +00:00
rtldg
6f058127c4 make all plugins require dhooks so there's error spam due to them not loading 2021-07-06 02:22:35 +00:00
rtldg
02fb3e2f7e unadd chatstrings_t parameter from Shavit_OnChatConfigLoaded because it's not worth having 2021-05-29 02:03:21 +00:00
rtldg
3be13005e6 add chatstrings_t param to Shavit_OnChatConfigLoaded. add Shavit_GetStyleStringsStruct. add Shavit_GetChatStringsStruct. 2021-05-08 13:00:19 +00:00
rtldg
021d5172ae stage churn 2021-05-06 03:36:31 +00:00
rtldg
2873cbe422 remove vel2d from stagetimes and separate stage time wr and pb tables 2021-05-06 02:18:43 +00:00
rtldg
94a27a954e add Shavit_GetClientLastStage, Shavit_GetStageWR, and Shavit_GetStagePB 2021-05-01 00:42:41 +00:00
rtldg
ecc2d8d2c0 use the wr table view in some more places 2021-04-30 07:30:45 +00:00
rtldg
96281d2f85 more wip stage stuff 2021-04-30 07:06:18 +00:00
BoomShot
2697e6c5b1 boomshot stages stuff
Move remaining shavit-rankings dependent calls (#1043)

If the shavit-rankings plugin isn't loaded, the calls to its natives will cause an exception and the client's messages will not be formatted correctly.

Add native for getting the number of stages

Implemented native for getting number of stages and allowed practice mode to view stage times.

Added WR stage time comparisons for when a user enters a stage zone.

It's important that the stage zone number starts at two. It may be preferred to remove the user input of stage numbers and just auto increment as stages are added. Stage 1 should be the start zone and just have any additional stages increment from there. I'll readdress this if it's necessary.

Add translations for WR stage time comparison messages

Accidentally undid a change from a previous commit.

I didn't have a merge conflict, so I'm unsure why it got replaced.

Combine stage time translations into one

Implemented suggestions to translations and changed the stagetimes table

The stagetimes table no longer uses auth as a primary key, so it will now replace the old WR stage time.
However, the auth is still stored, so it can be used to reference the player and potentially a players PB.

Update callback name for replacing stage time for logging.
2021-04-19 15:49:47 +00:00
rtldg
cb39acc33b remove stylesettings_t and break 3rd party plugins 2021-04-08 21:19:18 +00:00
rtldg
45ad54c41e use IsValidClient instead of IsClientInGame in my new loop 2021-03-20 15:07:30 +00:00
rtldg
94c38ad34c print worse time messages to spectators 2021-03-19 10:10:35 +00:00
rtldg
9700482045 remove unused parameter 'track' from ShowWRStyleMenu() 2021-03-18 10:11:19 +00:00
rtldg
bf7f68faec change all menus to display for at least 5 minutes 2021-03-14 00:03:10 +00:00
rtldg
dcb9595f1a show wrs and blank styles on !wr notcurrentmap 2021-03-13 22:50:44 +00:00
rtldg
c9cf2802c6 add another view because mysql 5.6 gives "View's SELECT contains a subquery in the FROM clause" 2021-03-11 01:21:52 +00:00