The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
Research & Development programs in this forum are subject to moderator approval before they are displayed.

Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #226    
Old December 1st, 2013 (01:46 AM).
Chrisario's Avatar
Chrisario
Friend code :0018 2912 2366 let me know
 
Join Date: Jul 2013
Location: In friend Safari
Age: 18
Gender: Male
Nature: Adamant
Do you may be how to put the special physical icon in the moves
If you do help me then
Reply With Quote
  #227    
Old December 2nd, 2013 (11:16 PM).
tinyranitar's Avatar
tinyranitar
 
Join Date: Mar 2012
Location: Hoenn
Gender: Male
Nature: Relaxed
Can I patch the Physical/Special Split into other Hacked Rom without it like Light Platinum or just clean ROM?
__________________

You don't have to be Rock to Rock!!!

Pokemon Online name: Tinyranitar
Reply With Quote
  #228    
Old January 25th, 2014 (11:41 PM).
unIQuE-_-SK's Avatar
unIQuE-_-SK
Rocket Grunt
 
Join Date: Apr 2008
Location: Cerulean City
Age: 24
Gender: Male
Nature: Adamant
Quote:
Originally Posted by Teh Blazer View Post
Ask and you shall receive.

A couple things to note:
-The inserts started at 800000
-I was watching tv while doing the manuak editing of the moves, so some might be wrong
-No need to credit me, I didn't do much besides apply the DoesntKnowHowToPlay patch and assemble Darthatron's routine with the Jambo fix. But if you want to credit me anyways, I wouldn't mind. :3
One small stupid question, Is this for Emerald or FireRed?
Haven't found the mentioning of it anywhere.
__________________
Reply With Quote
  #229    
Old February 2nd, 2014 (09:36 PM).
The Zororoaster
 
Join Date: May 2012
Gender: Male
Quote:
Originally Posted by unIQuE-_-SK View Post
One small stupid question, Is this for Emerald or FireRed?
Haven't found the mentioning of it anywhere.
It is for FireRed, there is currently no patch that adds icons for Emerald.

Speaking of which, has there been any progress on that?
Reply With Quote
  #230    
Old February 14th, 2014 (07:26 PM).
sonicfan7895
Sprite Inserter
 
Join Date: Dec 2010
Location: Golden/Denver, Colorado
Age: 17
Gender: Male
Nature: Serious
Send a message via Yahoo to sonicfan7895 Send a message via Skype™ to sonicfan7895
I have a couple of questions:
I have applied Doesn'tKnowHowtoPlay's patch of this, and I can't seem to open up PGE's Attack Editor for FireRed (BPRE). However, I am experienced in editing hex.
1) Do I just need to edit the 11th byte to make sure the game can distinguish between Physical/Special?
2) What do I need to change to determine whether or not the move actually makes contact?

I'm sort of in a time crunch, as I'm in many activities outside of school, so an immediate response or a response within the next two days would be great!
__________________
Hacks I Am Currently Working On: Pokemon Infinity (and two more sequels in the future)
Reply With Quote
  #231    
Old February 25th, 2014 (02:04 PM).
Golden Warrior's Avatar
Golden Warrior
Pokemon Professor
 
Join Date: May 2011
Location: Hoenn
Age: 16
Gender: Male
Nature: Adamant
Send a message via Skype™ to Golden Warrior
I feel very out of place posting here, but I do want this working, I can see great progress has been made, but that's all I can tell. I'm no good with Hex or ASM so my question is: Is there a patch of this for Ruby in existance? DragonRush's was deleted and I see that Darthatron posted some for Ruby but I have no clue what to do with it.

That's all, I thank anyone who answers this in advance and I'm sorry if this is out of place.
__________________
Current Pokemon re-play through: XD: Gale of Darkness

3DS/Pokemon Y FC: 5300 - 9087 - 1138
I'll be up to battle or trade, I'll also always be up to multibattle. PM me if you add me here, give me a reason that you're adding me, and I'll be sure to add you back!

Friend Safari: Bug Type
Pokemon: Paras, Beautifly, and Pinsir.
Reply With Quote
  #232    
Old February 25th, 2014 (10:32 PM). Edited April 26th, 2014 by Tlachtli.
Tlachtli's Avatar
Tlachtli
Crit happens.
 
Join Date: Jan 2012
Location: Faraway place
Age: 24
Gender: Male
Nature: Modest
EDIT: See post below for better version of the Phys/Spec icons.
__________________
Pokemon Sigma Σmerald:

A Gen 3 remake de-make, (soon to be) featuring many Gen VI mechanics
Reply With Quote
  #233    
