sourcemod/gamedata
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
..
core.games Update blacklist.plugins.txt 2018-08-12 22:32:59 +01:00
sdkhooks.games Update CS:GO "Reload" offset. (#1011) 2019-05-14 18:56:14 -04:00
sdktools.games Workaround CS:GO Stringtable bug (#1046) 2019-07-19 09:13:34 +01:00
sm-cstrike.games Update Linux CSWeaponDropBB signature. 2019-05-01 11:35:13 -04:00
funcommands.games.txt Fix some funcommands gamedata for CS:GO. 2016-05-21 12:53:27 -04:00
sm-tf2.games.txt Update TF2 CalcIsAttackCritical gamedata. 2017-12-14 08:27:37 -05:00