Skip to content

Commit

Permalink
64bit gamedata fixes (#2141)
Browse files Browse the repository at this point in the history
* save as of now

* save as of now

* progress

* hint towards comments

Please for the love of god, put comments for updating these in the future will be even more annoying.
i dont even know what LevelShutdown it wants.

* forgot

* fix

* fixes

* Update engine.ep2v.txt

* Update engine.ep2v.txt

* Update sm-tf2.games.txt

---------

Co-authored-by: Benoist <14257866+Kenzzer@users.noreply.github.com>
Co-authored-by: Nicholas Hastings <nshastings@gmail.com>
  • Loading branch information
3 people committed May 5, 2024
1 parent 343f64f commit 5a6b2c8
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 3 deletions.
9 changes: 9 additions & 0 deletions gamedata/core.games/engine.ep2valve.txt
Expand Up @@ -20,11 +20,13 @@
"gEntList"
{
"windows" "11"
"windows64" "81"
}

"EntInfo"
{
"windows" "4"
"windows64" "8"
"linux" "4"
"linux64" "8"
}
Expand All @@ -34,8 +36,15 @@
{
"LevelShutdown"
{
/* not confirmed to be : CServerGameDLL:: LevelShutdown */
/* This comment is for 64xBit */
/* if you know the exact level shutdown function, please comment.*/
/* String : "VDebugOverlay003" -> one call up.*/
/* it only needs to know when the server shuts down, not the absolute correct signature.*/
/* incase it needs the exact function, please notify.*/
"library" "server"
"windows" "\xE8\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\xB9\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\xE8"
"windows64" "\x40\x53\x48\x83\xEC\x20\xE8\x2A\x2A\x2A\x2A\x48\x8B\x05\x1E\x04\x9E\x00"
}
"gEntList"
{
Expand Down
29 changes: 28 additions & 1 deletion gamedata/sdkhooks.games/engine.ep2v.txt
Expand Up @@ -5,159 +5,186 @@
{
"Offsets"
{
//This sucks, this comment HAS to stay, if you remove it, sourcemod WILl crash, why? Ask god.
"EntityListeners"
{
"windows" "131108"
"windows64" "262200"
"linux" "131108"
"linux64" "524432"
"linux64" "262200"
}
"CanBeAutobalanced"
{
"windows" "473"
"windows64" "473"
"linux" "474"
"linux64" "474"
}
"EndTouch"
{
"windows" "105"
"windows64" "105"
"linux" "106"
"linux64" "106"
}
"FireBullets"
{
"windows" "117"
"windows64" "117"
"linux" "118"
"linux64" "118"
}
"GetMaxHealth"
{
"windows" "122"
"windows64" "123"
"linux" "123"
"linux64" "123"
}
"GroundEntChanged"
{
"windows" "183"
"windows64" "183"
"linux" "185"
"linux64" "185"
}
"OnTakeDamage"
{
"windows" "64"
"windows64" "64"
"linux" "65"
"linux64" "65"
}
"OnTakeDamage_Alive"
{
"windows" "282"
"windows64" "282"
"linux" "283"
"linux64" "283"
}
"PreThink"
{
"windows" "343"
"windows64" "343"
"linux" "344"
"linux64" "344"
}
"PostThink"
{
"windows" "344"
"windows64" "344"
"linux" "345"
"linux64" "345"
}
"Reload"
{
"windows" "283"
"windows64" "283"
"linux" "289"
"linux64" "289"
}
"SetTransmit"
{
"windows" "22"
"windows64" "22"
"linux" "23"
"linux64" "23"
}
"ShouldCollide"
{
"windows" "17"
"windows64" "17"
"linux" "18"
"linux64" "18"
}
"Spawn"
{
"windows" "24"
"windows64" "24"
"linux" "25"
"linux64" "25"
}
"StartTouch"
{
"windows" "103"
"windows64" "103"
"linux" "104"
"linux64" "104"
}
"Think"
{
"windows" "49"
"windows64" "49"
"linux" "50"
"linux64" "50"
}
"Touch"
{
"windows" "104"
"windows64" "104"
"linux" "105"
"linux64" "105"
}
"TraceAttack"
{
"windows" "62"
"windows64" "62"
"linux" "63"
"linux64" "63"
}
"Use"
{
"windows" "102"
"windows64" "102"
"linux" "103"
"linux64" "103"
}
"VPhysicsUpdate"
{
"windows" "163"
"windows64" "163"
"linux" "164"
"linux64" "164"
}
"Blocked"
{
"windows" "107"
"windows64" "107"
"linux" "108"
"linux64" "108"
}
"Weapon_CanSwitchTo"
{
"windows" "276"
"windows64" "276"
"linux" "277"
"linux64" "277"
}
"Weapon_CanUse"
{
"windows" "270"
"windows64" "270"
"linux" "271"
"linux64" "271"
}
"Weapon_Drop"
{
"windows" "273"
"windows64" "273"
"linux" "274"
"linux64" "274"
}
"Weapon_Equip"
{
"windows" "271"
"windows64" "271"
"linux" "272"
"linux64" "272"
}
"Weapon_Switch"
{
"windows" "274"
"windows64" "274"
"linux" "275"
"linux64" "275"
}
Expand Down
9 changes: 9 additions & 0 deletions gamedata/sdktools.games/engine.ep2valve.txt
Expand Up @@ -19,18 +19,21 @@
"GetTEName"
{
"windows" "4"
"windows64" "8"
"linux" "4"
"linux64" "8"
}
"GetTENext"
{
"windows" "8"
"windows64" "16"
"linux" "8"
"linux64" "16"
}
"TE_GetServerClass"
{
"windows" "0"
"windows64" "0"
"linux" "0"
"linux64" "0"
}
Expand Down Expand Up @@ -59,6 +62,7 @@
"sv"
{
"windows" "7"
"windows64" "7"
}
}

Expand Down Expand Up @@ -87,8 +91,10 @@
{
"FireOutput"
{
/* String: "(%0.2f) output: (%s,%s) -> (%s,%s)(%s)" */
"library" "server"
"windows" "\x55\x8B\xEC\x81\xEC\x2A\x2A\x2A\x2A\x53\x8B\xC1"
"windows64" "\x48\x8B\xC4\x48\x89\x50\x10\x48\x89\x48\x08\x41\x54"
"linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
"linux64" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
}
Expand Down Expand Up @@ -116,6 +122,7 @@
"SetUserCvar"
{
"windows" "18"
"windows64" "18"
"linux" "58"
"linux64" "58"
}
Expand All @@ -127,6 +134,7 @@
"SetClientName"
{
"windows" "17"
"windows64" "17"
"linux" "57"
"linux64" "57"
}
Expand All @@ -139,6 +147,7 @@
"InfoChanged"
{
"windows" "140"
"windows64" "140"
"linux" "140"
"linux64" "160"
}
Expand Down

0 comments on commit 5a6b2c8

Please sign in to comment.