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
 
Thread Tools
  #1    
Old February 2nd, 2010, 06:50 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006

Brief Intro


The Pomeg Glitch is a glitch exclusive to Emerald. Since the Pomeg Berry usually lowers HP by 2, if used on a 1-HP Pokémon (Shedinja aside), the HP stat of the Pokémon could become -1, which the game interprets as 65535 (but displayed as "?35" because the game wasn't intended to display such high values).

Description


Here's a part of the routine coming from Emerald US v1.0:

Code:
08068fd2 2900 cmp r1, #0x0 08068fd4 d104 bne $08068fe0
Those two lines basically check the Pokémon's HP and in case it's fainted, the HP won't decrease at all. Which makes sense, but that's where the glitch come from. Checking if the HP value is 0x0 is not enough, indeed. We need to make sure it is at least greater than 0x2 before decreasing HP, which will be also useful to prevent the Pokémon to get knocked out after using a Pomeg Berry on it:

Code:
08068fd2 2902 cmp r1, #0x2 08068fd4 dc04 bgt $08068fe0
So, all you have to do is to replace 00 29 04 D1 with 02 29 04 DC.

The Offsets


  • Emerald US v1.0

    Code:
    0x68FD2

This research document is Copyright © 2010 by HackMew.
You are not allowed to copy, modify or distribute it without permission.
__________________

Last edited by HackMew; February 3rd, 2010 at 03:13 AM.
Reply With Quote
  #2    
Old February 2nd, 2010, 07:16 AM
Tropical Sunlight's Avatar
Tropical Sunlight
The Faltine
 
Join Date: Mar 2008
Location: Slovenia
Age: 18
Gender: Male
Send a message via Windows Live Messenger to Tropical Sunlight
Whoa, there's a glitch like that? :D
Gotta try it out!
Reply With Quote
  #3    
Old February 2nd, 2010, 07:22 AM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 21
Gender: Male
Nature: Naive
There's a problem with the fix - it means that the Pomeg Berry will be unusable on Shedinja. This is especially problematic, as HP EVs are useless on it and therefore people will want to remove them.

Is it not possible to, after the HP reducing routine completes, check whether the HP is larger than the Pokémon's max HP, and if so, reduce it to 0? It would be more complex than your current method, but more effective.
__________________
Reply With Quote
  #4    
Old February 2nd, 2010, 07:51 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by Wichu View Post
There's a problem with the fix - it means that the Pomeg Berry will be unusable on Shedinja. This is especially problematic, as HP EVs are useless on it and therefore people will want to remove them.
The Pomeg Berry is useless on Shedinja anyway, fix or not. Shedinja's HP EVs cannot increase.
__________________
Reply With Quote
  #5    
Old February 2nd, 2010, 08:09 AM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 21
Gender: Male
Nature: Naive
Wow, I never knew that. Still, it's a bit inconvenient to have to heal your Pokémon before using a Pomeg berry on it...
__________________
Reply With Quote
  #6    
Old February 2nd, 2010, 08:12 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by Wichu View Post
Wow, I never knew that. Still, it's a bit inconvenient to have to heal your Pokémon before using a Pomeg berry on it...
What are you talking about? o_O
__________________
Reply With Quote
  #7    
Old February 2nd, 2010, 08:51 AM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 21
Gender: Male
Nature: Naive
You can't use a Pomeg Berry on a Pokémon with less than 3HP, so if your Pokémon is somehow weakened in battle, you'll have to heal it first.
Does the game check for your Pokémon fainting upon using a Pomeg Berry (i.e. sending you to a Pokémon Center if its HP is reduced to 0)? I seem to recall that it doesn't; in that case, using a Pomeg Berry on a high-leveled Pokémon with 3HP remaining may reduce the HP to 0, allowing you to battle without any non-fainted Pokémon in your party. If it does, ignore that part :P
__________________
Reply With Quote
  #8    
Old February 2nd, 2010, 09:57 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by Wichu View Post
You can't use a Pomeg Berry on a Pokémon with less than 3HP, so if your Pokémon is somehow weakened in battle, you'll have to heal it first.
Does the game check for your Pokémon fainting upon using a Pomeg Berry (i.e. sending you to a Pokémon Center if its HP is reduced to 0)? I seem to recall that it doesn't; in that case, using a Pomeg Berry on a high-leveled Pokémon with 3HP remaining may reduce the HP to 0, allowing you to battle without any non-fainted Pokémon in your party. If it does, ignore that part :P
No, no, no. You can use the Pomeg Berry on a Pokémon with less than 3 HP. However, it won't cause any HP decreasing.
__________________
Reply With Quote
  #9    
Old February 4th, 2010, 09:11 AM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 21
Gender: Male
Nature: Gentle
Aww, I liked that glitch. I used to do it on my shedinja in my emerald cart to do some legit cheating. lol, I love bug expliots.
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
Reply With Quote
  #10    
Old February 4th, 2010, 09:40 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by 0m3GA ARS3NAL View Post
Aww, I liked that glitch. I used to do it on my shedinja in my emerald cart to do some legit cheating. lol, I love bug expliots.
What do you mean, exactly?
__________________
Reply With Quote
  #11    
Old February 4th, 2010, 09:42 AM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 21
Gender: Male
Nature: Gentle
I have exploited this glitch before, it was funny...
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
Reply With Quote
  #12    
Old February 4th, 2010, 04:04 PM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote:
Originally Posted by 0m3GA ARS3NAL View Post
I have exploited this glitch before, it was funny...
Yeah, I guess. But I don't see how Shedinja would help.
__________________
Reply With Quote
  #13    
Old February 4th, 2010, 10:46 PM
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 21
Gender: Male
Nature: Gentle
Just for kicks, and showing off...
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
Reply With Quote
  #14    
Old March 27th, 2010, 08:10 PM
NatureKeeper
No longer active here.
 
Join Date: Jun 2008
Location: Somewhere.
Age: 16
Gender: Male
Nature: Hasty
Send a message via Windows Live Messenger to NatureKeeper Send a message via Skype™ to NatureKeeper
That's pretty good. Nice how Nintendo fails and ASM fixes that.
Pretty good. Too bad I am not hacking Emerald...

Last edited by Christos; March 27th, 2010 at 10:06 PM.
Reply With Quote
  #15    
Old March 28th, 2010, 10:59 AM
Pingouin_7
This account is now inactive
 
Join Date: Oct 2008
Age: 20
Gender: Male
Nature: Hardy
Quote:
Originally Posted by 0m3GA ARS3NAL View Post
Aww, I liked that glitch.
Except you don't need to download the fix.
__________________
This account is now inactive.
See: Pingouin7
Reply With Quote
  #16    
Old April 30th, 2010, 06:34 PM
jshann04
Beginning Trainer
 
Join Date: Mar 2010
Location: Davison, MI USA
Gender: Male
Nature: Docile
Quote:
Originally Posted by HackMew View Post
Yeah, I guess. But I don't see how Shedinja would help.


It is the fact that shedinja stops any non-super-effective moves from doing any damage, but can only have 1 max hp ever. Any true hit would kill it, unless you use that glitch to give it godly hp.
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 12:38 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.