OnGameRulesCreationStringChanged: missing gamerules class on the client: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
TomEdwards (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
There are | There are a couple of reasons why this error may show up when connecting to a map. | ||
== | |||
Either the client project does not include the gamerules' source code or the register code is skipped by the compiler ( | == Code Exempt== | ||
== | |||
A global object | Either the client project does not include the gamerules' source code or the register code is skipped by the compiler (e.g. inside a <code>#ifdef</code> block). | ||
== Client Crash == | |||
A global object on the client is crashing within its constructor; this might be because the interfaces it uses are not initialized before the constructor. If the engine fails to load the mod's client.dll twice, it will load the DLL included in the mod's [[SteamAppId]], creating a GameRules mismatch. | |||
To fix this, <!--the class should be made into a [[CAutoGameSystem]], and -->the constructor code should be installed into an initialisation function. Starting a debug session for the mod ''might'' show the failure. | |||
== See also == | |||
* [[GameRules]] | |||
[[Category:Programming]] | [[Category:Programming]] |
Revision as of 13:56, 1 August 2009
There are a couple of reasons why 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 (e.g. inside a #ifdef
block).
Client Crash
A global object on the client is crashing within its constructor; this might be because the interfaces it uses are not initialized before the constructor. If the engine fails to load the mod's client.dll twice, it will load the DLL included in the mod's SteamAppId, creating a GameRules mismatch.
To fix this, the constructor code should be installed into an initialisation function. Starting a debug session for the mod might show the failure.