Updated Synergy gamedata.

This commit is contained in:
Nicholas Hastings 2013-10-28 11:13:48 -04:00
parent 2175e561cc
commit 66dd3f08b1
9 changed files with 387 additions and 104 deletions

View File

@ -98,6 +98,7 @@
"engine" "insurgency" "engine" "insurgency"
"engine" "csgo" "engine" "csgo"
"engine" "dota" "engine" "dota"
"engine" "sdk2013"
} }
"Offsets" "Offsets"

View File

@ -24,7 +24,6 @@
"game" "empires" "game" "empires"
"game" "RnLBeta" "game" "RnLBeta"
"game" "obsidian" "game" "obsidian"
"game" "synergy"
"game" "fas" "game" "fas"
"game" "fistful_of_frags" "game" "fistful_of_frags"
"game" "cspromod" "game" "cspromod"

View File

@ -0,0 +1,49 @@
/**
* Do not edit this file. Any changes will be overwritten by the gamedata
* updater or by upgrading your SourceMod install.
*
* To override data in this file, create a subdirectory named "custom" and
* place your own gamedata file(s) inside of it. Such files will be parsed
* after SM's own.
*
* For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod)
*/
"Games"
{
/* CGlobalEntityList */
"#default"
{
"Offsets"
{
/* Offset into LevelShutdown */
"gEntList"
{
"windows" "11"
"linux" "13"
}
"EntInfo"
{
"windows" "4"
"linux" "4"
"mac" "4"
}
}
"Signatures"
{
"LevelShutdown"
{
"library" "server"
"windows" "\xE8\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\xB9\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\xE8"
"linux" "\xE8\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\xC7\x2A\x2A\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\xE8"
}
"gEntList"
{
"library" "server"
"mac" "@gEntList"
}
}
}
}

View File

@ -40,6 +40,11 @@
"engine" "orangebox_valve" "engine" "orangebox_valve"
} }
"engine.sdk2013.txt"
{
"engine" "sdk2013"
}
"engine.css.txt" "engine.css.txt"
{ {
"engine" "css" "engine" "css"

View File

@ -18,118 +18,129 @@
{ {
"EndTouch" "EndTouch"
{ {
"windows" "92" "windows" "100"
"linux" "93" "linux" "101"
"mac" "101"
} }
"FireBullets" "FireBullets"
{ {
"windows" "104" "windows" "112"
"linux" "105" "linux" "113"
"mac" "113"
} }
"GroundEntChanged" "GroundEntChanged"
{ {
"windows" "164" "windows" "178"
"linux" "165" "linux" "178"
"mac" "178"
} }
"OnTakeDamage" "OnTakeDamage"
{ {
"windows" "60" "windows" "62"
"linux" "61" "linux" "63"
"mac" "63"
} }
"PreThink" "PreThink"
{ {
"windows" "293" "windows" "336"
"linux" "294" "linux" "337"
"mac" "337"
} }
"PostThink" "PostThink"
{ {
"windows" "294" "windows" "337"
"linux" "295" "linux" "338"
"mac" "338"
}
"Reload"
{
"windows" "268"
"linux" "269"
"mac" "269"
} }
"SetTransmit" "SetTransmit"
{ {
"windows" "19" "windows" "20"
"linux" "20" "linux" "21"
"mac" "21"
} }
"ShouldCollide" "ShouldCollide"
{ {
"windows" "15" "windows" "16"
"linux" "16" "linux" "17"
"mac" "17"
} }
"Spawn" "Spawn"
{ {
"windows" "21" "windows" "22"
"linux" "22" "linux" "23"
"mac" "23"
} }
"StartTouch" "StartTouch"
{ {
"windows" "90" "windows" "98"
"linux" "91" "linux" "99"
"mac" "99"
} }
"Think" "Think"
{ {
"windows" "45" "windows" "47"
"linux" "46" "linux" "48"
"mac" "48"
} }
"Touch" "Touch"
{ {
"windows" "91" "windows" "99"
"linux" "92" "linux" "100"
"mac" "100"
} }
"TraceAttack" "TraceAttack"
{ {
"windows" "58" "windows" "60"
"linux" "59" "linux" "61"
} "mac" "61"
"UpdateOnRemove"
{
"windows" "97"
"linux" "98"
} }
"Use" "Use"
{ {
"windows" "89" "windows" "97"
"linux" "90" "linux" "98"
"mac" "98"
} }
"VPhysicsUpdate" "VPhysicsUpdate"
{ {
"windows" "144" "windows" "157"
"linux" "145" "linux" "158"
"mac" "158"
} }
"Weapon_CanSwitchTo" "Weapon_CanSwitchTo"
{ {
"windows" "234" "windows" "265"
"linux" "235" "linux" "266"
"mac" "266"
} }
"Weapon_CanUse" "Weapon_CanUse"
{ {
"windows" "228" "windows" "259"
"linux" "229" "linux" "260"
"mac" "260"
} }
"Weapon_Drop" "Weapon_Drop"
{ {
"windows" "231" "windows" "262"
"linux" "232" "linux" "263"
"mac" "263"
} }
"Weapon_Equip" "Weapon_Equip"
{ {
"windows" "229" "windows" "260"
"linux" "230" "linux" "261"
"mac" "261"
} }
"Weapon_Switch" "Weapon_Switch"
{ {
"windows" "232" "windows" "263"
"linux" "233" "linux" "264"
} "mac" "264"
}
"Signatures"
{
"IEntityFactoryDictionary"
{
"library" "server"
"windows" "\xB8\x01\x00\x00\x00\x84\x2A\x2A\x2A\x2A\x2A\x75\x1D\x09\x2A\x2A\x2A\x2A\x2A\xB9\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x83\xC4\x04\xB8\x2A\x2A\x2A\x2A\xC3"
"linux" "@_Z23EntityFactoryDictionaryv"
} }
} }
} }

