Resident Evil 4 Wii Edition [RB4P08]

Started by Ghahreman, July 13, 2009, 02:34:59 PM

Previous topic - Next topic

Ghahreman

Can anyone make a code that lets you use the bow and arrow from Jack Krauser's mercenaries game?? and maybe a code to play as Jack Krauser himself in the main game (if the bow and arrow weapon only works for him)

Thanks.

/\/\/\/\/\/\/\/\/\/\/\/\

EDIT: can someone also port this code from NTSC to PAL??
REMOVED UNCREDITED CODE

it would let ppl use their light guns!!!

Ghahreman

and can i add can someone PLEEEEAAAAASSSSSSSSSEEEEEE do these codes?

it is the awesomest game and these codes wud make it even more awesomer :)

Ghahreman

the following is from "dantemugiwara"...

-----
Wesker en modo historia
00337D78 00000005

For PAL

but the thrust punch doesn´t work
-----

anyway to alter this to allow you to use Krauser in story mode? and possibly add a bow and arrow to his inventory? if you could this would be the ULTIMATE game!!! THANKS!!!

dantemugiwara

Quote from: Ghahreman on July 22, 2009, 02:49:27 PM
the following is from "dantemugiwara"...

-----
Wesker en modo historia
00337D78 00000005

For PAL

but the thrust punch doesn´t work
-----

anyway to alter this to allow you to use Krauser in story mode? and possibly add a bow and arrow to his inventory? if you could this would be the ULTIMATE game!!! THANKS!!!

Krausser
00337D78 00000004

I want code for thrust punch

Ghahreman

Quote from: dantemugiwara on July 30, 2009, 11:31:00 PM
Quote from: Ghahreman on July 22, 2009, 02:49:27 PM
the following is from "dantemugiwara"...

-----
Wesker en modo historia
00337D78 00000005

For PAL

but the thrust punch doesn´t work
-----

anyway to alter this to allow you to use Krauser in story mode? and possibly add a bow and arrow to his inventory? if you could this would be the ULTIMATE game!!! THANKS!!!

Krausser
00337D78 00000004

I want code for thrust punch


THANK U SO MUCH!
now all we need is a code to add the bow and arrow to ur inventory.

p.s. it should be noted that the game freezes when entering a cutscene with a hunnigan transmission when u use the Krauser or Wesker cheat. Is there a way around this?

thnx

Ghahreman

can someone please convert the following from NTSC to PAL?

Hold A For Knife, Z To Aim, C To Run, Press B To Shoot (CREDIT: brkirch)
040870E8 540005EF
042D8610 00000020
042D8618 00000040
042D861C 00000200
042D862C 00000100
042D864C 00000200

thanks

Black Knight666


Can someone try to port this code to the PAL version??

Press 1 + 2 for 31,999 of every item in the inventory [dcx2]
C27721F8 00000005
3D808032 618CFF1A
A18C0000 2C0C0300
4082000C 39807CFF
B1960002 28000001
60000000 00000000
Must be in the inventory screen to activate


And can someone be so nice to explain me how this code works? I put the values in XX but for some reason it crashes my game when I use it

Gun Modifier [Deathwolf]
C2248820 00000006
83FB0030 48000048
807F00D4 2C030000
40810038 3803FFFF
3803FFFF 881F003C
2C000000 40820010
60000000 00000000
2031F480 000000A1
06036D14 00000080
40820014 7C062A14
7C602214 88630002
4E800020 38A50006
4200FFE0 38600001
4E800020 88630012
4E800020 9421FFF0
7C0802A6 90010014
38810008 4BFFCB75
80010014 8861000A
7C0803A6 38210010
4E800020 80630018
4E800020 88030007
1031F451 000000XX
04129320 7C9F2378
04129344 BBC10018
0412934C 7C0803A6
041293F8 1C0300E0



XX:

03- Uzi
17- nothing
21- pistole
23- pistole normal
24- pistole normal dämpfer
25- SS waffe
26- SS waffe (stütze)
27- pistole
28- laser
29- revolver
2A- revlover v2
2C- schrot
2D- rollen waffe
2E- sniper
2F- sniper v2
30- Uzi
32- Uzi v2
34- Sturmgewehr
36- klebe granaten pistole
37- revolver v3
38- messer
3E- TMP v2
40- pistole
41- laser
47- schrot
51- sniper (nachtsicht)
52- sniper mit pfeilen
53- schrot - auto
6B- sniper v3
6C- sniper v4
6D- raketen werfer
94- schrot v3
99- sniper v5 (nachtsicht)
AB- power granaten werfer


dcx2

When I get a chance, I will post the function and source for my code, so Deathwolf will have an easier time porting it.

Deathwolf

Need source of 807721F8 and 8032FF1A for porting please.
lolz

dcx2

I believe 8032FF1A is the button activator address.

Deathwolf

Okay then just of the hook address 807721F8.
lolz

dcx2

#11
Note: you MUST be at the inventory screen in order for this ASM to be loaded.  If you aren't at the inventory screen you won't see the ASM.  So this should really be made into an F2 code instead.  You can use the latest version of Gecko.NET to have access to an F2 Calculator.

Oddly, there is nothing in my notes on this code.  That is quite unlike me.  The source is straightforward, though.

[spoiler=hooked function]80771FDC:  9421FF90   stwu   r1,-112(r1)
80771FE0:  7C0802A6   mflr   r0
80771FE4:  90010074   stw   r0,116(r1)
80771FE8:  DBE10060   stfd   f31,96(r1)
80771FEC:  F3E10068   psq_st   f31,104(r1),0,0
80771FF0:  39610060   addi   r11,r1,96
80771FF4:  4BA35749   bl   0x801a773c
80771FF8:  7C741B78   mr   r20,r3
80771FFC:  3B000000   li   r24,0
80772000:  3AA00000   li   r21,0
80772004:  38750040   addi   r3,r21,64
80772008:  38800000   li   r4,0
8077200C:  38A00000   li   r5,0
80772010:  38C00000   li   r6,0
80772014:  4BFED96D   bl   0x8075f980
80772018:  3AB50001   addi   r21,r21,1
8077201C:  2C15003E   cmpwi   r21,62
80772020:  4180FFE4   blt+   0x80772004
80772024:  807402AC   lwz   r3,684(r20)
80772028:  480052C5   bl   0x807772ec
8077202C:  3C808078   lis   r4,-32648
80772030:  7C7B1B78   mr   r27,r3
80772034:  C3E42510   lfs   f31,9488(r4)
80772038:  3AE00000   li   r23,0
8077203C:  3FA08078   lis   r29,-32648
80772040:  3BC00001   li   r30,1
80772044:  3FE00001   lis   r31,1
80772048:  3B800003   li   r28,3
8077204C:  48000220   b   0x8077226c
80772050:  807402AC   lwz   r3,684(r20)
80772054:  7EE4BB78   mr   r4,r23
80772058:  4B9CC101   bl   0x8013e158
8077205C:  7C7A1B78   mr   r26,r3
80772060:  83230028   lwz   r25,40(r3)
80772064:  807402AC   lwz   r3,684(r20)
80772068:  4800527D   bl   0x807772e4
8077206C:  7F44D378   mr   r4,r26
80772070:  4B9CB1E1   bl   0x8013d250
80772074:  2C030000   cmpwi   r3,0
80772078:  4182000C   beq-   0x80772084
8077207C:  9BD9012F   stb   r30,303(r25)
80772080:  48000008   b   0x80772088
80772084:  9B99012F   stb   r28,303(r25)
80772088:  7F43D378   mr   r3,r26
8077208C:  480052A9   bl   0x80777334
80772090:  2C030000   cmpwi   r3,0
80772094:  40820014   bne-   0x807720a8
80772098:  2C1B0000   cmpwi   r27,0
8077209C:  418201C0   beq-   0x8077225c
807720A0:  7C1BD040   cmplw   r27,r26
807720A4:  408201B8   bne-   0x8077225c
807720A8:  80190000   lwz   r0,0(r25)
807720AC:  2C1B0000   cmpwi   r27,0
807720B0:  3AB80041   addi   r21,r24,65
807720B4:  60000002   ori   r0,r0,2
807720B8:  90190000   stw   r0,0(r25)
807720BC:  41820020   beq-   0x807720dc
807720C0:  7C1AD840   cmplw   r26,r27
807720C4:  40820018   bne-   0x807720dc
807720C8:  C01D4D74   lfs   f0,19828(r29)
807720CC:  3AA00040   li   r21,64
807720D0:  D019009C   stfs   f0,156(r25)
807720D4:  9BD9012F   stb   r30,303(r25)
807720D8:  48000008   b   0x807720e0
807720DC:  D3F9009C   stfs   f31,156(r25)
807720E0:  7E83A378   mr   r3,r20
807720E4:  7F44D378   mr   r4,r26
807720E8:  4BFFF6A9   bl   0x80771790
807720EC:  7F43D378   mr   r3,r26
807720F0:  38810014   addi   r4,r1,20
807720F4:  38A00001   li   r5,1
807720F8:  4BFFFD05   bl   0x80771dfc
807720FC:  38610014   addi   r3,r1,20
80772100:  38810008   addi   r4,r1,8
80772104:  4BFFF325   bl   0x80771428
80772108:  82DA0024   lwz   r22,36(r26)
8077210C:  A0760000   lhz   r3,0(r22)
80772110:  28030052   cmplwi   r3,82
80772114:  41820110   beq-   0x80772224
80772118:  28030010   cmplwi   r3,16
8077211C:  41820108   beq-   0x80772224
80772120:  4BFEEEA9   bl   0x80760fc8
80772124:  5460063E   rlwinm   r0,r3,0,24,31
80772128:  28000001   cmplwi   r0,1
8077212C:  41820010   beq-   0x8077213c
80772130:  A0760000   lhz   r3,0(r22)
80772134:  2803006D   cmplwi   r3,109
80772138:  408200A4   bne-   0x807721dc
8077213C:  A0160000   lhz   r0,0(r22)
80772140:  3A600000   li   r19,0
80772144:  2C000041   cmpwi   r0,65
80772148:  41820040   beq-   0x80772188
8077214C:  4080001C   bge-   0x80772168
80772150:  2C000037   cmpwi   r0,55
80772154:  41820034   beq-   0x80772188
80772158:  40800054   bge-   0x807721ac
8077215C:  2C000034   cmpwi   r0,52
80772160:  41820028   beq-   0x80772188
80772164:  48000048   b   0x807721ac
80772168:  2C00006D   cmpwi   r0,109
8077216C:  41820014   beq-   0x80772180
80772170:  4080003C   bge-   0x807721ac
80772174:  2C000053   cmpwi   r0,83
80772178:  41820010   beq-   0x80772188
8077217C:  48000030   b   0x807721ac
80772180:  3A600001   li   r19,1
80772184:  48000028   b   0x807721ac
80772188:  7EC3B378   mr   r3,r22
8077218C:  4BFEEDED   bl   0x80760f78
80772190:  7C640774   extsb   r4,r3
80772194:  A0760000   lhz   r3,0(r22)
80772198:  4B8C4985   bl   0x80036b1c
8077219C:  5460043E   rlwinm   r0,r3,0,16,31
807721A0:  28008000   cmplwi   r0,32768
807721A4:  40820008   bne-   0x807721ac
807721A8:  3A600001   li   r19,1
807721AC:  2C130000   cmpwi   r19,0
807721B0:  7EA3AB78   mr   r3,r21
807721B4:  4182000C   beq-   0x807721c0
807721B8:  389F8000   subi   r4,r31,32768
807721BC:  4800000C   b   0x807721c8
807721C0:  A0160008   lhz   r0,8(r22)
807721C4:  540404FE   rlwinm   r4,r0,0,19,31
807721C8:  38A10008   addi   r5,r1,8
807721CC:  38C00001   li   r6,1
807721D0:  4BFED7B1   bl   0x8075f980
807721D4:  3B180001   addi   r24,r24,1
807721D8:  4800004C   b   0x80772224
807721DC:  4BFEEDED   bl   0x80760fc8
807721E0:  5460063E   rlwinm   r0,r3,0,24,31
807721E4:  28000009   cmplwi   r0,9
807721E8:  4182003C   beq-   0x80772224
807721EC:  A0760000   lhz   r3,0(r22)
807721F0:  4BFEAE69   bl   0x8075d058
807721F4:  5460043E   rlwinm   r0,r3,0,16,31
807721F8:  28000001   cmplwi   r0,1
807721FC:  40820010   bne-   0x8077220c
80772200:  A0160002   lhz   r0,2(r22)
80772204:  28000001   cmplwi   r0,1
80772208:  4182001C   beq-   0x80772224
8077220C:  A0960002   lhz   r4,2(r22)
80772210:  7EA3AB78   mr   r3,r21
80772214:  38A10008   addi   r5,r1,8
80772218:  38C00001   li   r6,1
8077221C:  4BFED765   bl   0x8075f980
80772220:  3B180001   addi   r24,r24,1
80772224:  2C1B0000   cmpwi   r27,0
80772228:  41820020   beq-   0x80772248
8077222C:  7C1BD040   cmplw   r27,r26
80772230:  40820018   bne-   0x80772248
80772234:  7F23CB78   mr   r3,r25
80772238:  38800000   li   r4,0
8077223C:  38A00004   li   r5,4
80772240:  4BFFF955   bl   0x80771b94
80772244:  48000024   b   0x80772268
80772248:  7F23CB78   mr   r3,r25
8077224C:  38800000   li   r4,0
80772250:  38A00000   li   r5,0
80772254:  4BFFF941   bl   0x80771b94
80772258:  48000010   b   0x80772268
8077225C:  80190000   lwz   r0,0(r25)
80772260:  540007FA   rlwinm   r0,r0,0,31,29
80772264:  90190000   stw   r0,0(r25)
80772268:  3AF70001   addi   r23,r23,1
8077226C:  807402AC   lwz   r3,684(r20)
80772270:  4B9CBE81   bl   0x8013e0f0
80772274:  7C171800   cmpw   r23,r3
80772278:  4180FDD8   blt+   0x80772050
8077227C:  E3E10068   psq_l   f31,104(r1),0,0
80772280:  39610060   addi   r11,r1,96
80772284:  CBE10060   lfd   f31,96(r1)
80772288:  4BA35501   bl   0x801a7788
8077228C:  80010074   lwz   r0,116(r1)
80772290:  7C0803A6   mtlr   r0
80772294:  38210070   addi   r1,r1,112
80772298:  4E800020   blr   [/spoiler]




