XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon May 22, 2017 8:14 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Persona 3 (P3, FES, P3P) MSG1 format
PostPosted: Mon Mar 20, 2017 1:10 pm 
Offline
ultra-n00b

Joined: Mon Oct 20, 2014 3:01 pm
Posts: 5
Has thanked: 2 times
Have thanks: 1 time














You can make the ads go away by registering

Good evening. I'm looking for help to translate the texts found in the Persona 3 games. MSG1 is the most used format (There's another two that are simpler), and so far I had no luck.

Here's the specs I found:
Code:
HEADER:
0x00: 07000000
0x04: Full file size
0x08: Magic word MSG1
0x0C: Unknown, filled with 0x00

0x10: End position of the text table, beginning of linejump table
0x14: Amount of pointer blocks
0x18: String amount (Two blocks per string)
0x1C: Apparently fixed value, 0x20000

POINTER BLOCKS
0x08 bytes
0x00: 0x00
0x04: Pointer to string block

STRING BLOCKS
Before the string block area there's an 0x10 byte row with extra content. If the file has character names, this will point to the character name area and the amount of names.
0x00 bytes: End of text block/Start of character size (If exists) (Relative to 0x20)
0x04 bytes: 0x00 if there's no character blocks, amount of character names if it exists.
0x08 bytes: Filled with 0x00s

Now to the string blocks themselves. Each one is aligned to 4 bytes.
0x00: String identifier (Filled with 0x00 as padding)
0x18: Seems like an identifier of the type of string (Normal string/With character name/Choice options)
0x1C: Unknown
0x20: String size
0x24: String contents

CHARACTER BLOCKS (If they exist)
0x04 bytes per pointer (Absolute to file), after that there's the names (They're not aligned).

LINEJUMP BLOCK
This is the funniest one. It seems that this area calculates the places where the text is cut between lines. 1 byte per linejump or line end.


Text encoding seems to be S-JIS for Japanese texts and simple ASCII for western texts.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group