Commit Graph
982 Commits
Author SHA1 Message Date
Nicholas Hastings 7b2eaa5a6e Fix regression enforcing TLS on MySQL connections 2026-08-16 20:42:30 -04:00
Nicholas Hastings f158621572 Use static linking for libssl in MySQL ext 2026-08-16 09:15:02 -04:00
Nicholas Hastings 97861312a2 Update SQLite to 3.53.4 (#2549) 2026-08-15 19:26:54 +00:00
Nicholas Hastings e4e49e0623 Switch MySQL extension to use (latest) MariaDB connector (fixes 2526) (#2548)
* Switch MySQL extension to use (latest) MariaDB connector (fixes 2526)

* Fix release
2026-08-15 17:11:04 +00:00
MikuschandNicholas Hastings 261dd2c126 Fix x64 float parameter bugs (#2547)
* Fix stack spill for float parameters

* Fix invalid register in vararg float copy

* Fix disp32 encoding, REX operand order and stack offset truncation in x64 JIT

---------

Co-authored-by: Nicholas Hastings <[email protected]>
2026-08-15 16:37:51 +00:00
Nicholas Hastings 5a00b8c9d4 Guard against ShouldCollide calls from other threads (fixes #2530) 2026-08-02 12:44:08 -04:00
Nicholas Hastings 1033441f22 Harden MySQL locking (fixes #1207) (#2528) 2026-08-01 18:29:14 +00:00
Nicholas Hastings 9faf4aaa85 Rework clientprefs reconnect & config refresh logic (fixes #778) (#2527) 2026-08-01 15:45:15 +00:00
Nicholas Hastings cfa6193bb8 Add support for non-public schemas with pgsql (#2341) 2026-07-27 20:35:59 -04:00
Nicholas Hastings 38e88b5dcc Network m_hViewEntity changes on l4d and newer 2026-07-23 17:44:23 -04:00
Nicholas Hastings 19d21bc2d3 Set m_hViewEntity with SetClientViewEntity 2026-07-22 20:47:21 -04:00
A1mDev f881c5e343 Update CTakeDamageInfoHack for l4d2
1) Added initialization of missing properties to avoid calling the damage function with garbage parameters
2) The global parameter vec3_origin has been removed from the code that references the mathlib.lib library; in essence, vector initialization is no different.
2026-07-19 12:17:04 -04:00
Nicholas Hastings e90c1db855 Fix build 2026-07-16 13:46:07 -04:00
Nicholas Hastings d49ed86a1d Print type names in EntProp error messages (#2122) 2026-07-16 00:58:16 -04:00
Nicholas Hastings 18975ff48f MCV sdk/gamedata updates.
Also fixes tempents on INS/DOI.
2026-07-06 23:23:40 -04:00
Mikusch 1ed87af40c Fix SDKCall mis-decoding int64 Address parameters 2026-06-17 19:37:35 -04:00
Mikusch f5cea78b45 Fix x86 sign-extension of high pointers 2026-06-17 19:37:25 -04:00
Nicholas Hastings 0cca99ea86 Fix cases of possible buffer overrun 2026-06-10 20:22:40 -04:00
Nicholas Hastings 6cec5c95aa Stop leaking prepared statements in pgsql ext 2026-05-25 11:50:10 -04:00
ProjectSkyandNicholas Hastings 483cd9f5a8 Update bundled PostgreSQL static libraries to 18.4 (#2468)
* Update PostgreSQL lib version and fix resource cleanup

- update the bundled PostgreSQL/libpq headers and static libraries to 18.4 (resolve #1802)
- adjust pgsql extension link inputs for the newer libpq split libraries, and drop unsupported macOS pgsql builds
- build connection parameters with  instead of manually formatting a connection string
- make  own and clear its , preventing leaks when prepared statements are executed repeatedly
- close prepared statements with  when statement handles are destroyed
- track copied vs borrowed prepared-statement parameter buffers so borrowed strings/blobs are not freed (resolve #1946)

* Rebuild libs

---------

Co-authored-by: Nicholas Hastings <[email protected]>
2026-05-24 17:37:03 +00:00
Bakugo e4bdde6475 DHooks: Fix setting CBaseEntity* params (#2465) 2026-05-23 16:03:15 +00:00
David Anderson 890c7119fe Use internal sp::Environment directly in core/logic.
Also remove ISourcePawnEngine and ISourcePawnEngine2 pointers since
they're now redundant.
2026-05-17 15:22:58 -07:00
Nicholas HastingsandCopilot 9569066b6e Upgrade Clang to v22 (#2451)
* Upgrade Clang to v22

Co-authored-by: Copilot <[email protected]>

* Compatibility fixes for Clang 22

---------

Co-authored-by: Copilot <[email protected]>
2026-04-27 23:32:20 +00:00
Accelerator 3258ad0781 Update libmaxminddb (#2393)
* Update libmaxminddb

* Update libmaxminddb 1.13.3

* Load the latest version of the database by file date.

* Update extension.cpp
2026-04-26 19:35:34 +00:00
Benoist 4f7b26f73b Fix SDKCall for int64 Address (#2435) 2026-04-09 14:24:12 +02:00
Benoist 59ecab555b Bump SourcePawn submodule (#2428) 2026-03-31 23:28:34 +02:00
Benoist 155cdc318c Re-introduce Address as int64 and remove the opt-in (#2414) 2026-03-15 00:43:25 +01:00
Nicholas Hastings b492426a79 Revert "Make Address a int64 if <virtual_address> is included (#2407)"
This reverts commit 2b5554a21d.
2026-03-12 20:01:31 -04:00
Benoist 2b5554a21d Make Address a int64 if <virtual_address> is included (#2407) 2026-03-12 21:02:12 +01:00
Leigh MacDonald 2e395c6787 Supress pg error with on conflict (#2409) 2026-03-07 19:24:59 +00:00
Benoist 6439769d50 Introduce Virtual Address (#2226)
In the current ongoing effort for sourcemod to fully support 64 bits, we are introducing "virtual address".

# Explanation

Because SourcePawn does not yet support a 64 bits-wide type it's been impossible for any plugins to hold addresses in regular 32-bits wide variable.

A first attempt at solving this issue was made in commit ce1a4dcac0 therein dubbed "PseudoAddress", however this turned out to be an unsatisfactory solution, as any 'high' address if offsetted could turn invalid (or outright be impossible to map).

This leaves us with three alternatives :
- New type
- Convert Address into a handle
- Virtual Address

A new type is the most destructive solution, as it entails breaking every single Address related method. While that solution is still not off the table, we're reserving it as the last attempt should this commit fail.

Converting into a handle type is a good compromise between a brand new type whilst also preserving the Address methods. However, this comes with two issues: the first being that you can no longer offset Address, the second is that we would require authors to free the handle type which will be very confusing. This will likely not be implemented.

# Virtual address

Under a reasonable assumption, we've noted that the average plugin is unlikely to play with more than 4 GB of memory; this shouldn't be too surprising as all valve games were once 32bits and therefore limited to 4GB. Assuming this stays mostly true and a plugin isn't interested with the mapped memory of lesser known modules (like soundlib or matlib), it is fair to assume plugins are unlikely to access more than 4GB of mapped memory. Working with this in mind, we map the memory the plugins are likely to access to our custom virtual address ranges (from 0 to 4Gb, the values of which can fit on 32bits variable). If any memory was missed and plugins were to try an access it later those ranges will be late-mapped to our virtual address ranges until we run out of them.

In order to use virtual addressing, whether on 32 bits or 64 bits. Plugins must now "#include <virtual_address>", as well as use the new SDKCall_VirtualAddress, SDKType_VirtualAddress, LoadAddressFromAddress & StoreAddressToAddress where it's appropriate to.
2025-11-13 13:23:13 +01:00
BenoistandNicholas Hastings eb3b4d9822 Build tier1 & mathlib (#2368)
* Build tier1 & mathlib instead of statically linking

* update hl2sdk-manifests

* update hl2sdk-manifests

* update hl2sdk-manifests

* update hl2sdk-manifests

* Update hl2sdk-manifests

* Fix sdkhooks compilation

---------

Co-authored-by: Nicholas Hastings <[email protected]>
2025-11-08 16:47:35 +00:00
A1m` 98831a8667 Add the ability to work with the |this| parameter under dhooks callback (#2219) 2025-11-06 16:33:41 +01:00
Monster 063734607f Incrase SetVariantString string limit (#2359) 2025-10-01 08:36:33 -04:00
Bakugo 19dce02a9c Fix incorrect handling of _condition_bits in TF2 extension (#2357) 2025-09-26 15:06:59 +02:00
FlaminSarge 512e7c37c1 Add TFHoliday_Summer (#2350)
Valve has updated this holiday this year to use 2025 dates (2025-07-16 to 2025-09-16) so semi-relevant to add
2025-08-22 13:14:41 +00:00
Lxeon 5c1a5e35b9 fix geoip chi not return chinese translation (#2335)
* fix geoip chi and zho not return chinese translation

* optimize code logic: chi and zho as the final return

* code optimization
2025-08-16 18:16:03 +02:00
Nicholas Hastings 7e784d5453 Improve default compatibilty for ClientPrefs with MySQL 2025-05-26 13:29:12 -04:00
Balim c7410e3a35 Update SDKTools for Synergy (#2310)
* Update SDKTools IgniteEntity for Synergy

Add missing parameter for IgniteEntity used in Synergy.

* Update Linux SDKTools Gamedata for Synergy (25.3)

These are only the Linux signatures updated to use the name format.
Note, I do not have the updated Windows signatures at the moment.
2025-04-26 14:09:38 +00:00
Nicholas Hastings 30da01763d Fix ClientPrefs pointer string formatting (#2307)
* Fix pointer to string marshaling in ClientPrefs for x64

* Fix other cases where pointers were formatted with %x

* Fix warnings in ClientPrefs IsAuthIdConnected
2025-03-31 21:21:54 +00:00
rtldg 87653bf780 Fix a DHook crash when unloading dynamic detours on x86_64 arch (#2288) 2025-02-28 21:33:55 +01:00
2382453d50 Manifest updates and compilation fixes for css, tf2, dods, hl2dm (#2268)
* Initial attempt at compiling against tf2_sdk2013

* compilation fix for css

* Switch to AMTL platform arch defines

* Add CBasePlayer forward decl for dods and hl2dm as well

* Update hl2sdk-manifests

* Add dods to CI

* Actually include am-platform.h

---------

Co-authored-by: Kenzzer <[email protected]>
Co-authored-by: Nicholas Hastings <[email protected]>
2025-02-20 00:51:38 +00:00
Benoist 3b9c74ce96 Fix storing garbage strings (#2257) 2025-02-19 13:10:37 +01:00
BenoistandKenzzer f6737a4760 Fix dhooks regression (#2249)
Co-authored-by: Kenzzer <[email protected]>
2025-02-04 01:39:22 +00:00
peace-maker 74f1f8f6bb Bump MySQL to 5.7.44 on Windows too (#2232)
* Bump MySQL to 5.7.44 on Windows

* Look for MYSQL57 environment variable instead of MYSQL55
2025-01-07 00:17:49 +01:00
MrD4rk5oul 3cd6ce9bb0 Correction for sourcemod use the new teleportation check gamedata registry from now on. (#2235)
* - Fixes for OnPlayerTeleport hook for linux and linux64 systems
  - Changed signature call of `CanPlayerTeleport` for linux/linux64 to current used name
  - Applied fix at detour class CanPlayerBeTeleported to use standard parameter proceedings for linux

* Created a new registry for Teleportation Checking, marking the old one obsolete for older Sourcemod versions.

* Correction for sourcemod use the correct registry from now on.
2024-12-27 19:51:17 +00:00
MrD4rk5oul 52211de8e9 Fixes for OnPlayerTeleport hook for linux and linux64 systems (#2234)
* - Fixes for OnPlayerTeleport hook for linux and linux64 systems
  - Changed signature call of `CanPlayerTeleport` for linux/linux64 to current used name
  - Applied fix at detour class CanPlayerBeTeleported to use standard parameter proceedings for linux

* Created a new registry for Teleportation Checking, marking the old one obsolete for older Sourcemod versions.
2024-12-26 20:12:46 +00:00
Nicholas Hastings a16ba7ca7b Revert "- Fixes for OnPlayerTeleport hook for linux and linux64 systems (#2214)"
This reverts commit e015172bf924bdde3834b6e7e48d37df74190aeb.
2024-11-02 21:51:09 -04:00
Accelerator 932010e63c Update libmaxminddb and MySQL 5.7 (#2192)
* Update libmaxminddb and MySQL 5.7 (linux checkout)

* Bump libmaxminddb version

* Typo fix
2024-11-02 17:01:23 +00:00
Nicholas Hastings 34ddf6d2c8 Update SQLite to 3.47.0 (#2215) 2024-11-02 15:38:56 +00:00