Commit Graph

1606 Commits

Author SHA1 Message Date
shavit
dfcaee5c5b Fixed HSW sync - thanks Nairda! (#809) 2019-07-13 07:53:18 +03:00
shavit
fd121092c8 Refactored database handles so that there are multiple instead of a single one. 2019-05-31 17:32:03 +03:00
shavit
0650d20eff Removed ancient SetPrefix code and put it in a stock function instead. 2019-05-31 17:03:27 +03:00
shavit
9cbb0c3f08 Fixed rankings querying the database for tiers/recalc more than once per map.
The database was being queried 3 times on the first server startup.
And during additional map changes, the database was being queried twice instead of once.
This caused the biggest query (users points recalculate) to be executed multiple times, and causing the database handle to be locked up.
2019-05-31 16:51:41 +03:00
shavit
04e5db5420 Fixed the fix for the fix of dropall errors (#807). 2019-05-30 01:50:20 +03:00
shavit
dca53d61c6 Reverted the dropall change, doesn't seem like the proper solution.
(seems like a csgo issue, let me know if anyone has a fix)
2019-05-29 09:12:54 +03:00
shavit
487135f85a Allowed using all keys in limited styles after touching ladder (#800).
Key restriction is added again after touching the ground.
ConVar to disable this is `shavit_core_simplerladders`
2019-05-28 18:44:28 +03:00
shavit
70dd8f7c9c Added tracking for map completions (#804). 2019-05-28 18:32:24 +03:00
shavit
8cea924063 Got rid of a ResumeTimer that I don't remember why I added (#806). 2019-05-28 18:12:20 +03:00
shavit
0b4e82fae4 Fixed "weapon %d is not owned by client %d" (#807). 2019-05-28 18:02:34 +03:00
shavit
3538579ca3 Added GitHub Sponsor support. (sellout smh) 2019-05-24 22:18:31 +03:00
shavit
25ca9f72da Removed gI_RecordAmount for a more elegant solution. 2019-05-23 22:16:33 +03:00
shavit
f8e385fda5 Added better indicators for speed limit zone creation. 2019-05-14 05:06:58 +03:00
shavit
26dd200408 Changed "No Speed Limit" zones to "Custom Speed Limit" (#797). 2019-05-14 04:56:26 +03:00
shavit
a7c743cf29 Added custom airaccelerate zones and some natives. (#797)
Shavit_GetZoneData, Shavit_GetZoneFlags, and Shavit_InsideZoneGetID
2019-05-14 04:27:39 +03:00
shavit
b6b78f8eab Added flag to force zones to be drawn (#798). 2019-05-14 03:44:42 +03:00
shavit
058b88b98c Added zone flags and data to mapzones table. 2019-05-14 03:25:15 +03:00
shavit
086b81600e Removed pointless string-to-int-to-string conversion 2019-05-13 05:56:51 +03:00
shavit
1fe1196342 Optimizations to migrations
* Deletes invalid times/chat records before adding the new constraints.
* Use of `ip` index while converting the IP addresses.
* Limit IP conversion transaction to 10k queries to prevent memory leak on large datasets.
2019-05-13 05:36:12 +03:00
shavit
29c57b4fca Fixed workshop migration applying 3 times 2019-05-12 23:38:00 +03:00
shavit
547f90ef62 Added automatic database migrations and revamped overall database structure.
Now I can push database migrations without making the plugin's users do the querying on their own.

List of migrations:
* **Converted all SteamIDs in the database from SteamID3 to Steam Account ID format. The difference is simply stripping of the [U:1: prefix and ] suffix. This change speeds up the queries and reduces the database's size by a lot.**
* Removal of `workshop/` paths from all map names in the database.
* Added index to `lastlogin` to speedup the filtering I added to rankings with `shavit_rankings_llrecalc`.
* Removed `country` from database. It was completely unnecessary.
* Converted IP addresses from plaintext to a single 4 bytes integer.
* Converted `date` of records from a string to integer.
2019-05-12 07:57:04 +03:00
shavit
dc11301325 Stopped saving custom chat if it wasn't changed. 2019-05-12 07:53:25 +03:00
shavit
7f01ddee4b Added "shavit_rankings_llrecalc" as a major rankings optimization. 2019-05-12 04:05:24 +03:00
shavit
44dfa5941e 2.5.5 2019-05-03 10:57:05 +03:00
shavit
26d5bfa3ba Split replay version loaders
And fixed a bug with old replays where the very first frame wouldn't
be loaded.
2019-05-03 10:56:56 +03:00
shavit
24e8ba76fa Added new CS:GO radio commands to block list 2019-05-01 15:00:47 +03:00
shavit
fbe78584ae Fixed table creation when using the same database for more than one server. 2019-04-27 12:54:06 +03:00
shavit
bb74e14bcf Fixed SQL issues on table creation when using table prefix. 2019-04-26 17:09:37 +03:00
shavit
67ff423dcc Fixed recalculations on long map names breaking. 2019-04-26 17:09:37 +03:00
shavit
55bd4fba1b Re-persist KZ menu after opening it manually 2019-04-18 22:30:12 +03:00
shavit
439e0bce3b Merge branch 'master' into very_good_yes 2019-04-18 05:09:08 +03:00
shavit
c2467f4d52 Fixed odd behavior when a map has more than 1000 records. 2019-04-18 05:08:43 +03:00
shavit
202d893802 Fixed error on map finish when there's no "noimprovement" sounds. 2019-04-17 22:57:50 +03:00
shavit
203644d1d2 Added prespeed setting 2 which also respect shavit_core_nozaxisspeed. 2019-04-17 22:57:37 +03:00
shavit
88b8b9a079
Merge pull request #786 from shavitush/very_good_yes
v2.3.5
2019-04-15 04:24:56 +03:00
shavit
f21ba64c84 2.5.4 2019-04-15 04:19:50 +03:00
shavit
9550c7a801 Fixed SQL error in recent records when running MySQL Server 5.7
... what a surprise, MariaDB doesn't throw this error.
2019-04-15 04:19:43 +03:00
shavit
a375fff570 Fixed all WR submenus showing perf% 2019-04-15 04:03:16 +03:00
shavit
02530f5b56 Made KZ CP menu only persist until exited manually. 2019-04-15 03:43:51 +03:00
shavit
6942523464 Fixed error when using !r while dead on KZ style. 2019-04-15 03:34:15 +03:00
shavit
e298dbbc67 Fixed errors in KZ CP menu. 2019-04-15 03:33:44 +03:00
shavit
ba1dd8b256 Added warning on checkpoint clearing, and took it one item menu below 2019-04-15 03:29:06 +03:00
shavit
5bf5b17d0e Made {rand} make a lot more sense code-wise 2019-04-15 03:18:30 +03:00
shavit
271b669d47 Fixed !r not triggering stop timer warning. 2019-04-15 03:03:09 +03:00
shavit
b88915ba18 Added "force_groundkeys" style property. 2019-04-15 03:01:06 +03:00
shavit
2a1914010c
Merge pull request #785 from shavitush/very_good_yes
v2.5.3
2019-04-15 00:34:37 +03:00
shavit
3bec48aed9 Merge branch 'master' into very_good_yes 2019-04-15 00:30:08 +03:00
shavit
e607b88d21 2.5.3 2019-04-14 23:35:35 +03:00
shavit
fb0b84878e Added "noimprovement" sound type (#783) 2019-04-14 23:35:35 +03:00
shavit
c61e646785 Added shavit_misc_stoptimerwarning 2019-04-14 23:25:17 +03:00