Commit Graph
70 Commits
Author SHA1 Message Date
Asher Baker 77f4ddf2c2 Fix virtual SDKCall with object params (#1104)
PR #705 made some changes for 64-bit support that required callers to
provide a buffer for object storage, but only added the required code to
the non-virtual call builder, not the virtual call builder.

Copy it over to CreateValveVCall so that ValveParamToBinParam stops
writing to a null pointer.

Fixes #1059 (Hopefully.)
2019-10-18 00:23:45 +01:00
Asher Baker 7a42d6b564 Fix build with latest hl2sdk-csgo 2019-09-02 21:45:04 +01:00
Asher Baker 8ce99e0540 Link pthread library for Linux binaries 2019-07-24 14:47:13 +01:00
Asher Baker efb02755bc Update SourcePawn to 093edef 2019-07-24 13:51:15 +01:00
Asher Baker fcafd0784c Workaround CS:GO Stringtable bug (#1046)
The cause of the infamous "Index error writing string table baseline"
error appears to be a timing issue between the engine's network message
processing, the stringtable encoding, and command processing when adding
stringtable entries in OnConfigsExecuted.

When the first client connects the map is re-loaded which causes a full
refresh, the game's stringtable entries are added at tick 65, the client
connection is registered at tick 66, and stringtable entries added in
OnConfigsExecuted are registered as being added in tick 67. The engine
later calls WriteBaselines with the client's signon tick, and neglects
to encode the SM added entries as it considers them from the future.

To avoid this, always pass INT_MAX as the current tick when encoding
the baseline, so all stringtable entries are included regardless of when
they were added. Tested on both Windows and Linux.
2019-07-19 09:13:34 +01:00
Asher Baker 216ba8b4e9 Create FUNDING.yml 2019-05-27 17:15:04 +01:00
Asher Baker c501c837d0 Ignore SM site certificate when downloading GeoIP
Build servers don't have a root for it, and the address is internal
2019-01-19 12:34:23 +00:00
Asher Baker 590f71436f Get GeoIP data from SM site for now 2019-01-19 12:18:36 +00:00
Asher Baker db9925493a Update game.empires.txt 2018-10-14 13:06:30 +01:00
Asher Baker c1d235a59c Use natural sorting for map lists (Fixes #892) (#907)
This produces consistently better results, especially for games such as L4D(2).
2018-10-11 15:20:10 +01:00
Asher Baker b5320a4f8a Add a note about FormatTime platform dependence (#908)
This has been another constant source of confusion since the C99 ones were added to the strftime documentation we link.

It'd be nice to have a consistent implementation inside SM in the future.
2018-10-11 11:07:07 +01:00
Asher Baker a1271ec3a8 Handle NULLs in SDKCall string return (Fixes #874) (#906)
`SDKCall` has existing semantics that a `-1` retval indicates null, so use that and writes an empty string to the buffer.

Consumers can tell the difference between `""` and `NULL` by checking if the return value is `0` or `-1`.
2018-10-11 00:18:03 +01:00
Asher Baker a659896f8a Revert "Use natural sorting for map lists (Fixes #892)"
This reverts commit a4e169aa8f.
2018-10-11 00:04:46 +01:00
Asher Baker a4e169aa8f Use natural sorting for map lists (Fixes #892) 2018-10-11 00:03:34 +01:00
Asher Baker 7dd733cf46 Improve CreateNative failure message (#903)
This confuses everyone.
2018-10-10 13:35:17 +01:00
Asher Baker 1ca4517f46 Revert "Remove arch loops from build scripts. (#889)"
This reverts commit 7ed329c11f.
2018-10-04 17:59:40 +00:00
Asher Baker caf0914289 Remove MAPLIST_FLAG_NO_DEFAULT misuses (#870)
These two base plugins are using the MAPLIST_FLAG_NO_DEFAULT when they shouldn't, which causes much user (and SM developer) confusion as it is completely counter to the documentation.
2018-08-19 12:41:53 +01:00
Asher Baker ba8b42ef1b Burninate IDataPack (#864)
This doesn't break any extensions NOT using IDataPack, and we do not know of any that are.

* The extension storage utility of this interface has been broken for the last 9 months, with ISourceMod::CreateDataPack being disabled.
* The plugin interop utility of this interface (its stated purpose) has been broken for the last 11+ years, with ISourceMod::GetDataPackHandleType being disabled.

I imagine it only survived the first cleanup 11 years ago because CSS:DM was using it internally, which it has now been migrated away from.

Compiled all the included extensions without changes (API compat), and loaded extensions build pre-change without issue (ABI compat).
2018-08-13 23:03:48 +01:00
Asher Baker e7c6b23439 Update blacklist.plugins.txt 2018-08-12 22:32:59 +01:00
Asher Baker 4f70185aef Fix amtl submodule pin 2018-06-05 19:06:04 +01:00
Asher Baker 41ffe975fd Update blacklist.plugins.txt 2018-02-15 22:35:56 +00:00
Asher Baker c33bf330a0 Add doi, remove dota 2017-12-04 21:47:00 +00:00
Asher Baker f156d48f45 Include missing ctype header for macOS build 2017-10-28 12:51:55 +01:00
Asher Baker 4bab834716 Merge pull request #672 from peace-maker/null_natives_fixed
Add natives to check for NULL_VECTOR and NULL_STRING
2017-10-27 20:03:09 +01:00
Asher Baker 4e996a116d Allow seeking to end of datapack (#687) 2017-09-19 23:27:35 +01:00
Asher Baker 902cae595b Include function name in cstrike ext error messages 2017-08-18 13:00:50 +01:00
Asher Baker 01c6bb8c6f Add an explanatory note to GetSteamAccountID 2017-08-12 13:04:26 +01:00
Asher Baker 11aab699a5 Revert "Add natives to check for NULL_VECTOR and NULL_STRING" 2017-08-04 00:44:47 +01:00
Asher Baker 2e6d02ad52 Fixup types can include additional flags in the high bytes 2017-07-27 19:31:20 +01:00
Asher Baker e4047c3f87 Merge pull request #606 from peace-maker/null_natives
Add natives to check for NULL_VECTOR and NULL_STRING
2017-07-25 19:19:26 +01:00
Asher Baker e880471296 Update blacklist.plugins.txt 2017-04-11 13:00:21 +01:00
Asher Baker 55e463426d Update blacklist.plugins.txt 2017-02-09 19:07:25 +00:00
Asher Baker 71788e2325 Update blacklist.plugins.txt 2016-12-09 18:36:35 +00:00
Asher Baker 87b0a8533f Update blacklist.plugins.txt 2016-11-17 23:21:50 +00:00
Asher Baker ec7f1727e5 Allow setting multiple chat trigger characters (PR #449, bug 4341, bug 5668)
Special characters only, minus a couple of potentially-problematic characters.

Technically this is a breaking change - but anyone using multi-char triggers is probably crazy anyway and has been driven off by now.
2016-10-04 16:34:42 +01:00
Asher Baker 215599b90f Merge PR #489: Do not call functions in paused plugins
This should be reverted when pausing is removed, see PR discussion.
2016-10-03 16:51:45 +01:00
Asher Baker 47dd2870d9 Merge pull request #476 from alliedmodders/query-format
Implement an auto-escaping Format native for SQL query construction
2016-10-03 16:20:01 +01:00
Asher Baker a54ee12ade Update MakeBleed gamedata 2016-10-01 18:15:41 +01:00
Asher Baker 58c00f4487 Download Clang from SourceMod site (#523)
Also switch to Clang 3.8
2016-06-20 17:12:58 +01:00
Asher Baker e243de0538 Merge pull request #480 from iNilo/patch-1
Add missing @error annotation to GetClientSerial
2016-02-25 14:17:57 +00:00
Asher Baker b239430247 Merge pull request #458 from stickz/patch-5
Move repeated code in reserved slots plugin to a helper function
2016-02-15 17:11:39 +00:00
Asher Baker 700ec92a9a Implement an auto-escaping Format native for SQL query construction 2016-02-15 15:05:16 +00:00
Asher Baker 272655f340 Changed AddString to be failable 2016-02-15 14:57:56 +00:00
Asher Baker 7c3bcc9c25 Add missing buffer size check to SQLite QuoteString impl 2016-02-15 14:19:11 +00:00
Asher Baker 1ff13c59cf Move the guts of Format to a helper function 2016-02-15 12:49:22 +00:00
Asher Baker 936bdc47f0 Add argument index to format error messages 2016-02-15 10:20:08 +00:00
Asher Baker 9008705b9d Pass format flags down to AddString 2016-02-15 10:16:14 +00:00
Asher Baker 886c358e91 Renumber format flags for sanity 2016-02-15 10:09:48 +00:00
Asher Baker 6ab0c35837 Pre-fill buffer for GetClientAuth* 2015-11-10 14:31:02 +00:00
Asher Baker b81b6cd1c6 Fix crash on failing to load dependent extension. 2015-11-09 14:56:42 +00:00
Asher Baker 3b3b1d6342 And the last piece of the puzzle... normalise the slashes. 2015-11-05 17:45:26 +00:00
Asher Baker 04161da5a0 Alright, this should work. 2015-11-05 17:35:37 +00:00
Asher Baker cce6fde4ea Whoops. 2015-11-05 17:03:51 +00:00
Asher Baker b8e9aabd67 Windows sucks. This may or may not break the Windows build in retaliation. 2015-11-05 16:58:50 +00:00
Asher Baker 625f225448 Suppress error messages from missing repositories. 2015-11-05 11:06:43 +00:00
Asher Baker e8eb9970a6 Last try before I revert all this. 2015-11-05 10:54:35 +00:00
Asher Baker ed5771a861 Fix symbol dumping to work on ancient python versions. 2015-11-05 10:46:32 +00:00
Asher Baker 2c03498986 Really fix Mac symbol dumping. 2015-11-05 09:59:53 +00:00
Asher Baker de675be862 Fix Mac symbol dumping. 2015-11-05 09:31:09 +00:00
Asher Baker c109ea2cb6 Updated SourcePawn submodule. 2015-11-05 09:20:07 +00:00
Asher Baker c6323512ef Deprecate FindSendPropOffs and FindDataMapOffs, add HasEntProp. 2015-11-04 20:26:55 +00:00
Asher Baker 0387c45995 Fix Mac build. 2015-11-04 16:28:45 +00:00
Asher Baker 2ea3d9023b Fix libcurl build on Clang 3.5. 2015-11-04 15:21:13 +00:00
Asher Baker 4346e963e5 Correct spelling in API documentation. 2015-10-30 12:26:34 +00:00
Asher Baker 9bbcae1648 Correct spelling in configuration files. 2015-10-30 12:26:11 +00:00
Asher Baker fc504737c5 Fix a misleading error message from "sm config".
The Ignore state could be hit if the value was read directly rather than using OnSourceModConfigChanged.
2015-10-30 11:06:54 +00:00
Asher Baker 38fd55a05d Normalize repository root path. 2015-10-28 13:31:02 +00:00
Asher Baker 4d3c89c065 Flip INFO REPO records around for parsing sanity. 2015-10-28 09:47:40 +00:00
Asher Baker 4be998c4dc Include repo information in symbol files. 2015-10-27 17:24:03 +00:00
Asher Baker 722c0eb32b Promote git revision number to 4th version string component 2015-09-29 11:07:16 +01:00