View File

@ -18,7 +18,6 @@
{ {
"game" "ageofchivalry" "game" "ageofchivalry"
"game" "empires" "game" "empires"
"game" "synergy"
"game" "bg2" "game" "bg2"
"game" "pvkii" "game" "pvkii"
"game" "gesource" "game" "gesource"
@ -99,7 +98,6 @@
"game" "ageofchivalry" "game" "ageofchivalry"
"game" "zps" "game" "zps"
"game" "empires" "game" "empires"
"game" "synergy"
"game" "bg2" "game" "bg2"
"game" "pvkii" "game" "pvkii"
"game" "gesource" "game" "gesource"

View File

@ -0,0 +1,216 @@
/**
* Do not edit this file. Any changes will be overwritten by the gamedata
* updater or by upgrading your SourceMod install.
*
* To override data in this file, create a subdirectory named "custom" and
* place your own gamedata file(s) inside of it. Such files will be parsed
* after SM's own.
*
* For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod)
*/
"Games"
{
/* General Temp Entities */
"#default"
{
"#supported"
{
"game" "synergy"
}
"Offsets"
{
/* Offset into CBaseTempEntity constructor */
"s_pTempEntities"
{
"windows" "19"
"linux" "20"
}
"GetTEName"
{
"windows" "4"
"linux" "4"
"mac" "4"
}
"GetTENext"
{
"windows" "8"
"linux" "8"
"mac" "8"
}
"TE_GetServerClass"
{
"windows" "0"
"linux" "0"
"mac" "0"
}
}
"Signatures"
{
"CBaseTempEntity"
{
"library" "server"
"windows" "\x55\x8B\xEC\x8B\xC1\x8B\x4D\x2A\xC7\x00\x2A\x2A\x2A\x2A\x89\x48"
"linux" "\x55\x89\xE5\x8B\x45\x08\x8B\x55\x0C\xC7\x2A\x2A\x2A\x2A\x2A\x89\x50\x04\x8B\x15\x2A\x2A\x2A\x2A\xA3"
}
"s_pTempEntities"
{
"library" "server"
"mac" "@_ZN15CBaseTempEntity15s_pTempEntitiesE"
}
}
}
/* CGlobalEntityList */
"#default"
{
"#supported"
{
"game" "synergy"
}
"Signatures"
{
/* Functions in CGlobalEntityList */
"FindEntityByClassname"
{
"library" "server"
"windows" "\x55\x8B\xEC\x53\x56\x8B\xF1\x8B\x4D\x2A\x57\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x2A\xFF\xD2\x8B\x00\x25\xFF\x0F\x00\x00\x40\x03\xC0\x8B\x3C\xC6\xEB\x2A\x8B"
"linux" "\x55\x89\xE5\x57\x56\x53\x83\x2A\x2A\x8B\x2A\x2A\x8B\x2A\x2A\x85\xC0\x74\x2A\x8B\x10\x89\x04\x24\xFF\x52\x0C\x8B\x55\x08\x8B\x00\x25\xFF\x0F\x00\x00\xC1\xE0\x04\x8B\x2A\x2A\x2A\xEB\x15\x66"
"mac" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
}
}
}
/* General GameRules */
"#default"
{
"#supported"
{
"game" "synergy"
}
"Offsets"
{
/* Offset into CreateGameRulesObject */
"g_pGameRules"
{
"windows" "2"
"linux" "1"
}
}
"Signatures"
{
/* This signature sometimes has multiple matches, but this
* does not matter as g_pGameRules is involved in all of them.
* The same g_pGameRules offset applies to each match.
*
* Sometimes this block of bytes is at the beginning of the static
* CreateGameRulesObject function and sometimes it is in the middle
* of an entirely different function. This depends on the game.
*/
"CreateGameRulesObject"
{
"library" "server"
"windows" "\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x2A\x6A\x01\xFF\xD2"
"linux" "\xA1\x2A\x2A\x2A\x2A\x8B\x5D\x08\x85\xC0\x74\x08\x8B\x10\x89"
}
"g_pGameRules"
{
"library" "server"
"mac" "@g_pGameRules"
}
}
}
/* IServer interface pointer */
"#default"
{
"Keys"
{
/* Signature for the beginning of IVEngineServer::CreateFakeClientEx.
*
* The engine binary is not actually scanned in order to look for
* this. SourceHook is used to used to determine the address of the
* function and this signature is used to verify that it contains
* the expected code. A pointer to sv (IServer interface) is used
* here.
*/
"CreateFakeClient_Windows" "\x55\x8B\xEC\x8B\x2A\x2A\x50\xB9\x2A\x2A\x2A\x2A\xE8"
}
"Offsets"
{
/* Offset into IVEngineServer::CreateFakeClient */
"sv"
{
"windows" "8"
}
}
"Signatures"
{
/* CBaseServer object for IServer interface */
"sv"
{
"library" "engine"
"linux" "@sv"
"mac" "@sv"
}
}
}
/* CBaseEntityOutput::FireOutput */
"#default"
{
"#supported"
{
"game" "synergy"
}
"Signatures"
{
"FireOutput"
{
"library" "server"
"windows" "\x55\x8B\xEC\x81\x2A\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\x2A\x8B\x45\x2A\x53\x56\x8B\x2A\x2A\x57\x8B\x2A\x2A\x89\x2A\x2A\x2A\x2A\x2A\x89\x2A\x2A\x2A\x2A\x2A\x89\x2A\x2A\x2A\x2A\x2A\xC7"
"linux" "\x55\x89\xE5\x57\x56\x53\x81\xEC\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x65\x2A\x2A\x2A\x2A\x2A\x89\x2A\x2A\x31\xC0\x8B\x2A\x2A\x8B\x2A\x2A\x8B\x2A\x2A\x8B\x2A\x2A\x89\x2A\x2A\x2A\x2A\x2A\x89\x2A\x2A\x2A\x2A\x2A\x89"
"mac" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
}
}
}
/* SetUserInfo data */
"#default"
{
"Offsets"
{
/**
* CBaseClient::SetUserCVar(char const*,char const*);
* Linux offset straight from VTable dump.
* Windows offset is crazy. Found the windows SetName function using string "(%d)%-0.*s"
* Cross referenced back to the vtable and counted manually (SetUserCvar is 1 higher, offsets start from 1)
*/
"SetUserCvar"
{
"windows" "18"
"linux" "58"
"mac" "58"
}
/**
* Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made.
* Find CBaseClient::UpdateUserSettings (strings "net_maxroutable", "cl_updaterate" etc) and the offset is set to 0 near the end.
* Linux: mov byte ptr [esi+98h], 0
* Win: mov byte ptr [esi+0A4h], 0
*/
"InfoChanged"
{
"windows" "140"
"linux" "140"
"mac" "140"
}
}
}
}

View File

@ -11,7 +11,6 @@
"Games" "Games"
{ {
/* Synergy Release 14 */
"synergy" "synergy"
{ {
"Offsets" "Offsets"
@ -19,93 +18,93 @@
/* CBasePlayer */ /* CBasePlayer */
"GiveNamedItem" "GiveNamedItem"
{ {
"windows" "356" "windows" "406"
"linux" "357" "linux" "407"
"mac" "407"
} }
"RemovePlayerItem" "RemovePlayerItem"
{ {
"windows" "238" "windows" "269"
"linux" "239" "linux" "270"
"mac" "270"
} }
"Weapon_GetSlot" "Weapon_GetSlot"
{ {
"windows" "236" "windows" "267"
"linux" "237" "linux" "268"
"mac" "268"
} }
"Ignite" "Ignite"
{ {
"windows" "193" "windows" "208"
"linux" "194" "linux" "209"
"mac" "209"
} }
"Extinguish" "Extinguish"
{ {
"windows" "197" "windows" "212"
"linux" "198" "linux" "213"
"mac" "213"
} }
"Teleport" "Teleport"
{ {
"windows" "100" "windows" "108"
"linux" "101" "linux" "109"
"mac" "109"
} }
"CommitSuicide" "CommitSuicide"
{ {
"windows" "397" "windows" "445"
"linux" "397" "linux" "445"
"mac" "445"
} }
"GetVelocity" "GetVelocity"
{ {
"windows" "130" "windows" "140"
"linux" "131" "linux" "141"
"mac" "141"
} }
"EyeAngles" "EyeAngles"
{ {
"windows" "122" "windows" "131"
"linux" "123" "linux" "132"
"mac" "132"
} }
"AcceptInput" "AcceptInput"
{ {
"windows" "34" "windows" "36"
"linux" "35" "linux" "37"
"mac" "37"
} }
"SetEntityModel" "SetEntityModel"
{ {
"windows" "23" "windows" "24"
"linux" "24" "linux" "25"
"mac" "25"
} }
"WeaponEquip" "WeaponEquip"
{ {
"windows" "229" "windows" "260"
"linux" "230" "linux" "261"
"mac" "261"
} }
"Activate" "Activate"
{ {
"windows" "31" "windows" "33"
"linux" "32" "linux" "34"
"mac" "34"
} }
"RemoveAllItems" "RemoveAllItems"
{ {
"windows" "304" "windows" "348"
"linux" "305" "linux" "349"
"mac" "349"
} }
"PlayerRunCmd" "PlayerRunCmd"
{ {
"windows" "376" "windows" "424"
"linux" "377" "linux" "425"
} "mac" "425"
}
"Signatures"
{
"FindEntityByClassname"
{
"library" "server"
"windows" "\x53\x55\x56\x8B\xF1\x8B\x4C\x24\x10\x57\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x08\xFF\xD2\x8B\x00\x25\xFF\x0F\x00\x00\x40\xC1\xE0\x04\x8B\x3C\x30\xEB\x06\x8B\xBE\x2A\x2A\x2A\x2A\x85\xFF\x74\x2A\x8B\x5C\x24\x18\x8B\x2D\x2A\x2A\x2A\x2A\x8D\xA4\x24\x00\x00\x00\x00\x8B\x37\x85\xF6\x75\x2A\x68\x2A\x2A\x2A\x2A\xFF\x2A\x83\xC4\x04\xEB\x2A\x39\x2A\x2A\x74\x2A\x53"
"linux" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
}
"FireOutput"
{
"library" "server"
"windows" "\x81\xEC\x2A\x2A\x2A\x2A\x53\x55\x56\x8B\x71\x2A\x57\x89"
"linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
} }
} }
} }

View File

@ -40,6 +40,11 @@
"engine" "orangebox_valve" "engine" "orangebox_valve"
} }
"engine.sdk2013.txt"
{
"engine" "sdk2013"
}
"engine.css.txt" "engine.css.txt"
{ {
"engine" "css" "engine" "css"