Dismissed Posted October 20, 2016 Share Posted October 20, 2016 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. Quote Link to comment Share on other sites More sharing options...
TheEnd Posted October 20, 2016 Share Posted October 20, 2016 Try asking VincentASM about that, he might still have some stuff from when we worked on translating it. Quote Link to comment Share on other sites More sharing options...
VincentASM Posted October 20, 2016 Share Posted October 20, 2016 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. Quote Link to comment Share on other sites More sharing options...
Dismissed Posted October 21, 2016 Author Share Posted October 21, 2016 (edited) 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 October 21, 2016 by Purple Mage Quote Link to comment Share on other sites More sharing options...
Tequila Posted October 21, 2016 Share Posted October 21, 2016 He's banned. Quote Link to comment Share on other sites More sharing options...
Dismissed Posted October 21, 2016 Author Share Posted October 21, 2016 Why? Quote Link to comment Share on other sites More sharing options...
Tequila Posted October 21, 2016 Share Posted October 21, 2016 No idea. Probably pissed off the mods again. Quote Link to comment Share on other sites More sharing options...
VincentASM Posted October 21, 2016 Share Posted October 21, 2016 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. Quote Link to comment Share on other sites More sharing options...
Dismissed Posted October 22, 2016 Author Share Posted October 22, 2016 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? Quote Link to comment Share on other sites More sharing options...
VincentASM Posted October 22, 2016 Share Posted October 22, 2016 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. Quote Link to comment Share on other sites More sharing options...
Dismissed Posted October 26, 2016 Author Share Posted October 26, 2016 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.