Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2016-02-29 10:25:06

jox
New member
From: Sweden
Registered: 2016-02-29
Post 1/2
Website

Pokered - changing which music plays?

Hello! I'm a newb trying to use pokered. I don't know assembly but I will try to learn.

I was wondering how to change which music piece plays (specifically during Oak's speech, but the solution might be the same for all).

In the file engine/oak_speech.asm, there is a part that loads and plays the "Music_Routes2" which is listed in the audio/headers/musicheaders1.asm file. If I change the code in oak_speech.asm to any of the "Music_Routes1/2/3/4" from the same musicheaders file, it works and that music successfully plays during Oak's speech. However, changing it to for example "Music_IndigoPlateau" (which is also in musicheaders1) does not compile correctly, saying:

rgblink: Unknown symbol 'MUSIC_INDIGOPLATEAU'

Changing it to music from other musicheader files (I wanted the SilphCo music which is listed in musicheaders3.asm) does not work either as far as I can tell, though I don't know if it matters which musicheader file it is in, since it won't play the IndigoPlateau from the same musicheaders1 file as Routes either.

So, would anyone know how to get Oak's speech to play other tunes? Thank you in advance.

Offline

#2 2016-03-01 01:44:37

Danny-E 33
Administrator
Registered: 2012-06-09
Post 938/1,021

Re: Pokered - changing which music plays?

From constants/music_constants.asm, MUSIC_INDIGO_PLATEAU is the constant that refers to the Music_IndigoPlateau music header.


Red Hack: Pokémon Prototype

Total number of registered users: 7000+
Total number of active users: ~12

Offline

#3 2016-03-01 04:03:53

jox
New member
From: Sweden
Registered: 2016-02-29
Post 2/2
Website

Re: Pokered - changing which music plays?

Danny-E 33 wrote:

From constants/music_constants.asm, MUSIC_INDIGO_PLATEAU is the constant that refers to the Music_IndigoPlateau music header.

OK! Thank you! So the problem was the missing "_". I thought it would always be spelled the same.

Offline

Board footer

Powered by FluxBB