Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-12-06 03:59:43

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 297/649

Primary Header byte functions

Since there really isn't any documentation, I figured I'd post this. I found this data myself. Contrary to belief, there is no permissions data for anywhere in the specified header. I'm still working on finding that, because it's beneficial when you lose that it is correct, otherwise you'd end up back home.

Primary Header bytes

25 [tileset 1byte] [type(indoor, outside)1byte] [2byte pointer to secondary header] [map number 1byte] [music 1byte] [lighting 1byte] [???1byte] 25


25

00 Tileset

00 Type(indoor, outside etc)

00 2byte pointer to secondary header

00 Bank Number

00 Music

00 Lighting

00 ??

25

To find the primary header, load Johto Map, and go to map properties. The offset at the top is the offset to the primary header.

Last edited by tysonrss (2011-12-06 04:15:55)


Pokemon Blue DX is reborn!

Offline

#2 2011-12-06 05:23:12

374/703

Re: Primary Header byte functions

tysonrss wrote:

00 Type(indoor, outside etc)

This is what Tauwasser means by permissions byte. It defines whether you can fly or not, and possibly other things—hence, permissions.

tysonrss wrote:

00 ??

This defines which fishing set is used.

tysonrss wrote:

25

The data only starts with 25; it does not end with 25. You’re looking at the beginning of the next header. (A similar misconception leads some people to wrongly say text ends with 00.)

Actually, I am curious as to why they start with a 25. Does anyone know why? I don’t have time to check right now.

tysonrss wrote:

To find the primary header, load Johto Map, and go to map properties. The offset at the top is the offset to the primary header.

Or you can:

  1. Find the map bank m and map number n from this list

  2. Follow the mth pointer from the array at 0x940ED (G/S) or 0x94000 (Crystal)

  3. Find the nth map header starting at that location

#3 2011-12-06 05:26:23

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 300/649

Re: Primary Header byte functions

Ah, I see. Well with that said...it's safe to say that it just doesn't work...


Pokemon Blue DX is reborn!

Offline

#4 2011-12-06 06:19:00

Miksy91
Member
Registered: 2010-10-16
Post 649/2,339

Re: Primary Header byte functions

Maybe 25 refers to the rom bank where possible triggers for that map are loaded. This wouldn't make much sense though. Anyway, I didn't know about the fishing sets either so thanks for that info.

Offline

#5 2011-12-06 06:23:47

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 301/649

Re: Primary Header byte functions

I don't even know what he means by fishing sets...


Pokemon Blue DX is reborn!

Offline

#6 2011-12-07 00:50:33

Tauwasser
Member
Registered: 2010-10-16
Post 245/452

Re: Primary Header byte functions

0x25 is the rom bank of the secondary map header. Jeez, people, this is all very well-documented in many places...

Since F-Zero and I posted the original German version at Filb's World Forums, translations have been widely in circulation. I even put up a German wiki page here: http://magicstone.de/rhwiki/article/Mapheader_PKMN_GSK. I have already seen translations of that Wiki page floating around, though they were rather shoddy, to be honest.

tysonrss wrote:

Ah, I see. Well with that said...it's safe to say that it just doesn't work...

It's safe to say that you either did not try or messed up somewhere else. I don't even get what your problem with the blackout location was in the other thread, since it magically disappeared by doing the exact same things I told you to do in the first place. Maybe it's just a misconception on my part, but I'm pretty sure the map headers are also covered on these forums or at least there was talk about the old Pokémon games, which follow a very similar layout..

tysonrss wrote:

I don't even know what he means by fishing sets...

Those are the sets of Pokémon that can be found while fishing using any of the rods. They are usually called the same thing in Gameshark codes and similar modifiers.

cYa,

Tauwasser

Offline

#7 2011-12-07 01:02:03

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 312/649

Re: Primary Header byte functions

It's safe to say that you either did not try or messed up somewhere else. I don't even get what your problem with the blackout location was in the other thread, since it magically disappeared by doing the exact same things I told you to do in the first place. Maybe it's just a misconception on my part, but I'm pretty sure the map headers are also covered on these forums or at least there was talk about the old Pokémon games, which follow a very similar layout..

The problem was flying data. It disappeared when I switched Kanto with johto to correct the map problem.


Pokemon Blue DX is reborn!

Offline

Board footer

Powered by FluxBB