The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other RATTATA'S Dex entry appears instead of Expanded mon entry

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old November 26th, 2014 (4:46 AM).
Lance32497's Avatar
Lance32497 Lance32497 is offline
LanceKoijer of Pokemon_Addicts
 
Join Date: Aug 2014
Location: Criscanto town-Ginoa Region xD
Gender: Male
Nature: Adamant
Posts: 792
So I made to let expanded mons appear in a wild, but when I caught it, it loads Rattatas dex entry, anyways, Im using Firered rom..
tnkx
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 26th, 2014 (12:28 PM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
A similar thing occurs for me, incidentally with Zigzagoon instead of Rattata (perhaps it has to do with the Pokémon on the first route or something?). It is definitely curious. If it helps I expanded with G3HS.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old November 26th, 2014 (12:34 PM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Sounds like someone forgot to turn off a limiter somewhere to me. Does the "Seen" and "Caught" flags get set for the Rattata\Zigzagoon or the original Pokemon?
__________________
...
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old November 26th, 2014 (1:26 PM).
Lance32497's Avatar
Lance32497 Lance32497 is offline
LanceKoijer of Pokemon_Addicts
 
Join Date: Aug 2014
Location: Criscanto town-Ginoa Region xD
Gender: Male
Nature: Adamant
Posts: 792
Quote:
Originally Posted by FBI agent View Post
Sounds like someone forgot to turn off a limiter somewhere to me. Does the "Seen" and "Caught" flags get set for the Rattata\Zigzagoon or the original Pokemon?
IDK, I think, if thats the problem, how to fix that?
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old November 26th, 2014 (2:03 PM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by Lance32497 View Post
IDK, I think, if thats the problem, how to fix that?
Well, we don't even know the problem right now. I'm not familiar with how GS3 is expanding Pokemon. However, if the seen/caught flags are set I can begin to deduce what's going on. That and I'd need a ROM with the Pokemon inserted and this bug happening to do anything (if I wanted to).
__________________
...
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old November 26th, 2014 (2:11 PM).
Lance32497's Avatar
Lance32497 Lance32497 is offline
LanceKoijer of Pokemon_Addicts
 
Join Date: Aug 2014
Location: Criscanto town-Ginoa Region xD
Gender: Male
Nature: Adamant
Posts: 792
Quote:
Originally Posted by FBI agent View Post
Well, we don't even know the problem right now. I'm not familiar with how GS3 is expanding Pokemon. However, if the seen/caught flags are set I can begin to deduce what's going on. That and I'd need a ROM with the Pokemon inserted and this bug happening to do anything (if I wanted to).
If I send you the patch...
can you locate where the problem is?
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old November 26th, 2014 (2:19 PM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by Lance32497 View Post
If I send you the patch...
can you locate where the problem is?
No. I don't really want to go through a debugging process. If you just answer my questions correctly I can tell you what's wrong.

At this point I'm trying to determine if it's just a graphical bug where it's showing the wrong Pokemon while updating the dex with the right one or a deeper bug where it's adding and showing the wrong Pokemon.

If it's the former, I'd check the custom inserted Pokemon's species. They are probably defaulted to Rattata\Zigzagoon. If it's a graphical issue, then I would have to look into it a little more.
__________________
...
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old November 26th, 2014 (2:46 PM).
Lance32497's Avatar
Lance32497 Lance32497 is offline
LanceKoijer of Pokemon_Addicts
 
Join Date: Aug 2014
Location: Criscanto town-Ginoa Region xD
Gender: Male
Nature: Adamant
Posts: 792
Quote:
Originally Posted by FBI agent View Post
No. I don't really want to go through a debugging process. If you just answer my questions correctly I can tell you what's wrong.

At this point I'm trying to determine if it's just a graphical bug where it's showing the wrong Pokemon while updating the dex with the right one or a deeper bug where it's adding and showing the wrong Pokemon.

If it's the former, I'd check the custom inserted Pokemon's species. They are probably defaulted to Rattata\Zigzagoon. If it's a graphical issue, then I would have to look into it a little more.
ahhhh .... okay xD well a Minor bug, ahaha
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old November 29th, 2014 (7:28 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
For me, at least, it's a minor bug. Basically, when you capture an expanded Pokémon (it may be expanded, or simply Pokémon past 151, I can't remember), the Pokédex entry that is displayed as being the Pokémony you captured is always Zigzgagoon's. Everything else works perfectly: the Pokémon you captured is recorded in the Pokédex and you can view its proper entry later on, it's just that one instance of bringing up the Pokédex after the battle that seems to hang on Zigzagoon.
__________________
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old December 20th, 2014 (10:56 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
I've worked out why this is happening, and now that I know I feel like I kind of knew already and just forgot, so needless to say I feel a bit stupid.

But yeah, the reason why this is happening is because the expanded Pokémon doesn't have a habitat entry.
__________________
Reply With Quote
  #11   Link to this post, but load the entire thread.  
Old December 20th, 2014 (11:21 AM).
anonyboy's Avatar
anonyboy anonyboy is offline
Pokemon Aerial Emerald Creator&Pokemon Hybrid Co-Creator
 
Join Date: Sep 2013
Location: Israel
Gender: Male
Nature: Adamant
Posts: 285
Basically it happens when An Extended Pokemon dosen't have a defined habitat entry, so it points to the 1st pokemon in the 1st habitat page: Rattata (Could be Zigzagoon if you use a custom dex/edited kanto dex) if anybody can disable habitats and make the dex go straight to numerical mode/National Dex mode, it'll be Good.
__________________
Pokemon....

A new Dawn of ROM Hacking.....
Reply With Quote
  #12   Link to this post, but load the entire thread.  
Old December 20th, 2014 (11:49 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by anonyboy View Post
Basically it happens when An Extended Pokemon dosen't have a defined habitat entry, so it points to the 1st pokemon in the 1st habitat page: Rattata (Could be Zigzagoon if you use a custom dex/edited kanto dex) if anybody can disable habitats and make the dex go straight to numerical mode/National Dex mode, it'll be Good.
I think I tried this on someone else's ROM who had the habitat issue. It crashed the game. You need the habitat page in the dex mode you're in I suppose. There ARE a few limiters in the code which relate to switching them, and admittedly I didn't swap all of them around.

The major limiters are at:
08106828 (151 pokemon species ID check)
0810687A (this one is a flag check and then branches differently on the result)

A few things on National Dex activation:
The actual dex flag check for the Pokedex graphic seems to start at 08104AB0.
For the national dex to be active there's a byte in the player data structure that needs to be 0xB9, flag 0x840 must be set, and variable 0x404E is set to 0x6258.

There is a routine at 0806E25C that checks all of this and returns a 0 or 1 depending on if the conditions are met. This routine is run...in a lot of places. Making it return 1 all the time for example, would allow you to evolve Pokemon without the Nat dex, learn special moves, and much more I haven't looked into yet.
__________________
...
Reply With Quote
  #13   Link to this post, but load the entire thread.  
Old December 20th, 2014 (12:07 PM).
anonyboy's Avatar
anonyboy anonyboy is offline
Pokemon Aerial Emerald Creator&Pokemon Hybrid Co-Creator
 
Join Date: Sep 2013
Location: Israel
Gender: Male
Nature: Adamant
Posts: 285
Quote:
Originally Posted by FBI agent View Post
I think I tried this on someone else's ROM who had the habitat issue. It crashed the game. You need the habitat page in the dex mode you're in I suppose. There ARE a few limiters in the code which relate to switching them, and admittedly I didn't swap all of them around.

The major limiters are at:
08106828 (151 pokemon species ID check)
0810687A (this one is a flag check and then branches differently on the result)

A few things on National Dex activation:
The actual dex flag check for the Pokedex graphic seems to start at 08104AB0.
For the national dex to be active there's a byte in the player data structure that needs to be 0xB9, flag 0x840 must be set, and variable 0x404E is set to 0x6258.

There is a routine at 0806E25C that checks all of this and returns a 0 or 1 depending on if the conditions are met. This routine is run...in a lot of places. Making it return 1 all the time for example, would allow you to evolve Pokemon without the Nat dex, learn special moves, and much more I haven't looked into yet.
On Kanto Dex, you must extend the limiter and set the pokemon you catch in 1 of the 255 slots available. If one could extend Habitat Pages for each category, the problem will be solved.
__________________
Pokemon....

A new Dawn of ROM Hacking.....
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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 9:10 AM.