Jump to content
Sign in to follow this  
Purple Mage

Found Out Something in FE12...

Recommended Posts

I messed around with the _ter.cmb files in Fire Emblem 12 when I found out that each item sold in the shop is labeled by name in HxD when checking the right column in the editor (text column), each entry was separated by a 00 byte and each item is labeled by name. For example, Iron Bow is "IID_IRONBOW", Javelin is "IID_HANDSPEAR" and Blizzard is "IID_BRIZZAR".

Any other leads? I haven't messed around with this data yet.

Share this post


Link to post
Share on other sites

Try asking VincentASM about that, he might still have some stuff from when we worked on translating it.

Share this post


Link to post
Share on other sites

I don't actually remember if I messed with the shop data, but I did for Shadow Dragon

Presumably the data is similar, if not identical.

The text you're seeing are what I call "labels". The 00 separator tells the game the label has ended. You can either edit the labels or the pointers to the labels or ideally both.

Share this post


Link to post
Share on other sites

Thanks, Mr. Vincent. But I have another question. If I wanted to replace Javelin (HANDSPEAR) with Blizzard (BRIZZAR), do I fill the extra spaces with 00 bytes or do something else?

Also, Is Klokinator not active anymore? Not related, I know. I just want to know if he's really inactive.

EDIT: Fixed Spelling Error

Edited by Purple Mage

Share this post


Link to post
Share on other sites

Thanks, Mr. Vincent. But I have another question. If I wanted to replace Javelin (HANDSPEAR) with Blizzard (BRIZZAR), do I fill the extra spaces with 00 bytes or do something else?

Also, Is Klokinator not active anymore? Not related, I know. I just want to know if he's really inactive.

EDIT: Fixed Spelling Error

Yeah, filling it with 00s is fine. To be more technical, 00 isn't a separator, it's a delimiter (I think that's what it's called). Basically, as soon as the game reads a 00, it will stop and not bother reading the rest of the code.

So in fact, after the first 00, you could have absolutely anything there and it would work.

Share this post


Link to post
Share on other sites

Thanks again, Mr. Vincent. But what if I put it in the middle of the code? Like for example, it comes after a Hand Axe but before an Iron Bow?

Share this post


Link to post
Share on other sites

If I understood correctly, that should be fine. The way the code works is that labels aren't read unless a pointer specifically references it. So long as the pointers don't point to any "broken" labels, you should be fine.

One strategy I use is to expand the file and insert my own custom labels after the very end of the file. That area is never read normally (because the code tells the game to stop just before the end of the file), so the game doesn't complain (although you do need to change the initial bytes to account for the increased file size).

That way, you can point to labels that are longer than the ones in the file.

Share this post


Link to post
Share on other sites

Well, I tested it by replacing the Iron Bow in the shop in Chapter 1 with Blizzard, and it worked. Just to keep it simple, I'll just replace preexisting entries with entries of the same length.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...