OnGameRulesCreationStringChanged: missing gamerules class on the client

From Valve Developer Community
Revision as of 19:23, 20 June 2006 by Ts2do (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

There are multiple reasons this error may show up when connecting to a map.

: Code Exempt

Either the client project does not include the gamerules' source code or the register code is skipped by the compiler (i.e. #ifndef CLIENT_DLL).

: Client Crash

A global object added onto the client is crashing in its constructor. This is because the interfaces it uses are not initialized before the constructor. To fix this, the class should be made into a CAutoGameSystem, and the constructor code should be installed into bool Init(). The reason why this error shows up is because if the engine fails to load the mod's client.dll twice, it will load the dll included in the mod's SteamAppId. Starting a debug session for the mod would show the failure.