Romhacking.net

Romhacking => ROM Hacking Discussion => Topic started by: RedSun on December 29, 2010, 07:07:25 pm

Title: Phantasy Star Generation 2 tryout.
Post by: RedSun on December 29, 2010, 07:07:25 pm
Hello,
1)Is there any way to expand/reconstruct iso to insert uncompressed(~1.5 bigger than original compressed) text ?
2)Is there any way to make the game read half-width letters ? (shows "-" instead)
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Guadozoku on December 30, 2010, 01:15:42 am
I don't know if you have a fully dumped script yet, but you now have a translator for this game. I've been waiting for a hacker to get on this.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: RedSun on December 30, 2010, 06:30:54 am
Yeah, I managed to dump full scipt, and insert it uncompressed.(replacing compressed by ~75% of uncompressed)
So that mean, the game will just hang at some point.
(http://i1197.photobucket.com/albums/aa424/RedSunn/PSG2/gsdx_20101230141751.jpg)
Maybe I'm using wrong sjis, but J ,Y and w also shows like "-":
(http://i1197.photobucket.com/albums/aa424/RedSunn/PSG2/gsdx_20101230141808.jpg)
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Rhys on December 30, 2010, 09:27:46 am
They're probably not in the font, that's why they show as -'s
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Guadozoku on December 30, 2010, 10:51:14 am
Wel, if you want to send over the script I'll get right on it
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Piotyr on December 30, 2010, 11:57:59 am
 :o :o :o :o :o :o :o :o :o :o
GOD IN HEAVEN THIS IS PROOF YOU EXIST! Sorry to post something useless but I just want to show I have been waiting for this for so so long. Take the time you need and get this done because I will be one of your first downloaders!
Title: Re: Phantasy Star Generation 2 tryout.
Post by: RedSun on January 01, 2011, 03:52:50 pm
Can't understand this pointers pattern:
[pointer]  - [text offset]
17c8 - 4fd2
17b8 - 4fc2
16b8 - 4ec2
17ba - 4fc4
2cf4 - 135d ??
1f5c - 4e13
2c8d - 6497
Title: Re: Phantasy Star Generation 2 tryout.
Post by: DarknessSavior on January 01, 2011, 07:55:08 pm
Can't understand this pointers pattern:
[pointer]  - [text offset]
17c8 - 4fd2
17b8 - 4fc2
16b8 - 4ec2
17ba - 4fc4
2cf4 - 135d ??
1f5c - 4e13
2c8d - 6497
I'm not sure why, but they all seem to be offset by a value of 380A, except for the one with ??.

~DS
Title: Re: Phantasy Star Generation 2 tryout.
Post by: RedSun on January 02, 2011, 01:17:49 pm
event.dat structure:

[file header][decompressed size][compressed size]
[data...................][compression flags]
---some free space---
[file2 header][decompressed size][compressed size]
[data...................][compression flags]
..............
Game decompresses these files, and puts pointers and text in memory after 01900000.
Pointers point to the (01900000 + pointer) offset. (example:17c8 to 019017c8)
So the easiest way is to enlarge(translate) 1st archive, replacing 2nd,
then in some point of the game restore 1st and enlarge 2nd, relpacing 3rd. and so on.
That way we'll need patches for the each part of the game...
Any ideas?
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Special T on January 06, 2011, 08:15:04 am
I just noticed this topic and I'm glad to see this game get translated. I already imported the game a couple years ago so I'm good to go once it's done  ;D

Thanks for starting the project and good luck!  :beer:
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Piotyr on January 07, 2011, 01:24:08 am
As have I! I need to import the first one with the book too.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: RedSun on January 07, 2011, 10:40:34 am
Can someone recommend me a good documentation about ps2/psx asm ?
Something like this http://www.slowbeef.com/romhack/pnhack2.html

Here is the script files before graphics starts: http://rotime.ru/other/psg2_script_1.zip
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Guadozoku on January 08, 2011, 11:23:38 pm
I'm getting to work on it, but it is incomplete. I looked through the files, and at least one scene (Esper Mansion) is absent.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: RedSun on April 10, 2011, 08:38:51 am
Hi Guadozoku, is there any progress in translation ?
I didn't have time to work on script reinsertion, but still have some ideas to try.
And here is the missing files:
psg2_script_2 (http://www.rotime.ru/other/psg2_script_2.zip)
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Hiei- on November 27, 2011, 06:48:18 pm
Is this project still active?
Title: Re: Phantasy Star Generation 2 tryout.
Post by: CUE on January 23, 2012, 02:46:25 pm
I had not seen this post. I have some tools for Phantasy Star Generation 1 & 2 PS2, some unfinished.

Quote from: RedSun
1)Is there any way to expand/reconstruct iso to insert uncompressed(~1.5 bigger than original compressed) text ?
Why? You can replace the original compressed files with the new compressed files.

Quote from: RedSun
2)Is there any way to make the game read half-width letters ? (shows "-" instead)
Yes. All you need is modify the original font file to add the missing characters ('J', 'Q', 'Y', 'j', 'q', 'w', 'x', 'z').

(http://img51.imageshack.us/img51/1827/testmw.png)
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Paul Jensen on October 07, 2012, 09:52:27 am
Sorry to necrobump.

Is anybody here (still) working on tools for these games?

A poster named Kyence over at PSCave recently finished a translation of PSG1, and another poster named Tryphon has been working on dumping and insertion tools. Anybody who's interested can check out the discussions [urlhttp://www.pscave.com/forums/viewtopic.php?f=14&t=3032]here[/url] and here (http://here).

Also, I'd be interested in any info people have about the following:
- The way pointers are stored in the script
- How to extract and view the font

Edit: I just noticed that Tryphon has recently joined Romhacking.net.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: tryphon on October 07, 2012, 10:08:37 am
I've answered you about the pointer detection at pscave (you may have missed the post since someone asked you a question about Rent a Hero meanwhile), I can be more precise if you want.

For the font extraction and view (and editing), you can find info on Kyence thread about PSG1(here (http://www.pscave.com/forums/viewtopic.php?f=14&t=3032&start=90#p53320)). They are in MAPDATA.DAT file (at position 1e000 IIRC).

I started a tool to easily change it, but I'd like to figure out how to change text encoding before finishing it.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Hiei- on October 13, 2012, 04:27:32 pm
Pscave.com seems down, too much visits because of the resurrection of this thread ?  ;D
Title: Re: Phantasy Star Generation 2 tryout.
Post by: tryphon on October 13, 2012, 05:37:00 pm
Probably :)

It worked yesterday.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Hiei- on October 13, 2012, 07:59:55 pm
It's working again :)

I'm curious so I tried your tool and I might have found a bug, as I can't manage to create an EVENT.DAT file without any error even if I follow your explanation on pscave.com line by line, so I sent you a pm explaining the problem, in case it might help you to spot some bugs if it's really a bug.  ;)
Title: Re: Phantasy Star Generation 2 tryout.
Post by: tryphon on October 14, 2012, 04:27:04 am
Thanks for the report. It must be some stupid mistake when I  packaged the tool. I'll look at it. What intrigates me is that I had reports from people that had it working.

By the way, je suis français moi aussi, ça devrait faciliter les échanges :)

Title: Re: Phantasy Star Generation 2 tryout.
Post by: Hiei- on October 14, 2012, 04:59:59 am
Okay, it's not a bug, it's my fault  :P

I used "algoring -t 3 EVENT.DAT" as it was written "hexadecimal" on the forum but the tool require "03" because the flenames are "03-xx".

I'm posting that info here in case some people have the same problem (the error output was "file not found : 03-xxxxxx.DAT").
Title: Re: Phantasy Star Generation 2 tryout.
Post by: tryphon on October 17, 2012, 05:52:28 am
Variable Width Font added to dialogues (encoding changed too) :

(http://imageshack.us/a/img689/7240/gsdx20121017112420.gif)

I added it to menus too, but I have difficulty in keeping the items' names in Equipment and Status menus aligned to the right (I must compute the total width of an item and then substract.to cursor position. I thought I had it, but it failed on some items while it worked on others, I must figure out why).
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Hiei- on October 17, 2012, 08:13:32 am
Pretty.

So, with that font, you gain one more line for the text? (4 instead of 3).
Title: Re: Phantasy Star Generation 2 tryout.
Post by: tryphon on October 17, 2012, 08:40:57 am
This font is only for testing purposes (it's in fact Lucida Console) and I haven't modified space between lines (but I can do it). I'll make a tool to allow anyone set these things as soon as I've fixed right alignment issues.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Hiei- on October 17, 2012, 09:33:45 am
Though it's only a test, this font is not bad :)
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Special T on October 17, 2012, 09:44:46 am
Though it's only a test, this font is not bad :)

I agree
Title: Re: Phantasy Star Generation 2 tryout.
Post by: LostTemplar on October 17, 2012, 11:28:17 am
Yeah, but Lucida Console isn't really proportional ;)
Title: Re: Phantasy Star Generation 2 tryout.
Post by: tryphon on October 17, 2012, 12:46:21 pm
 :banghead:

You're totally right, I will change to another font. I'm stupid...

October 17, 2012, 02:29:47 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
Some awful proportional font :

(http://imageshack.us/a/img193/5932/gsdx20121017201319.gif)

I didn't changed the alpha values, that explains why some letters seems to overlap.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Hiei- on October 17, 2012, 03:10:56 pm
Wasn't the latin one included in the game proportional ? If yes, that woule just require to add the missing letters.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: tryphon on October 17, 2012, 05:37:24 pm
No, it wasn't. Else I wouldn't have bothered about adding VWF  ::)

But we can use them as a basis for the definite font.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Hiei- on October 17, 2012, 05:53:09 pm
Yeah, I meant, the width of the letters, not the way (width) they were displayed during the game (which was a fixed width).

Title: Re: Phantasy Star Generation 2 tryout.
Post by: tryphon on October 17, 2012, 06:14:07 pm
Ah ok. In this case, all fonts are proportional :)

But yes, we could turn the latin characters from this font into a VWF. It would fit the original design of the game. I think it's a good idea. Some of the missing chars may already be present in the font used in PSG1 (it's the same).

October 21, 2012, 12:39:20 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
(Ugly) proportionnal font (continued)

(http://imageshack.us/a/img87/5483/gsdx20121021173320.gif)

Alignement and spacing seems correct. Unfortunately, in the bottom right window (description) lines are automatically cut after 32 characters, so I must find which of 4000 times tha $20 appears in the code I have to change  >:(

They could have cut if after 33 characters...

(Don't worry for the rubbisch text, I've just Google-translated it for testing purposes)
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Hiei- on October 21, 2012, 11:22:58 pm
Is the top-right corner really limited (like "Defens") or you were just lazy to write longer words ?
Title: Re: Phantasy Star Generation 2 tryout.
Post by: tryphon on October 22, 2012, 03:09:42 am
Just lazy :)

In fact, strings are grouped in chunks and the chunk is limited in size. But as long as the chunk doesn't get too big, you can let strings inside have any length.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Hiei- on January 14, 2014, 10:00:22 am
After Tryphon looked at the game and amazingly broke near all the limitations (VWF and such), I finally started to translate this game into french and I can now officially say that the text translation is over (100%) since a few seconds ago.

There is also an english translation in progress by Kyence, who translated the first one (though this one will look better thanks to Tryphon hacking, as the first one was very limited hacking-wise because of the lack of a talented (and with free time) hacker).

I suppose both we will be available sometimes during this year, as Kyence seems to be pretty fast for the english version (I personally was a bit lazy and it took me one year to translate the ~500 KB script, though this year also cover all the beta-test/debug of the tools. We did something like 20 versions of the SLPM before having something that was fully working with the original hardware and I'm glad I bugged Tryphon about that  ;D).
Title: Re: Phantasy Star Generation 2 tryout.
Post by: KingMike on January 14, 2014, 11:59:07 am
Quote
I suppose both we will be available sometimes during this year
Does that mean you plan to update the first game to make it look better as well? :)
Title: Re: Phantasy Star Generation 2 tryout.
Post by: tryphon on January 14, 2014, 12:57:35 pm
At last, we'll release the tools that will permit to update it.

If I have time, I'll do it myself.
Title: Re: Phantasy Star Generation 2 tryout.
Post by: Piotyr on January 19, 2014, 01:09:57 pm
I have been waiting for this remake since it was freaking announced to be coming to america! Damn sony and their anti 3d games rule! Damn company for going under before the remake of 4 came out! So I bought the Japanese version and am now sitting on my hands till an English version comes out.

If you can't tell this is a round about way of saying you are making a dream of mine come true in translating this. Heartfelt thanks! :beer:
Title: Re: Phantasy Star Generation 2 tryout.
Post by: tryphon on January 19, 2014, 04:47:13 pm
You're welcome :)

If you want to know a little more on the subject, you can see here[/urel]. (http://www.pscave.com/forums/viewtopic.php?f=14&t=3175)