Strange Regional Pokedex Problem
Today I am working on getting the regional pokedex to work properly, and I am getting a few errors I need some help with.
I have only set 1 map for the region (Route 1) and all other maps are regionless. The only region I have in townmap.txt is [0] Kanto, which Route 1 is set to. I have a small Kanto region map with only Route 1 assigned in townmap.txt point of interest.
In pokemon.txt I have set Bulbasaur to RegionalNumbers=1 and put him to appear in Route 1 100% of the time.
Here is the problem I am having:
When I test out the region Pokedex it works fine only if I don't have any entries. It shows up and with no entries error free. If I get in a battle and 'see' Bulbasaur then check my regional Pokedex entry the game crashes with this error:
You can see the Pokedex entry show up even though this error occurs, however with no backround or sprite icon.
This is where the error becomes a bit strange.
If I 'see' Bulbasaur and don't check my Regional Pokedex entry and then go one map away and check my National Pokedex entry Bulbasaur shows up where he supposed to, entry 1. I can view his info (with mostly ???) and also see the region map where it shows his "nest" that I saw him at.
Now after viewing his entry in the National Pokedex I can go back down to Route 1 and look at the Regional Pokedex and it works perfectly. I can see that Bulbasaur is the only Poke in the region I have seen, despite seeing many Pokemon in the nation. I can view his info (???) and I can view the region map where I see his "nest". However I cannot get this to work without viewing a National Pokedex entry first everytime. This error seems like some sort of caching is taking place, but it can't draw the correct sprites and icons when going through the Region Pokedex code.
I have spent several hours this morning trying to get it to work with my limited scripting ability, and even reverted back to old code to see if something would change, and nothing did (except more errors than usual). Maybe I am missing an important piece of information to get the Region Pokedex to work properly? I will continue to work on this, all help is much appreciated!
EDIT: *snip*
EDIT: 08/26/2010
Ok so I figured out what the error is finally yahoo! I even wrote a tutorial about it, PM me if your interested it's a tutorial about putting a functioning Regional Pokedex in your game. I would link it but I believe it's against the rules.