Hacking Problem triying to translate Steins;Gate to Spanish

RY0M43CH1Z3N

Touching things and improving your world
OP
Member
Joined
Aug 16, 2017
Messages
593
Trophies
0
Location
Your Mind
Website
github.com
XP
1,918
Country
Spain
Hello guys!

I have a problem,

I wanted to make a translation to Spanish of the game Steins;Gate for PSP or PS Vita (I know we have the translation to others plataforms, thanks), I tried the RikuKH3 script (https://github.com/BASLQC/steins-gate-psp-patch), translating the prologue, creating the SG00_01.BIN, once I put it back in SCENE0.AFS and this in turn, in DATA0.AFS (using PuyoTools), and with UMDGen(ISO used, STEINS;GATE ULJM05887) Putting it back and generating an ISO, when trying to start the game, is left with the screen in black,

does anyone know the right steps to perfectly works, or if you try it works (even if only with the prolog script)?

Thanks for your attention!
 
  • Like
Reactions: i4v

i4v

Member
Newcomer
Joined
Apr 26, 2018
Messages
14
Trophies
0
Location
Chita
XP
80
Country
Russia
What's up, did you find any solution?
Maybe the problem is in .xdelta file? Did you generate one?

UPD: SCENE0? misspelling or you really named it like that? I'm not sure if it matters, but patch guide says it should be named SCENE00
 
Last edited by i4v,

RY0M43CH1Z3N

Touching things and improving your world
OP
Member
Joined
Aug 16, 2017
Messages
593
Trophies
0
Location
Your Mind
Website
github.com
XP
1,918
Country
Spain
What's up, did you find any solution?
Maybe the problem is in .xdelta file? Did you generate one?

UPD: SCENE0? misspelling or you really named it like that? I'm not sure if it matters, but patch guide says it should be named SCENE00

No, if i can't inject the file, i can't créate a .xdelta file

Yeah, i did every step but no one says how to inject the text back to the ISO
 

i4v

Member
Newcomer
Joined
Apr 26, 2018
Messages
14
Trophies
0
Location
Chita
XP
80
Country
Russia
No, if i can't inject the file, i can't créate a .xdelta file

Yeah, i did every step but no one says how to inject the text back to the ISO

I've done all steps by myself today, and i got same result: after launching there is just a black screen. Also it's impossible to get back to system through Home button, console freezes and the only solution is battery hard-reset. Scary, I don't want to make PSP a stone.

So, i thought that maybe there may be two problems:
  1. We're using UMDgen wrong way
  2. There is an error in patch guide? (Maybe we should decompile bins by ourselves, that's why i'm asking about Cartographer)
no one says how to inject the text back to the ISO

github[dot]com/BASLQC/steins-gate-psp-patch/issues/1#issuecomment-132367951 - Injecting the new script / Putting the AFS archive back to ISO - isn't it what you're looking for? (newbies can't use links, sorry)

I'm absolutely new to this. I began researching question just a day ago, so maybe i just don't understand some simple PSP things, sorry for that. But I want to learn it deeper.
 

RY0M43CH1Z3N

Touching things and improving your world
OP
Member
Joined
Aug 16, 2017
Messages
593
Trophies
0
Location
Your Mind
Website
github.com
XP
1,918
Country
Spain
So, i thought that maybe there may be two problems:
  1. We're using UMDgen wrong way
  2. There is an error in patch guide? (Maybe we should decompile bins by ourselves, that's why i'm asking about Cartographer)

The first i don't think, i still translating another game and it's Works injecting the text with UMDgen
The second question, i think there are some losing steps.

Injecting the new script / Putting the AFS archive back to ISO - isn't it what you're looking for? (newbies can't use links, sorry)

I try it, with the english and my version and doesn't Works. Like i say, in the "guide of these comment" the section

"
Compilation Guide
(need to figure this out)
"

Says all.

Don't worry, any game is a World.
 

i4v

Member
Newcomer
Joined
Apr 26, 2018
Messages
14
Trophies
0
Location
Chita
XP
80
Country
Russia
Generated DATA0 for a few times from data in github patch. 3 MB is a lot, it can't be only because of replacing Japanese text with English. Something losed?
Снимок экрана от 2018-04-27 13.47.48.png

P.S. wow, 7 years, day in a day.
 

RY0M43CH1Z3N

Touching things and improving your world
OP
Member
Joined
Aug 16, 2017
Messages
593
Trophies
0
Location
Your Mind
Website
github.com
XP
1,918
Country
Spain
Generated DATA0 for a few times from data in github patch. 3 MB is a lot, it can't be only because of replacing Japanese text with English. Something losed?

Is for the characters used. Japanese and latin characters have diferent KB.

You try to play the iso with the english text?
 

i4v

Member
Newcomer
Joined
Apr 26, 2018
Messages
14
Trophies
0
Location
Chita
XP
80
Country
Russia
I don't know how to do Works D:
Now i want to inpect thoroughly every file that may contain problem. First of all, i want to decompile .BIN files by myself.
I thought that replacing files through UMDgen may break any metadata or like that, so i tried to extract original DATA and replaced.... well, it works perfectly. Something wrong with the english version data. I'm researching.
If we just could get right commands.txt for the Cartographer...
 

RY0M43CH1Z3N

Touching things and improving your world
OP
Member
Joined
Aug 16, 2017
Messages
593
Trophies
0
Location
Your Mind
Website
github.com
XP
1,918
Country
Spain
Now i want to inpect thoroughly every file that may contain problem. First of all, i want to decompile .BIN files by myself.
I thought that replacing files through UMDgen may break any metadata or like that, so i tried to extract original DATA and replaced.... well, it works perfectly. Something wrong with the english version data. I'm researching.
If we just could get right commands.txt for the Cartographer...

Nop, it's a problema of puyo tolos, cartographer or other tool use for compile it.
 

Mitya_

New Member
Newbie
Joined
Sep 14, 2018
Messages
4
Trophies
0
Age
23
XP
45
Country
Russia
Hello. Sorry for my English. To make playable iso I used AFSexplorer and UMDgen. I can't find the pointers that's why I can't continue. Can you help how to find them?
 
Last edited by Mitya_,

i4v

Member
Newcomer
Joined
Apr 26, 2018
Messages
14
Trophies
0
Location
Chita
XP
80
Country
Russia
Hello. Sorry for my English. To make playable iso I used AFSexplorer and UMDgen. I can't find the pointers that's why I can't continue. Can you help how to find them?
Ох, братан, the same problem. We didn't find out how to fix pointers.
But I'm a bit less busy now so I'll get back to research. Do you have a Discord?
 
  • Like
Reactions: RY0M43CH1Z3N

Mitya_

New Member
Newbie
Joined
Sep 14, 2018
Messages
4
Trophies
0
Age
23
XP
45
Country
Russia
Ох, братан, the same problem. We didn't find out how to fix pointers.
But I'm a bit less busy now so I'll get back to research. Do you have a Discord?
No, I don't have. Can you create an account on pspx? Or if you have send me
 
Last edited by Mitya_,

i4v

Member
Newcomer
Joined
Apr 26, 2018
Messages
14
Trophies
0
Location
Chita
XP
80
Country
Russia
OK guys, I made it work, I guess. At least there are few screenshots just like as at Riku's post, the first dialog line of prologue. And yes, I've also checked Cyrillic and it works well in russian translation; you may also see the difference with English version, where dialog and [ ] box are not separated; in russian one i've used <LINE> after ] . But honestly first line is the only line that have been translated, i leaved the rest of dialogue in Japanese and I'll explain why.
Снимок экрана от 2018-09-17 23-40-12.png

Снимок экрана от 2018-09-17 23-44-16.png

So, what I did:
  1. Generated SG00_01.BIN file using default .bat script (actually .sh; I've rewrited it in bash to run in *nix systems like mine)
    In options to atlas.exe I've set my own file SG00_01_enfix.txt which is actually a copy of SG00_01.txt with one line translated to English / Russian
  2. Inserted new SG00_01.BIN to SCENE00.AFS inside DATA0.AFS instead of default file using AFSExplorer (without any unpacking/repacking, File>Import AFS file from CD image...> <iso game file>/PSPGAME/USRDIR/DATA0.AFS/SCENE00/ and then right mouse button on file>import>SG00_01.BIN (new))
  3. Launched the result in PPSSPP. Output is on screenshots. DATA.BIN haven't been touched yet.
Of course I have tried to assemble SG00_01_en.txt, but inserting it causes black screen; sometimes at the very launch, sometimes only after pressing "Start" at main menu. AFSExplorer -great program, thanks to Mitya_- told me why.
In AFS package every file has its own space. It's a little bit bigger then the file is. For SG00_01.BIN the max size, according to AFSExplorer, is 61440 bites. BIN in Japanese with only one line translated to Russian weights 60510 bites; there are still some free space left. But if we build the BIN out of SG00_01_en.txt, the file size is 62,8 KB! That's about 1,4 KB of data that can't fit in. Yeah, the English script weights A LOT more then the JP one.
One of the ways to fix it is to repack AFS with more space. But there is a problem - the ISO and AFS inside is protected, and we can't do that. If we repack ISO, that would cause problems as we already had before (but I hope we'll find a way to do it normally)

And why I'm still here, less important news. I'm exploring Cartographer and I made it work a bit; It already exports raw japanese text data of DATA.BIN, but i've met problem working with pointers; anyway, I hope i'll deal with them too to work with other scripts. But our main goal for now is a prologue.
Note: if someone would try Cartographer and get error while opening shiftsjis.tbl, open this file in your hex editor and cut EF BB BF at the beginning of the file.
 
Last edited by i4v,
  • Like
Reactions: RY0M43CH1Z3N

RY0M43CH1Z3N

Touching things and improving your world
OP
Member
Joined
Aug 16, 2017
Messages
593
Trophies
0
Location
Your Mind
Website
github.com
XP
1,918
Country
Spain
OK guys, I made it work, I guess. At least there are few screenshots just like as at Riku's post, the first dialog line
...
Note: if someone would try Cartographer and get error while opening shiftsjis.tbl, open this file in your hex editor and cut EF BB BF at the beginning of the file.
OMG I'll try it tomorrow with spanish translation.

--------------------- MERGED ---------------------------

Of course I have tried to assemble SG00_01_en.txt, but inserting it causes black screen; sometimes at the very launch, sometimes only after pressing "Start" at main menu. AFSExplorer -great program, thanks to Mitya_- told me why.
In AFS package every file has its own space. It's a little bit bigger then the file is. For SG00_01.BIN the max size, according to AFSExplorer, is 61440 bites. BIN in Japanese with only one line translated to Russian weights 60510 bites; there are still some free space left. But if we build the BIN out of SG00_01_en.txt, the file size is 62,8 KB! That's about 1,4 KB of data that can't fit in. Yeah, the English script weights A LOT more then the JP one.
One of the ways to fix it is to repack AFS with more space. But there is a problem - the ISO and AFS inside is protected, and we can't do that. If we repack ISO, that would cause problems as we already had before (but I hope we'll find a way to do it normally)
Jou T_T
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @Mondooooo, there was a power outage while you were sleeping?