Author Topic: [CHOVY] Valkyria Chronicles 3 translation (working)  (Read 2747 times)

Offline Knofbath

  • End User
  • *
  • Posts: 8
    • View Profile
[CHOVY] Valkyria Chronicles 3 translation (working)
« on: August 28, 2019, 01:33:10 AM »
Senjou no Valkyria 3: Extra Edition translation by "Valkyria Chronicles 3 Translation Project"
http://www.romhacking.net/translations/3562/
https://vc3translationproject.wordpress.com/

Translation file changes:
1. \PSP_GAME\SYSDIR\EBOOT.BIN               - seems to load prometheus.prx then EBOOT.OLD
2. \PSP_GAME\SYSDIR\prometheus.prx       - UMD plugin used in 5.50 prometheus CFW
3. \PSP_GAME\SYSDIR\EBOOT.OLD              - EBOOT.BIN with unknown changes
4. \PSP_GAME\SYSDIR\BOOT.BIN                 - resized and empty, not important
5. \PSP_GAME\PIC0.PNG                              - English text
6. \PSP_GAME\INSDIR\DATA.BIN                  - decrypted DATA.BIN, much larger than original

Fixes required for CHOVY:
1. Delete EBOOT.BIN and prometheus.prx, obsolete method of loading altered files.
2. Rename EBOOT.OLD to EBOOT.BIN and resign/replace.
3. DATA.BIN - unknown if changes needed

2. Rename EBOOT.OLD to EBOOT.BIN and resign/replace.

EBOOT.OLD is an unsigned ELF file, appears to be a modified version of the JP EBOOT.BIN

So, let's resign it using the same signature as the JP EBOOT.BIN
Code: [Select]
0000 : 7E  50  53  50  00  00  00  00  01  01  6F  64  69  6E  5F  70   ~PSP......odin_p
0010 : 73  70  00  00  00  00  00  00  00  00  00  00  00  00  00  00   sp..............
0020 : 00  00  00  00  00  00  01  02  FC  1B  68  00  50  1D  68  00   ..........h.P.h.
0030 : E0  9C  38  00  5C  63  49  00  C8  84  04  00  10  00  80  00   ..8.\cI.........
0040 : 00  00  00  00  00  00  00  00  D0  91  52  00  00  00  00  00   ..........R.....
0050 : 00  00  00  00  D0  91  52  00  B0  D3  04  00  00  00  00  00   ......R.........
0060 : 00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00   ................
0070 : 00  00  00  00  00  00  00  00  10  05  03  06  09  00  00  00   ................
0080 : 17  2C  73  B4  DE  1C  65  AA  91  1D  25  33  E5  C9  9D  73   .,s...e...%3...s
0090 : 2F  0B  8A  EF  A7  A0  93  BC  7A  BA  BF  0F  87  22  40  6E   /.......z...."@n
00A0 : 2F  6B  F7  A4  CA  C2  29  F4  F8  1F  A0  FF  27  A0  67  19   /k....).....'.g.
00B0 : FC  1B  68  00  80  00  00  00  00  00  00  00  00  00  00  00   ..h.............
00C0 : 2B  E0  52  2C  ED  E5  D2  04  36  F6  40  DA  DB  77  90  FC   +.R,[email protected]
00D0 : [b]F0  13  16  D9[/b]  00  00  00  00  00  00  00  00  00  00  00  00   ................

Looks like <tag> 5 (D91613F0), so:
Code: [Select]
sign_np.exe -elf EBOOT.OLD EBOOT.BIN 5
Initializing KIRK engine...

Resigning EBOOT file with tag D91613F0
Done!

Problem:

So, we insert resigned EBOOT.BIN, PIC0.PNG, and DATA.BIN into the JP ISO. Convert with CHOVY-SIGN, transfer with QCMA.

But, the game black screens on us. (Note: This CHOVY dump does work in Adrenaline. ISO works in Adrenaline as well.)

Quote
Q: Why is it not running/why am I getting a black screen on “insert CFW here.”

A: We don’t know. We don’t have the time to test and release a patch that’s compatible with every CFW, so please use a different one. For reference, our programmer is using a phat PSP (PSP-1000) with 5.50 prome-2 CFW.

