cialloo
55c7836c67
Enhance database compatibility for rankings and statistics
...
- Updated SQL queries in shavit-rankings.sp to support PostgreSQL and SQLite, including handling of INSERT and REPLACE statements.
- Modified shavit-stats.sp to adapt SQL syntax based on the database driver, ensuring compatibility for playtime updates and statistics retrieval.
- Adjusted shavit-wr.sp to format time values correctly across different database systems and refined leaderboard queries.
- Enhanced shavit-zones.sp to use INSERT ON CONFLICT for PostgreSQL, maintaining compatibility with MySQL and SQLite.
- Introduced a global driver variable to manage database-specific logic throughout the scripts.
2025-07-13 10:54:05 +08:00
rtldg
bb09568d97
Keep all menus open forever
Compile / Build SM ${{ matrix.sm-version }} (1.12) (push) Waiting to run
Compile / Release (push) Blocked by required conditions
2025-06-23 20:46:02 +00:00
olivia
877b71aa4d
shavit-wr.sp - add back buttons to !delete menus (QoL)
...
no reason to not be able to go back from these submenus
Co-authored-by: rtldg <rtldg@protonmail.com>
2025-06-23 20:43:55 +00:00
rtldg
54c04a0219
Update shavit-wr.sp
2024-11-16 16:56:44 +00:00
rtldg
4652e36cc6
allow the !recentrecords menu to be sorted by style
2024-07-06 10:05:53 +00:00
rtldg
16a927cd91
drop support for sourcemod 1.10
2024-04-23 20:53:18 +00:00
rtldg
9423ef79ad
save !wr menu record page for back button
2023-04-09 13:11:11 +00:00
rtldg
412812693f
update steamid-stocks to handle 64-bit ids on csgo
2022-12-30 12:11:32 +00:00
rtldg
4fee1e4cc1
crap workaround for times not parsing correctly because of commas
2022-10-15 20:32:17 +00:00
rtldg
fd687dd2d7
i keep forgetting things. please ignore these commits
2022-10-06 08:21:46 +00:00
rtldg
7a79fc03e8
it does have printf though
2022-10-06 08:10:38 +00:00
rtldg
236829cc33
FORMAT(time,9) doesn't work on sqlite
2022-10-06 08:02:14 +00:00
rtldg
87c2b1e436
left over format param from exact_time_int deprecation
2022-09-25 02:02:55 +00:00
rtldg
894b039e4e
deprecate exact_time_int
2022-09-24 05:45:01 +00:00
rtldg
489fd3cbf1
add something to the !wr menu to open steam profiles...
2022-06-27 14:25:27 +00:00
rtldg
0f44dd1710
add shavit_core_log_sql & remove Database2/Transaction2 methmodmaps
2022-06-13 06:28:46 +00:00
rtldg
7c251ef81d
add Back to admin commands to go back to admin menu
2022-06-13 05:42:40 +00:00
rtldg
09917f91d9
fix adminmenu 2.0
2022-06-07 16:53:01 +00:00
rtldg
7dddfe25f3
make wr menu also print steamids to chat for #1146
2022-05-25 13:01:07 +00:00
rtldg
ef3ca621c4
add more contributors & copyright attributions. mostly done via git blame but also it's also likely i missed some people.
2022-05-25 11:43:57 +00:00
rtldg
14e71dbbb4
make the buttons in the wr submenu not do stuff
2022-04-16 17:37:08 +00:00
rtldg
9902b8adac
some potential steamid future proofing
2022-04-12 18:42:25 +00:00
rtldg
4e89fb60d9
halve potential GetRankForTime search space for lots of records
2022-02-21 19:29:12 +00:00
rtldg
2e791a8237
set wrname on wr for when the query takes a second
2022-02-21 19:15:32 +00:00
rtldg
7a11acf2e6
remove points_calced_from since it should only update on wr now so it's unnecessary
2022-01-19 09:41:01 +00:00
rtldg
6d296caf36
make pb menu usage a bit nicer and less buggy
2022-01-15 12:08:01 +00:00
rtldg
5d47c2dd1b
make !times open pb menu
2022-01-11 09:47:52 +00:00
rtldg
590d1fb290
adjustments to !pb
2022-01-07 15:44:22 +00:00
NukoOoOoOoO
3be3b4e3b2
Implementation of !pb / !time ( #636 ) ( #1108 )
...
* Initial implementation of !pb / !time
* Lowercase map name
2022-01-07 14:41:55 +00:00
rtldg
0c91c19ba6
trim whitespace & add licenses
2022-01-01 10:15:28 +00:00
rtldg
ae0145430a
remove some sourcemod 1.11 warnings
2022-01-01 10:15:18 +00:00
BoomShotKapow
3348e54316
SourceMod 1.11 dev changes & Query -> Query2
2022-01-01 10:12:53 +00:00
rtldg
c177dfb671
combine wr & leaderboard queries
2021-12-29 21:11:19 +00:00
rtldg
43d6a31ac0
make shavit-wr validmaps query union mapzones&playertimes
2021-12-29 19:58:10 +00:00
rtldg
ede141d8c0
recalc on wr delete & remove recalc on map end
2021-12-29 19:06:23 +00:00
rtldg
aa7887ecf4
make some of these admin menus reopen
2021-12-29 09:24:18 +00:00
rtldg
1509e77728
hopefully stop timer commands menu from being wiped on plugins reload
2021-12-29 08:55:20 +00:00
rtldg
616de1ce97
make sure some handles are deleted by littering deletes everywhere
2021-11-30 03:03:11 +00:00
rtldg
4fef03f925
remove new db connection stuff
2021-11-29 06:36:42 +00:00
rtldg
64088b6147
fix !wr <mapname> matches menu giving the wrong map
2021-11-28 03:54:52 +00:00
rtldg
183e758971
make recent-records use the cvar properly
2021-11-27 04:45:48 +00:00
rtldg
bce7c04afe
add matches to !wr menu
2021-11-02 20:11:00 +00:00
rtldg
b9c6c47db4
swap #include <shavit> with <shavit/core>
2021-10-28 21:18:53 +00:00
rtldg
b8170c6799
make sure to set points_calced_from too
2021-10-21 09:35:58 +00:00
rtldg
1bb7b3e274
remove Shavit_OpenStatsMenu
2021-10-18 07:23:01 +00:00
rtldg
966ceea5f8
finish splitting shavit.inc
2021-10-18 07:22:50 +00:00
rtldg
df2e45f478
Merge branch 'master' into reorg
2021-10-17 04:48:48 +00:00
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
7ca863f04b
move sql table creation and migrations
2021-10-10 05:14:37 +00:00
rtldg
235cc9f241
work on improving rankings queries
2021-10-05 11:00:13 +00:00