The PokéCommunity Forums  

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

Notices

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.

Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #20726    
Old March 11th, 2012 (01:22 PM).
Capitalist Ness's Avatar
Capitalist Ness
 
Join Date: Jul 2008
Location: Poland
Nature: Relaxed
Hello! I came back, with another simple(?) question!
I replaced Shedinja with Chatot, and edited stats, and other things.
So, I gave it to one trainer, and all my friends that tested my hack told me that Chatot was fainting to every single weakest move. Yeah, even Poison Sting. So, I caught it and checked its stats. And that's where problem is.
Chatot has 1 hp.
I seriously have no idea why. I thought that changing its base HP with YAPE 0.9 will change it. But no, Chatot has 1 HP.

Is Shedinja's HP somewhere deeper in coding? Hex? ASM(God, please, not this)?
I hope you guys help me, I'm counting on you.

And seriously, I hope I didn't ask for something that was never mentioned before(really? no one cares about breeding?) again. It's like 830 pages here!
  #20727    
Old March 11th, 2012 (01:45 PM).
sonic1's Avatar
sonic1
ASM is my life now...
 
Join Date: May 2008
Location: Portugal
Age: 20
Gender: Male
Nature: Timid
Quote:
Originally Posted by Flame View Post
Hello! I came back, with another simple(?) question!
I replaced Shedinja with Chatot, and edited stats, and other things.
So, I gave it to one trainer, and all my friends that tested my hack told me that Chatot was fainting to every single weakest move. Yeah, even Poison Sting. So, I caught it and checked its stats. And that's where problem is.
Chatot has 1 hp.
I seriously have no idea why. I thought that changing its base HP with YAPE 0.9 will change it. But no, Chatot has 1 HP.

Is Shedinja's HP somewhere deeper in coding? Hex? ASM(God, please, not this)?
I hope you guys help me, I'm counting on you.

And seriously, I hope I didn't ask for something that was never mentioned before(really? no one cares about breeding?) again. It's like 830 pages here!
What version are we talking about?
If FireRed, there are plenty of people who can help you (knizz, Jambo51, Shiny Guagsire etc...).
If Emerald, i can make a quick research about it, even though i'm almost sure i wont find out
If Ruby, then ask ZodiacDaGreat.
__________________
This signature has been disabled.
over 350px high
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
  #20728    
Old March 11th, 2012 (01:50 PM).
Capitalist Ness's Avatar
Capitalist Ness
 
Join Date: Jul 2008
Location: Poland
Nature: Relaxed
Quote:
Originally Posted by sonic1 View Post


What version are we talking about?
If FireRed, there are plenty of people who can help you (knizz, Jambo51, Shiny Guagsire etc...).
If Emerald, i can make a quick research about it, even though i'm almost sure i wont find out
If Ruby, then ask ZodiacDaGreat.
I'm talking about Ruby. Well, I thought that Shedinja's coding isn't different in all these versions. I'll ask him then.
  #20729    
Old March 12th, 2012 (12:04 AM).
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
Community Supporter
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 22
Gender: Male
Nature: Calm
I presume that you hit the spot...
Since Shedinja has also special evolution and probably to prevent giving Shedinja more HP throughout cheating engine Shedinja might have the coding deeper in game...
There's also way to prevent it by not replacing Shedinja xD
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #20730    
Old March 12th, 2012 (02:27 AM).
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Quote:
Originally Posted by Flame View Post
Hello! I came back, with another simple(?) question!
I replaced Shedinja with Chatot, and edited stats, and other things.
So, I gave it to one trainer, and all my friends that tested my hack told me that Chatot was fainting to every single weakest move. Yeah, even Poison Sting. So, I caught it and checked its stats. And that's where problem is.
Chatot has 1 hp.
I seriously have no idea why. I thought that changing its base HP with YAPE 0.9 will change it. But no, Chatot has 1 HP.

