Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2016-02-09 07:05:06

IceGod64
New member
Registered: 2016-02-09
Post 1/8

Gold/Silver Repointing Wild Pokemon Tables help

I'm at my wits end about this, seriously.
I've been spending the past several days trying to repoint the Kanto Wild Pokemon data, so I could take advantage of the unused space after the end of all the encounter data to add a few more land encounters. I've move the tables successfully, and this is what it looks like now:

$02B7C0 - Kanto wild Pokemon (Water)
$02B899 - Special wild Pokemon
$02B956 - Good Rod Pokemon
$02B965 - Kanto land Wild Pokemon Data

All the Johto parts are unchanged, and work fine in-game.
However, I need help - I changed the 2-byte pointers listed in This Thread, but now when I surf or walk in tall grass in Kanto... Nothing at all happens.

To calculate the 2-byte pointers needed, I'm inputting the offsets for these locations into my pointer calculator and having it simply generate a 2-byte GBC pointer, and replacing the existing pointers with the newly generated ones (leaving $21 alone). In fact, the new location for the Kanto Water Pokemon is the exact same location as the land data was originally at, and even that's not working.

For reference, the pointers I have (Respective to the offsets above) are:
$C077
$9978
$5679
$6579

What's wrong here?

Offline

#2 2016-02-09 11:02:35

Miksy91
Member
Registered: 2010-10-16
Post 2,213/2,311

Re: Gold/Silver Repointing Wild Pokemon Tables help

The wild pokemon data for each entry for land is form:
[Map Bank][Map No][Change for encounter in Morn.][Change for encounter on Day][Change for encounter at Night] + [encounter data for Morn, Day and Night]

and for water pokemon data, it was somewhat different. Maybe just
[Map Bank][Map No][Change for encounter] + [encounter data for Morn, Day and Night].

Anyway, in case you have changed a few pointers with one another, that means you have also changed, which maps those wild pokemon datas belong to, and so you're probably not encountering any pokemon at all.

Offline

#3 2016-02-09 18:17:35

IceGod64
New member
Registered: 2016-02-09
Post 2/8

Re: Gold/Silver Repointing Wild Pokemon Tables help

To be clear, I DID move the tables the pointers point to as well as update the pointers themselves. It seems like you're thinking I didn't update the table locations at all, but I did.

All I did was swap the data tables around and change the pointers to the location, and they are still in the same ROM bank as before. I haven't made any other changes to the wild Pokemon tables yet.

$FF marks the end of an encounter table, yes?

Last edited by IceGod64 (2016-02-09 18:19:01)

Offline

#4 2016-02-09 21:45:53

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 97/193

Re: Gold/Silver Repointing Wild Pokemon Tables help

But there is a way to stwitch to another bank or move the other data of that bank like in Crystal where the bank is only for the wild data and is full of a big blank data? There is in that bank something that can be moved in another bank and can be helpful for recycle space?


The italian Pokémon Green creator.

Offline

#5 2016-02-10 08:49:52

Miksy91
Member
Registered: 2010-10-16
Post 2,215/2,311

Re: Gold/Silver Repointing Wild Pokemon Tables help

IceGod64 wrote:

To be clear, I DID move the tables the pointers point to as well as update the pointers themselves. It seems like you're thinking I didn't update the table locations at all, but I did.

All I did was swap the data tables around and change the pointers to the location, and they are still in the same ROM bank as before. I haven't made any other changes to the wild Pokemon tables yet.

$FF marks the end of an encounter table, yes?

Okay. Then you probably did something else wrong because there shouldn't be a reason it not working if you totally change two data tables around unless for some reason, more than one pointer points to wild pokemon data on land for instance.

I don't see why there would be a $FF byte ending the wild pokemon data. It is not needed so that's possibly for something else?
Is every data table actually pointed to at all? This got me thinking that they for some reason made it so that byte $FF splits two data tables with one another so that the following one is "pointed to through the first one and having a terminator byte $FF in between". That would be a stupid way to implement this kind of functionality but totally possible to do so.

Actually, $FF most likely terminates an encounter table because otherwise, the game would keep looking for encounter data following all the real encounter data as well and although it might not find anything "useful" (most Map Bank and Map No. following all the real data wouldn't match with any in-game area), that could still lead into problems without marking the table to end with FF.

Last edited by Miksy91 (2016-02-10 08:52:34)

Offline

#6 2016-02-11 08:31:39

IceGod64
New member
Registered: 2016-02-09
Post 3/8

Re: Gold/Silver Repointing Wild Pokemon Tables help

Yeah, FF is definitely a terminator.

So, I've gone back, and tried changing the tables again, after restoring them to their original pointers/offsets (On which, they worked), and this time I tried something different. I didn't move the Kanto land encounter, and just extended that table, moving the tables below it down.

Extending the Kanto land encounter table worked perfectly. However, the Kanto Water table is broken again. Interestingly, even if I change the pointer to just refer to Johto's Water table(Which I haven't changed at all), I still get no encounters... It seems like something might be hard-coded?

