Skip to content

Instantly share code, notes, and snippets.

@RavuAlHemio
Created March 30, 2013 14:23
Show Gist options
  • Save RavuAlHemio/5276892 to your computer and use it in GitHub Desktop.
Save RavuAlHemio/5276892 to your computer and use it in GitHub Desktop.
Convert the smf-tf2.games.txt gamedata definition into the folder format. This is the "wrong" solution to the problem and is only kept here for posterity.
diff -r 6ce275678a11 gamedata/sm-tf2.games.txt
--- a/gamedata/sm-tf2.games.txt Fri Mar 29 13:10:51 2013 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,141 +0,0 @@
-/**
- * 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"
-{
- "tf"
- {
- "Signatures"
- {
- "Burn"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x51\x56\x8B\xF1\x8B\x2A\x2A\x2A\x2A\x2A\x8B\x01\x8B\x2A\x2A\x2A\x2A\x2A\xFF\xD2\x84\xC0\x0F\x2A\x2A\x2A\x2A\x2A\x57\x6A\x2A\x8D\x2A\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x84\xC0\x0F\x2A\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x2A\x2A\x2A\xC1\x2A\x2A\x24\x01\x0F\x2A\x2A\x2A\x2A\x2A\x8B"
- "linux" "@_ZN15CTFPlayerShared4BurnEP9CTFPlayerP13CTFWeaponBase"
- "mac" "@_ZN15CTFPlayerShared4BurnEP9CTFPlayerP13CTFWeaponBase"
- }
- "RemoveDisguise"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x83\xEC\x2A\x53\x56\x57\x8B\xF1\x6A\x2A\x8D\x2A\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x84\xC0"
- "linux" "@_ZN15CTFPlayerShared14RemoveDisguiseEv"
- "mac" "@_ZN15CTFPlayerShared14RemoveDisguiseEv"
- }
- "Disguise"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x51\x53\x56\x8B\xF1\x8B\x2A\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x8B\xD8\x8B"
- "linux" "@_ZN15CTFPlayerShared8DisguiseEiiP9CTFPlayerb"
- "mac" "@_ZN15CTFPlayerShared8DisguiseEiiP9CTFPlayerb"
- }
- "CalcCritical"
- {
- "library" "server"
- "linux" "@_ZN13CTFWeaponBase26CalcIsAttackCriticalHelperEv"
- "mac" "@_ZN13CTFWeaponBase26CalcIsAttackCriticalHelperEv"
- "windows" "\x55\x8B\xEC\x83\xEC\x2A\x56\x57\x6A\x00\x68\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\x6A\x00\x8B\xF1\xE8\x2A\x2A\x2A\x2A\x50\xE8\x2A\x2A\x2A\x2A\x8B\xF8\x83\xC4\x2A\x85\xFF\x74\x2A\x8B"
- }
- "CalcCriticalMelee"
- {
- "library" "server"
- "linux" "@_ZN18CTFWeaponBaseMelee26CalcIsAttackCriticalHelperEv"
- "mac" "@_ZN18CTFWeaponBaseMelee26CalcIsAttackCriticalHelperEv"
- "windows" "\x55\x8B\xEC\x51\x53\x56\x8B\xF1\xE8\x2A\x2A\x2A\x2A\x8B\xD8\x85\xDB\x74\x2A\x8B\x03"
- }
- "CalcCriticalBow"
- {
- "library" "server"
- "linux" "@_ZN14CTFCompoundBow26CalcIsAttackCriticalHelperEv"
- "mac" "@_ZN14CTFCompoundBow26CalcIsAttackCriticalHelperEv"
- "windows" "\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x8D\x88\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x84\xC0\x74\x2A\xB0"
- }
- "Regenerate"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x83\xEC\x2A\xF3\x0F\x2A\x2A\x2A\x2A\x2A\x2A\x53\x56\x8B\xF1\x8B"
- "linux" "@_ZN9CTFPlayer10RegenerateEb"
- "mac" "@_ZN9CTFPlayer10RegenerateEb"
- }
- "AddCondition"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x83\xEC\x2A\x53\x56\x57\x8B\x7D\x2A\x8B\xF1\x83\xFF\x2A\x7C\x2A\x8D\x2A\x2A\x8D\x2A\x2A\x2A\x2A\x2A\x89\x2A\x2A\xEB\x2A\x83\xFF\x2A\x7C"
- "linux" "@_ZN15CTFPlayerShared7AddCondE7ETFCondfP11CBaseEntity"
- "mac" "@_ZN15CTFPlayerShared7AddCondE7ETFCondfP11CBaseEntity"
- }
- "RemoveCondition"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x83\xEC\x2A\x53\x56\x8B\x75\x2A\x57\x8B\xF9\x83"
- "linux" "@_ZN15CTFPlayerShared10RemoveCondE7ETFCondb"
- "mac" "@_ZN15CTFPlayerShared10RemoveCondE7ETFCondb"
- }
- "SetPowerplayEnabled"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x80\x2A\x2A\x2A\x56\x57\x8B\xF1\x74\x2A\x80\x2A\x2A\x2A\x2A\x2A\x2A\x74"
- "linux" "@_ZN9CTFPlayer19SetPowerplayEnabledEb"
- "mac" "@_ZN9CTFPlayer19SetPowerplayEnabledEb"
- }
- "SetInWaitingForPlayers"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x56\x8B\xF1\xE8\x2A\x2A\x2A\x2A\x84\xC0\x0F\x85\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A"
- "linux" "@_ZN24CTeamplayRoundBasedRules22SetInWaitingForPlayersEb"
- "mac" "@_ZN24CTeamplayRoundBasedRules22SetInWaitingForPlayersEb"
- }
- "StunPlayer"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x83\xEC\x2A\x56\x8B\xF1\x8B\x86\x2A\x2A\x2A\x2A\x40\x3D\x2A\x2A\x2A\x2A\x0F"
- "linux" "@_ZN15CTFPlayerShared10StunPlayerEffiP9CTFPlayer"
- "mac" "@_ZN15CTFPlayerShared10StunPlayerEffiP9CTFPlayer"
- }
- "IsHolidayActive"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x80\x3D\x2A\x2A\x2A\x2A\x2A\x75\x2A\xE8"
- "linux" "@_Z20UTIL_IsHolidayActivei"
- "mac" "@_Z20UTIL_IsHolidayActivei"
- }
- "MakeBleed"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x83\xEC\x2A\x57\x8B\xF9\x8B\x8F\x2A\x2A\x2A\x2A\x8B\x01\x8B"
- "linux" "@_ZN15CTFPlayerShared9MakeBleedEP9CTFPlayerP13CTFWeaponBasefi"
- "mac" "@_ZN15CTFPlayerShared9MakeBleedEP9CTFPlayerP13CTFWeaponBasefi"
- }
- "IsPlayerInDuel"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x83\xEC\x2A\x8B\x4D\x2A\x33\xC0\x89\x45\x2A\x89\x45"
- "linux" "@_Z21DuelMiniGame_IsInDuelP9CTFPlayer"
- "mac" "@_Z21DuelMiniGame_IsInDuelP9CTFPlayer"
- }
- "CanPlayerTeleport"
- {
- "library" "server"
- "windows" "\x55\x8B\xEC\x53\x8B\x2A\x2A\x56\x8B\xF1\x85\xDB\x74\x2A\x8B\xCB\xE8"
- "linux" "@_ZN17CObjectTeleporter21PlayerCanBeTeleportedEP9CTFPlayer"
- "mac" "@_ZN17CObjectTeleporter21PlayerCanBeTeleportedEP9CTFPlayer"
- }
- }
- "Offsets"
- {
- "ForceRespawn"
- {
- "windows" "323"
- "linux" "324"
- "mac" "324"
- }
- }
- }
-}
diff -r 6ce275678a11 gamedata/sm-tf2.games/game.tf.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gamedata/sm-tf2.games/game.tf.txt Sat Mar 30 15:23:18 2013 +0100
@@ -0,0 +1,141 @@
+/**
+ * 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"
+{
+ "tf"
+ {
+ "Signatures"
+ {
+ "Burn"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x51\x56\x8B\xF1\x8B\x2A\x2A\x2A\x2A\x2A\x8B\x01\x8B\x2A\x2A\x2A\x2A\x2A\xFF\xD2\x84\xC0\x0F\x2A\x2A\x2A\x2A\x2A\x57\x6A\x2A\x8D\x2A\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x84\xC0\x0F\x2A\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x2A\x2A\x2A\xC1\x2A\x2A\x24\x01\x0F\x2A\x2A\x2A\x2A\x2A\x8B"
+ "linux" "@_ZN15CTFPlayerShared4BurnEP9CTFPlayerP13CTFWeaponBase"
+ "mac" "@_ZN15CTFPlayerShared4BurnEP9CTFPlayerP13CTFWeaponBase"
+ }
+ "RemoveDisguise"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x83\xEC\x2A\x53\x56\x57\x8B\xF1\x6A\x2A\x8D\x2A\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x84\xC0"
+ "linux" "@_ZN15CTFPlayerShared14RemoveDisguiseEv"
+ "mac" "@_ZN15CTFPlayerShared14RemoveDisguiseEv"
+ }
+ "Disguise"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x51\x53\x56\x8B\xF1\x8B\x2A\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x8B\xD8\x8B"
+ "linux" "@_ZN15CTFPlayerShared8DisguiseEiiP9CTFPlayerb"
+ "mac" "@_ZN15CTFPlayerShared8DisguiseEiiP9CTFPlayerb"
+ }
+ "CalcCritical"
+ {
+ "library" "server"
+ "linux" "@_ZN13CTFWeaponBase26CalcIsAttackCriticalHelperEv"
+ "mac" "@_ZN13CTFWeaponBase26CalcIsAttackCriticalHelperEv"
+ "windows" "\x55\x8B\xEC\x83\xEC\x2A\x56\x57\x6A\x00\x68\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\x6A\x00\x8B\xF1\xE8\x2A\x2A\x2A\x2A\x50\xE8\x2A\x2A\x2A\x2A\x8B\xF8\x83\xC4\x2A\x85\xFF\x74\x2A\x8B"
+ }
+ "CalcCriticalMelee"
+ {
+ "library" "server"
+ "linux" "@_ZN18CTFWeaponBaseMelee26CalcIsAttackCriticalHelperEv"
+ "mac" "@_ZN18CTFWeaponBaseMelee26CalcIsAttackCriticalHelperEv"
+ "windows" "\x55\x8B\xEC\x51\x53\x56\x8B\xF1\xE8\x2A\x2A\x2A\x2A\x8B\xD8\x85\xDB\x74\x2A\x8B\x03"
+ }
+ "CalcCriticalBow"
+ {
+ "library" "server"
+ "linux" "@_ZN14CTFCompoundBow26CalcIsAttackCriticalHelperEv"
+ "mac" "@_ZN14CTFCompoundBow26CalcIsAttackCriticalHelperEv"
+ "windows" "\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x8D\x88\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x84\xC0\x74\x2A\xB0"
+ }
+ "Regenerate"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x83\xEC\x2A\xF3\x0F\x2A\x2A\x2A\x2A\x2A\x2A\x53\x56\x8B\xF1\x8B"
+ "linux" "@_ZN9CTFPlayer10RegenerateEb"
+ "mac" "@_ZN9CTFPlayer10RegenerateEb"
+ }
+ "AddCondition"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x83\xEC\x2A\x53\x56\x57\x8B\x7D\x2A\x8B\xF1\x83\xFF\x2A\x7C\x2A\x8D\x2A\x2A\x8D\x2A\x2A\x2A\x2A\x2A\x89\x2A\x2A\xEB\x2A\x83\xFF\x2A\x7C"
+ "linux" "@_ZN15CTFPlayerShared7AddCondE7ETFCondfP11CBaseEntity"
+ "mac" "@_ZN15CTFPlayerShared7AddCondE7ETFCondfP11CBaseEntity"
+ }
+ "RemoveCondition"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x83\xEC\x2A\x53\x56\x8B\x75\x2A\x57\x8B\xF9\x83"
+ "linux" "@_ZN15CTFPlayerShared10RemoveCondE7ETFCondb"
+ "mac" "@_ZN15CTFPlayerShared10RemoveCondE7ETFCondb"
+ }
+ "SetPowerplayEnabled"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x80\x2A\x2A\x2A\x56\x57\x8B\xF1\x74\x2A\x80\x2A\x2A\x2A\x2A\x2A\x2A\x74"
+ "linux" "@_ZN9CTFPlayer19SetPowerplayEnabledEb"
+ "mac" "@_ZN9CTFPlayer19SetPowerplayEnabledEb"
+ }
+ "SetInWaitingForPlayers"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x56\x8B\xF1\xE8\x2A\x2A\x2A\x2A\x84\xC0\x0F\x85\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A"
+ "linux" "@_ZN24CTeamplayRoundBasedRules22SetInWaitingForPlayersEb"
+ "mac" "@_ZN24CTeamplayRoundBasedRules22SetInWaitingForPlayersEb"
+ }
+ "StunPlayer"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x83\xEC\x2A\x56\x8B\xF1\x8B\x86\x2A\x2A\x2A\x2A\x40\x3D\x2A\x2A\x2A\x2A\x0F"
+ "linux" "@_ZN15CTFPlayerShared10StunPlayerEffiP9CTFPlayer"
+ "mac" "@_ZN15CTFPlayerShared10StunPlayerEffiP9CTFPlayer"
+ }
+ "IsHolidayActive"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x80\x3D\x2A\x2A\x2A\x2A\x2A\x75\x2A\xE8"
+ "linux" "@_Z20UTIL_IsHolidayActivei"
+ "mac" "@_Z20UTIL_IsHolidayActivei"
+ }
+ "MakeBleed"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x83\xEC\x2A\x57\x8B\xF9\x8B\x8F\x2A\x2A\x2A\x2A\x8B\x01\x8B"
+ "linux" "@_ZN15CTFPlayerShared9MakeBleedEP9CTFPlayerP13CTFWeaponBasefi"
+ "mac" "@_ZN15CTFPlayerShared9MakeBleedEP9CTFPlayerP13CTFWeaponBasefi"
+ }
+ "IsPlayerInDuel"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x83\xEC\x2A\x8B\x4D\x2A\x33\xC0\x89\x45\x2A\x89\x45"
+ "linux" "@_Z21DuelMiniGame_IsInDuelP9CTFPlayer"
+ "mac" "@_Z21DuelMiniGame_IsInDuelP9CTFPlayer"
+ }
+ "CanPlayerTeleport"
+ {
+ "library" "server"
+ "windows" "\x55\x8B\xEC\x53\x8B\x2A\x2A\x56\x8B\xF1\x85\xDB\x74\x2A\x8B\xCB\xE8"
+ "linux" "@_ZN17CObjectTeleporter21PlayerCanBeTeleportedEP9CTFPlayer"
+ "mac" "@_ZN17CObjectTeleporter21PlayerCanBeTeleportedEP9CTFPlayer"
+ }
+ }
+ "Offsets"
+ {
+ "ForceRespawn"
+ {
+ "windows" "323"
+ "linux" "324"
+ "mac" "324"
+ }
+ }
+ }
+}
diff -r 6ce275678a11 gamedata/sm-tf2.games/master.games.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gamedata/sm-tf2.games/master.games.txt Sat Mar 30 15:23:18 2013 +0100
@@ -0,0 +1,18 @@
+/**
+ * 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)
+ */
+
+"Game Master"
+{
+ "game.tf.txt"
+ {
+ "game" "tf"
+ }
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment