Help to extend code~

Started by disraelie, June 03, 2010, 02:19:02 AM

Previous topic - Next topic

Help to extend code~

Help to extend code~
0 (0%)
Help to extend code~
0 (0%)
Dont make poll's for questions~
3 (100%)

Total Members Voted: 3

disraelie

Naruto Shippuuden Gekitou Ninja Taisen EX3 [RNEJDA]
Infinite HP [ZiT]
C207F1E8 00000004
8A1C0003 2C10000F
4182000C 907C0028
48000008 90DC0028
60000000 00000000

If Skill Gauge Increase, MAX [ZiT]
C207FB5C 00000004
889E0003 2C04000F
4182000C 907E0044
48000008 90DE0044
60000000 00000000

Help to extend above code~like below code

Naruto Shippuuden Gekitou Ninja Taisen EX 2 (JP) [RNYJDA]
Infinite HP (1P ONLY) [ZiT]
0406DFA8 4BF95258
04003200 89FE0003
04003204 2C0F000F
04003208 41820018
0400320C 807E0020
04003210 4806AD9C
04003220 807E0022
04003224 4806AD88

If Skill Gauge Increase, MAX (1P ONLY) [ZiT]
0406E594 4BF94C9C
04003230 88BE0003
04003234 2C05000F
04003238 41820018
0400323C 83BE0034
04003240 4806B358
04003250 83BE0030
04003254 4806B344

Deathwolf

#1
you can make a string code.

Naruto Shippuuden Gekitou Ninja Taisen EX 2 (JP) [RNYJDA]
Infinite HP (1P ONLY) [ZiT]
0706DFA8 4BF95258
06003200 0000001C
89FE0003 2C0F000F
41820018 807E0020
4806AD9C 807E0022
4806AD88 00000000

If Skill Gauge Increase, MAX (1P ONLY) [ZiT]
0706E594 4BF94C9C
06003230 0000001C
88BE0003 2C05000F
41820018 83BE0034
4806B358 83BE0030
4806B344 00000000

the first is a C2 codestype.

He used breakpoint on the address like this 04003200.
then he made a C2 codetype with the disassembler.

lolz

disraelie

Deathwolf ~ thanks a lot
but I mean transfer ex3 type to ex2 type
I use dolphin to emu wii...
ex3 type can't be used on dolphin

Deathwolf

Naruto Shippuuden Gekitou Ninja Taisen EX3 [RNEJDA]
Infinite HP [ZiT]

Naruto Shippuuden Gekitou Ninja Taisen EX 2 (JP) [RNYJDA]
Infinite HP (1P ONLY) [ZiT]

It's not the same game.
So it doesn't work
lolz

disraelie

I know : It's not the same game
EX 2 code can be used on dolphin
but...
EX 3 code can't be used on dolphin

dolphin can't support this type of codes
Infinite HP [ZiT]
C207F1E8 00000004
8A1C0003 2C10000F
4182000C 907C0028
48000008 90DC0028
60000000 00000000

I try to transfer...0407F1E8 8A1C0003
Infinite HP works, but 1P+2P both work

sorry~my English is bad !

Deathwolf

hmm maybe dolphin doesn't support C2 codestype.

C207F1E8 00000004
8A1C0003 2C10000F
4182000C 907C0028
48000008 90DC0028
60000000 00000000

I don't know why he don't used only nop 60000000
lolz

Thomas83Lin

#6
Quote from: Deathwolf on June 04, 2010, 05:34:57 PM
hmm maybe dolphin doesn't support C2 codestype.

C207F1E8 00000004
8A1C0003 2C10000F
4182000C 907C0028
48000008 90DC0028
60000000 00000000

I don't know why he don't used only nop 60000000
Well it could be because the code effected more than just your health sense it contains cmpwi checks why he didn't just nop it, another method of writing the code would have been to use a 06/07 CST3: String Code and store the code in unused memory and do the branching manually, or you even could just use a 04 type for everything, storing and branching and would get the same effect but the code would be twice as long. which looks like what the other 2 codes posted here were doing Its just really convenient using a C2 considering you dont have to worry about were to store the code, and the branching.  Just acouple quick examples of converting it to a 07 type and a 04, may be off alittle bit sense its been awhile sense i've used either, i'd fill in the blanks if i had the game, If i made any mistakes feel free to correct me

Org code
C207F1E8 00000004
8A1C0003 2C10000F
4182000C 907C0028
48000008 90DC0028
60000000 00000000

CTS3 String Code Method

07xxxxxx 0000001C {X=Were to store the code in unused Memory 07=81 Memory Range 06=80 Memory Range}
8A1C0003 2C10000F
4182000C 907C0028
48000008 90DC0028
xxxxxxxxx 00000000 {x=Branch always one Instruction after 8007F1E8 instruction}
0407F1e8 xxxxxxxx {Overwrite Org Instruction with a Branch to First Asm Instruction in unused Memory}

^^^Something like that if i remember correctly.

CST2: 32bits Write 04 Method
0407F1E8 xxxxxxxx = {Overwrite Org Instruction with a Branch to First Asm Instruction in unused Memory}
04xxxxxx 8A1C0003 {04xxxxxx = Were to store Asm one after another in unused memory}
04xxxxxx 2C10000F
04xxxxxx 4182000C
04xxxxxx 907C0028
04xxxxxx 48000008
04xxxxxx 90DC0028
04xxxxxx xxxxxxxx  {xxxxxxxx = Branch Always one instruction after 8007F1E8}

Deathwolf

but why 07?
07 writes 123456789 -> 0A0B0C0D0E0F

I trought C2 writes 4XXXXXXX codes!?
lolz

Thomas83Lin

CST3: String Code
06______ YYYYYYYY : Patch code (ba) d1d2d3d4 d5d6d7d8... writes d1d2d3d4 d5d6d7d8... at ba+address. YYYYYYYY is the number of bytes to write

07 is just writing the patch to 81 memory range instead of 80 which would be 06

Just a harder method, instead of using C2, you'll get the same effect though

Deathwolf

#9
yes I know but why can you use 07 codes on ASM!?

C2 writes 4XXXXXXX

07xxxxxx 0000001C {X=Were to store the code in unused Memory 07=81 Memory Range 06=80 Memory Range}
8A1C0003 2C10000F
4182000C 907C0028
48000008 90DC0028
xxxxxxxxx 00000000 {x=Branch always one Instruction after 8007F1E8 instruction}
0407F1e8 xxxxxxxx {Overwrite Org Instruction with a Branch to First Asm Instruction in unused Memory}

I don't understand this.
lolz

Thomas83Lin

Quote from: Deathwolf on June 04, 2010, 07:28:45 PM
yes I know but why can you use 07 codes on ASM!?

C2 writes 4XXXXXXX

07xxxxxx 0000001C {X=Were to store the code in unused Memory 07=81 Memory Range 06=80 Memory Range}
8A1C0003 2C10000F
4182000C 907C0028
48000008 90DC0028
xxxxxxxxx 00000000 {x=Branch always one Instruction after 8007F1E8 instruction}
0407F1e8 xxxxxxxx {Overwrite Org Instruction with a Branch to First Asm Instruction in unused Memory}

I don't understand this.


take alook at some of TNTkryzt's codes to try to get a understanding, I explained it the best i could

Deathwolf

#11
8x4-4=1C

0707F1e8 0000001C
8A1C0003 2C10000F
4182000C 907C0028
48000008 90DC0028
xxxxxxxxx
00000000 <-- next value on the memory viewer?
0407F1e8 xxxxxxxx  <--???

whatever,

thanks
lolz

Thomas83Lin

#12
Quote from: Deathwolf on June 04, 2010, 07:37:20 PM
8x4-4=1C

0707F1e8 0000001C
8A1C0003 2C10000F
4182000C 907C0028
48000008 90DC0028
xxxxxxxxx
00000000 XXXXXXXX what do you mean?
0407F1e8 xxxxxxxx  <--???

7x4=1C you dont count 00000000

0707F1e8 0000001C  You'll need to place your routine in a Unused Memory Range 0x80000000 to 0x81800000 06=80 07=81 Mem Range not the original Address
8A1C0003 2C10000F Green = your Routine
4182000C 907C0028
48000008 90DC0028
xxxxxxxxx
00000000 <---??? Here you'll need to add a Asm instruction to Branch one address Past Org Instruction, which would branch to 8007F1ec  
0407F1e8 xxxxxxxx  <--??? Here you'll need to Overwrite the Org Instruction with a branch to the routine you stored in unused memory

Sorry i'm not better at explaining things

Deathwolf

hmm it's too hard for my english.

but thank you thomas83lin
lolz

wiiztec

You could also use C6 for the branch instead of 04
If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen