sourcemod/extensions
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
..
bintools Revert "Remove arch loops from build scripts. (#889)" 2018-10-04 17:59:40 +00:00
clientprefs Add Cookie methodmap (#1012) 2019-05-30 18:27:14 -07:00
cstrike Add Shield and Bumpmine to cstrike.inc (#991) 2019-05-24 06:03:42 -07:00
curl Revert "Remove arch loops from build scripts. (#889)" 2018-10-04 17:59:40 +00:00
geoip Revert "Remove arch loops from build scripts. (#889)" 2018-10-04 17:59:40 +00:00
mysql Fix MSVC2015 build. 2019-03-16 17:25:36 -07:00
regex Revert "Remove arch loops from build scripts. (#889)" 2018-10-04 17:59:40 +00:00
sdkhooks SDKHooks: Reset global hookid when unhooking in SH. (#916) 2018-10-28 11:06:57 -07:00
sdktools Workaround CS:GO Stringtable bug (#1046) 2019-07-19 09:13:34 +01:00
sqlite Upgrade SQLite from v3.22.0 to v3.26.0. (#935) 2018-12-19 17:26:29 -05:00
structs Deduplicate a number of files used by extensions by moving them to the public directory (bug 5341, r=psychonic). 2014-04-23 21:19:28 -05:00
tf2 Update TF2_IgnitePlayer to support setting duration of fire (#1038) 2019-07-05 22:37:25 +01:00
topmenus Revert "Remove arch loops from build scripts. (#889)" 2018-10-04 17:59:40 +00:00
updater Revert "Remove arch loops from build scripts. (#889)" 2018-10-04 17:59:40 +00:00