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!

Reply
 
Thread Tools
  #1    
Old February 2nd, 2010 (6:50 AM). Edited February 3rd, 2010 by HackMew.
HackMew's Avatar
HackMew HackMew is offline

Mewtwo Strikes Back

  • Crystal Tier
 
Join Date: Jun 2006
Posts: 1,314

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.

__________________

Reply With Quote

Relevant Advertising!

  #2    
Old February 2nd, 2010 (7:16 AM).
Tropical Sunlight's Avatar
Tropical Sunlight Tropical Sunlight is offline
The Faltine
     
    Join Date: Mar 2008
    Location: Slovenia
    Age: 21
    Gender: Male
    Posts: 3,572

    Whoa, there's a glitch like that? :D
    Gotta try it out!

    Reply With Quote
      #3    
    Old February 2nd, 2010 (7:22 AM).
    Wichu's Avatar
    Wichu Wichu is offline
    Project Amethyst
       
      Join Date: Sep 2007
      Location: North Herts, England
      Age: 24
      Gender: Male
      Nature: Naive
      Posts: 2,051

      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 (7:51 AM).
      HackMew's Avatar
      HackMew HackMew is offline

      Mewtwo Strikes Back

      • Crystal Tier
       
      Join Date: Jun 2006
      Posts: 1,314

      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 (8:09 AM).
      Wichu's Avatar
      Wichu Wichu is offline
      Project Amethyst
         
        Join Date: Sep 2007
        Location: North Herts, England
        Age: 24
        Gender: Male
        Nature: Naive
        Posts: 2,051

        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 (8:12 AM).
        HackMew's Avatar
        HackMew HackMew is offline

        Mewtwo Strikes Back

        • Crystal Tier
         
        Join Date: Jun 2006
        Posts: 1,314

        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 (8:51 AM).
        Wichu's Avatar
        Wichu Wichu is offline
        Project Amethyst
           
          Join Date: Sep 2007
          Location: North Herts, England
          Age: 24
          Gender: Male
          Nature: Naive
          Posts: 2,051

          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 (9:57 AM).
          HackMew's Avatar
          HackMew HackMew is offline

          Mewtwo Strikes Back

          • Crystal Tier
           
          Join Date: Jun 2006
          Posts: 1,314

          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 (9:11 AM).
          0m3GA ARS3NAL's Avatar
          0m3GA ARS3NAL 0m3GA ARS3NAL is offline
          Im comin' home...
          • Silver Tier
           
          Join Date: Jan 2008
          Location: Superjail Penitentiary
          Age: 24
          Gender: Male
          Nature: Gentle
          Posts: 1,812

          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 (9:40 AM).
          HackMew's Avatar
          HackMew HackMew is offline

          Mewtwo Strikes Back

          • Crystal Tier
           
          Join Date: Jun 2006
          Posts: 1,314

          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 (9:42 AM).
          0m3GA ARS3NAL's Avatar
          0m3GA ARS3NAL 0m3GA ARS3NAL is offline
          Im comin' home...
          • Silver Tier
           
          Join Date: Jan 2008
          Location: Superjail Penitentiary
          Age: 24
          Gender: Male
          Nature: Gentle
          Posts: 1,812

          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 (4:04 PM).
          HackMew's Avatar
          HackMew HackMew is offline

          Mewtwo Strikes Back

          • Crystal Tier
           
          Join Date: Jun 2006
          Posts: 1,314

          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 0m3GA ARS3NAL is offline
          Im comin' home...
          • Silver Tier
           
          Join Date: Jan 2008
          Location: Superjail Penitentiary
          Age: 24
          Gender: Male
          Nature: Gentle
          Posts: 1,812

          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 (8:10 PM). Edited March 27th, 2010 by Christos.
          NatureKeeper NatureKeeper is offline
          No longer active here.
             
            Join Date: Jun 2008
            Location: Somewhere.
            Age: 19
            Gender: Male
            Nature: Hasty
            Posts: 1,233

            That's pretty good. Nice how Nintendo fails and ASM fixes that.
            Pretty good. Too bad I am not hacking Emerald...

            Reply With Quote
              #15    
            Old March 28th, 2010 (10:59 AM).
            Pingouin_7 Pingouin_7 is offline
            This account is now inactive
               
              Join Date: Oct 2008
              Age: 23
              Posts: 244

              Quote:
              Originally Posted by 0m3GA ARS3NAL View Post
              Aww, I liked that glitch.

              Except you don't need to download the fix.

              Reply With Quote
                #16    
              Old April 30th, 2010 (6:34 PM).
              jshann04 jshann04 is offline
                 
                Join Date: Mar 2010
                Location: Davison, MI USA
                Gender: Male
                Nature: Docile
                Posts: 1

                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

                Forum Jump


                All times are GMT -8. The time now is 11:09 AM.