Miscellaneous Forums > Scripting and Reverse Engineering

FF8 - Location of menu text and dims

(1/5) > >>

Sebanisu:
I was going to draw menus by hand but thought the dims and text are probably in a file somewhere. Anyone know where?

Maki:
menu translations are here:
tkmnmes1.bin
tkmnmes2.bin
tkmnmes3.bin

example tkmnmes1.bin text dump:

--- Code: ---JunctiontJunction MenutItemtItem MenutMagictMagic MenutGFtGuardian Force MenutStatustStatus MenutCardtLook at cardstRearrangetRearrange party ordertSavetSave MenutConfigtConfiguration Menut????tPast party memberstPLAYtGt:tCurrent EXPtNext LEVELt/tHPtLVt-t%tFiretIcetThundertEarthtPoisontWindtWatertHolytDeathtPoisontPetrifytDarknesstSilencetBerserktZombietSleeptSlowtStoptCursetConfusetAbsorbtCan`t selecttMakingtShoptLoadtMoteltMoteltYestNotJunk Shopt(t)tAbilitytUse GF abilitytSwitchtSelect party memberstHaven`t been to a shop!tTutorialtExplanationtS.LVtSeeD ranktAtAcetChanges current HP
OK?t????tInformationtFFâ…Ąâ…ˇ Info CornertTESTtTake Written Test to raise SeeD ranktReviewtReview SeeD Written TesttNothing happenedtTIMEtTIMERtt
--- End code ---


Quick reverse engineering shows this structure:

--- Code: ---ushort unk;
ushort paddingSize?;
byte[paddingSize] NULL; //usually 36
ushort[x] pointersToText //this+36(paddingSize) [256 buffer size in case of tkmnmes1.bin]
string text //null terminated

--- End code ---

right now I don't know where's the pointers count. Distance between first pointer to first text is 256 ((unk*paddingSize)/2)?
tkmnmes3.bin shows that there might be more pointers/data inside one file?

Sebanisu:
I was just reading about this in http://forums.qhimm.com/index.php?topic=17120.0 seems like some if not all of the smaller bin files are duplicate data pulled out of mngrp.bin. I made a spreadsheet to translate the hex into something readable. Though it's has limits. I cannot copy and paste the whole file or it'll get truncated.
I did discover [{0x03,0x40} = Angelo's name] if you see that in a string.

http://forums.qhimm.com/index.php?topic=17099.0 has alot of info on that. first 3 things in mngrp.bin are tkmnmes1.bin, tkmnmes2.bin, and tkmnmes3.bin.

alot of good info on m001-m004 files in http://forums.qhimm.com/index.php?topic=17120.0

Sebanisu:
First ushort seems to be a number of padding values. it's always 16 it seams. Where there can be a padding value of 0 and we would just skip that. Then some files only have one padding value and some have multiple. At the padding location is the count of the following locations to strings that are the location plus the current padding value. I'm still working on it. I got it to read the first two files without using the other padding values because the locations and strings were back to back in file 2 and I just computed the new padding value based on where I was in the file.

Sebanisu:
https://pastebin.com/P8dEJWeR <-- link to the string dump so far. I'm assuming there is more in mngrp. That's all I can do today though :P maybe more after work tomorrow.

Navigation

[0] Message Index

[#] Next page

Go to full version