Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2013-07-30 11:00:40

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 554/1,197
Website

Does anyone know more about the GSC Music Offsets

Since I want to port songs from GSC over to R/B/Y, I need to know the offsets of the songs. I have already looked in different documents, but only the pointers are told. I have searched for the song in a Hex Editor by "DA00", but then I still don't know which song I have found, and there are also pieces of code which don't mention with music, but "DA00" says something different. I have searched the whole Internet for the offsets, but no proper results. And YES, I HAVE searched with the search option on this forum. The question: Anyone here knows the offsets, and is kind enough to tell them, or give the link of a document, if there is one?

Last edited by YORAMRW (2013-07-30 11:06:38)


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#2 2013-07-30 12:12:04

FroggestSpirit
Member
Registered: 2012-03-12
Post 213/300
Website

Re: Does anyone know more about the GSC Music Offsets

Seen as how Crystal has more songs, open that up in a hex editor, and go to 0xE906F. There are the pointers to all the songs, each is 3 bytes. The first two bytes are the address, and the third byte is the bank. Those should point you to the header of each song, which contains pointers to each channel of the song. The pointers in the song are absolute, so you will want to probably make a program or something to run through and change them all to the location they are going into in red. It's not going to be easy, because Red is hard coded to use 3 banks for sound, and you will need to replace music, get lucky and find freespace in bank 2,8, or 1F, or do some ASM to expand your options. GSC was a lot nicer with the sound system, where any song could be anywhere in any bank.

Last edited by FroggestSpirit (2013-07-30 12:12:27)


This isn't easy to say, but…
Music and ASM hacker

Offline

#3 2013-07-30 12:34:49

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 556/1,197
Website

Re: Does anyone know more about the GSC Music Offsets

No, I just want to replace GSC songs with R/B/Y ones song by song. The first song I want to replace is the Route 1 theme by the Route 29 theme. If I get the data of the Route 29 music, I will overwrite every byte with the R/B/Y one, and overwrite the Route 1 music with it. Then, I have to modify the Route 1 pointers, so they load the 2nd, 3rd and 4th channel properly. Don't worry, I am not going to ask other people to do this for me, but I don't see a way to find the offset of the Route 29 music easily. But thanks for being helpful.

Last edited by YORAMRW (2013-07-30 12:35:33)


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#4 2013-07-30 13:53:18

FroggestSpirit
Member
Registered: 2012-03-12
Post 214/300
Website

Re: Does anyone know more about the GSC Music Offsets

http://datacrystal.romhacking.net/wiki/ … usic_Bytes
Multiply by 3, and add to the offset i gave you

If youre inserting songs from RBY into GSC, I already ported over the whole soundtrack. There's a link somewhere on the forums

Last edited by FroggestSpirit (2013-07-30 13:54:20)


This isn't easy to say, but…
Music and ASM hacker

Offline

#5 2013-07-30 14:19:44

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 557/1,197
Website

Re: Does anyone know more about the GSC Music Offsets

The Byte Number of Route 29 is 34. So I have to do: 34x3=9C+E906F=E910B, and that bold offset locates the pointer to the song?

Last edited by YORAMRW (2013-07-30 14:20:26)


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#6 2013-07-30 18:47:28

FroggestSpirit
Member
Registered: 2012-03-12
Post 215/300
Website

Re: Does anyone know more about the GSC Music Offsets

Should be, but you dont gotta wait for me. Trial and error.


This isn't easy to say, but…
Music and ASM hacker

Offline

#7 2013-07-30 21:04:37

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 559/1,197
Website

Re: Does anyone know more about the GSC Music Offsets

I have heard something about byte shifting in pointers, that for example, offset $A7C5 will be coded as C5 A7 in the pointer. But I don't really understand it, and I have searched the forum off for information about pointers. I have shifted the bytes, and I came out to a piece of code which is obviously not part of a song. I have entered the code there, but still no music looking code found. It seems like a lost business, because I can try millions of ways and combination with so few information, and that doesn't help finding the song. I really thought I saw a pointer tutorial here, but I can't find it anymore. :(


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#8 2013-07-30 21:16:21

Hat
Member
Registered: 2013-02-04
Post 26/118

Re: Does anyone know more about the GSC Music Offsets

TheMoneyOfTheWorld wrote:

I really thought I saw a pointer tutorial here, but I can't find it anymore. :(

Look here: http://hax.iimarck.us/topic/1696/

Offline

#9 2013-07-30 23:21:39

RED
Member
From: Japan
Registered: 2012-09-03
Post 423/517

Re: Does anyone know more about the GSC Music Offsets

Open rom into hex editor and vba> open ms calculator, click view. Scientific> go to vba play the until get in route 29> click tools >memory viewer>go to 0xC001(this is the no. Of current song playing and it's no. 34>go to ms calculator click hex>type 34 * 3 + E906e = E910A>
go to your hex editor then go to 0xE910A>you'll see bytes 3C 86 43>that's the pointer for route 29 music>3c= bank 8643= 2byte pointer


わたし の なまえ わ レン レン  でづ

Offline

#10 2013-07-31 04:30:09

FroggestSpirit
Member
Registered: 2012-03-12
Post 216/300
Website

Re: Does anyone know more about the GSC Music Offsets

My bad, RED is right, the pointers start at xE906E, and it is 1 byte bank, then 2 bytes pointer (swap the 2 pointer bytes and subtract 0x4000)


This isn't easy to say, but…
Music and ASM hacker

Offline

#11 2013-07-31 11:51:39

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 560/1,197
Website

Re: Does anyone know more about the GSC Music Offsets

OK. I thought that I already found something like 8643, but if I swap it, it will be 4386, and if I subtract that with 4000, it will be 386. $386 doesn't contain any music data, and if I skip the swap part, it is 4643, and that still doesn't have any music data. I will now try to add 4386 with 4000, instead of subtract 4000, which is 8386. But it still doesn't show any music data, but a field with only decimal numbers, like "55 55 44 55 55 55 44 54 55 55".


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#12 2013-07-31 12:44:28

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 561/1,197
Website

Re: Does anyone know more about the GSC Music Offsets

Haha! I finally have found the Route 29 offset! It is: $F0386! Sorry, but your methods didn't really work. I found the way Here! I never will lose this offset, and I can finally rewrite this song in R/B/Y! Unlike your methods didn't work, thanks for trying to help me though. :)


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#13 2013-07-31 12:56:28

RED
Member
From: Japan
Registered: 2012-09-03
Post 425/517

Re: Does anyone know more about the GSC Music Offsets

Well the method you did is wrong,  you need to subtract it by 4000
eg. 04707e bank 04starts at 0x10000
707e switch it, so we have now 7E70
> 7E70 - 4000 = 3e70

> 10000 + 3e70 = 13e70
> or you can a ctually just have a pointer calculator :)

edit:
i corrected it.


わたし の なまえ わ レン レン  でづ

Offline

#14 2013-08-01 02:44:48

681/701

Re: Does anyone know more about the GSC Music Offsets

You can find all of the GSC songs extracted in the Crystal disassembly. You can also search for the filenames in main.asm to see where they show up in the ROM (e.g., Route 1 is at the start of bank $3B).

#15 2013-08-04 11:35:14

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 565/1,197
Website

Re: Does anyone know more about the GSC Music Offsets

Thank you all.


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

Board footer

Powered by FluxBB