Commit Graph
994 Commits
Author SHA1 Message Date
Nicholas Hastings faec98dc2c Fix crash in x64 bintools code gen 2026-11-09 18:04:18 -05:00
Adrian-Stefan Mares 5eb6a120af Load a GeoIP database whose modification time is the epoch (#2604)
The newest .mmdb in configs/geoip was picked with mtime > modTime,
starting from 0, so a database with an mtime of 0 (as Docker's ADD
sets for downloads without Last-Modified) was never loaded and the
extension failed with "Could not find GeoIP2 database".

Assisted-by: Claude:claude-opus-5-5
2026-11-08 16:38:56 +00:00
Nicholas Hastings 3240285ed2 Add outbreak build 2026-11-01 11:38:36 -05:00
Nicholas Hastings ce7dccfffb Fix cleanup of stale entity output hooks (fixes #2589) 2026-10-07 22:36:27 -04:00
Mikusch 2ed5b865e3 Fix Plugin_Changed preventing other sound hooks from running (#2586)
* Use ReentrantList for sound hooks

* Fix Plugin_Changed preventing other sound hooks from running

* Fix sound changes being dropped when a hook removes itself
2026-10-03 04:20:00 +00:00
Benoist 82cd96aef6 Strip sourcehook containers (#2578) 2026-09-17 20:56:47 -04:00
peace-maker 42237ddc03 CI: Fix hl2sdk-mock test error detection (#2558)
* Build sdktools for hl2sdk-mock

The test_format script requires it.

* Fix test_format %T translation test

%T expects a client index and translation phrase as arguments, the test was passing a language id and a phrase.
It never ran due to sdktools missing on the mock srcds before.

* mocktest: Check for passing tests or exceptions too

When sourcemod wouldn't even load the tests were still green since there was no "FAIL" in the output :D

* Test 32bit x86 srcds too

* Build against MMS 1.12-dev
2026-09-14 21:55:15 +00:00
David Anderson 421c39bb6a Fix dhooks to call PushInt64 instead of PushArray(2).
This fixes issue #2574.
2026-09-13 18:18:15 -07:00
Mikusch 36339c22ca Use an absolute call when the callee is too far away 2026-09-07 08:30:54 -07:00
Benoist f7fd4fe4a7 Extend thread check to all sdkhooks (#2534) 2026-09-04 09:25:30 -04:00
David Anderson 001ea29ee8 Add more C++20 fixes. 2026-09-01 18:58:42 -07:00
Nicholas Hastings 42ce2ce4d5 Reduce cases where MySQL escaping locks (#2554) 2026-08-27 01:17:11 +00:00
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