+  RHDN Forum Archive
|-+  Romhacking
| |-+  General Romhacking
| | |-+  Hey, I'm new here & I have a question.
Pages: [1]
Author Topic: Hey, I'm new here & I have a question.  (Read 1 times)
Kronoan
Guest
« on: March 14, 2009, 08:22:58 pm »


 Hey, I'm Kronoan & I joined today. I have a simple question but I don't know how complicated the answer may be. I'm playing Final Fantasy Legend for the Game Boy on TGB Dual, & I'm using Stat Potions & I honestly lost track of my character's exact stats. I wanted to check the ROM using a Hex Editor or something, I downloaded a couple & tried to figure out if I could find where Str./Agl. are stored to check the current values but I couldn't get anywhere.

 I was really hoping someone here would know more about what I can use/should do so I can check this or anything else later. Thanks everyone, this is my first time ever trying to check stuff this way, I've always just usually Game Genied/Sharked my Stats/etc. if I want them different.
Ryusui
Guest
« Reply #1 on: March 14, 2009, 08:40:22 pm »

The ROM won't tell you what you want to know. Think of the ROM as a P&P sourcebook; it contains the rules and the resources but not the actual game in progress. It can tell you your starting stats but not what they are at the present.

What you'll need is an emulator with debugging functions, like BGB or NO$GMB; these will let you look at the system's memory while the game is in progress. I don't know how stats work in SaGa 1, but if you can get your character's stats for any specific point in the game, try starting a new game and playing until you get that information. Convert the numbers to hex and, if the emulator has a memory search function, look for one of them and see if the others are nearby. For example, if your stats are ATK 165, DEF 130 and AGI 80, then you'll be looking for A5, 82 and 50 close to one another. Once you've found where the stats are stored, note the location and reload your regular save file. You should find the data in the same location; convert the numbers to decimal and you should be done.
Kronoan
Guest
« Reply #2 on: March 14, 2009, 08:57:34 pm »

 OK. Would VBA work for this? I can't remember right now if it has a debugger or not, if not which of the 2 emulators you mentioned are the best to use? Thanks for the answers Ryusui!
Ryusui
Guest
« Reply #3 on: March 14, 2009, 09:02:17 pm »

VBA might work, but I can't remember if it has a memory search function.

Both are good debuggers; I've only used BGB myself, but the guy who made no$gmb is pretty much the first and final name in debugging (even if he has vanished from the Internet for about a year or so).
Kronoan
Guest
« Reply #4 on: March 14, 2009, 09:18:19 pm »

 I tried no$gba, it wouldn't even recognize my ROM let alone my Save ... I'm currently using BGB's debugger & trying to look for my current stats, I used an Agility Potion & tried to see if any values changed but I honestly just don't know enough of what to look for in this to see what's affecting what. There are so many values in the table I don't know where to look to narrow down where the stats are ...
Ryusui
Guest
« Reply #5 on: March 14, 2009, 09:21:24 pm »

Quote from: Kronoan on March 14, 2009, 09:18:19 pm
I tried no$gba, it wouldn't even recognize my ROM let alone my Save ... I'm currently using BGB's debugger & trying to look for my current stats, I used an Agility Potion & tried to see if any values changed but I honestly just don't know enough of what to look for in this to see what's affecting what. There are so many values in the table I don't know where to look to narrow down where the stats are ...

I said no$gmb. You'll hear a lot of talk about no$gba (which also does DS titles), but it doesn't do vanilla Game Boy; for that, you'll need no$gmb.

Anyway, that's pretty much the big problem right there: memory is quite a large area to search and the process will likely involve a fair amount of trial and error. When you said you "lost track" of your stats, I thought you meant you could view your stats at some part of the game. Did I assume incorrectly?
Kronoan
Guest
« Reply #6 on: March 14, 2009, 09:34:10 pm »

 Oh, no$gmb, that would be it, Thanks! What I mean is that in FFL for a Human your Stats can go beyond the displayed 99, to 255. So you can forget what you're at because you can only see 99 but you have say 200 or something. I even tried un-equipping some Armor & searching for the values before & after & I couldn't even find out anything about that! I don't know why this is so complicated, am I just not getting it? Some people out there make it look like this should be simple ...
Ryusui
Guest
« Reply #7 on: March 14, 2009, 10:01:05 pm »

Ah, wakarimashita. So max visible is 99, but max actual is 255.

Right, that makes it easier. Start a new game - you don't have to get terribly far - and get your initial stats. Convert 'em to hex.

In BGB, we've got a little number called the Cheat Searcher. Lower left should be set to "equal to", middle should be set to "this value" (put one of your stats in hex in the box next to it), and then hit "Search". It will bring up the memory location of every instance of that value.

Go to each location in the memory viewer and see if the other stats are nearby. If they are, congratulations, you've found your stats (though you might want to play until you level up, just to make sure they're your current stats). Make note of the location, then open your current save. Your stats should be in the same place.
Kronoan
Guest
« Reply #8 on: March 14, 2009, 10:42:30 pm »

 OK Ryusui, Thanks. You buy Stats for Humans in FFL though, & only Str. & Agl., & it'll cost 300 GP, so I'll need to use a Female Human to test this. How will I recognize a correct grouping of #'s though? Mana will always be 0 for Humans unless they're wearing one piece of equipment, so that's not a problem, & Def. will also be 0 or maybe 1 for a Lead Character at the beginning of the game, so it's Str. & Agl. I'll be comparing. I'll try that though, wish me luck! Otherwise, this has been so frustrating I'll forget about it & just muddle through if I can't find it the next time I try this! Thanks for all your help, I hope I don't make you feel you answered me for nothing if I can't do it later ...

 *Edit* So I've done the first part of what you suggested, I searched for one of my Stats I want to find out where it is, in this case Agl., with a value of 8 in Dec & 08 in Hex. I'm confused now as to what you mean by checking out the value in the memory viewer? I thought maybe you meant using the debugger, which I tried but nothing happened. Maybe I can't use 2 things at once like the Cheat Searcher & the Debugger. I've got 20 matches to the Hex # 08 so I don't know how to check out those addresses & look for my other stats of 04 (Str.), 01 (Def.) & 00 (Mana). Could you let me know more about what to do now? I feel as though I'm almost getting it but now I've hit this roadblock. Thanks!

 Also, which area on the left in the debugger should I be looking for the address in, the top-left with more space or the bottom left? I don't even know if they're different sections or what ... Also, I couldn't access the debugger because I'd paused my ROM, so go figure ... Also, this is my 2nd Edit, I just left the rest of my post alone so it wouldn't be too messy. *Edit*

 *Edit!* I found it! I found where the Stats are stored, at least for the 1st Character! It's at WRA0 : CC00 The current #'s are : 00 9D A8 B6 B7 B2 3C 00 3C 00 83 04 01 0B 00! I know this is it & that 0B is Agl., because this value was 08 before I used an Agility Potion, which I gained 3 Agl. from, to make it 11 or 0B in Hex, then I checked it & it was OB! My Test Female Human has 60 Current & Max HP & I think that that's 3C if I'm correct, right? Anyway, now I should be able to go to my other game & find my other Solo Character's Str. & Agl. Stats! I feel really happy that I found it! Thanks once again for all your help Ryusui! I want to say man, are you a guy? If not then I'll just say Thanks! *Edit!*
« Last Edit: March 14, 2009, 11:12:33 pm by Kronoan »
Ryusui
Guest
« Reply #9 on: March 15, 2009, 01:27:30 am »

Yep, I'm a guy, and I'm glad I could help.

This is actually fairly advanced stuff for an absolute beginner; I'm happy I was able to explain the process in a comprehensible fashion (I have a tendency to rant and ramble whenever there's a point to be made ^_^;).
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC