Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: IlDucci on 2015-10-10 18:34:53

Title: FF7 - PEOPLE.BIN for PC, Anyone wants to code a tool?
Post by: IlDucci on 2015-10-10 18:34:53
Hi guys! Guess it'll be my first post around here...

I'm kinda surprised I couldn't find someone who had already edited the PEOPLE.BIN file on the PC 1998/2012/Steam version. I had to break the format myself, and I was wondering if anyone already made a tool to edit that or would be willing to do so.

Quote
Format specs:
Each line has 0x40 bytes.
 - 0x04 bytes: Type of font being used (Title, title with underline, Credit text, sizes)
 - 0x04 bytes: Font color
 - 0x04 bytes: Always 0x00
 - 0x30 bytes: Line contents. If empty, should only contain an space (0x2F) and the end of line character (0x7F) If not empty, contains text and then end with 0x7F.
 - 0x04 bytes: Interline spacing.

Quote
Font table:
00=A
01=B
02=C
03=D
04=E
05=F
06=G
07=H
08=I
09=J
0A=K
0B=L
0C=M
0D=N
0E=O
0F=P
10=Q
11=R
12=S
13=T
14=U
15=V
16=W
17=X
18=Y
19=Z
1A=1
1B=2
1C=:
1D=,
1E=.
1F=&
20=(
21=)
22='
23=“
24=”
25=-
26=3
27=Å
28=(SPECIAL ACCENTED CHARACTER, CHANGES WITH EACH LANGUAGE)
29=(SPECIAL ACCENTED CHARACTER, CHANGES WITH EACH LANGUAGE)
2A=(SPECIAL ACCENTED CHARACTER, CHANGES WITH EACH LANGUAGE)
2B=(SPECIAL ACCENTED CHARACTER, CHANGES WITH EACH LANGUAGE)
2C=(SPECIAL ACCENTED CHARACTER, CHANGES WITH EACH LANGUAGE)
2D=(SPECIAL ACCENTED CHARACTER, CHANGES WITH EACH LANGUAGE)
2E=(SPECIAL ACCENTED CHARACTER, CHANGES WITH EACH LANGUAGE)
2F=(Space)
30=Tabulation (For lines with two names on it)
7F=END OF LINE

It can't be edited freely though, as the EXE has a timer that switches from this screen to the "Five hundred years later..." one. The timer changes between languages (English PEOPLE.BIN is smaller than Spanish PEOPLE, per example), so the game won't break when you add more or less lines, but the EXE still needs extra touches.

Also, (thanks to Ortew for this finding), the VWF for the PEOPLE font can be found here:
v1998/Steam: 0x58F130 to 0x58F1F0
v2012: 0x58FD30 to 0x58FDF0

4 bytes per character, measured in bytes, takes font.tex as a reference.
Title: Re: FF7 - PEOPLE.BIN for PC, Anyone wants to code a tool?
Post by: Vgr on 2015-10-10 21:13:22
This is an interesting breakdown. I don't seem to remember seeing this file in the game's files though (and I'm not home so I can't check); where is that file and do you know what is its purpose?
Title: Re: FF7 - PEOPLE.BIN for PC, Anyone wants to code a tool?
Post by: IlDucci on 2015-10-10 22:05:55
This is an interesting breakdown. I don't seem to remember seeing this file in the game's files though (and I'm not home so I can't check); where is that file and do you know what is its purpose?

It's in cr.lgp. Also, the EXE offsets I mentioned are for the Spanish EXEs. The English ones will need retargeting.
Title: Re: FF7 - PEOPLE.BIN for PC, Anyone wants to code a tool?
Post by: Vgr on 2015-10-10 22:08:26
Interesting! :) I'll have a look at that when I'm home, it does sound interesting. I'll look into making a tool, but can't promise anything.
Title: Re: FF7 - PEOPLE.BIN for PC, Anyone wants to code a tool?
Post by: Kaldarasha on 2015-10-11 10:41:33
Wasn't there a patch for cr.lgp to correct a wrong Credit? The People.bin is only for the names of the credits list, aren't they.
For me are more important to research kage.dat and the extra compressed files for the snowboard minigame.
Title: Re: FF7 - PEOPLE.BIN for PC, Anyone wants to code a tool?
Post by: IlDucci on 2015-10-11 12:24:53
Wasn't there a patch for cr.lgp to correct a wrong Credit? The People.bin is only for the names of the credits list, aren't they.
For me are more important to research kage.dat and the extra compressed files for the snowboard minigame.
Names and Ranks for the ending credits. And, guess what, the ranks were translated to EFIGS. And, like the rest of the game, they were translated poorly. That's why this could come in handy, your fix can only apply to the English credits.

Title: Re: FF7 - PEOPLE.BIN for PC, Anyone wants to code a tool?
Post by: IlDucci on 2015-10-15 17:10:20
I'm having the feeling my PMs are still off because of my lack of posts so... I'm ready for helping anyone willing to do the tool. Vgr?
Title: Re: FF7 - PEOPLE.BIN for PC, Anyone wants to code a tool?
Post by: Vgr on 2015-10-15 20:35:48
Still haven't gotten around to fetching my data files from my older computer. I'll let you know when I do.
Title: Re: FF7 - PEOPLE.BIN for PC, Anyone wants to code a tool?
Post by: IlDucci on 2015-10-15 21:08:20
Still haven't gotten around to fetching my data files from my older computer. I'll let you know when I do.
Got it.
Title: Re: FF7 - PEOPLE.BIN for PC, Anyone wants to code a tool?
Post by: Vgr on 2015-10-19 14:11:38
The Workers tool is now online! (http://forums.qhimm.com/index.php?topic=16431.0)