Old February 26th, 2014 (03:31 PM).
RemixinROMulus's Avatar
RemixinROMulus
Crit happens...
 
Join Date: Oct 2013
Location: /dev/null
Age: 19
Gender: Male
Nature: Lonely
I don't see anything wrong with how the icons look in those screenshots.
I'm still a beginner hacker, but as I recall, each sprite has a pointer to a specific palette. Hmmm... Maybe try searching for that pointer with your hex editor and try changing it? I know that Nameless Sprite Editor allows you to swap palettes, but IDK if it will find your icon.
__________________
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
Wild WEBSITE appeared!
Go! WINDOWS!
Wild WEBSITE used VIRUS!
It's super effective!
WINDOWS fainted!
Go for it! LINUX!
Wild WEBSITE used VIRUS!
It doesn't affect LINUX...
Reply With Quote
  #234    
Old February 27th, 2014 (10:09 AM).
SBird
 
Join Date: Aug 2009
Gender: Male
I would recommend you to study the OAM structure and use sprite objects to draw those Icons, anyways in tile-based modes the palette is determined by the tilemap, otherwise it can be set in one of the OAM attributes, you can get detailled information on the GBAs tech data on gbatek (http://nocash.emubase.de/gbatek.htm)

~SBird
Reply With Quote
  #235    
Old March 18th, 2014 (07:56 AM).
andrewinoue's Avatar
andrewinoue
 
Join Date: Dec 2013
Gender: Female
when i patched it, it looked like it didn't work, but the reason why i say that is because when i look at other people's rom hacks they have on the side of the moves the have the sign of physical and special. Can somebody help me!
Reply With Quote
  #236    
Old March 23rd, 2014 (04:21 PM).
RichterSnipes's Avatar
RichterSnipes
Simpleton
 
Join Date: Oct 2011
Location: USA
Age: 21
Gender: Male
Nature: Modest
Seeing as no one has uploaded an accurate patch for updating the now-used move type bytes yet (the one on the first page has reported errors), here's an updated one that should be 100% accurate for all moves in the standard game:

Download

For use with FireRed (BPRE). That should save some time from having to edit all the moves with PGE or a Hex editor.

Quote:
Originally Posted by andrewinoue View Post
when i patched it, it looked like it didn't work, but the reason why i say that is because when i look at other people's rom hacks they have on the side of the moves the have the sign of physical and special. Can somebody help me!
That's because Darthatron's move type icon implementation is separate from DoesntKnowHowToPlay's patch. You'll have to apply that yourself to get that change. Alternatively, you could use the combined patch Teh Blazer uploaded on the previous page.
__________________


Who says hacks have to radically changes things up from their base games?
Red doesn't necessarily think so. He's literally spinning in circles thinking of a "definitive" version of his adventure in Kanto!
Want to see what he has in mind? Click him for a throwback worth experiencing!
Reply With Quote
  #237    
Old April 26th, 2014 (06:10 AM). Edited April 29th, 2014 by Tlachtli.
Tlachtli's Avatar
Tlachtli
Crit happens.
 
Join Date: Jan 2012
Location: Faraway place
Age: 24
Gender: Male
Nature: Modest


A long-awaited treat for my fellow Emerald modders, I'm back with a much better version of my Emerald Phys/Spec icons. Credit where it's due, the original idea came from Darthatron as did the source image, and thanks also to Deokishisu for the shortening and placement ideas. Here goes:

First, you'll need to insert this ASM somewhere
Spoiler:
.text
.align 2
.thumb
.thumb_func

Prestart:
add r0, r0, r5
lsl r0, r0, #0x03
ldr r1, .Replaced_Address
add r4, r0, r1
push {r0-r5}
ldr r0, .SplitImages
ldr r1, .OBJVRAM
mov r2, #0xC0
swi #0xB

ldr r0, .CurMoveIndex_DMA
ldr r0, [r0]
mov r2, #0x10
lsl r2, #8
add r2, #0xD
add r0, r2
ldrb r0, [r0]
cmp r0, #0x0
bne StatFinish

mov r2, #0x10
lsl r2, #8
add r2, #0xA
cmp r6, #0x0
beq StatPreStart

Start:
ldr r0, .CurMoveIndex_DMA
ldr r0, [r0]
add r0, r2
cmp r6, #0x1
bne Continue
add r0, #0x1

Continue:
ldrb r1, [r0]
cmp r1, #0x0
bne GetMove
mov r2, #0x20
lsl r2, #8
add r0, r2
ldrb r1, [r0]

GetMove:
cmp r1, #0x4
beq GetFifthMove
lsl r1, r1, #1
ldr r0, .Move_List_DMA
ldr r2, [r0]
add r2, #0x84
mov r0, r2
add r0, r1
ldrh r3, [r0]

Body:
mov r0, #0x0
lsl r0, r3, #1
add r0, r3
lsl r0, r0, #2
ldr r1, .MoveBase
add r0, r1
ldrb r4, [r0, #10]
lsl r4, #1

mov r0, #0x40
lsl r0, #20
ldr r1, [r0]
mov r2, #0x20
orr r1, r2
stm r0!, {r1}

ldr r0, .OAMMemAddress
ldr r1, .IconOAM1
ldr r2, .IconOAM2
cmp r4, #0x2
beq SpecAdd
cmp r4, #0x4
beq StatAdd

Draw:
stmia r0!, {r1, r2}
ldr r0, .OAMMemAddress
mov r1, #0x70
lsl r1, #20
add r1, #0xD8
mov r2, #0x4
swi #0xb

StatFinish:
cmp r6, #0x1
beq MoveFinish
cmp r6, #0x2
beq LearnFinish
pop {r0-r6}
ldr r0, .Return_Address_Stat
bx r0

GetFifthMove:
cmp r6, #0x2
bne StatFinish
ldr r0, .CurMoveIndex_DMA
ldr r0, [r0]
mov r2, #0x10
lsl r2, #8
add r2, #0xA
add r0, r2
sub r0, #0x2
ldrh r3, [r0]
cmp r3, #0x0
bne Body
mov r2, #0x20
lsl r2, #8
add r0, r2
ldrh r3, [r0]
cmp r3, #0x0
bne Body
b Start

StatPreStart:
mov r3, #0x20
lsl r3, #8
add r2, r3
b Start

LearnFinish:
pop {r0-r6}
ldr r0, .Return_Address_Learn
bx r0

MoveFinish:
pop {r0-r6}
ldr r0, .Return_Address_Move
bx r0

SpecAdd:
mov r3, #0x20
lsl r3, #8
add r3, #0x04
add r2, r3
b Draw

StatAdd:
add r2, #0x08
b Draw

.align 2
.MoveBase: .word 0x0831C898
.CurMoveIndex_DMA: .word 0x0300090C
.Move_List_DMA: .word 0x0203CF1C
.Replaced_Address: .word 0x03005E08
.Return_Address_Stat: .word 0x081C0F57
.Return_Address_Move: .word 0x081C12F7
.Return_Address_Learn: .word 0x081C175D
.IconOAM1: .word 0x40280078
.IconOAM2: .word 0x0000D580
.OBJVRAM: .word 0x06013000
.OAMMemAddress: .word 0x030023E4
.SplitImages: .word 0x[insert address to images]


At the bottom, you'll need to change .SplitImages to the address where you insert the icons attached below (as an uncompresed image). Don't worry about the coloring, they'll use the palette already located at 0xDC4338.

SplitImages:


And make the following hex edits:
Spoiler:
Change 0x1C0F88, 0x1C1328 and 0x1C17A0 to [inserted ASM address +1]
Change 0x1C0F54, 0x1C12F4 and 0x1C175A to 08 47
Change 0x1C0F4E to 40 B4 00 26
Change 0x1C12EE to 40 B4 01 26
Change 0x1C1754 to 40 B4 02 26


It can also support extended movesets just fine (see screenshot above), all you need to do is change .MoveBase to the start of your repointed move table.

And that should be all you need. I've tested it and it should work properly on the Battle Moves page, while re-ordering moves, and when teaching new moves. If there are any issues, let me know. Permission to use it in a hack isn't needed, though credit is appreciated.
__________________
Pokemon Sigma Σmerald:

A Gen 3 remake de-make, (soon to be) featuring many Gen VI mechanics
Reply With Quote
  #238    
Old April 26th, 2014 (08:44 PM). Edited April 26th, 2014 by mamamama.
mamamama
 
Join Date: Feb 2014
Quote:
Originally Posted by Tlachtli View Post


A long-awaited treat for my fellow Emerald modders, I'm back with a much better version of my Emerald Phys/Spec icons. Credit where it's due, the original idea came from Darthatron as did the source image, and thanks also to Deokishisu for the shortening and placement ideas. Here goes:

First, you'll need to insert this ASM somewhere
When I move the .asm file into HackMew's Thumb, it does not create any .bin output. It works when I use other ASM routines though. Do you know what the issue could be?

I did the following:
1. Cope/Pasted your routine into Notepad.
2. Changed movebase to 0x08E66000 (where my table is located)
3. Changed .Splitimage to 0x081600000 (where I placed the image. It's a 32 MB ROM).
4. Clicked Save As, changed txt to all files and named it test.asm. Put it in the same folder as Thumb.
5. Moved it to Thumb, which just quickly opens up and closes down the command window without creating the .bin output.
Reply With Quote
  #239    
Old April 26th, 2014 (09:24 PM). Edited April 26th, 2014 by HidoranBlaze.
HidoranBlaze's Avatar
HidoranBlaze
 
Join Date: Apr 2013
Age: 18
Gender: Male
Quote:
Originally Posted by Tlachtli View Post


A long-awaited treat for my fellow Emerald modders, I'm back with a much better version of my Emerald Phys/Spec icons. Credit where it's due, the original idea came from Darthatron as did the source image, and thanks also to Deokishisu for the shortening and placement ideas. Here goes:

First, you'll need to insert this ASM somewhere
Spoiler:
.text
.align 2
.thumb
.thumb_func

Prestart:
add r0, r0, r5
lsl r0, r0, #0x03
ldr r1, .Replaced_Address
add r4, r0, r1
push {r0-r5}
ldr r0, .SplitImages
ldr r1, .OBJVRAM
mov r2, #0xC0
swi #0xB

ldr r0, .CurMoveIndex_DMA
ldr r0, [r0]
mov r2, #0x10
lsl r2, #8
add r2, #0xD
add r0, r2
ldrb r0, [r0]
cmp r0, #0x0
bne StatFinish

mov r2, #0x10
lsl r2, #8
add r2, #0xA
cmp r6, #0x0
beq StatPreStart

Start:
ldr r0, .CurMoveIndex_DMA
ldr r0, [r0]
add r0, r2
cmp r6, #0x1
bne Continue
add r0, #0x1

Continue:
ldrb r1, [r0]
cmp r1, #0x0
bne GetMove
mov r2, #0x20
lsl r2, #8
add r0, r2
ldrb r1, [r0]

GetMove:
cmp r1, #0x4
beq GetFifthMove
lsl r1, r1, #1
ldr r0, .Move_List_DMA
ldr r2, [r0]
add r2, #0x84
mov r0, r2
add r0, r1
ldrh r3, [r0]

Body:
mov r0, #0x0
lsl r0, r3, #1
add r0, r3
lsl r0, r0, #2
ldr r1, .MoveBase
add r0, r1
ldrb r4, [r0, #10]
(MoveBase+12*halfword)+0x10*/
lsl r4, #1

mov r0, #0x40
lsl r0, #20
ldr r1, [r0]
mov r2, #0x20
orr r1, r2
stm r0!, {r1}

ldr r0, .OAMMemAddress
ldr r1, .IconOAM1
ldr r2, .IconOAM2
cmp r4, #0x2
beq SpecAdd
cmp r4, #0x4
beq StatAdd

Draw:
stmia r0!, {r1, r2}
ldr r0, .OAMMemAddress
mov r1, #0x70
lsl r1, #20
add r1, #0xD8
mov r2, #0x4
swi #0xb

StatFinish:
cmp r6, #0x1
beq MoveFinish
cmp r6, #0x2
beq LearnFinish
pop {r0-r6}
ldr r0, .Return_Address_Stat
bx r0

GetFifthMove:
cmp r6, #0x2
bne StatFinish
ldr r0, .CurMoveIndex_DMA
ldr r0, [r0]
mov r2, #0x10
lsl r2, #8
add r2, #0xA
add r0, r2
sub r0, #0x2
ldrh r3, [r0]
cmp r3, #0x0
bne Body
mov r2, #0x20
lsl r2, #8
add r0, r2
ldrh r3, [r0]
cmp r3, #0x0
bne Body
b Start

StatPreStart:
mov r3, #0x20
lsl r3, #8
add r2, r3
b Start

LearnFinish:
pop {r0-r6}
ldr r0, .Return_Address_Learn
bx r0

MoveFinish:
pop {r0-r6}
ldr r0, .Return_Address_Move
bx r0

SpecAdd:
mov r3, #0x20
lsl r3, #8
add r3, #0x04
add r2, r3
b Draw

StatAdd:
mov r3, #0x20
lsl r3, #8
add r3, #0x08
add r2, r3
b Draw

.align 2
.MoveBase: .word 0x0831C898
.CurMoveIndex_DMA: .word 0x0300090C
.Move_List_DMA: .word 0x0203CF1C
.Replaced_Address: .word 0x03005E08
.Return_Address_Stat: .word 0x081C0F57
.Return_Address_Move: .word 0x081C12F7
.Return_Address_Learn: .word 0x081C175D
.IconOAM1: .word 0x40280078
.IconOAM2: .word 0x0000D580
.OBJVRAM: .word 0x06013000
.OAMMemAddress: .word 0x030023E4
.SplitImages: .word 0x[insert address to images]


At the bottom, you'll need to change .SplitImages to the address where you insert the icons attached below (as an uncompresed image). Don't worry about the coloring, they'll use the palette already located at 0xDC4338.

SplitImages:


And make the following hex edits:
Spoiler:
Change 0x1C0F88, 0x1C1328 and 0x1C17A0 to [inserted ASM address +1]*/
Change 0x1C0F54, 0x1C12F4 and 0x1C175A to 08 47
Change 0x1C0F4E to 40 B4 00 26
Change 0x1C12EE to 40 B4 01 26
Change 0x1C1754 to 40 B4 02 26


It can also support extended movesets just fine (see screenshot above), all you need to do is change .MoveBase to the start of your repointed move table.

And that should be all you need. I've tested it and it should work properly on the Battle Moves page, while re-ordering moves, and when teaching new moves. If there are any issues, let me know. Permission to use it in a hack isn't needed, though credit is appreciated.
I'm having an issue with inserting as well. I'm getting this error message when I try to assemble my asm file:
icons.asm: Assembler messages:
icons.asm:0: Warning: end of file not at end of line; new line inserted
icons.asm:69: Error: junk at end of line, first unrecognized character is '<'

I've successfully inserted asm routines before, so I doubt I did something wrong.

EDIT: Ok, I figured out what went wrong. The first one was because I didn't put a blank line at the end, no harm there.
The second one was because of an error made in the asm routine: Tlachtli at line 69, you forgot to put /* in front of your comment. Fixing that made everything work out.
Reply With Quote
  #240    
Old April 26th, 2014 (10:08 PM). Edited April 28th, 2014 by Tlachtli.
Tlachtli's Avatar
Tlachtli
Crit happens.
 
Join Date: Jan 2012
Location: Faraway place
Age: 24
Gender: Male
Nature: Modest
Quote:
Originally Posted by HidoranBlaze View Post
I'm having an issue with inserting as well. I'm getting this error message when I try to assemble my asm file:
icons.asm: Assembler messages:
icons.asm:0: Warning: end of file not at end of line; new line inserted
icons.asm:69: Error: junk at end of line, first unrecognized character is '<'

I've successfully inserted asm routines before, so I doubt I did something wrong.

EDIT: Ok, I figured out what went wrong. The first one was because I didn't put a blank line at the end, no harm there.
The second one was because of an error made in the asm routine: Tlachtli at line 69, you forgot to put /* in front of your comment. Fixing that made everything work out.
I thought I had removed all of my comments, but I guess I must have only deleted part of that one. I've fixed the routine in the earlier post now too, so it ought to compile properly now.

Edit: LCCoolJ95 has pointed out a bug where the Stat icon is showing up yellow instead of grey. I'm working on that one, should have it fixed soon.

Edit 2: Found the issue, and it's fixed now. I updated the ASM on my earlier post, so the Status icon should look normal now.
__________________
Pokemon Sigma Σmerald:

A Gen 3 remake de-make, (soon to be) featuring many Gen VI mechanics
Reply With Quote
  #241    
Old May 6th, 2014 (11:59 AM). Edited May 11th, 2014 by hashtag.
BXL
 
Join Date: May 2014
Gender: Male
Quote:
Originally Posted by DoesntKnowHowToPlay View Post
I recommend using a hex editor or Nightmare for this, but PGE can also do the job (slowly).
What Hex editor would you recommend? I have tried it on Nightmare but that's too difficult for me, and I have googled for like straight two hours and I couldn't find on. Please help me.

Could someone give me an already Splitted version of pokemon emerald with the Icons and all? I can't hex edit whatsoever even if my life depended on it. I seriously need help for this. Please Help Me i would really appreciate it
Reply With Quote
  #242    
Old May 11th, 2014 (09:10 AM).
LCCoolJ95's Avatar
LCCoolJ95
Limited Capacity
 
Join Date: May 2009
Location: The World That Never Was
Age: 19
Gender: Male
Nature: Naive
I should really post this here:

http://www.youtube.com/watch?v=C4BIB...1c8ZtHQ9nBhvWg

Thanks to DoesntKnowHowToPlay for his Emerald patch and Tlachtli for his ASM Routine.
__________________
"The greatest obstacle in life is Yourself. Overcome it, and you will achieve the greatest accomplishment of all." -Art Beins, 1982

Fairy-type in Pokémon Emerald: http://www.pokecommunity.com/showpos...&postcount=288
Reply With Quote
  #243    
Old May 11th, 2014 (05:25 PM). Edited May 11th, 2014 by Shufflejoy.
Shufflejoy's Avatar
Shufflejoy
Tutturu!
 
Join Date: Sep 2013
Gender: Female
Nature: Quiet
Quote:
Originally Posted by Tlachtli View Post
*images snipped for brevity*

A long-awaited treat for my fellow Emerald modders, I'm back with a much better version of my Emerald Phys/Spec icons. Credit where it's due, the original idea came from Darthatron as did the source image, and thanks also to Deokishisu for the shortening and placement ideas. Here goes:

First, you'll need to insert this ASM somewhere
Spoiler:
.text
.align 2
.thumb
.thumb_func

Prestart:
add r0, r0, r5
lsl r0, r0, #0x03
ldr r1, .Replaced_Address
add r4, r0, r1
push {r0-r5}
ldr r0, .SplitImages
ldr r1, .OBJVRAM
mov r2, #0xC0
swi #0xB

ldr r0, .CurMoveIndex_DMA
ldr r0, [r0]
mov r2, #0x10
lsl r2, #8
add r2, #0xD
add r0, r2
ldrb r0, [r0]
cmp r0, #0x0
bne StatFinish

mov r2, #0x10
lsl r2, #8
add r2, #0xA
cmp r6, #0x0
beq StatPreStart

Start:
ldr r0, .CurMoveIndex_DMA
ldr r0, [r0]
add r0, r2
cmp r6, #0x1
bne Continue
add r0, #0x1

Continue:
ldrb r1, [r0]
cmp r1, #0x0
bne GetMove
mov r2, #0x20
lsl r2, #8
add r0, r2
ldrb r1, [r0]

GetMove:
cmp r1, #0x4
beq GetFifthMove
lsl r1, r1, #1
ldr r0, .Move_List_DMA
ldr r2, [r0]
add r2, #0x84
mov r0, r2
add r0, r1
ldrh r3, [r0]

Body:
mov r0, #0x0
lsl r0, r3, #1
add r0, r3
lsl r0, r0, #2
ldr r1, .MoveBase
add r0, r1
ldrb r4, [r0, #10]
lsl r4, #1

mov r0, #0x40
lsl r0, #20
ldr r1, [r0]
mov r2, #0x20
orr r1, r2
stm r0!, {r1}

ldr r0, .OAMMemAddress
ldr r1, .IconOAM1
ldr r2, .IconOAM2
cmp r4, #0x2
beq SpecAdd
cmp r4, #0x4
beq StatAdd

Draw:
stmia r0!, {r1, r2}
ldr r0, .OAMMemAddress
mov r1, #0x70
lsl r1, #20
add r1, #0xD8
mov r2, #0x4
swi #0xb

StatFinish:
cmp r6, #0x1
beq MoveFinish
cmp r6, #0x2
beq LearnFinish
pop {r0-r6}
ldr r0, .Return_Address_Stat
bx r0

GetFifthMove:
cmp r6, #0x2
bne StatFinish
ldr r0, .CurMoveIndex_DMA
ldr r0, [r0]
mov r2, #0x10
lsl r2, #8
add r2, #0xA
add r0, r2
sub r0, #0x2
ldrh r3, [r0]
cmp r3, #0x0
bne Body
mov r2, #0x20
lsl r2, #8
add r0, r2
ldrh r3, [r0]
cmp r3, #0x0
bne Body
b Start

StatPreStart:
mov r3, #0x20
lsl r3, #8
add r2, r3
b Start

LearnFinish:
pop {r0-r6}
ldr r0, .Return_Address_Learn
bx r0

MoveFinish:
pop {r0-r6}
ldr r0, .Return_Address_Move
bx r0

SpecAdd:
mov r3, #0x20
lsl r3, #8
add r3, #0x04
add r2, r3
b Draw

StatAdd:
add r2, #0x08
b Draw

.align 2
.MoveBase: .word 0x0831C898
.CurMoveIndex_DMA: .word 0x0300090C
.Move_List_DMA: .word 0x0203CF1C
.Replaced_Address: .word 0x03005E08
.Return_Address_Stat: .word 0x081C0F57
.Return_Address_Move: .word 0x081C12F7
.Return_Address_Learn: .word 0x081C175D
.IconOAM1: .word 0x40280078
.IconOAM2: .word 0x0000D580
.OBJVRAM: .word 0x06013000
.OAMMemAddress: .word 0x030023E4
.SplitImages: .word 0x[insert address to images]


At the bottom, you'll need to change .SplitImages to the address where you insert the icons attached below (as an uncompresed image). Don't worry about the coloring, they'll use the palette already located at 0xDC4338.

SplitImages:


And make the following hex edits:
Spoiler:
Change 0x1C0F88, 0x1C1328 and 0x1C17A0 to [inserted ASM address +1]
Change 0x1C0F54, 0x1C12F4 and 0x1C175A to 08 47
Change 0x1C0F4E to 40 B4 00 26
Change 0x1C12EE to 40 B4 01 26
Change 0x1C1754 to 40 B4 02 26


It can also support extended movesets just fine (see screenshot above), all you need to do is change .MoveBase to the start of your repointed move table.

And that should be all you need. I've tested it and it should work properly on the Battle Moves page, while re-ordering moves, and when teaching new moves. If there are any issues, let me know. Permission to use it in a hack isn't needed, though credit is appreciated.
I'm having some trouble getting this to work properly in my ROM. I followed the instructions as best I could, and here are some details:

* I used NSE 2.1 to insert the image at xF58BB4
* I inserted the routine at xF58D34 after setting the last line to ".SplitImages: .word 0xF58BB4" (I also tried 0x08F58BB4)
* I changed the bytes at x1C0F88, x1C1328, and x1C17A0 to 08F58D35

When I load up the game and select a move on the Summary screen, it freezes like this: [IMAGE]http://i.cubeupload.com/RWXy5e.png[/IMAGE]

Any help figuring out what I'm doing wrong would be really appreciated. Thanks!
Reply With Quote
  #244    
Old May 11th, 2014 (11:03 PM).
mamamama
 
Join Date: Feb 2014
Quote:
Originally Posted by Shufflejoy View Post
I'm having some trouble getting this to work properly in my ROM. I followed the instructions as best I could, and here are some details:

* I used NSE 2.1 to insert the image at xF58BB4
* I inserted the routine at xF58D34 after setting the last line to ".SplitImages: .word 0xF58BB4" (I also tried 0x08F58BB4)
* I changed the bytes at x1C0F88, x1C1328, and x1C17A0 to 08F58D35

When I load up the game and select a move on the Summary screen, it freezes like this: [IMAGE]http://i.cubeupload.com/RWXy5e.png[/IMAGE]

Any help figuring out what I'm doing wrong would be really appreciated. Thanks!
I had the same problem first time I tried it. I'm 90% sure you've place the hex edits in slightly wrong positions. Take screenshots of your hex-edits and I can compare it to my current working ones.
Reply With Quote
  #245    
Old May 26th, 2014 (09:29 PM).
Shufflejoy's Avatar
Shufflejoy
Tutturu!
 
Join Date: Sep 2013
Gender: Female
Nature: Quiet
Quote:
Originally Posted by mamamama View Post
I had the same problem first time I tried it. I'm 90% sure you've place the hex edits in slightly wrong positions. Take screenshots of your hex-edits and I can compare it to my current working ones.
Hey, sorry it took me so long to get back to you with this. I tried it again and ran into the same problem.

https://www.dropbox.com/sh/uqvpgx35b...V1CZWdBCduyzia

In that folder, the diff windows show the hex changes I made (with the changed version on top), and the screenshots show the process of inserting the image and the ASM routine.

When I try to test it in game, this happens: https://www.dropbox.com/s/cz9jbms6xhy88n0/oops.mp4

The game freezes in that video, but sometimes it just restarts the game immediately upon pressing A.

Any help with this would really be appreciated!
Reply With Quote
  #246    
Old May 28th, 2014 (02:36 PM).
dontstay96's Avatar
dontstay96
Grass-man
 
Join Date: Feb 2011
Location: Pasalacqua
Gender: Male
Nature: Modest
Quote:
Originally Posted by DoesntKnowHowToPlay View Post
Now that I have enough posts to put this here I might as well for convenience's sake, it was rather rude of me to not just bypass the filter to get these links up:

FR: http://www.mediafire.com/download.php?7e0m7xhmyaga2af
Em: http://www.mediafire.com/download.php?ipcjia5b778zj8o

Like with the other implementations in this thread, they work off the eleventh byte of the move data. They also implement the Special Defense boost in Sand, and jump through a number of other hoops to not break existing abilities and attacks, which is why I provide them as patches and not simple hex edits. Be aware that these patches do not touch the move table- you'll have to toggle the moves as physical or special yourself. I recommend using a hex editor or Nightmare for this, but PGE can also do the job (slowly).

Credits go to Tailes for most of the work on the Emerald split.

Also yes you can use these for your hacks just give credit you don't need to pm me for permission and plz don't
Hello I downloaded the emerald patch, but it doesn't seem to work (i patch it with lunar IPS, right?), at least absorb still counts as a physical attack, do I need to have another version or the rom or something? thanks! and sorry for bothering you
__________________
3DS FC: 0533-5538-0146
IGN: Charles
Poison Safari: Gloom, Garbodor and Drapion (At least the Drapion is cool!)
Champion of the Single Grass Monotype Challenge on Pokémon Sapphire
Champion of the Nuzlocke Challenge on Pokémon Platinum
"No man can eat 50 eggs" - Tré Cool
I battle competitively with my favorite Pokémon, not with the most used or the ones with the better stats, copy this in your sig if you do it too.
Reply With Quote
  #247    
Old May 28th, 2014 (03:11 PM).
Shiny Quagsire's Avatar
Shiny Quagsire
I like .short's because they're comfy and easy to wear.
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 16
Gender: Male
Nature: Jolly
Quote:
Originally Posted by dontstay96 View Post
Hello I downloaded the emerald patch, but it doesn't seem to work (i patch it with lunar IPS, right?), at least absorb still counts as a physical attack, do I need to have another version or the rom or something? thanks! and sorry for bothering you
I'm not sure if you noticed this but there's kinda a thing in the post you quoted...
Quote:
Originally Posted by DoesntKnowHowToPlay
Be aware that these patches do not touch the move table- you'll have to toggle the moves as physical or special yourself.
__________________



Reply With Quote
  #248    
Old May 28th, 2014 (05:30 PM).
dontstay96's Avatar
dontstay96
Grass-man
 
Join Date: Feb 2011
Location: Pasalacqua
Gender: Male
Nature: Modest
Quote:
Originally Posted by Shiny Quagsire View Post
I'm not sure if you noticed this but there's kinda a thing in the post you quoted...
Oops, I'm an idiot sorry
__________________
3DS FC: 0533-5538-0146
IGN: Charles
Poison Safari: Gloom, Garbodor and Drapion (At least the Drapion is cool!)
Champion of the Single Grass Monotype Challenge on Pokémon Sapphire
Champion of the Nuzlocke Challenge on Pokémon Platinum
"No man can eat 50 eggs" - Tré Cool
I battle competitively with my favorite Pokémon, not with the most used or the ones with the better stats, copy this in your sig if you do it too.
Reply With Quote
  #249    
Old May 29th, 2014 (01:17 AM).
RaileysXerilyasRX's Avatar
RaileysXerilyasRX
You have failed me from the last time.
 
Join Date: Feb 2014
Location: Philippines
Gender: Male
Nature: Adamant
Send a message via Skype™ to RaileysXerilyasRX
Quote:
Originally Posted by DoesntKnowHowToPlay View Post
Now that I have enough posts to put this here I might as well for convenience's sake, it was rather rude of me to not just bypass the filter to get these links up:

FR: http://www.mediafire.com/download.php?7e0m7xhmyaga2af
Em: http://www.mediafire.com/download.php?ipcjia5b778zj8o

Like with the other implementations in this thread, they work off the eleventh byte of the move data. They also implement the Special Defense boost in Sand, and jump through a number of other hoops to not break existing abilities and attacks, which is why I provide them as patches and not simple hex edits. Be aware that these patches do not touch the move table- you'll have to toggle the moves as physical or special yourself. I recommend using a hex editor or Nightmare for this, but PGE can also do the job (slowly).

Credits go to Tailes for most of the work on the Emerald split.

Also yes you can use these for your hacks just give credit you don't need to pm me for permission and plz don't
Does the FireRed patch fills free space or not? I'll try this later but what I mean to ask is does the patch takes 700000-FFFFFF (any free space near 700000). Well, If you can't understand what am I saying. That's fine. I'll try to clear my explanation later. :3
__________________
RaileysXerilyasRX
Pokémon Dark Vengeance Version
Reply With Quote
  #250    
Old May 30th, 2014 (06:54 PM).
athill1's Avatar
athill1
 
Join Date: Feb 2012
Age: 19
Gender: Male
So I just put this in Ruby:
0803BA94: 80 7A
0803BFBE: 00 29
0803BFC0: 00 D0
0803C124: 02 2E
0803C126: 00 DB
0803C12C: 01 28
0803C12E: 00 D0

It seems to work and I was wondering if there known problems like weather not affecting damage or Blaze/Torrent/Overgrow ect. being out of wack. If these bugs affect me how can I fix them?
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 11:25 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.