Character and Chapter-specific battle themes hack

the patcher is just a fancy way of writing the data in verbatim; the first line is always metadata (hextator’s doc has a good description of it) but everything else is up for grabs

good on you for the patch, though; i will probably end up hijacking that offset to make a better version (aka making the custom asm not suck)

Has this ever been ported to FE8?

Shouldn’t take that long. Someone else will need to do that research, though, at least until I get my apps in.

Thanks, Cam.
Let’s see if someone else takes the task for now, then!
It’d be very sweet for the FE8 hackers.

Having some trouble assembling impl.asm, it gives me the error:

L:\Fire Emblem Hack\ASM\impl.asm: Assembler messages:
L:\Fire Emblem Hack\ASM\impl.asm:32: Error: branch out of range
readelf: Error: 'impl.elf': No such file
C:\devkitPro\devkitARM\bin\arm-eabi-objcopy: 'impl.elf': No such file
Could Not Find L:\Fire Emblem Hack\ASM\impl.elf
Press any key to continue . . .

The offending line seems to be
GNM_CALL 0x08068140
which is a macro for
bl \address - (GNMH_HOOK_ORG + (FILE_ST - GNMH_HOOK_ST))

The offsets for FE8 were easy enough to find - I think. I don’t know because I can’t actually assemble it to test.

a recent update of gas breaks my bl macro; i can’t remember the workaround offhand.

Screw it I did it manually in debugger

Link to patch - adds both PC and Generic theme patches, writes to 0xE90000 and 0xEB0000 areas

Nightmare modules for editing

1 Like

You, sir, are such an epic person and deserve my most sincere thanks.

Also many thanks to @CT075 for the original code ^^
Time to make some eargasming new themes, with @Agro’s 16 Tracks/12 Notes patch!

Edit: @circleseverywhere, I tried to use one of your modules after applying the patch.

1 Like

Huh, never seen that before. Are you using NM1? Maybe try adding a line with “255” (or whatever the line count is) to the start of the .txt files?

1 Like

That was the issue. It’s working like a charm now, thanks!

There is only one thing that I’m not happy with the character-based hack.
The fact is that it has higher priority than boss themes or generic enemy themes.
Is it possible to find a workaround where the character’s theme plays only during the player phase, while having the generic enemy theme during the Enemy Phase when the character is attacked, and always having the boss theme in both Phases?

tl;dr Giving the character’s theme the same priority as any other allies’ theme

If you give an enemy a personal theme it should have priority over a player’s personal theme. As for making it player phase only, it shouldn’t be too hard.

at the moment, any non-generic enemy theme will override any player theme

i’ve been meaning (for a while) to go through and clean it up and add, say, priorities (as these were the first and second ASM things i’d written ever), but I haven’t had the time

1 Like

@circleseverywhere Hmmmm let’s think about it…

It’d solve the problem regarding bosses, but not the one regarding generic enemies…

Making it play only during player phases seems a good solution.

@CT075 's solution is great as well, since that way it’d be possible to decide whether the theme should play in both phases or just one…

Hey I’d like to download this patch but the links don’t work for FE7 could you put them back up please?

here is the link for character themes

here is the link for chapter themes

1 Like

Thanks

Buildfile compatible version for FE8

1 Like

Links are nuked. Is the FE7 chapter version available anywhere by any chance?

1 Like

A post was split to a new topic: Chapter-specific battle themes for FE6