tools/gdc/DOCS
author Nicholas Hastings <skamonkey@gmail.com>
Tue Jul 03 07:51:12 2012 -0400 (2012-07-03)
changeset 3573 440c51204096
parent 3129 76208f2e5ef0
permissions -rw-r--r--
Fixed clientprefs prefab menu double free crash (bug 5374, r=asherkin).
fyrenmoo@3129
     1
This program checks SM gamedata in the given gameconf against the given server (not engine) binary.  It only checks vtable offsets and signatures.  It also only checks one gameconf per invocation.
fyrenmoo@3129
     2
fyrenmoo@3129
     3
Example usage:
fyrenmoo@3129
     4
fyrenmoo@3129
     5
  LD_LIBRARY_PATH=~/steam/left4dead2/bin/ gdc -g left4dead2 -e l4d2 -f ~/sourcemod-central/gamedata/sdktools.games/engine.l4d2.txt -b ~/steam/left4dead2/left4dead2/bin/server.so
fyrenmoo@3129
     6
fyrenmoo@3129
     7
This will verify the gamedata in engine.l4d2.txt against the L4D2 server.so.
fyrenmoo@3129
     8
fyrenmoo@3129
     9
The parameters taken (in any order) are:
fyrenmoo@3129
    10
  -g <game name> 
fyrenmoo@3129
    11
  -e <engine name> 
fyrenmoo@3129
    12
  -f <gameconf file> 
fyrenmoo@3129
    13
  -b <binary path>
fyrenmoo@3129
    14
fyrenmoo@3129
    15
The file symbols.txt defines the extra information necessary to link up gamedata key names (like "CommitSuicide") with symbols (like "_ZN11CBasePlayer13CommitSuicideEv").  It also needs a "vtsym" key that contains the symbol name of the game's player class' vtable.  The symbols.txt itself is a gameconf file.