The 2 possibilities for fixing it are:
1. Fix the EBOOT.OLD/BIN to clean up whatever programming error is fucking shit up.

2. Re-encrypt the DATA.BIN and see i that fixes the PSPEMU issue or try to pass it to JP EBOOT.BIN.

I did try the program from this thread, but it attempts to write to 0x00000000 and fails silently when fed unenrypted VC3 DATA.BIN.
https://gbatemp.net/threads/pgd-encrypter.432029/
« Last Edit: July 20, 2022, 08:44:56 PM by Knofbath »

Offline Knofbath

  • End User
  • *
  • Posts: 8
    • View Profile
Re: [CHOVY] Valkyria Chronicles 3 translation (not working)
« Reply #1 on: July 20, 2022, 08:44:33 PM »
Alright, Discord user @delon got in touch with me. Author of the pgd-encrypter program from way back, who worked on this before I even thought of it. He's donated an encrypted and translated DATA.BIN that he made for personal use with firmware 3.18 PSP bubbles.

pgd-encrypter apparently requires a substantially similar header to the original file in order to re-encrypt it, something that was out of scope for my previous attempt.

But now that I have the DATA.BIN, we can go back and finish this.

Extract ISO from EBOOT.PBP that delon gave me, run it through CHOVY, and it works first try. GG, well played, fixed before CHOVY-SIGN even came out. (Never publicly released though.)


Title is in JP, but he's replaced the icons. I guess we can go through and fix the title? I've also noticed that the translation is built upon the original VC3 release, so let's try building this into the VC3 Extra Edition release instead.

New problem, same as the old problem, black screens on load.  >:( Wut. I've only changed 2 files, why is this happening to me.

 I tried for dozens of iterations of rebuilding the ISO, was still coming up with nothing. Then in an effort to speed the iteration process up, I compressed it in CHOVY-SIGN, and... it worked.  :-\ Wut.


I give up.

Changed files (delon): 
Code: [Select]
PSP_GAME\SYSDIR\EBOOT.BIN  - modified to English exit dialog instead of JP by delon (I decided not to include this, eboot.bin is attached below if you want it)
PSP_GAME\INSDIR\DATA.BIN - translation by Valkyria Chronicles 3 Translation Project, compressed by delon
PSP_GAME\ICON0.PNG - english text 
PSP_GAME\PIC0.PNG - english text
PSP_GAME\INSDIR\ICON0.PNG - english text
PSP_GAME\USRDIR\ICON/SS_ICON0.PNG - english text
PSP_GAME\SYSDIR\OPNSSMP.BIN - dummied out
PSP_GAME\SYSDIR\UPDATE\*.* - dummied out

Changed files (mine):
Using ULJM-05957 (VALKYRIA3E2) as base
Code: [Select]
PSP_GAME/INSDIR/DATA.BIN - translation by Valkyria Chronicles 3 Translation Project, compressed by delon
PSP_GAME/PARAM.SFO - corrected GAMEID to ULJM-05957, Title to Valkyria Chronicles 3 Extra Edition
PSP_GAME/ICON0.PNG - english text (cleaned up by a fraction, bit depth 32>24)
PSP_GAME/PIC0.PNG - english text (bit depth 8>32)
PSP_GAME/INSDIR/ICON0.PNG - english text
PSP_GAME/USRDIR/ICON/SS_ICON0.PNG - english text
PSP_GAME\SYSDIR\OPNSSMP.BIN - dummied out
PSP_GAME\SYSDIR\UPDATE\*.* - dummied out

Source file: 
Senjou no Valkyria 3 - Extra Edition Japan.iso
- Size: 1459322880 bytes (1391 MiB)
- CRC32: 6F0D3AA6
- SHA1: 70F2CE891CE45B1A79E8AC5A0845F5845DA7C117

xdelta: 
https://me ga.nz/file/Y89GmBpQ#9E6H0iSBC7Uhl6r5zzm32-d3IxVOWDOtTrVVr2kFUXk

Instructions:
Run the xdelta.bat against that file, or use a patching program of your choice that accepts xdelta.
Install with CHOVY-SIGN, I suggest the v2, since v3 wasn't working for me.
I only had 2/3 success installing via QCMA, what worked was switching CHOVY to Compressed mode. YMMV.