The error disappears, but when I try to play the song in the Sound Room, the game freezes. I assumed this worked for FE7, but the SongTableOffset was that of FE8(I changed it accordingly to FE7's table). Now I am wondering if it has something to do with my wav files or if I am just doing something wrong. I tested two different wav files, but both freeze the game.
Installer.txt
ORG 0x14CC170
#define DISABLE_TUTORIALS
#include EAstdlib.event
#define SongTableOffset 0x69D6E0
#define SongTable(index,SongPointer,Group) "PUSH; ORG SongTableOffset+(8*index); POIN SongPointer; SHORT Group Group; POP"
SongTable(31,Brave3,1)
#include "MPlayDef.event"
#define loop_sfx_grp Brave3_map
#define loop_sfx_pri 0
#define loop_sfx_rev 0
#define loop_sfx_mvl 127
#define loop_sfx_key 0
#define loop_sfx_tbs 1
#define loop_sfx_exg 0
#define loop_sfx_cmp 1
ALIGN 4
loop_sfx_1:
BYTE VOL 127*loop_sfx_mvl/mxv
BYTE KEYSH loop_sfx_key+0
BYTE VOICE 0
BYTE TIE Cn3 v064
BYTE W96
loop_sfx_1_B1:
BYTE W96
BYTE W96
BYTE GoTo
POIN2 loop_sfx_1_B1
loop_sfx_1_B2:
BYTE W06
BYTE EOT Cn3
BYTE FINE
ALIGN 4
Brave3:
BYTE 1 // NumTrks
BYTE 0 // NumBlks
BYTE loop_sfx_pri // Priority
BYTE loop_sfx_rev // Reverb.
POIN2 loop_sfx_grp
POIN2 loop_sfx_1
Brave3_map:
WORD $3c00
POIN Brave3_wav
WORD $FF00FF
Brave3_wav:
#incbin "Brave3.bin"
Where the only thing I added to the text file are the lines above "SongTable(31,Brave3,1)".
Am I forgetting something/doing something wrong?
Solution:
Ignore me. I thought the "Replacing ID" was in hexadecimal and therefore was expecting 0x31's song to be replaced. It turns out that it works fine. Continue on.