[spoiler=source]hook      807721F8:  28000001   cmplwi   r0,1

I believe this hooks the code which determines whether to display a number count on top of an item.  What we do is tell it that you have 31,999 of the item.  Why 31,999?  Only the last three digits can be seen; so the cheater sees the psychologically satisfying number 999, instead of 767 (i.e. had we loaded 0x7FFF)

Note the use of BTN_ADDR.  All you have to do is write your button activator address here and recompile reassemble the whole code.  @h and @l will take care of splitting it up for us.


# COPY AND PASTE EVERYTHING BELOW THIS LINE INTO AN ASSEMBLER

.set BTN_ADDR,0x8032FF1A  # button activator

lis r12,BTN_ADDR@h       # button activator high word
ori r12,r12,BTN_ADDR@l  # button activator low word
lhz r12,0(r12)                # half-word buttons
cmpwi r12,0x300            # 1 and 2?
bne- _END                    # If not, do nothing
li r12,31999                  # load hack
sth r12,2(r22)               # store hack

_END:
cmplwi r0,1         # original instruction[/spoiler]

Deathwolf

#12
ported, tested and works....

Press 1 + 2 for 31,999 of every item in the inventory [dcx2, ported by Deathwolf]
C2772210 00000005
3D808032 618CFD5A
A18C0000 2C0C0300
4082000C 39807CFF
B1960002 28000001
60000000 00000000
lolz

dcx2

You can put my credit in a note at the bottom.  When you upload the code to geckocodes it will have your name by it anyway.

Also, I'm somewhat surprised that the hook was located so close to the NTSC address, a mere 0xE8 bytes away.  Is that typical?

Deathwolf

Hmm I've no idea why it's so near. I think you can port some codes to PAL with +0xE8. But this should only work on ASM codes I think.
lolz