Resident Evil 4 [RB4E08]

Started by tgrokz, May 12, 2009, 12:46:00 AM

Previous topic - Next topic

dcx2

Press 1 + 2 at inventory screen to get 999 of all items [DCX2]
C27721F8 00000005
3D808032 618CFF1A
A18C0000 2C0C0300
4082000C 398003E7
B1960002 28000001
60000000 00000000
This button activator only works in the inventory screen.  Press 1 and 2 and you'll get 999 of every item in the inventory.  Everything except the ammo in guns, scopes, stocks, etc.

It turns out that item counts are actually 16-bit values, so their max is at least 32,000.  However, the game only displays the hundreds/tens/ones digits.  The other digits are still there, they just aren't displayed.  So you can set the max items to 7FFF (or maybe even FFFF!) if you don't mind not knowing how many items you actually have.

Andmo25

For the 7FFF would I need to edit the inventory code, the 127 max code or both? ???

dcx2

When you pick up items, or move items in the inventory, or things of that nature, the game goes through a table and determines how many you are allowed to stack of that item.  The "127 (max)" code over-rides the table and says that if it's less than 127 = 0x7F, make it 127.

The inventory code sortof "cheats"; it doesn't look up the table.  That's why it can give you 999 = 0x3E7, when the max item code was 127.  However, in practice, the (max) code should be the same value as the inventory code.  If the inventory code is bigger, some weird things might happen when you pick up items or try to stack other items etc.

I think I may have found out how to make infinite grenades, like infinite ammo.  But every healing item is a different instruction to patch. =(

dcx2

How's that item code working out for you?

I have the button activated non-Leon speed code now.

czb = normal speed, czup = 2x speed, czdown = 1/8x speed [DCX2]
4E00000C 00000000
C21518F8 00000003
2C000000 3D803E00
41810008 3D803F80
91830298 00000000
2832FF1A 00006400
14000000 3D803F80
2832FF1B 00006008
14000000 3D804000
2832FF1B 00006004
14000000 3D803E00
E0000000 80008000

Now you can make the merchant go faster, and then switch the enemies back to slower.  Or if you want more challenge, make the enemies faster too....

Andmo25

#79
It's working great I maxed out a flash grenade and tried to sell it but it can only display 4999 at a time and I edited the code to 64999 items so every time I tried to sell all of them there was just more it was kinda funny. I'll try that speed code see how it works out for me. By the way thanks for your hard work.

Andmo25

Also are you going to upload them to geckocodes.org or are you going to test them a little more?

dcx2

I will eventually post them to geckocodes.  Your feedback is valuable though ...it takes time to write hacks and sometimes I can't test them as much as I would like.  For instance I didn't notice the merchant problem. Your tests with the item maxes is helpful too.  ^_^

Andmo25

The 1/8th speed code conflicts with C+Z+Down to kill your self, maybe move it to right and left on the d pad?

Andmo25

Besides that little problem it works fine. To test how much an item can hold, could I edit that extra 0 in the inventory code to a number or would it not work?

Press 1 + 2 at inventory screen to get 999 of all items [DCX2]
C27721F8 00000005
3D808032 618CFF1A
A18C0000 2C0C0300
4082000C 398FFFFF
B1960002 28000001
60000000 00000000

Also did you edit the code to not effect the merchant? Hope you don't mind me editing but, would this code be correct?

C+Z+B = normal speed, C+Z+A = 1.5 speed, C+Z+Right = 2x speed, C+Z+Left = 1/8x speed [DCX2]
4E00000C 00000000
C21518F8 00000003
2C000000 3D803E00
41810008 3D803F80
91830298 00000000
2832FF1A 00006400
14000000 3D803F80
2832FF1B 00006002
14000000 3D804000
2832FF1B 00006001
14000000 3D803E00
2832FF1B 00006800
14000000 3D803FC0
E0000000 80008000

dcx2

Quote from: Andmo25 on October 04, 2010, 04:25:26 AM
Besides that little problem it works fine. To test how much an item can hold, could I edit that extra 0 in the inventory code to a number or would it not work?

Press 1 + 2 at inventory screen to get 999 of all items [DCX2]
C27721F8 00000005
3D808032 618CFF1A
A18C0000 2C0C0300
4082000C 398FFFFF
B1960002 28000001
60000000 00000000
Nope, you absolutely can't do that.  ASM instructions only have 16-bit operands, so you only get 4 letters, i.e. FFFF


QuoteAlso did you edit the code to not effect the merchant? Hope you don't mind me editing but, would this code be correct?

C+Z+B = normal speed, C+Z+A = 1.5 speed, C+Z+Right = 2x speed, C+Z+Left = 1/8x speed [DCX2]
4E00000C 00000000
C21518F8 00000003
2C000000 3D803E00
41810008 3D803F80
91830298 00000000
2832FF1A 00006400
14000000 3D803F80
2832FF1B 00006002
14000000 3D804000
2832FF1B 00006001
14000000 3D803E00
2832FF1B 00006800
14000000 3D803FC0
E0000000 80008000
Heeey, good job.  I hesitated to use cza because you end up knifing, and if you do it in front of a merchant you can kill him.

There's nothing in the code that tries to determine whether it's affecting the merchant or not.

Andmo25

Quote from: dcx2 on May 15, 2010, 06:30:07 AM
Hm...a rapid fire button activator might be nice.  You don't want to shoot too fast, or you start missing enemies because they're dead while you're still shooting.

Sorry last post (I think) for now anyways I was using this code

Hold Z to run 2x faster [dcx2]
C211CF3C 00000006
3D808032 618CFF1A
A18C0000 718C2000
4182000C 3D804000
48000008 3D803F80
919F0298 80030044
60000000 00000000

and when holding z and shooting I got the gun to go rapid fire. I was using the tmp so I wasn't so sure but then I switched to the handcannon and it was definitely going 2x. I don't think your looking for it anymore. Just incase you were having trouble looking for the rapid fire code, might help.

Andmo25

Quote from: dcx2 on October 04, 2010, 05:01:01 AM
There's nothing in the code that tries to determine whether it's affecting the merchant or not.

Ooo ok, the merchant wasn't effected today while I was playing with 1/8th.

Andmo25

@dcx2 dude just checked your local time 4:30 get some sleep. :D

Quote from: dcx2 on October 04, 2010, 05:01:01 AM
I hesitated to use cza because you end up knifing, and if you do it in front of a merchant you can kill him.

True should change it to something else C+Z+Up that one was to see if I could figure out the code. I'm starting to read and learn about coding.

dcx2

That doesn't show local time.  It's not 4:30 where I am.  lol.

Yeah, button activators are easy thanks to this one page on the code database.

http://geckocodes.org/index.php?arsenal=2

Andmo25

Yeah I used that for the first time and a speed code generator, anyways heres the updated code.... I think.

C+Z+B = normal speed, C+Z+Up = 1.5 speed, C+Z+Right = 2x speed, C+Z+Left = 1/8x speed [DCX2]
4E00000C 00000000
C21518F8 00000003
2C000000 3D803E00
41810008 3D803F80
91830298 00000000
2832FF1A 00006400
14000000 3D803F80
2832FF1B 00006002
14000000 3D804000
2832FF1B 00006001
14000000 3D803E00
2832FF1B 00006008
14000000 3D803FC0
E0000000 80008000

Also the 2x thing I can only get it to work sometimes (like 1 out of 10)