dale home
Posts: 288
|
Post by kTeo on Sept 26, 2020 0:31:25 GMT 10
this is made using HEX EDITOR on your game.exeNOTE: If you're editing 1.1.0, you will need a decompressed exe that you can find here:
www.mediafire.com/file/o4gyjomgwo1xx6j/decompressed+game.rar/file
For compressing your executable so it doesn't get ridiculously large (over 100mb), use UPX packer (only for decompressed file above):
www.mediafire.com/file/m5ghb44ih3irk1z/upx-3.96-win32.rar/filethis is used for changing the maximum capacity of each item for a single slot. for example, change the maximum handgun ammo for each box to be 100 instead of 50.
this can also be used to increase the amount of single unit items such as grenades or sprays. Items stacking offsets (values at int16): Handgun: 02 02 C6 40 03 0A 66 C7 40 04 32 00 8B (for 50 bullets for each ammo box) Shotgun: 40 04 19 00 EB 06 66 C7 40 04 0F 00 8B (for 15 shells for each ammo box) HandCannon: 04 C8 00 5B C3 8B 44 24 0C B9 0A 00 00 (for 10 bullets for each ammo box) Magnum: 04 96 00 5B C3 8B 44 24 0C B9 0A 00 00 (for 10 bullets for each ammo box) Rifle: 14 01 00 00 F6 C4 10 0F 84 4F 0A 00 00 (for 10 bullets for each ammo box) *CRASHES IF CHANGED, i'm not sure this is the actual rifle ammo entry. TMP/Chicago: 40 03 0A 5B C3 8B 44 24 0C B9 64 00 00 (for 100 bullets for each ammo box) (those share the same offset) Arrows: C3 8B 44 24 0C C6 40 02 02 C6 40 03 05 66 C7 40 04 14 00 8B (for 20 arrows for each... arrow?) Bowgun Bolts: 1F 8B 44 24 0C C6 40 02 02 C6 40 03 05 66 C7 40 04 14 00 8B (for 20 bolts for each... bolt?) Explosives (all): 40 02 01 88 48 03 66 89 48 04 5B C3 8B 4C 24 0C B8 01 00 00
Explosives are a little different than the others, since they serve for every type of grenades and RPGs
Health: 03 66 89 48 04 5B C3 8B 4C 24 0C B8 01 00 00
Health items are a little different than the others, since they serve for every type of HP restoring item (fish, sprays, eggs,
herbs, mixed herbs, etc)
*NOTE: keys can also stack, for some reason. i've never explored those values before since i don't think this is useful at all,
but feel free to explore it yourself.*
|
|
Posts: 65
|
Post by Gustavo 2099 on Sept 26, 2020 10:06:07 GMT 10
excelente informacion amigo. muchas gracias
|
|
Code Creator for PS2 and Mods for Resident Evil 4 PS2.
Posts: 21
|
Post by LeonEx on Sept 29, 2020 22:02:48 GMT 10
Muito Bom kTeo, no PS2 o código é universal que modifica a quantidade de itens de cura, granadas e etc...
Somente as munições são separadamente. No PC é um pouco diferente, muito bom tutorial cara Parabéns !!!
|
|
dale home
Posts: 288
|
Post by kTeo on Apr 26, 2021 22:27:26 GMT 10
link for UPX Packer updated. accidentaly deleted it from my MediaFire accout.
|
|
|
Post by azal on Jun 2, 2021 6:35:45 GMT 10
I used HxD to modify the exe file but the mixed herbs don't stack. What values do I need to change? Also, Do these offsets also work for v1.0?
|
|
dale home
Posts: 288
|
Post by kTeo on Jun 2, 2021 22:29:43 GMT 10
I used HxD to modify the exe file but the mixed herbs don't stack. What values do I need to change? Also, Do these offsets also work for v1.0? healing items can only stack when taken from the map, for some reason you can't stack them inside your inventory. And no, those values are different on 1.0 version
|
|
|
Post by azal on Jun 2, 2021 23:46:25 GMT 10
I used HxD to modify the exe file but the mixed herbs don't stack. What values do I need to change? Also, Do these offsets also work for v1.0? healing items can only stack when taken from the map, for some reason you can't stack them inside your inventory. And no, those values are different on 1.0 version Are you sure the values are different in v1.0. Because, I've found all the values mentioned in the first post in v1.0 and edited them so each item stacks to 999. Almost everything works ammo, herbs, grenades, first aid sprays, fish, eggs. Only thing that doesn't work is the rifle ammo if change the value the game crashes after I load the game. Also single herbs stack fine yet if mix herbs they don't stack. Do you know why it is like that?
|
|
dale home
Posts: 288
|
Post by kTeo on Jun 3, 2021 0:09:01 GMT 10
healing items can only stack when taken from the map, for some reason you can't stack them inside your inventory. And no, those values are different on 1.0 version Are you sure the values are different in v1.0. Because, I've found all the values mentioned in the first post in v1.0 and edited them so each item stacks to 999. Almost everything works ammo, herbs, grenades, first aid sprays, fish, eggs. Only thing that doesn't work is the rifle ammo if change the value the game crashes after I load the game. Also single herbs stack fine yet if mix herbs they don't stack. Do you know why it is like that?
oh, my mistake then, i presumed the arrays were different in 1.0 since lots of others are. your herbs are stacking because you're getting them via TAKE prompts. if you do the same to mixed herbs, they will also stack.
|
|
|
Post by azal on Jun 3, 2021 0:16:14 GMT 10
Are you sure the values are different in v1.0. Because, I've found all the values mentioned in the first post in v1.0 and edited them so each item stacks to 999. Almost everything works ammo, herbs, grenades, first aid sprays, fish, eggs. Only thing that doesn't work is the rifle ammo if change the value the game crashes after I load the game. Also single herbs stack fine yet if mix herbs they don't stack. Do you know why it is like that?
oh, my mistake then, i presumed the arrays were different in 1.0 since lots of others are. your herbs are stacking because you're getting them via TAKE prompts. if you do the same to mixed herbs, they will also stack. Yes but you don't find mixed herbs just lying around on the map to use the TAKE prompt on them. So basically I have to combine green, red and yellow herbs and if you combine them in the inventory then they somehow don't stack for whatever reason.
|
|
|
Post by azal on Jun 3, 2021 0:44:36 GMT 10
Also in Explosives and Health you only need to change the last two values 00 00. If you change 01 to any other value then this messes up the related items in the inventory. In this case these items being grenades, herbs and other healing items. So maybe you should change it to this
Explosives (all): 40 02 01 88 48 03 66 89 48 04 5B C3 8B 4C 24 0C B8 01 00 00
Health: 03 66 89 48 04 5B C3 8B 4C 24 0C B8 01 00 00
|
|
|
Post by azal on Jun 3, 2021 0:53:59 GMT 10
Since, I cannot stack mixed herbs when combined in the inventory and can only be stacked if taken using the TAKE prompt from the map. Is there some way if I can drop the mixed herbs from my inventory on to the map and then take the mixed herbs using the TAKE prompt. Maybe this way I can stack the mixed herbs. Though I don't even think if it is even possible to drop items.
|
|
dale home
Posts: 288
|
Post by kTeo on Jun 3, 2021 3:09:18 GMT 10
Also in Explosives and Health you only need to change the last two values 00 00. If you change 01 to any other value then this messes up the related items in the inventory. In this case these items being grenades, herbs and other healing items. So maybe you should change it to this
Explosives (all): 40 02 01 88 48 03 66 89 48 04 5B C3 8B 4C 24 0C B8 01 00 00
Health: 03 66 89 48 04 5B C3 8B 4C 24 0C B8 01 00 00
the stack counter is 1 max which is why the 01 00 is highlighted, maybe it's different on 1.0 since this works fine for me on both UHD and 2007vr.
|
|
dale home
Posts: 288
|
Post by kTeo on Jun 3, 2021 3:13:42 GMT 10
Since, I cannot stack mixed herbs when combined in the inventory and can only be stacked if taken using the TAKE prompt from the map. Is there some way if I can drop the mixed herbs from my inventory on to the map and then take the mixed herbs using the TAKE prompt. Maybe this way I can stack the mixed herbs. Though I don't even think if it is even possible to drop items. a similar thing happened to me when i tried editing chicago and handcannon ammo to be combineable into grenades, the two wouldn't combine since they here considered ammunition (non-combineable item). i found a way to change their item type to healing so they combined normally (USE option avaiable but nothing happened when you tried using it). i've tested before changing healing items for ammunition, explosives, treasure and key types. All of them were stackable but none could be used as a healing, so until now we can't properly stack healing items :\
|
|
|
Post by qingsheng on Jun 3, 2021 10:05:42 GMT 10
|
|
|
Post by qingsheng on Jun 3, 2021 10:08:19 GMT 10
You can check my trainer’s modifications to the explosive stack,There are also rifle bullets, all items can be stacked. The upper limit is 65535
|
|