Commit Graph
7484 Commits
Author SHA1 Message Date
pixelforge42316 e47e196d81 fix nmrih windows gamedata (#2600) 2026-11-02 01:33:52 +00:00
Eric Zhang c98574c426 Make nominations map selection menu title translatable (#2597)
* Make nominations map selection menu title translatable

* Add the new Select Title to Chinese translations
2026-11-01 18:02:35 +00:00
Nicholas Hastings 3240285ed2 Add outbreak build 2026-11-01 11:38:36 -05:00
Nicholas Hastings b41188c7c9 Bump SourcePawn 2026-10-26 20:47:27 -04:00
Adrian-Stefan MaresandClaude Opus 5.5 e7ac9b013d Add int64 support to forwards (#2594)
* Fix forwards accepting arguments of the wrong type

CForward::ProcessArguments returns whether the arguments are valid, but
its error paths return !!SetError(...), which is true for any error
code. Mismatched arguments were therefore accepted and the forward ran
anyway, while m_errstate stayed set and made the next Execute() on that
forward fail with a stale error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BxFXSTjEk7Dub57XRmVfqU

* Add Call_PushInt64 and Param_Int64

Since Address became an int64, plugins can no longer pass one through a
forward or Call_StartFunction: an int64 parameter is passed as a
reference to its value, so Call_PushCell hands the callee an invalid
reference and crashes the server, and Call_PushArray hands it the heap
array instead of the value.

Add Call_PushInt64, which pushes the value with CallArgs::PushInt64 the
way DHooks does, and Param_Int64, so forwards can declare and check
64-bit integer parameters.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BxFXSTjEk7Dub57XRmVfqU

* Move the Call_PushInt64 test to the mock testsuite

Run it in CI with the other hl2sdk-mock tests, on x86 and x86_64,
instead of as a manual test plugin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BxFXSTjEk7Dub57XRmVfqU

* Pass int64 arguments to legacy plugins as cells

Plugins compiled before Address became an int64, or with oldspcomp, take
an Address as a single cell and crash when handed an int64 argument.
Like DHooks, check the callee's plugin for __Int64_Address__ and pass
those plugins the low 32 bits instead, so a forward can have both kinds
of listeners.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BxFXSTjEk7Dub57XRmVfqU

* Document how legacy plugins receive Call_PushInt64 values

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BxFXSTjEk7Dub57XRmVfqU

* Don't downgrade int64 arguments for legacy plugins

The forward system shouldn't know about the Address convention. Code
that declares a forward parameter as an Address can handle plugins that
take it as a cell.

This reverts commits 345b0dcb4 and 78b7bc14b.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BxFXSTjEk7Dub57XRmVfqU

* Add Param_SMAddress and Call_PushAddress

Plugins compiled before Address became an int64 take an Address as one
cell. Arguments declared as Param_SMAddress in a forward, or pushed with
Call_PushAddress to a function, are passed to those plugins as the low 32
bits, like DHooks does. Param_Int64 arguments are always passed as int64.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BxFXSTjEk7Dub57XRmVfqU

* Refuse non-Address int64 arguments for plugins compiled before 1.13

Plugins compiled before SourceMod 1.13 have no int64 type, so an int64
argument can only reach them in a parameter they declared as a cell.
Only an Address has a sane value there, its low 32 bits; any other int64
does not. Report an error naming the plugin and skip it instead of
passing it a reference it reads as a cell.

oldspcomp with the 1.13 includes also declares Address as an int64 and
__Int64_Address__, so describe these plugins as compiled before 1.13.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BxFXSTjEk7Dub57XRmVfqU

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-27 00:44:33 +00:00
Adrian-Stefan MaresandClaude Opus 5.5 8ba0672cd9 Fix forwards accepting arguments of the wrong type (#2593)
CForward::ProcessArguments returns whether the arguments are valid, but
its error paths return !!SetError(...), which is true for any error
code. Mismatched arguments were therefore accepted and the forward ran
anyway, while m_errstate stayed set and made the next Execute() on that
forward fail with a stale error.


Claude-Session: https://claude.ai/code/session_01BxFXSTjEk7Dub57XRmVfqU

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-25 16:13:48 +00:00
azzy b34de51b8c TF2C 3.2.0 gamedata (#2590) 2026-10-15 18:59:13 +00:00
Nicholas Hastings ce7dccfffb Fix cleanup of stale entity output hooks (fixes #2589) 2026-10-07 22:36:27 -04:00
Benoist ae0585df42 Add userid guards for PlayerManager::m_UserIdLookUp (#2577) 2026-10-07 11:21:30 -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 b9c639620c Fix crash related to KeyValues for sdk2013/2025 games (#2588) 2026-10-02 09:07:21 -04:00
Nicholas Hastings c8d4fab7d9 Trigger build for hl2sdk css/dods updates 2026-10-01 09:04:56 -04:00
David Anderson 6eb5f8fa38 Replace ke::Function use with std::function. 2026-09-18 09:58:39 -07:00
Benoist 82cd96aef6 Strip sourcehook containers (#2578) 2026-09-17 20:56:47 -04:00
Nicholas Hastings 3723860af3 Re-update SourcePawn pin 2026-09-17 17:14:24 -04:00
Mikusch 3069350df4 Narrow symbol hiding to libstdc++ (#2576) 2026-09-15 08:07:46 -04:00
Eric Zhang 3523db0314 Update Chinese simplified translations (#2575) 2026-09-15 07:52:15 -04:00
Mikusch f2f10bc196 Hide statically-linked libstdc++ symbols (#2533) 2026-09-14 23:14:06 +00:00
Nicholas Hastings 97801196df Revert garbage 2026-09-14 19:12:16 -04:00
Nicholas Hastings 7b013d5097 Fix x86 float formatting precision (fixes #2562) (#2573) 2026-09-14 22:38:52 +00: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 6182c33318 Update SourcePawn. 2026-09-13 18:18:15 -07: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
David Anderson 809392d1dc Update SourcePawn.
This brings in some compiler fixes and the new ".size" property for
arrays.

The extension loader will also now once again accept version 9
extensions. Version 10 has been blacklisted. The IPluginContext API has
been restored to be compatible with v9.
2026-09-10 09:06:23 -07:00
F1F88 73fd660ff4 sorting: use ParamToArrayPtr for the top-level array param 2026-09-07 08:32:49 -07:00
Mikusch 36339c22ca Use an absolute call when the callee is too far away 2026-09-07 08:30:54 -07:00
F1F88 65d0d1380e GetFunctionByName: return the runtime's funcid instead of deriving it from the public index (#2566)
* fix: use the runtime's funcid in GetFunctionByName

* test: update testsuit
2026-09-06 18:17:48 +02:00
sappho d75d410100 Add TIMER_FLAG_TICK_PRECISE - a new method for tick-precise timer intervals 2026-09-06 01:19:05 -07:00
David Anderson 4ab75cc19c Update SourcePawn to fix a callback crash. (#2561) 2026-09-04 15:38:53 -04:00
Benoist f7fd4fe4a7 Extend thread check to all sdkhooks (#2534) 2026-09-04 09:25:30 -04:00
F1F88 bea10f0fb1 Add native StringToI64 (#2449)
* Add native StringToInt64Ex

* Delete useless test code

* Rename native StringToInt64Ex to StringToI64

* Add documentation for out-of-bounds situations.
2026-09-03 21:42:52 -07:00
Peace-Maker e078b2b542 Add VFormat macro for backwards compatibility
SourcePawn 2 supports passing the variable arguments through to another function natively.

Instead of using `VFormat` you can just call `Format(buf, sizeof(buf), fmt, ...)` directly with the ellipsis `...`.

This broke plugins using VFormat. Add a macro to transparently replace `VFormat` with `Format` calls when compiling with the SourcePawn 2 compiler to keep the plugins from complaining about a missing `VFormat`.

Preprocessor macros are not affected by `#pragma deprecated` so we cannot warn about this yet.
2026-09-03 08:58:20 -07:00
dysphie 0205f5988d more nmrih 1.15 gamedata fixes (#2559) 2026-09-02 21:28:19 +00:00
David Anderson b1ac6f9a80 Fix unsafe casts in test_sorting.sp. 2026-09-01 18:58:42 -07:00
David Anderson 001ea29ee8 Add more C++20 fixes. 2026-09-01 18:58:42 -07:00
David Anderson 704f64f467 Pull latest SP fixes and bit_cast removal. 2026-09-01 18:58:42 -07:00
David Anderson 65ce00763a Hide VFormat() for SourcePawn 2 plugins.
VFormat() does not work in the v2 VM. Instead, there is a new "spread"
operator, so regular Format or FormatEx will work instead.
2026-09-01 18:58:42 -07:00
David Anderson 8033a8e134 Package oldspcomp in the scripting folder. 2026-09-01 18:58:42 -07:00
David Anderson 7d3f8117a0 Bump the extension API version - this is a compatibility break, again. 2026-09-01 18:58:42 -07:00
David Anderson 35d2a648cf Use the new pstruct access API. 2026-09-01 18:58:42 -07:00
David Anderson 02c56a6a42 Update pinned commit for SourceMod, and adjust for API changes. 2026-09-01 18:58:42 -07:00
David Anderson 17eb8c2652 Upgrade SourceMod to C++20. 2026-09-01 18:58:42 -07:00
dysphie f3f696f16e nmrih 1.15.0 gamedata (#2557) 2026-09-01 15:42:58 -04:00
Nicholas Hastings 42ce2ce4d5 Reduce cases where MySQL escaping locks (#2554) 2026-08-27 01:17:11 +00:00
Ayberk Alcan f4a047d3d1 Update CSWeaponDrop for Windows (#2553) 2026-08-26 00:48:43 +00:00
Nicholas Hastings a36a449983 Fix build 2026-08-24 18:20:05 -04:00
caxanga334 df6d637e13 Update Orange Box gamedata (#2552) 2026-08-24 22:13:24 +00:00
Nicholas Hastings a6a181a4e4 Fix rc BINARY_NAME on Windows 2026-08-24 16:04:10 -04:00
MikuschandNicholas Hastings 61dea382c9 Fix crash when deleting a Menu handle during callbacks (#2536)
* Root menu Handles during callbacks

* Delete unused AutoHandleRooter struct

* Fix crash when a vote is cancelled from its start callback

* menus: root vote menu during start callback

---------

Co-authored-by: Nicholas Hastings <[email protected]>
2026-08-24 19:40:41 +00:00
azzy 8c0aa36bbd TF2 Classified 3.1.0 Gamedata (#2551) 2026-08-24 17:12:27 +00:00