OAM issues with battle animations

So, currently I’m trying to use this Zephiel animation for my ROM as an animation for a King class as I prefer the classic over the reskin:
Sword
However, when I upload it, FEBuilder says the OAM for the animation is too big at 28800 while the limit is at 22512. So here’s the question: What is OAM and how do I shrink the animation?

Edit: I found out what OAM is, and the path to fixing this problem is driving me up the wall and then some. I’ve looked everywhere, and I think the place to fix it somewhere has to do with lz77 but I have no idea how to even EDIT that. (Note: This ROM has the AutoGenLeftOAM patch installed.) The other questions don’t seem to have solid answers, and this one stupid animation has been torturing me for days. If I can please get help with this, I would be deeply thankful.

The compression method FEBuilder uses isn’t equal to the game’s, so this large animation gets to be the one thing that can’t be round-tripped. Worse than that, the script needs to be edited to work in FE7 or 8 due to the differing opcodes. I exported the animation from FE6 as a .bin file and that lets it successfully import into FE8, but that doesn’t mean anything if we can’t fix its opcodes. It also behaves oddly in-game, which gives me the impression the raw format may not be compatible between games? I tried hex editing the .bin, but either the animation data is compressed (when most of the file isn’t?) or FEGBA doesn’t actually store these opcodes as how they’re identified (searching for 3D is coming up with nothing logical).

So, sorry. I got nothing, boss. Maybe there’s an improved/alternate version on the repo, or perhaps someone else can see this bumped topic and offer better insight.

Edit: I remembered I can check the “Frame data” file. Testing… Ah! Now, everything makes sense, and I got a successful import! I’ll work on replacing the opcodes and upload the result.

1 Like

Here, I hex edited the raw export to match FE7/8’s available sounds as best as possible. Import this .bin and you should have an FE6 Zephiel/King that’s actually insertable, featuring accurate sword rotation!! Tested in FE7 and FE8, but I only checked the melee anims. Everything else should be functional, though.

https://cdn.discordapp.com/attachments/243267327586598912/1267578791333593180/KingFE8_FINAL.7z?ex=66a94c3e&is=66a7fabe&hm=a8f36426a52bca09a8efe0e589f275a250fb60daa3ae97ecbe804b3150129362&

I wanted the sound to be as accurate as possible, but since Command 0x43 got repurposed, I couldn’t find a replacement that I liked. I opted to just mute it with a 0x00 NOP. If anyone wants to change that, the locations of those 0x43 commands are 0xC08, 0x1330, and 0x1EC8 in the .dmp file.

(If the link doesn’t work, try pasting the link into Discord and clicking it in Discord. If it’s still not working, ping me and I’ll put it on MediaFire)

Size of banim OAM data is limited as no more than sizeof(gBanimOaml) = 0x5800. This is a limitation on RAM space since it will decompress your data to RAM buffer. It is better to manually crop the animation size rather than hoping to break this limit.

your links are bugging out both here and Discord. MediaFire should do, thanks man. You’re the GOAT.

Hmm, still works for me, but understood. Here: