Users browsing this thread: 1 Guest(s)
Random Battle Songs

#1
Posts: 3,966
Threads: 279
Thanks Received: 234
Thanks Given: 56
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
Random Battle Songs
by madsiur
version 1.0
released on 01/16/2022
apply to FF3us 1.0 (no header)
wiki entry
download
readme

Files

Code:
random_a.asm: 8 battle songs, 4 victory fanfares assembly file
random_a_nh.ips: IPS patch for the random_a.asm hack (for headeless ROM)
random_b.asm: 4 battle songs, 4 victory fanfares assembly file
random_b_nh.ips: IPS patch for the random_b.asm hack (for headeless ROM)
random_c.asm: 4 battle songs, 2 victory fanfares assembly file
random_c_nh.ips: IPS patch for the random_c.asm hack (for headeless ROM)
bins/instrument_data.bin: Original instrument sets that needed relocation

Songs used

All FF6 songs hacks used in this hack were created by emberling except the CT and CC victory fanfares which are the work of Gi Nattak. Each one has a data file (_data.bin) and an instrument set file (_inst.bin).

Code:
bins/fanfare_0: Chrono Cross: Victory Fanfare
bins/fanfare_1: Chrono Trigger: Victory Fanfare
bins/fanfare_2: Mystic Quest: Victory!
bins/song_0: FF7: Let the Battle Begin!
bins/song_1: FF9: Battle 1
bins/song_2: Tales of Phantasia: Battle Theme
bins/song_3: Chrono Trigger: Battle 1
bins/song_4: FF5: Battle 1
bins/song_5: FFX: Battle Theme
bins/song_6: FF8: Force your Way

Description

This patch randomize the battle songs and victory fanfares. There are 3 hacks, on for 8 battle songs / 4 fanfare songs, another 4 / 4 combo and a 4 / 2 combo. To use an asm file or an ips file of the hack, your FF3us 1.0 ROM must first be expanded to 32 Mbit, ideally with FF padding in empty space. By default, the hack use free space starting at offset $FF0000 but that can be changed in the asm file by modifying the "seek($FF0000)" macro call. You can apply an asm file to the ROM with bass v14 by typing a command such as "bass -o rom.smc random_a.asm". You can apply an IPS file to the ROM with a patching utility such as Lunar IPS (link below).

Each different hack use the same song starting order, starting at 0. For example the 4 songs hack use song_0, song_1, song_2 and the FF6 battle theme as 4th song. The same logic applies to the fanfare themes, the FF6 one being the last in every case. Check the readme for more details.

Modifications

I made 3 versions of the hack to accommodate the most people possible but there are ways to modify the hack. For example, if you want to replace a song, you can select a new one in the ff6hacking wiki database, simply rename the _inst.bin and _data.bin files, replace them in the bins folder and run the bass command to assemble the hack.

A second thing that can be done is having more than once a song ID in song_table or fanfare_table. This will change the appearance odds of that song though. This can be sort of a workaround to having a max number of songs different than 2, 4 or 8. Having a random number for example between 0 and 2 or between 0 and 5 cannot be done with a simple one-line edit of the current code. A third different thing that can be done is for example changing the line “and #$04” to “and #$01” in the code. The latter would always select index 0 or 1 from the song table (instead of a 0-3 index in the 4 songs hack) thus always selecting between the first two battle songs.

Regardless of what you tweak, if you decide remove song data and instruments at the bottom of an asm file, you might need to modify in accordance the song IDs in the different tables.
  Find
Quote  
[-] The following 4 users say Thank You to madsiur for this post:
  • Gi Nattak (01-16-2022), Lightning (01-17-2022), SSJ Rick (01-19-2022), Warrax (01-17-2022)

#2
Posts: 311
Threads: 20
Thanks Received: 0
Thanks Given: 0
Joined: Dec 2017
Reputation: 2
Status
None
Good one! I am still happily using your patch that allows different battle themes based on backgrounds or I would certainly use this. I'm sure some people will enjoy using this on top of other hacks or the vanilla game, however!
  Find
Quote  
[-] The following 1 user says Thank You to Lightning for this post:
  • madsiur (01-17-2022)



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite