+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  PS2 Game: Pure Pure Mimi to Shippo no Monogatari: Request help viewing script
Pages: 1 [2]
Author Topic: PS2 Game: Pure Pure Mimi to Shippo no Monogatari: Request help viewing script  (Read 1342 times)
KaioShin
Guest
« Reply #15 on: December 10, 2007, 05:41:49 pm »

How big is that scriptfile? Can you upload it on rapidshare or something?

(Btw: Don't double post, editing posts WILL mark the topic as new)
Zirrah
Guest
« Reply #16 on: December 10, 2007, 05:48:28 pm »

((Ah! Sorry, I had no idea that editing would mark it as new.))

http://www.megaupload.com/?d=MDUDK4X6

Here you go.
KaioShin
Guest
« Reply #17 on: December 10, 2007, 06:07:14 pm »

Well, it's neither SJIS, EUC or Unicode. So it's something custom.

What I don't like is that there are too many consecutive zeroes in there throughout the file. Strange. Doesn't look compressed at least. With the font you might be able to create a table. If not, I see little hope without a healthy dose of debugging.

But there are more experienced people here than me, maybe one of them sees more in the script file (if it even is one, despite the first 5 letters, how can you be sure?)
Zirrah
Guest
« Reply #18 on: December 10, 2007, 06:14:22 pm »

Well, the layout of the game's files exactly follows the same format as the PC game, so it should be the script files. And some of what I assume are test files that they kept in the compressed archive have some text that is ShiftJIS, although they're never the actual dialog and usually just the title of the scene. I.E.: インタビュー



The scripts are also all about the same size:

« Last Edit: December 10, 2007, 06:21:26 pm by Zirrah »
saito
Guest
« Reply #19 on: December 10, 2007, 07:53:22 pm »

Quote from: KaioShin on December 10, 2007, 06:07:14 pm
What I don't like is that there are too many consecutive zeroes in there throughout the file. Strange. Doesn't look compressed at least. With the font you might be able to create a table. If not, I see little hope without a healthy dose of debugging.
Just what I thought,there are too much consecutive zeroes,it does not follows a pattern,and also the file has a dummied footer but anything in the header  Shocked
Can you please post a file list? That may point something of what's happening with these files.

You can generate one mounting your disc on isobuster and clicking the right button of your mouse. :crazy:
Zirrah
Guest
« Reply #20 on: December 10, 2007, 07:59:14 pm »

I don't think this will be very helpful. A majority of the files are in compressed .afs archives, but here you go. The file list:

Quote
0000299 , \\SYSTEM.CNF
0000300 , \\CDVDSTM.IRX
0000317 , \\CRI_ADXI.IRX
0000373 , \\IOPRP280.IMG
0000505 , \\LIBSD.IRX
0000519 , \\MCMAN.IRX
0000566 , \\MCSERV.IRX
0000570 , \\PADMAN.IRX
0000592 , \\SDRDRV.IRX
0000597 , \\SIO2MAN.IRX
0000601 , \\FILE.DIR
0000602 , \\CG.AFS
0873279 , \\SYS.AFS
0923707 , \\VOICE.AFS
1120758 , \\BGM.AFS
1191031 , \\SE.AFS
1194994 , \\OP.PSS
1251667 , \\ED.PSS
1355884 , \\DEMO3.PSS
1413789 , \\DEMO1.PSS
1471694 , \\DEMO2.PSS
1529599 , \\RAIN.PSS
1540088 , \\SLPM_658.62
1540522 , \\DUMMY.
Cless
Guest
« Reply #21 on: December 10, 2007, 08:18:53 pm »

Tales of Destiny 2 uses a custom table. However I found a data table in shift-jis format that contained all the double byte characters in its proper linear order. With some trial and error we figured out how the table logic worked and created a table file from it. Don't know if this game might feature something similar.

All I can really tell from that file is that after [SCRIPT], there's a DWORD containing the file size minus the header. The excessive zeroes might be used for byte-aligning, but I didn't look too deeply into that.

Grph. This reminds me of when I peered into Summon Night 3. The text was shift-jis, but the whole file format didn't make the slightest bit of sense to me.
UglyJoe
Guest
« Reply #22 on: December 10, 2007, 08:41:06 pm »

Quote from: Zirrah on December 10, 2007, 02:11:26 am
I did find a readable file called 'Kanji.lst" which had the complete Kana table as well as all of the Kanji the game used in it(as well as the capitalized alphabet), but I don't see how that's applicable in decoding the script files.

Can you post this file?  It sounds vital to making a table file for this.
Zirrah
Guest
« Reply #23 on: December 10, 2007, 08:55:21 pm »

Yes, here they are:

The Kanji files: http://www.megaupload.com/?d=37CQN8NA

Misc other files that may be helpful: http://www.megaupload.com/?d=QAJCYTQT
Cless
Guest
« Reply #24 on: December 10, 2007, 09:09:01 pm »

Hmm.. I think I've figured it out, at least partially. Give me a bit of time....



EDIT: Okay, here's a table I generated.



kana seems to be appearing properly. I can't say for the kanji. All that excessive zero crap seems to be non-text data.
« Last Edit: December 10, 2007, 09:45:39 pm by Cless »
UglyJoe
Guest
« Reply #25 on: December 10, 2007, 09:49:17 pm »

Looks like you've got the same results I got (you're just a little faster :thumbsup:)
Zirrah
Guest
« Reply #26 on: December 10, 2007, 09:54:27 pm »

Oh, my God. Thank you so much. It seems to be appearing correctly. It's a little hard to read with some random characters being in there(probably commands), but that's not a big problem at all. Thank you so very much!
Cless
Guest
« Reply #27 on: December 10, 2007, 10:00:38 pm »

For what it's worth, my intuition tells me that FEFF may be a linebreak and FDFF may be a string terminator, though the game seems to use both at the end of a string...

EDIT: More info

This looks like it could be some kind of event script with the text strings intertwined.

0x0208 might be some command that means "display text." That is followed by 2 bytes that indicate the string's length in bytes, and then 4 bytes whose use is unknown to me (though the value there for each successive string is +1 from the previous string's), and then finally, the text, whose length was previously defined.

There's also command 0x3104 that I noticed. It has a two-byte argument following. This command appears before the first string in the file and the argument value is 0x0000. Somewhere shortly down the file it appears again but the argument is 0x0100. Maybe it changes a character's portrait or something. Shrug, I don't really know how these kinda games work. Tongue
« Last Edit: December 10, 2007, 11:48:38 pm by Cless »
Zirrah
Guest
« Reply #28 on: December 11, 2007, 02:16:46 am »

Hmm, strange. There's no image changes near the line for 3104. So that's probably not it. I would say it was the command to fetch the protagonist's name, but if that was the case, it'd happen far more frequently than just twice.
Pages: 1 [2]  


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