SourceMod 1.12 is now the new stable, recommended version to use.
This has been another one of our longest times between stable releases, so the full changelog is quite large. There are numerous updates in this version, compared to 1.11. Here are some of the highlights:
- Added or greatly improved support for five games and mods
- Greatly improved 64-bit support
- Many new natives added
- Numerous bugs fixed
Shoutouts
We also want to take a moment to thank everyone that contributed to the release in any way, but a few specific callouts are warranted.
Kenzzer was a driving force with heavily improving 64-bit support, and doing a bulk of that work. This may soon be a requirement for Team Fortress 2 servers, and already is for some newer games, such as Military Conflict: Vietnam and Blade Symphony. You'll also see
Digby and
Mikusch showing up many times in the changelog. They both contributed many of the features and fixes. And finally, I also want to give a special mention to
Sarrus for his awesome
SourcePawn Studio extension for Visual Studio Code. It's a great tool for anyone developing SourceMod plugins.
Here is the full changelog.
Italicized items were also backported to 1.11 after it went stable. As you can see, there are many contributors beyond the core team. Apologies if anything or anyone was missed.
Game support- Added support for Military Conflict: Vietnam - #1887
- Added gamedata for GMod 9 (caatge) - #2093
- Added gamedata for Pre-Fortress 2 (dangreene0) - #2091
- Added gamedata for Open Fortress (sappho) - #2057
- Added gamedata for TF2 Classic (sappho) - #2089
- Numerous gamedata updates, SDK updates, and internal updates to maintain supported games
Features- Added support for bcompat references (edict indexes) as inputs to ReferenceToIndex (c0rp3n) - #1323
- Added ParseTime native (Digby) - #1697
- Added File.Size native, supporting both direct and valvefs files (Peak) - #2131
- Added GetFilePermissions native (Kenzzer) - #2177
- Added support for referencing any engine binary in gamedata, rather than only engine, server, and matchmaking_ds - #1626
- Added block parameter to various ArrayList functions (Mikusch) - #1656
- Added float suport for the modulo operator (%) (Mikusch) - #1953
- Added Handle methodmap with Close and Clone methods
- Added ArrayStack.Top, ArrayStack.TopString, and ArrayStack.TopArray natives and ArrayStack.Length property (Mikusch) - #2019
- Added GetClientOriginalLanguage native (Digby) - #1810
- Added SMCParser.ParseString native to load an SMC file from a char[] (Digby) - #1817
- Added GetPublicChatTriggers and GetSilentChatTriggers natives (Digby) - #1816
- Added OnServerEnterHibernation and OnServerExitHibernation forwards (ojlanders) - #2151
- Added LoadEntityFromHandleAddress and StoreEntityToHandleAddress natives (nosoop) - #1830
- Added support for accessing ConVar flags in CommandIterator - #1869
- Updated KeyValues.Rewind native to make traversal stack clearing optional (Digby) - #1993
- Updated topmenus to allow sorting with subcategories in config file (Peak) - #1757
- Added TE_ReadEnt and TE_WriteEnt tempents natives for ehandle fields - #1905
- Added ability to specify trace type on many TR_Trace* natives (vanz666) - Add custom sdktools trace types
- Added explode parameter to ForcePlayerSuicide native (Mikusch) - #1782
- Added SDKCall_Engine as new SDKCallType for IVEngineServer calls (accelerator74) - #1648
- Added logging of vote cancellation and vote results (Rushaway) - #1794
- Added sm_dsay command for sending HUD messages - #1889
- Updated sm_nominate to be able to be used via console (dysphie) - #1803
- Added support for SDKCall returning non-networked entities (FortyTwoFortyTwo) - #1797
- Added natives for working with entity lumps (nosoop) #1673
Bug fixes- Fixed rare crash with logging (Kenzzer) - #2161
- Standardized behavior of RenameFile across platforms when destination file exists (rtldg) - #2060
- Fixed issues with CRC-based gamedata targeting not functioning properly
- Fixed a case where nextmap functionality could get stuck in a loop - #1545
- Fixed crash when parsing certain large SMC files (bottiger) - #2173
- Fixed IsClientSourceTV native not functioning in L4D2 if tv_name was set to non-default value (adriansmares) #2143
- Fixed CommandListeners only being blocked with Plugin_Stop rather than also Plugin_Handled (Digby) - #1819
- Fixed server crash that would occur when RemoveEdict or RemoveEntity were called on worldspawn. An error is now thrown instead. (CookieCat45) - #2104
- Fixed SetEntityHealth native to support entities with m_iHealth is not networked but exists in the datadesc (Kenzzer) - #1846
- Fixed a recursion issue in ServerCommandEx on some games (ojlanders) - #2133
- Fixed crash when calling SQL_LockDatabase twice on a db handle (Digby) - #1937
- Fixed ForcePlayerSuicide native not working on some games if called too soon after previous call on a player (Mikusch) - #1782
- Fixed a crash that could occur on TF2 if SDKTools was loaded and replay was enabled (hydrogen-mvm) - #2033
- Fixed a crash that could occur in TF2_DisguisePlayer (KitRifty) - #2117
- Fixed bypassHooks parameter in SDKHooks_DropWeapon being ignored in some cases (Rainyan) - https://github.com/alliedmodders/sourcemod/issues/1876
- Fixed a crash that would occur upon DHooks load if SDKHooks could not be loaded - #1930
- Fixed SDKCall VDECODE_FLAG_ALLOWNOTINGAME flag not working (1mpulse) - #2000
- Fixed full map name not being logged in sm_map command when using inexact matching (Rushaway) - #1907
- Fixed nextmap conflict on Dystopia (bauxiteDYS) - #2075
- Fixed a case where gamedata values could be unintentionally overridden (nosoop) - #1859
- Fixed a crash that could occur when trying to send a usermessage inside of a usermessage hook callback (zer0k-z) - #1883
- Fixed maplist always being reparsed, even if file hadn't changed (clague) - #1891
- Fixed a command injection issue in sm_play command (b0ink) - #1832
- Fixed chat triggers being used as a ban reason when using sm_ban interactively (rainyan) - #2067
Miscellaneous- Multiple improvements with 64-bit support, by multiple people (Kenzzer, bottiger, KitRifty)
- Reworked handling of edicts and entities to be safer and more consistenct, leading to stability improvements (Kenzzer) - #1903
- Improved performance for HasEntProp (Digby) - #1908
- Updated compiler targeting to C++17
- Updated to SourcePawn 1.12
- Brought language files in-tree, replacing the old, gated translator tool with a GitHub-based workflow that anyone can contribute with
- Moved menu sounds moved to gamedata - #1896
- Added support for building against hl2sdk-mock, for tests
- Increased max supported players from 64 to 100 (65 to 101 with SourceTV) (sappho) - #2026
- Improved sm plugins and sm exts client commands to not require pagination (zer0k) - #1862
- Updated ShowHudText and ShowSyncHudText natives to thrown an error if params haven't been set - #1890
- Updated SDKHooks to greatly improve performance on Linux when there are many hooks (KaelaSavia) - #2094
- Updated multiple callbacks in SDKHooks to use highest result instead of last result, ex. Plugin_Stop always supersedes Plugin_Continue - #1872
- Updated sm_help to no longer print hidden commands (Batfoxkid) - #1831
- Restructured admin-flatfile script files for consistency - #2043
- Improved ff command support on L4D and L4D2 (ambaca) - #1530
- Improve messaging when nominated map is not in map pool (FlaminSarge) - #597
The
Stable Builds download page now points to 1.12 builds, although 1.11 ones are still available and linked there. The
Dev Builds page now points to the new 1.13 branch.