New Amazing HEX Codes for your game.
Jul 12, 2022 14:15:25 GMT 10
kTeo, CORAZON, and 7 more like this
Post by Futon on Jul 12, 2022 14:15:25 GMT 10
New HEX Codes For Your Game
(Binary editing to improve game functions)
(Binary editing to improve game functions)
Hello my name is Futon, today I have some codes that will allow for some extra functions for your game,
First of all, I would like to mention that almost all of these edits were provided to me by Qingsheng with help of Emoose, with some of them from kTeo and myself.
To edit makes these edits work we will need to edit the bio4.exe via HEX editing
(please make a backup of your bio4.exe first)
Most of the edits work by simply jumping to an address in the binary which we can do with CTRL + G (if you are using HxD hex editor). When we press CTRL + G, a small window with a box will appear where we can paste the address. When we hit enter, the cursor will jump to that address in the hex editor. Once at this address we will paste the code that is supplied for that address.
It is very important though that we do not change the overall length of the bio4.exe file, so when we are pasting it is important that we select the right about of bytes prior to pasting, to ensure that we are writing the correct amount of data. The easiest way to do this is to paste the code in a new file and then select all of the bytes (CTRL + A). At the bottom of the hex editor it will show us the length (amount of bytes) selected. We then know how many bytes to select first in our bio4.exe file before pasting to file.
Here is an example (In this case I will use the 'Random Ptas Quantity' edit for the example.
I will represent the Address with green and the Code with yellow to make it easier to understand:
-------------------------------------------------------------
Random Ptas Quantity
Go to address: 1B87FC
Paste:
BE 0A 00 00 00 E9 91 00 00 00 90 90 90 90
--------------------------------------------------------------
So in this example we need to copy the address 1B87FC and then use CTRL + G, and paste this copied address in the box that appears:
Once we do this we will see that our cursor has jumped to that address:
Next we copy the code, and paste it into a new file, then select all (CTRL + A) and view the count:
After that we go back to the bio4.exe in the hex editor and select the code we are going to overwrite. In this case we select 'E' length of bytes:
Next we simply paste the copied code over the original: BE 0A 00 00 00 E9 91 00 00 00 90 90 90 90.
0A Indicates the number of randomly dropped gold coins. 0A will drop 100 ptas. If you change 0A to 08 will drop 80 ptas.
More Edits
------------------------------------------
Extended Inventory Case
This allows the player to place inventory items outside the case and equip weapons(you will be able to keep the items out of the case and use like a new inventory):
Go to address: 38AF45
paste:
EB
Go to address: 38AF80
paste:
EB 09
Go to address: 38AE4E
paste:
E9 80 05 00 00 90
Go to address: 38AFE3
paste:
EB
------------------------------------------
Drop Less Money and Drop More Ammo
Go to address: 307890
paste:
31 C9 90
---------------------------------------------------------
Remove Random Drops
Go to address:1BD1D0
paste:
c3
------------------------------------------
Remove Luis from cabin
Go to address:4B4178
paste:
E9 EC 00 00 00
------------------------------------------
Drop Items 100%
Go to address:1B8120
paste:
E9 0A 02 00 00 90
------------------------------------------
Fix AEV if have too many Enemies Crash
(This edit fixes a crash when there are too many enemies on the map and the player interacts with and AEV event).
In this next edit we will use two methods of replacing data. First we will use a new method using the 'Find' functions, and then we will use the previously explained method of jumping to an Address for another part of the edit.
Lets look at the next method of replacing data. We will search for unique arrays of bytes and simply paste over them. To do this, we start by pressing CTRL + F to bring up the 'Find' window. Once open, click on the 'Hex-Values' tab, and then change the 'Search direction' selection to 'All':
After this we copy the Code and paste it in the search window, then press 'OK'. The search results will automatically highlight (select) the code that is to be overwritten. Next we simply copy the code, and paste it over the selected code (CTRL+V)
Here is the code for this edit:
Find:
F6 06 02 74 09 50 E8 AD 06 D6 FF 83 C4 04 8B 4E
Change To:
EB 67 90 74 09 50 E8 AD 06 D6 FF 83 C4 04 8B 4E
Go to address: 002AD010
Paste:
50 A1 00 0E 2E 10 05 5A CA 00 00 39 C6 75 03 C6 06 08 58 F6 06 02 EB 82
------------------------------------------
Plaga Spawn Percentage
Find: F7 F9 83 FA 05 7D 9E
05 = Percentage // if you change 05 to 0A is 100% Plaga Spawn Chance
-----------------------------------------
r100 Enemy Crash Fix
(This edit fixes the crash when you kill too many enemies before the cutscene in r100 in the House)
Go to address: 4DBA59
paste:
EB 7B 90 90 90 90 90
Go to address: 4DB12A
paste:
EB
------------------------------------------
Fix Enemies disappearing in Village r101 After Bell
Go to address: 4C5B28
paste:
90 90 90 90 90
Go to address: 4C5B49
paste:
EB 6D
-----------------------------------------
r202 Cannon Fix
(This edit fixes enemies disappearing in Castle After Cannon in t202)
Go to address: 498640
paste:
90 90 90 90 90
Go to address: 49864A
paste:
EB
------------------------------------------
Disable Spiders, Bats & Fish
Go to address: 4D0123,
paste:
90 90 90 90 90
------------------------------------------
Item Stock with 9999 capacity
(I don't recommend use that method to increase item stock limit, as kTeo has created some good tutorials about this, but here is anyway)
Go to address: 28B635
paste:
83 FE 06 74 10 83 FE 19 74 0B 83 FE 1C 74 06 66 C7 45 CC FF FF 0F B7 5D CC EB 45
Go to address: 28B691
paste:
EB A2 90 90 89 5D DC EB 19
Go to address: 30766A
paste:
E9 11 01 00 00 90
Go to address: 307780
paste:
66 83 FF 05 74 56 66 83 FF 15 74 50 66 83 FF 08 74 4A 66 83 FF 09 74 44 66 83 FF 0A 74 3E 66 83 FF 13 74 38 66 81 FF 95 00 74 31 66 81 FF 97 00 74 2A 66 83 FF 12 74 24 66 83 FF 13 74 1E 66 83 FF 14 74 18 66 83 FF 16 74 12 66 81 FF A8 00 74 0B 8B 55 08 8B 75 F4 E9 94 FE FF FF E9 2E FF FF FF
Go to address:28BEE2
paste:
EB
Go to address: 304407
paste:
FF FF
------------------------------------------
Punisher only appear in the merchant after 15 Broken medallions
Go to address:2CE49A
paste:
0F
------------------------------------------
Enable Matilda Quick-turn
Go to address: 515C3D
paste:
8B EC E8 DC C8 DD FF 8B 86 D8 07 00 00 D9 58 30 EB 04 CC 55 EB EA
Go to address: 516640
paste:
E9 0B 4A FE FF 90
------------------------------------------
Allow U3 toAppear in a second mortal form
Go to address: 10355F
paste:
66 83 BF AC 4F 00 00 00 75 04 8B E5 5D C3 C7 86 9B 0D 00 00 02 00 00 00 8B E5 5D C3
------------------------------------------
Allow U3 death in place rather than outside
Go to address: FE9C2
paste:
E8 B5 CC 15 00
------------------------------------------
Allow Saddler death animation, (and we can open the inventory)
Go to address: 16D647
paste:
90 90 90 90 90 90
Go to address: 16D657
paste:
90 90 90 90 90
Go to address: 16D5E8
paste:
00
------------------------------------------
Saddler Death Count and no resurrect fix
(Saddler enter in Death Count and he will not resurrect after death. This also enables Saddler to drop Trophy)
Go to address: 16D756
paste:
EB 08
Go to address:16D760
paste:
FE 86 FE 00 00 00 56 E8 74 3B 04 00 56 E8 FE FA 04 00 83 C4 08 5E 5D C3
------------------------------------------
Grey Screen Fix
(fixes grey screen overlay when incompatible enemies are spawned)
Go to address: 2AD664
paste:
00 00 00 00
------------------------------------------
Striker bug Fix
Go to address: 522BE8
paste:
EB
------------------------------------------
Drops never Disappear
Go to address: 2bd349
paste:
90 90 90
------------------------------------------
Maximum Draw Distance
Go to address: 719D54
paste:
99 99 99 79
------------------------------------------
U3 Health linked to ESL
Go to address: 1034CA
paste:
90 90 90 90 90 90 90
------------------------------------------
Regenerator Health linked to ESL
Go to address: 12903E
paste:
90 90 90 90 90 90 90
------------------------------------------
HE Grenade Kill Count
(This edit allows us to edit how many enemies grenade explosion will kill at a time)
Go to address: 285E2D
14 = 20 enemies - (feel free to change)
---------------------------------------------------------