[Game] Mobile Suit Gundam - Senjou no Kizuna PSP

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
SirGouki
Posts: 1
Joined: Sat Jan 08, 2022 1:14 pm

[Game] Mobile Suit Gundam - Senjou no Kizuna PSP

Post by SirGouki »

Hello.

I've been trying to translate this game for literal years. Last night, a couple of people contacted me regarding my work on the game, and I walked them through what I did to extract the game.
This game uses the same or a similar format of archive to Lord of Arcana, and so I was able to use that script by making a minor change:
I changed RZL to RFB, and quick bms would output the files into the destination folder. I accomplished this a long time ago (I don't even remember how I found quickBMS or the lord_of_arcana.bms script, nor the suggestion to try this).

There will soon be a new problem: I've edited one of the .tex files as a test, repacked it into a tex file, and in order to test it in the game (since PPSSPP wont load it from the extracted folder, and neither will my psp, likely due to code in the game specifically wanting the archives), when I go to reimport it into the archive, quickBMS complains because of the 2 lines that use MEMORY_FILE in them. I tried replacing the one in 79 with the NAMESZ, and calculating the offsetoffset for the one in line 93 but running the script just put the changed tex file's contents into the top of the archive, and thus broke the archive.

I'm willing to provide the .RFB and .RZP files if necessary, I just need a script that can also reimport changed files, please.

Note: I wasn't stuck for years because of this, I was stuck because I could not find a way to edit .tex files. Thanks to the people that contacted me, I'm passed that point, and they also found where the text is, so we are beginning the translation work.

Thanks anyone for their time on this.

Link to files:
https://drive.google.com/drive/folders/ ... sp=sharing
anakronus
Posts: 17
Joined: Thu Mar 26, 2020 12:38 am

Re: [Game] Mobile Suit Gundam - Senjou no Kizuna PSP

Post by anakronus »

As an update to this, a recreation of the original lord_of_arcana.bms was created in python but with additional (differential) repacking functionality, the (kinda messy, but functional) script is attached (change the extension to .py before use), and here's a quick overview of usage:

The syntax for extraction is:

Code: Select all

rzp.py --extract [rfb_file_path] [output_folder]

And for insertion:

Code: Select all

rzp.py --insert [original_rfb] [input_folder] [output_folder]


Both modes assume another file with the same name but with .rzp extension exists in the same folder as the RFB file

For example:
Extracting the regfile contents into a folder named regfile

Code: Select all

python rzp.py --extract ./regfile.rfb ./regfile


For repacking changed files into it (a new file with the same name plus _NEW will be created in the output folder)

Code: Select all

rzp.py --insert ./regfile.rfb ./regfile ./


The input folder is differentially imported, so you can just place the changed filesystem in it and only those files will be imported (with the other files in the archives being untouched)