Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: NobodyImportant on 2006-05-16 21:49:20

Title: Finding keyitems? [FF7]
Post by: NobodyImportant on 2006-05-16 21:49:20
Hello again. This time I'm looking for an suggestion as to how one might find the keyitems from a savemap. :)

I found something inside of the Jenova source, but it doesn't make much sense:
Code: [Select]
void CEditItems::LoadKeyItems()
{
int i;
char buf[25];
for (i=0;i<51;i++)
{
strcpy(buf," ");
strcat(buf,rgKeyItem[i].name);
m_KeyItemList.AddString(buf);
if (ff7->keyitems[div(i,8).quot] & (1 << (div(i,8).rem)))
{
m_KeyItemList.SetCheck(i,1);
}
}
}

So, I loaded eight bytes (as FF7.h and the wiki says) and went to the correct offset: 0x0BE4 + 0x09 (because of the PC header). However, when using this (http://www.ffseven.com/saves/save04.ff7) savemap, slot 15, my eight bytes are this:
Code: [Select]
    [1] => 0
    [2] => 199
    [3] => 255
    [4] => 207
    [5] => 15
    [6] => 0
    [7] => 0
    [8] => 0

Any ideas?

P.S. Thanks in advance, just for being here. This community has gotten me so much father along with my technical understnding of Final Fantasy VII. :)
Title: Re: Finding keyitems? [FF7]
Post by: dziugo on 2006-05-16 21:57:46
Check this (http://forums.qhimm.com/index.php?topic=4441.0) - look for a code section.

dziugo
Title: Re: Finding keyitems? [FF7]
Post by: NobodyImportant on 2006-05-16 22:14:14
I honestly don't know how you come up with these things.

You're amazing.
Title: Re: Finding keyitems? [FF7]
Post by: Qhimm on 2006-05-17 10:04:38
He uses the (http://forums.qhimm.com/Themes/default/images/english/search.gif) button.
Title: Re: Finding keyitems? [FF7]
Post by: Sad Jari on 2006-05-17 10:23:48
To be, or not to be? That is the question!

Should
He uses the (http://forums.qhimm.com/Themes/default/images/english/search.gif) button.
be translated into "He uses the search button", or "He uses the search button button"? :-D

Does the picture of a button include a promise notion of a button, or does it have to be separately specified in sweet English language?

Is one button (http://www.jensonbutton.com/site.php) more equal than the other button?

Have I had too many bears (http://www.tsa.gov/interweb/assetlibrary/Teddy_Bear_Sitting.jpg) to drink? Should I (http://forums.qhimm.com/Themes/default/images/english/search.gif) for more?


Sorry, sorry. Too many bears. I'll stap spomming now.
Title: Re: Finding keyitems? [FF7]
Post by: Qhimm on 2006-05-17 11:14:30
Bears in the middle of the day?! You should stop that, or you'll feel really grizzly!
Title: Re: Finding keyitems? [FF7]
Post by: NobodyImportant on 2006-05-18 16:42:00
I always do before asking around. I also search the wiki.

Maybe I'm bad at it.