From 6158433ed364328029bb8f722777d939c7d02f87 Mon Sep 17 00:00:00 2001 From: duncathan Date: Thu, 25 Mar 2021 19:12:53 -0600 Subject: [PATCH] adds copies of hacks used --- cs-hacks/Infinite Orgs/InfiniOrg.xml | 107 ++++++++++++++++++ cs-hacks/InstantTextDisplay/AutoSpeedText.xml | 48 ++++++++ cs-hacks/RunWhenLosingFocus/gameFocus.xml | 17 +++ .../Titlescreen_Hash_Display_Patch.txt | 99 ++++++++++++++++ 4 files changed, 271 insertions(+) create mode 100644 cs-hacks/Infinite Orgs/InfiniOrg.xml create mode 100644 cs-hacks/InstantTextDisplay/AutoSpeedText.xml create mode 100644 cs-hacks/RunWhenLosingFocus/gameFocus.xml create mode 100644 cs-hacks/TitleScreenHash/Titlescreen_Hash_Display_Patch.txt diff --git a/cs-hacks/Infinite Orgs/InfiniOrg.xml b/cs-hacks/Infinite Orgs/InfiniOrg.xml new file mode 100644 index 0000000..8446477 --- /dev/null +++ b/cs-hacks/Infinite Orgs/InfiniOrg.xml @@ -0,0 +1,107 @@ + + + + + + + Causes the game to load music and instruments from files instead of resources. + This effectively allows for near unlimited music files in a mod. + + + <CMUabcd will now change the current music to "data\Orgs\abcd.org". + "abcd" can be any ascii character, and letters are case sensitive. + It will also load the instruments within "data\Orgs\abcd.dat" as a wave100 file. + + + If the "*.dat" file is not found, the game will simply skip loading it. + However, if the "*.org" file is not found, the game may crash. + The default/empty org is "0000.org", and the default wave100 is "0000.dat". + + + + + + New *.org size limit (bytes) + + 1048576 + + + + + + + 89 85 9C FE FF FF 85 C0 74 58 3D 28 23 00 00 7D + 0F 6A 04 8F 85 E4 FE FF FF 68 30 30 30 32 EB 47 + 3D E0 2E 00 00 7D 0F 6A 03 8F 85 E4 FE FF FF 68 + 30 30 34 31 EB 31 3D 98 3A 00 00 7D 0F 6A 02 8F + 85 E4 FE FF FF 68 30 30 34 30 EB 1B 3D 50 46 00 + 00 7D 0F 6A 01 8F 85 E4 FE FF FF 68 30 30 33 36 + EB 05 68 30 30 32 34 E8 80 10 01 00 58 90 90 90 + 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 + 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 + 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 + 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 + 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 + 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 + 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 + + + 2E 64 61 74 00 CC CC 60 89 E5 8B 7D 24 6A 7F 59 + 31 C0 89 CA F2 AE E3 47 29 CA 89 D1 8B 75 24 BF + B9 4F 49 00 F3 A4 68 48 C7 48 00 68 B0 4F 49 00 + 6A 05 59 E8 50 8F 00 00 F3 A4 E8 45 5C 06 00 85 + C0 74 1C 50 93 6A 01 68 00 64 00 00 68 00 E7 49 + 00 E8 86 5B 06 00 53 E8 46 5A 06 00 31 C0 40 89 + 45 1C 89 EC 61 C3 CC B8 F4 57 4A 00 89 08 C3 CC + CC CC CC CC CC CC CC + + + 60 8B EC 81 EC 9C 00 00 00 A1 20 8B 49 00 89 45 + EC 56 89 8D 64 FF FF FF C6 45 F7 00 68 00 00 10 + 00 E8 AD 58 06 00 89 45 FC FF 75 24 E8 7F F8 FF + FF 6A 05 BE A3 C0 41 00 59 F3 A4 68 48 C7 48 00 + 68 B0 4F 49 00 E8 E3 54 06 00 93 31 C0 40 E8 E8 + 87 00 00 + + + 8B E5 61 C2 04 00 2E 6F 72 67 00 CC + + + 30 30 30 30 00 CC CC CC CC CC CC CC CC CC CC 55 + 8B EC 8B 0D E8 57 4A 00 E3 21 68 B1 C6 41 00 E8 + AB EC FF FF 85 C0 75 04 33 C0 EB 0F B9 18 4E 4A + 00 E8 69 EF FF FF B8 01 00 00 00 C9 C3 + + + 55 8B EC 8B 4D 08 E3 0A 3B 0D F4 57 4A 00 75 02 + C9 C3 E8 79 B8 FF FF BA F4 57 4A 00 89 42 04 8B + 0A 89 4A 08 E8 E7 B8 FF FF 83 7D 08 00 75 07 C7 + 45 08 30 30 30 30 E8 1F 34 00 00 9B E8 CF B7 FF + FF 83 C4 04 6A 64 E8 95 B8 FF FF 83 C4 04 6A 00 + E8 FB B7 FF FF 83 C4 04 E8 53 B8 FF FF 8B 4D 08 + E8 9B A4 FF FF C9 C3 CC + + + 60 8B EC E8 18 B8 FF FF 97 E8 92 B8 FF FF BE F4 + 57 4A 00 8B 1E 8B 46 08 B9 A8 4F 49 00 89 01 C6 + 41 04 00 51 E8 77 B7 FF FF FF 76 04 E8 AF B7 FF + FF 6A 64 E8 38 B8 FF FF E8 03 B8 FF FF 8B 46 08 + 89 06 89 7E 08 89 EC 61 C3 + + + B9 E0 5A 4A 00 8B 51 F8 03 11 81 3A 3C 43 4D 55 + 75 60 FF 72 04 E8 EC CB FF FF 58 83 05 E0 5A 4A + 00 08 E9 CA E2 FF FF BE 79 B3 41 00 4F 89 7D 00 + C3 8B 75 FC 3C 01 75 0F 53 50 50 56 E8 3A CC 05 + 00 46 83 C4 10 EB ED 8B 0D D4 4F 49 00 E3 07 51 + E8 5C CF 05 00 59 8B 55 FC 89 15 D4 4F 49 00 C3 + 5A B9 A8 4F 49 00 8B 45 08 89 01 C6 41 04 00 51 + FF E2 + + + 64 61 74 61 5C 4F 72 67 5C 51 57 45 52 54 59 55 + 49 4F 50 2E 64 61 74 00 + + + + \ No newline at end of file diff --git a/cs-hacks/InstantTextDisplay/AutoSpeedText.xml b/cs-hacks/InstantTextDisplay/AutoSpeedText.xml new file mode 100644 index 0000000..714e89f --- /dev/null +++ b/cs-hacks/InstantTextDisplay/AutoSpeedText.xml @@ -0,0 +1,48 @@ + + + + + + + Causes message box text to scroll instantly, displaying = signs as circles. + + + + + + FE 45 D4 C3 + + + 6A 01 5A B9 28 36 49 00 A1 10 E2 49 00 F6 C4 02 + 71 24 85 01 74 03 C1 F2 02 85 41 04 74 03 C1 F2 + 02 B9 FC 5A 4A 00 01 11 83 39 04 0F 8C 98 31 00 + 00 83 21 00 EB 1B 42 EB DD 90 90 90 90 90 90 90 + 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 + 90 C7 45 D4 00 00 00 00 83 7D D4 00 0F 85 9C 2F + 00 00 8B 0D D8 5A 4A 00 03 0D E0 5A 4A 00 0F BE + 11 83 FA 3C 0F 85 BF 2C 00 00 81 39 3C 45 4E 44 + 75 71 C6 05 DC 5A 4A 00 00 80 25 38 E6 49 00 FE + 80 0D E8 E1 49 00 03 83 25 0C 5B 4A 00 00 6A 01 + 8F 45 D4 EB B3 90 90 90 90 90 90 90 90 B9 28 36 + 49 00 A1 10 E2 49 00 F6 C4 02 71 09 85 01 74 12 + 85 41 04 74 0D 6A 00 6A 00 E8 0F 00 00 00 89 45 + D4 C3 6A 01 58 EB F7 90 90 90 90 90 90 B9 B1 37 + 49 00 8B 44 E4 08 80 09 01 9B C2 08 00 90 90 90 + 90 90 90 + + + 00 + + + 00 + + + E8 B6 D0 FF FF D9 D0 E9 5A D0 FF FF E9 C6 01 00 00 + + + E9 00 00 00 00 80 3D DC 5A 4A 00 00 75 0E 83 25 E8 E1 49 00 FB + 65 66 0F 19 C4 + + + + \ No newline at end of file diff --git a/cs-hacks/RunWhenLosingFocus/gameFocus.xml b/cs-hacks/RunWhenLosingFocus/gameFocus.xml new file mode 100644 index 0000000..aae9a80 --- /dev/null +++ b/cs-hacks/RunWhenLosingFocus/gameFocus.xml @@ -0,0 +1,17 @@ + + + + + Prevents the game stopping when in the background + + + 71 + + + C3 + + + C3 + + + \ No newline at end of file diff --git a/cs-hacks/TitleScreenHash/Titlescreen_Hash_Display_Patch.txt b/cs-hacks/TitleScreenHash/Titlescreen_Hash_Display_Patch.txt new file mode 100644 index 0000000..52a86ab --- /dev/null +++ b/cs-hacks/TitleScreenHash/Titlescreen_Hash_Display_Patch.txt @@ -0,0 +1,99 @@ +0x434101 +8B 75 08 8B 46 10 01 46 08 8B 46 14 01 46 0C 6A +20 59 3E 83 A4 8D 7C FF FF FF 00 E2 F5 C6 45 C0 +20 C6 45 C4 20 C6 45 C8 30 C6 45 CC 30 C6 45 D0 +30 C6 45 D4 20 C6 45 D8 40 C6 45 DC 30 C6 45 E0 +40 C6 45 E4 20 C6 45 E8 50 C6 45 EC 30 C6 45 F0 +50 C6 45 F4 20 C6 45 F8 60 C6 45 FC 30 C6 45 80 +20 C6 45 84 30 C6 45 88 30 C6 45 8C 40 C6 45 90 +30 C6 45 94 30 C6 45 98 40 C6 45 9C 40 C6 45 A0 +40 C6 45 A4 30 C6 45 A8 50 C6 45 AC 40 C6 45 B0 +50 C6 45 B4 30 C6 45 B8 60 C6 45 BC 40 FF 46 64 +83 7E 64 01 7E 07 83 66 64 00 FF 46 68 83 7E 68 +02 7E 04 83 66 68 00 89 F7 83 C7 54 8B 46 68 C1 +E0 04 83 7E 4C 00 75 06 8D 74 05 C0 EB 04 8D 74 +05 80 6A 04 59 F3 A5 C9 C3 CC CC CC CC CC CC 64 +61 74 61 5C 68 61 73 68 2E 74 78 74 00 CC CC C8 +34 01 00 6A 02 6A 05 E8 04 35 05 00 83 C4 04 89 +45 DC 68 E0 41 43 00 68 28 E3 49 00 68 40 C7 48 +00 8D 85 CC FE FF FF 50 E8 F2 CD 04 00 83 C4 10 +68 8C C2 48 00 8D 85 CC FE FF FF 50 E8 CB CD 04 +00 83 C4 08 85 C0 75 05 8B 45 DC C9 C3 50 6A 01 +6A 20 8D 45 E0 50 E8 09 CD 04 00 83 C4 0C E8 C7 +CB 04 00 83 C4 04 31 C9 31 D2 31 DB 30 E4 8A 44 +29 E0 3C 30 72 0F 3C 39 77 0B 2C 30 6B DB 0A 66 +01 C3 41 EB E9 8B 45 DC 66 89 1C 50 41 42 83 FA +05 7C D7 C9 C3 CC CC CC CC CC CC CC CC CC CC CC +CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC +CC CC CC CC CC CC CC CC CC + +0x433CC7 +43 +0x433EFB +8B 75 08 83 46 14 40 81 7E 14 FF 05 00 00 7E 07 +C7 46 14 FF 05 00 00 8B 46 10 01 46 08 8B 46 14 +01 46 0C 8B 45 08 89 F7 83 C7 54 8B 46 68 C1 E0 +04 83 7E 4C 00 75 06 8D 74 05 D0 EB 04 8D 74 05 +A0 6A 04 59 F3 A5 C9 C3 CB 3C 43 00 E7 3C 43 00 +59 3E 43 00 BC 3E 43 00 CC CC CC CC CC CC CC CC +CC CC CC CC CC C8 10 00 00 6A 41 5B 6A 05 59 8B +75 08 0F B7 06 6A 08 5F 31 D2 F7 F7 6B D2 20 6B +C0 10 89 55 F0 89 45 F4 83 C2 20 83 C0 10 89 55 +F8 89 45 FC 51 6A 08 8D 45 F0 50 6A 08 53 68 1C +F9 48 00 E8 1D 84 FD FF 5B 5B 83 C4 0C 59 83 C3 +28 83 C6 02 E2 BC C9 C3 CC CC + +0x40F9B5 +F4 +0x40FD8A +E8 61 44 02 00 89 85 0C FE FF FF 83 A5 64 FF FF +FF 00 83 A5 E4 FE FF FF 00 83 A5 9C FE FF FF 00 +68 20 20 20 00 E8 FC CA FF FF 89 45 C0 58 +0x40FF0D +55 +0x40FF52 +10 +0x40FF8F +2A +0x40FF99 +20 +0x410141 +CF +0x4102FB +FF 75 C4 8D 85 FC FE FF FF 50 FF B5 0C FF FF FF +6A 74 68 1C F9 48 00 E8 A9 C0 FF FF 83 C4 14 6A +00 6A 00 E8 9D A8 FF FF 83 C4 08 FF B5 0C FE FF +FF E8 2F 3C 02 00 83 C4 04 83 BD 9C FE FF FF 00 +74 0C 6A 08 6A 10 E8 EA A0 00 00 83 C4 04 E8 22 +20 00 00 FF 35 58 E4 49 00 E8 E7 AF FF FF 83 C4 +04 85 C0 0F 85 A0 FB FF FF EB 57 6A 00 E8 73 0B +01 00 83 C4 04 FF 15 24 C1 48 00 89 85 E8 FE FF +FF FF 15 24 C1 48 00 8B 8D E8 FE FF FF 81 C1 E8 +03 00 00 39 C8 73 28 6A 00 68 1C F9 48 00 E8 42 +C6 FF FF 83 C4 08 E8 CA 1F 00 00 FF 35 58 E4 49 +00 E8 8F AF FF FF 83 C4 04 85 C0 75 C4 EB 03 6A +03 58 50 FF B5 0C FE FF FF E8 C2 0E 07 00 83 C4 +04 58 C9 C3 45 01 41 00 98 01 41 00 EB 01 41 00 +3E 02 41 00 8E 02 41 00 CC CC CC CC CC CC CC CC +CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC +CC CC CC CC CC + +----------Specifications: + +The hack reads the first 5 item numbers listed in data\hash.txt, and displays them on the title screen in order. +The item numbers in data\hash.txt can be separated by any non-numerical character. +If data\hash.txt does not exist, the title screen will display item 0 in all 5 slots. + +The hack optimises NPCs 64 and 65's velocity and frame code. + +004341F0 - load items from hash.txt +00433F60 - render title screen items + +----------Limitations: + +If you enter item numbers in hash.txt over 65535, it will not work properly. +If hash.txt is more than 31 bytes large, a buffer will overflow, and the game will likely crash. That said, due to the previous limitation, this should never happen. + +----------Info: + +This is version 1.2 of the "Titlescreen Hash Display" hack, created by zxin and commissioned by duncathan_salt. \ No newline at end of file