Last edited by IceGod64 (2016-02-11 08:32:22)

Offline

#7 2016-02-14 11:36:31

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 98/193

Re: Gold/Silver Repointing Wild Pokemon Tables help

A time ago in this forum I have read that water pokémon data have 2 pointers.


The italian Pokémon Green creator.

Offline

#8 2016-02-18 17:38:47

IceGod64
New member
Registered: 2016-02-09
Post 4/8

Re: Gold/Silver Repointing Wild Pokemon Tables help

Halfshadow wrote:

A time ago in this forum I have read that water pokémon data have 2 pointers.

That may help a bit, though I wonder where it is - I don't see any 3-byte pointers, and there aren't any other instances I found in the same ROM Bank.

I finally gave in and just just changed a few map ID's to new ones in the encounter tables - I took the land encounters from Tohjo Falls, where there's very little land, and I took the water encounters from Route 4 which has a total of what, 8 water tiles?

Offline

#9 2016-02-20 20:03:54

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 101/193

Re: Gold/Silver Repointing Wild Pokemon Tables help

The Kanto water pointers are 2 and are these:

(H)2A590 and (H)2A786. In both skipe the first byte and repoint the other 2 with your neww offset calculated by GB pointer calculator and you're fine.

However how you have found the free space for add a new data?

Last edited by Halfshadow (2016-02-20 20:05:28)


The italian Pokémon Green creator.

Offline

#10 2016-02-21 01:11:18

IceGod64
New member
Registered: 2016-02-09
Post 5/8

Re: Gold/Silver Repointing Wild Pokemon Tables help

Thanks. At the end of the same ROM bank, there's a... Reasonably large chunk of empty data. Not huge, but if you move the data tables just right, you could fit a few more areas.

Last edited by IceGod64 (2016-02-21 01:11:39)

Offline

#11 2016-02-21 01:28:27

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 105/193

Re: Gold/Silver Repointing Wild Pokemon Tables help

Oh, ok, thanks, howver not is enough for me, I want to add all the pokémon for the cutted out areas like Viridian Forest and Cerulean cave and I need of more space. XD


The italian Pokémon Green creator.

Offline

#12 2016-02-21 04:14:03

IceGod64
New member
Registered: 2016-02-09
Post 6/8

Re: Gold/Silver Repointing Wild Pokemon Tables help

Well, good luck with that. I think you'd have to expand the map header tables for that, since the game only has like, 3 unused maps.
You're likely better off working with a disassembly for that.

Offline

#13 2016-02-21 08:55:46

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 106/193

Re: Gold/Silver Repointing Wild Pokemon Tables help

The maps are more, I've recycled all the 2nd floor Kanto pokémon Center maps 'cause were unused, the mpas are completed, I miss only the wild pokémon.


The italian Pokémon Green creator.

Offline

#14 2016-02-21 18:38:04

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,239/3,474

Re: Gold/Silver Repointing Wild Pokemon Tables help

Yeah, it's a little-mentioned fact that every Pokémon Center in Kanto has an unused, fully-inserted map associated with it. They all point to the Map Data of the real upstairs map, but have their own individual headers, event data (with a single warp and nothing else), etc. and are completely unused. Seems to me like they started to do individual upstairs for every Pokémon Center in the game, decided to optimize it so they all just went to the same one, then forgot to remove some of them from the final version.

Interestingly, in Gen 3, Gamefreak went back to the "individual maps for every upstairs" plan for some reason.

Last edited by Mateo (2016-02-21 18:38:43)

Offline

#15 2016-02-21 18:49:02

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 107/193

Re: Gold/Silver Repointing Wild Pokemon Tables help

Not were enough for me however, but I've solved reusing other maps of generic NPC houses (obviously I've added to another in the same city, then for example I've created a map that includes 2 houses and repointed the events in Cerulean for obtain a map for the Cerulean cave) at the end it's fine however, the two houses work the same but are only into a single map. XD


The italian Pokémon Green creator.

Offline

#16 2016-02-21 21:05:55

IceGod64
New member
Registered: 2016-02-09
Post 7/8

Re: Gold/Silver Repointing Wild Pokemon Tables help

Halfshadow wrote:

Not were enough for me however, but I've solved reusing other maps of generic NPC houses (obviously I've added to another in the same city, then for example I've created a map that includes 2 houses and repointed the events in Cerulean for obtain a map for the Cerulean cave) at the end it's fine however, the two houses work the same but are only into a single map. XD

Not a bad idea actually, that's rather efficient!

Offline

Board footer

Powered by FluxBB