Is Shedinja's HP somewhere deeper in coding? Hex? ASM(God, please, not this)?
I hope you guys help me, I'm counting on you.

And seriously, I hope I didn't ask for something that was never mentioned before(really? no one cares about breeding?) again. It's like 830 pages here!
Shedinja is hardcoded to always have 1 HP.
Code:
0803E554                 LDR     R0, =0x12F
0803E556                 CMP     R7, R0
0803E558                 BNE     loc_0803E568    @ Routine to calculate HP.
0803E55A                 MOVS    R0, #1
0803E55C                 STR     R0, [SP,#0x60+var_5C]
To fix this change the byte at 0003E559 in a hex editor from D1 to E0.

Offsets are for FireRed.

Credits to NintendoBoy13 for researching stats at level-up. Notes are here: http://codepad.org/b5Rh4dk1
__________________
あなた は しきしゃ です
わたし は ばか です
  #20731    
Old March 12th, 2012 (02:58 AM).
Magic's Avatar
Magic
Guardian of the Great Rift
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Does anyone know the offsets for the bytes that store player information like name, gender and trainer ID?
__________________
  #20732    
Old March 12th, 2012 (07:15 AM).
Capitalist Ness's Avatar
Capitalist Ness
 
Join Date: Jul 2008
Location: Poland
Nature: Relaxed
Quote:
Originally Posted by Darthatron View Post
Shedinja is hardcoded to always have 1 HP.
Code:
0803E554                 LDR     R0, =0x12F
0803E556                 CMP     R7, R0
0803E558                 BNE     loc_0803E568    @ Routine to calculate HP.
0803E55A                 MOVS    R0, #1
0803E55C                 STR     R0, [SP,#0x60+var_5C]
To fix this change the byte at 0003E559 in a hex editor from D1 to E0.

Offsets are for FireRed.

Credits to NintendoBoy13 for researching stats at level-up. Notes are here: http://codepad.org/b5Rh4dk1
I'm hacking Ruby. :\
Anyway, just PM'd ZodiacDaGreat, so I'm waiting response from here, still I expect solution here.
  #20733    
Old March 12th, 2012 (07:53 AM).
miksy91's Avatar
miksy91
A GB/C Rom Hacker since 2010
 
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Flame View Post
I'm hacking Ruby. :\
Anyway, just PM'd ZodiacDaGreat, so I'm waiting response from here, still I expect solution here.
Dartharon already did the job for you although he didn't say the straight offset where you should go to change the byte from D1 to E0.
So basically, open Firered rom with a hex editor and see how the rom area at $3E559 is and search for that same code (=same bytes written over there) in a Ruby rom.

Some more tips: The code you want to change is between offsets $3B200 and $3B300.
__________________
My Rom Hack



Hacks I support





Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations
  #20734    
Old March 12th, 2012 (09:32 AM).
sonic1's Avatar
sonic1
ASM is my life now...
 
Join Date: May 2008
Location: Portugal
Age: 20
Gender: Male
Nature: Timid
Found it for ruby:

Code:
0803B290                 LDR     R0, =0x12F    @Shedjinja
0803B292                 CMP     R7, R0
0803B294                 BNE     loc_803B2A4
0803B296                 MOVS    R0, #1
0803B298                 STR     R0, [SP,#0x60+hp]
0803B29A                 LSLS    R6, R7, #3
0803B29C                 B       loc_803B2D2
0803B29C @ ---------------------------------------------------------------------------
0803B29E                 .byte    0
0803B29F                 .byte    0
0803B2A0 dword_803B2A0:  .long 0x12F             @ DATA XREF: sub_803B1B8+D8r
0803B2A4 @ ---------------------------------------------------------------------------
0803B2A4
0803B2A4 loc_803B2A4:                            @ CODE XREF: sub_803B1B8+DCj
0803B2A4                 LDR     R1, =base_stats
....................
Its the equivalent to the firered one!

~Sonic1
__________________
This signature has been disabled.
over 350px high
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
  #20735    
Old March 12th, 2012 (09:48 AM).
tinix's Avatar
tinix
PearlShipper & C Programmer
 
Join Date: Feb 2010
Location: Bratislava, Slovakia
Age: 17
Gender: Male
Quote:
Originally Posted by SwiftSign View Post
Does anyone know the offsets for the bytes that store player information like name, gender and trainer ID?
If you want to access it at runtime the there are pointers stored at these memory addresses:
FR: 0x0300500C
RS: 0x03005D90
E: 0x02024EA4
Structure:
Quote:
Originally Posted by HackMew
[Name (8 bytes)]
[Gender (1 byte)]
[??? (1 byte)]
[Trainer ID (2 bytes)]
[Secret ID (2 bytes)]
[Hours of play (2 bytes)]
[Minutes (1 byte)]
[Seconds (1 byte)]
[Frames (1 byte)]
[??? (1 byte)]
[Options (2 bytes)]
__________________
Pokémon games i own:
Pokémon Diamond
Pokémon Platinum
Pokémon Ranger: Shadows of Almia
Pokémon HeartGold Version

75% of Pokemon gamers use cheats and specially made codes to make their pokemon battle-worthy. If you are one of the 25% percent that level their Pokemon up legally, put this in your signature.
-Started by SkittyLover77


  #20736    
Old March 12th, 2012 (10:26 AM). Edited March 12th, 2012 by Capitalist Ness.
Capitalist Ness's Avatar
Capitalist Ness
 
Join Date: Jul 2008
Location: Poland
Nature: Relaxed
Found it. Changed it. Battled it.
Chatot starts battle with one HP, but his max HP is all right(didn't caught it, but wild Chatots have one HP point).
Guess I need to change another one byte, but hey, I started hexing a week ago.
Really.

Hmm...
Maybe...
I'll make Chatot exclusive from givepokemon script, and then put special for healing all Pokemon.
No one will notice...
Heheheh...
  #20737    
Old March 12th, 2012 (10:34 AM).
paranvoi
Beginning Trainer
 
Join Date: Jan 2012
Gender: Male
Does anyone know why when I dump the menu text in Fire Red (using WindHex) I get incomplete text? Here's an extract:

Code:
//ATUS P[LINE]
//ROBLEM[LINE]
//END[LINE]
That should read "STATUS PROBLEM" but the first 2 letters of "STATUS"
are missing, plus there's an unnessecary line break after the first
letter of "PROBLEM". The entire dumped .txt file looks like that. Solutions...?
  #20738    
Old March 12th, 2012 (11:02 AM).
sonic1's Avatar
sonic1
ASM is my life now...
 
Join Date: May 2008
Location: Portugal
Age: 20
Gender: Male
Nature: Timid
[FONT="Maven Pro"]
Quote:
Originally Posted by tinix View Post
If you want to access it at runtime the there are pointers stored at these memory addresses:
FR: 0x0300500C
RS: 0x03005D90
E: 0x02024EA4
Structure:


You actually misleaded in R/S and E. Its switched. Besides, in ruby, theres no pointer (but i know you know that, i'm not trying to sound like capitain obvious or something, just pointing out )
__________________
This signature has been disabled.
over 350px high
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
  #20739    
Old March 12th, 2012 (12:20 PM). Edited March 12th, 2012 by KoKoros.
KoKoros's Avatar
KoKoros
Beginning Trainer
 
Join Date: Apr 2011
Location: Nowhere
Gender: Female
Nature: Timid
Can anyone here give me a script to make a trainer who you talk to, and then battle them? because i can find to tutorials for that. And i would also want to know how to add pokemon cries in while the person talks. (if you don't know what that means, when you talk to a.. pikachu or something in the game, you can hear its cry, and the textbox.

I meant can't.. not can >_<
  #20740    
Old March 12th, 2012 (04:33 PM).
Rumille's Avatar
Rumille
Togepi
 
Join Date: Feb 2012
Gender: Male
When you look in Advance Map in the Pallet Town map, you see Prof Oak standing right next to your house. But if you play the game he becomes invisible and you can walk right through the spot where he is supposed to stand. He will stay this way untill you reach the grass where he stops you. How do I make a sprite invisible untill a kind-of-alike script is activated?
  #20741    
Old March 12th, 2012 (09:52 PM).
miksy91's Avatar
miksy91
A GB/C Rom Hacker since 2010
 
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Rumille View Post
When you look in Advance Map in the Pallet Town map, you see Prof Oak standing right next to your house. But if you play the game he becomes invisible and you can walk right through the spot where he is supposed to stand. He will stay this way untill you reach the grass where he stops you. How do I make a sprite invisible untill a kind-of-alike script is activated?
See "Script Help" -thread.

To have person event's flag bit as 1 (=set) before you "encounter" it in the game, you've to set it in another event that occurs before that.
If there is no "mandatory" event before that happening, you've to set it through map's Script Header.

(Proper way would be doing it through assembly that's gone through in the intro but that's not required so...)
__________________
My Rom Hack



Hacks I support





Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations
  #20742    
Old March 13th, 2012 (12:22 AM).
pokeyou
Beginning Trainer
 
Join Date: Mar 2012
Hi,

Is there a way to add an RTC into Pokemon Ruby that will cause berries to grow using a Game Boy Micro and EZ Flash IV?

I tried the GBATA patch and while I don't get a message that the battery is dry at the start, the berries I plant don't seem to grow and the clock doesn't change either.

I also tried the Day Night Systems, but those seem to rely upon emulators for RTC and don't work with flash carts?
  #20743    
Old March 13th, 2012 (06:53 AM).
redriders180's Avatar
redriders180
Mastermind of Pokemon Glazed
 
Join Date: Jun 2010
Location: Path of Victory, Tunod
Gender: Male
Nature: Quirky
Send a message via AIM to redriders180 Send a message via Skype™ to redriders180
Quote:
Originally Posted by miksy91 View Post
See "Script Help" -thread.

To have person event's flag bit as 1 (=set) before you "encounter" it in the game, you've to set it in another event that occurs before that.
If there is no "mandatory" event before that happening, you've to set it through map's Script Header.

(Proper way would be doing it through assembly that's gone through in the intro but that's not required so...)
This isn't strictly true...the first script (yes, its a script) the game runs is setting plenty of flags and variables just for this purpose. I can't find where I read where the offset is, but it is somewhere, and it is easily edited.
__________________


Superfan of Pokemon Glazed? Click here to join the official Pokemon Glazed Facebook Page!

Thank you for hatching the eggs!
Please view these dragons! Just click them and you're done!
If you don't help them grow up, they'll die...


  #20744    
Old March 13th, 2012 (09:16 AM).
Spherical Ice's Avatar
Spherical Ice
 
Join Date: Nov 2007
Location: UK
Send a message via Skype™ to Spherical Ice
How would one go about finding out how to display the animations shown before a battle begins (wavy screen, black shapes, pokeballs)?
__________________
  #20745    
Old March 13th, 2012 (10:45 AM).
sonic1's Avatar
sonic1
ASM is my life now...
 
Join Date: May 2008
Location: Portugal
Age: 20
Gender: Male
Nature: Timid
Quote:
Originally Posted by Spherical Ice View Post
How would one go about finding out how to display the animations shown before a battle begins (wavy screen, black shapes, pokeballs)?
For firered, that routine is at this offset: 0807F690

Pass the animation number in r0.

Example of usage:

In script, use the command b6, setwildbattle to a pokemon you want.
After that, using writebytetooffset, clear (write 00) to offsets 02022b4c/d/e/f)
the call asm a routine that writes the animation number to r0 and 00 to r1 and bl's to that offset up there.
__________________
This signature has been disabled.
over 350px high
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
  #20746    
Old March 13th, 2012 (10:51 AM).
Spherical Ice's Avatar
Spherical Ice
 
Join Date: Nov 2007
Location: UK
Send a message via Skype™ to Spherical Ice
Quote:
Originally Posted by sonic1 View Post


For firered, that routine is at this offset: 0807F690

Pass the animation number in r0.

Example of usage:

In script, use the command b6, setwildbattle to a pokemon you want.
After that, using writebytetooffset, clear (write 00) to offsets 02022b4c/d/e/f)
the call asm a routine that writes the animation number to r0 and 00 to r1 and bl's to that offset up there.
Lol I think I understood half of that. Unfortunately I'm not the most adept at ASM. So my script should be:

setwildbattle 0x1 0x5 0x0
writebytetooffset 0x0 0x2022b4c
writebytetooffset 0x0 0x2022b4d
writebytetooffset 0x0 0x2022b4e
writebytetooffset 0x0 0x2022b4f
callasm 0xaddress

What would the asm code be, though? I literally have no idea lol.
__________________
  #20747    
Old March 13th, 2012 (11:02 AM).
ChAriZard 9's Avatar
ChAriZard 9
I'm a LEGIT Pokemon master!!
 
Join Date: May 2011
Location: United States
Age: 22
Gender: Male
Nature: Calm
How do I change the layout of the Fire Red map? I'm wanting to make a hack and I got some of the tiles inserted but can't start until I do the map.
__________________
My theory is; If Ash evolved his pokemon then, maybe, he would win the championships.

What legendary would win? Don't wanna get involved in that fight, it would be more like a suicide mission.
  #20748    
Old March 13th, 2012 (11:04 AM).
sonic1's Avatar
sonic1
ASM is my life now...
 
Join Date: May 2008
Location: Portugal
Age: 20
Gender: Male
Nature: Timid
Code:
push {r0-r4,lr}
mov r0, #0x8      @ Example of animation. 8 is wild battle, if i remember correctly. Change to whatever you want
mov r1, #0x0
mov r4, #0x0807F690+1
bl bx_r4
pop {r0-r4,pc}

bx_r4: bx r4
A simple code like this. Its not necessary to be a wise master to do this.
__________________
This signature has been disabled.
over 350px high
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
  #20749    
Old March 13th, 2012 (04:31 PM).
camoclone's Avatar
camoclone
Beginning Trainer
 
Join Date: Mar 2012
Gender: Male
1. This is my 1st time and I'm hacking pokemon ruby. So I need a program like advanced map or something. I am working on a mac though because that's the only computer that I have access to. Does anyone know of a pokemon like advanced Map that I can use on a Mac?
2. I want to change the sprites of the pokemon and again I need a program that can run on Mac.
3. I want to change the title screen (on a Mac and with a program)
4. I want to change the starter pokemon
(all on a Mac and with a pokemon and for ruby.
I have searched all these on google
  #20750    
Old March 13th, 2012 (04:40 PM).
droomph's Avatar
droomph
mmm gurl that 90s
Community Supporter
 
Join Date: Sep 2011
Location: bar'jách
Age: 17
Gender: Male
Nature: Impish
Quote:
Originally Posted by camoclone View Post
1. This is my 1st time and I'm hacking pokemon ruby. So I need a program like advanced map or something. I am working on a mac though because that's the only computer that I have access to. Does anyone know of a pokemon like advanced Map that I can use on a Mac?
2. I want to change the sprites of the pokemon and again I need a program that can run on Mac.
3. I want to change the title screen (on a Mac and with a program)
4. I want to change the starter pokemon
(all on a Mac and with a pokemon and for ruby.
I have searched all these on google
I'm on a Mac too, so I know you HAVE to use Wine/X11. It's not the most convenient thing in the world, but hey, if you don't want to, you'll have to use a PC, because honestly nobody here cares about Mac.
__________________
did u no there r 21 letters in the alphabet
o i forgot 5
uraqt


Closed Thread
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:49 AM.


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.