.XP3 Repackaging Tool

KRD

New Member
Aug 6, 2016
7
4
Sup. I wanna try my hand at translating some porn, and the game I chose to start with seems to be made with the Kirikiri VN engine. As a result, all of its juicy bits (scenario, images) are kept in an .xp3 file. To translate this game, I'll need to open this .xp3 file, make my changes, and then zip it back up again so the game doesn't notice anything's missing or changed.

Here's the problem: I can't get anywhere with the existing tools for repackaging the .xp3 file on my computer.

What I've tried so far:

  1. . Doesn't work, because somehow it only supports x32 OSes. Mine's a x64, so I'm fucked. Main dev has said in the readme that he's not planning on ever doing x64 support, either. I've tried a bunch of things to get it to work (compability troubleshooter, mostly) but that fails.
  2. can't extract (runs into some decoding error) and can't repack (can't find unicode filenames). I've tried to fix both issues but after an hour of trying to fix the second I haven't gotten anywhere.
  3. can extract the files in data.xp3, but can't repackage it. I'm stranded halfway there.
  4. A bunch of other Kirikiri-related tools, like Kikiriki from tlwiki, krkr2.zip from wherever the fuck I found that, and a bunch of others. I've tried four different ones and none of them work.
Frankly if I can't find anything I might actually have to recode this entire game in Renpy or something. Even though I don't have any experience with it, it just might be the simplest fucking solution, which is wild.
 

taki :::

Member
Sep 11, 2020
147
109
i found a way: if you have android phone, you can try to download "kirikiroid2.apk" 1.3.9 version. This app will extract everything from .xp3 files. I tested with 5-6 games. Did not have any issues. This is the only working way how to extract .xp3 files
 

Madmanator99

Member
May 1, 2018
225
466
I got as far as this post:


Edit: KRD, what game is it actually?
 

taki :::

Member
Sep 11, 2020
147
109
don't use "KrkrExtract.exe" you will lose everything what u have on your pc: this file is a cancer. I found this virustotal link on reddit. Also, .apk file is a evil too, it can read your phone data, so i recommend to uninstall .apk after you extract your .xp3
 

Drakexny

New Member
Apr 9, 2020
4
0
[QUOTE = "taki :::, publicación: 4793731, miembro: 2836823"]
Encontré una manera: si tienes un teléfono Android, puedes intentar descargar la versión "kirikiroid2.apk" 1.3.9. Esta aplicación extraerá todo de los archivos .xp3. Probé con 5-6 juegos. No tuve ningún problema. Esta es la única forma funcional de cómo extraer archivos .xp3
[/CITAR]
¿No podrías hacer un tutorial, amigo mío? Me ayudaría mucho si pudieras. Gracias de antemano por responder.
 

lewdgamerxxx

Active Member
Compressor
Sep 6, 2018
725
2,125
KRD I am a compressor and I have compressed plenty of xp3 games. The best gui based tool to use is GARbro.
I know you have tried GARbro but you are doing it wrong, I can explain it.

For example you extracted the contents of data.xp3 into a folder named data.

Now to repack it back to xp3 you need to select all the files inside the data folder and click create archive.
You cannot select the data folder from outside. It will give error.

I frequently use another tool called KAGtool for extracting and repacking archives. To use this tool, system locale need to be set to Japanese. It is a cmd based tool.

Usage: Paste the exe and DLL file inside the game folder and open cmd prompt here.

Commands:
  • To extract an archive: kirikiri.exe -i input_file -o output_folder
  • To create an xp3 archive of files in a folder: kirikiri.exe -c -i input_folder -o output_file
Example: We take data.xp3 as an example:
  • To extract data.xp3: kirikiri.exe -i data.xp3 -o data
  • To repack it back: kirikiri.exe -c -i data -o data.xp3
-c is used to create an archive.
 

Khaitoh

Well-Known Member
Feb 28, 2018
1,302
853
KRD I am a compressor and I have compressed plenty of xp3 games. The best gui based tool to use is GARbro.
I know you have tried GARbro but you are doing it wrong, I can explain it.

For example you extracted the contents of data.xp3 into a folder named data.

Now to repack it back to xp3 you need to select all the files inside the data folder and click create archive.
You cannot select the data folder from outside. It will give error.

I frequently use another tool called KAGtool for extracting and repacking archives. To use this tool, system locale need to be set to Japanese. It is a cmd based tool.

Usage: Paste the exe and DLL file inside the game folder and open cmd prompt here.

Commands:
  • To extract an archive: kirikiri.exe -i input_file -o output_folder
  • To create an xp3 archive of files in a folder: kirikiri.exe -c -i input_folder -o output_file
Example: We take data.xp3 as an example:
  • To extract data.xp3: kirikiri.exe -i data.xp3 -o data
  • To repack it back: kirikiri.exe -c -i data -o data.xp3
-c is used to create an archive.
For some reason this won't open a CMD for me and I needed to manually locate and open the file with CMD.
Nevertheless, it worked for me! (Extracting and Repacking the game files)

Edit 2: Nevermind, found the coding for it on another file, now I don't know why game won't save when all I did was translate lines. :KEK::FacePalm:
 
Last edited:
  • Like
Reactions: lewdgamerxxx

lewdgamerxxx

Active Member
Compressor
Sep 6, 2018
725
2,125
For some reason this won't open a CMD for me and I needed to manually locate and open the file with CMD.
Nevertheless, it worked for me! (Extracting and Repacking the game files)

Edit: How can we "move" the name bar? Small names are fine but Longer ones gets cut.

View attachment 1247389

Name in there should be Masahiko
I don't know coding of XP3 so mentioning megalol here.
 

Khaitoh

Well-Known Member
Feb 28, 2018
1,302
853
I don't know coding of XP3 so mentioning megalol here.
Haha, sorry if I bothered you that you even called for someone else, well then, since you already did,
I'd gladly accept it. Here's an example of the file I was trying to translate...
(I only want to know what language it is and could probably take it from there)
I have some experience with coding but I sadly haven't touch it in a very long while.
While were at it, I'm gonna be shameless and ask, Do you know a good picture translator? xD
 

lewdgamerxxx

Active Member
Compressor
Sep 6, 2018
725
2,125
Haha, sorry if I bothered you that you even called for someone else, well then, since you already did,
I'd gladly accept it. Here's an example of the file I was trying to translate...
(I only want to know what language it is and could probably take it from there)
I have some experience with coding but I sadly haven't touch it in a very long while.
While were at it, I'm gonna be shameless and ask, Do you know a good picture translator? xD
No I am not bothered. I called out for him because he is more experienced with XP3 games. I learned XP3 from him. He's like a grandmaster.

And for picture translator, I use Google Tranlate app, but ut doesn't give you accurate translation of images, so you could try using yandex. I recommend that you try both and find which suits you better.

Also can you tell me the game name???
 
Last edited:

Khaitoh

Well-Known Member
Feb 28, 2018
1,302
853
No I am not bothered. I called out for him because he is more experienced with XP3 games. I learner XP3 from him. He's like a grandmaster.

And for picture translator, I use Google Tranlate app, but ut doesn't give you accurate translation of images, so you could try using yandex. I recommend that you try both and find which suits you better.

Also can you tell me the game name???
Not sure if this is the original title but:

Marinated Grilled Fish My sister used a hypnosis app
 
  • Like
Reactions: lewdgamerxxx

tfthfh

New Member
Oct 12, 2021
1
0
hello I'm having problems with the same thing, I already used all the tools that they put, krkrextract, garbro, and kagtools and ninunga it worked for me when I opened the kiri exe of the game it tells me the error of the kirikiri core. Do you know what that error is?
 

Gamefreeze

New Member
Mar 3, 2018
1
1
KRD I am a compressor and I have compressed plenty of xp3 games. The best gui based tool to use is GARbro.
I know you have tried GARbro but you are doing it wrong, I can explain it.

For example you extracted the contents of data.xp3 into a folder named data.

Now to repack it back to xp3 you need to select all the files inside the data folder and click create archive.
You cannot select the data folder from outside. It will give error.

I frequently use another tool called KAGtool for extracting and repacking archives. To use this tool, system locale need to be set to Japanese. It is a cmd based tool.

Usage: Paste the exe and DLL file inside the game folder and open cmd prompt here.

Commands:
  • To extract an archive: kirikiri.exe -i input_file -o output_folder
  • To create an xp3 archive of files in a folder: kirikiri.exe -c -i input_folder -o output_file
Example: We take data.xp3 as an example:
  • To extract data.xp3: kirikiri.exe -i data.xp3 -o data
  • To repack it back: kirikiri.exe -c -i data -o data.xp3
-c is used to create an archive.
Hi I have been trying to unpack and repack a xp3 patch file from fate stay night 2004. I was able to extract the files using xp3-extract but was unable to repack them. I tried the kikiriki link you provided and was giving a EPriviledge error. any help would be great.
 
  • Like
Reactions: lewdgamerxxx

lewdgamerxxx

Active Member
Compressor
Sep 6, 2018
725
2,125
Hi I have been trying to unpack and repack a xp3 patch file from fate stay night 2004. I was able to extract the files using xp3-extract but was unable to repack them. I tried the kikiriki link you provided and was giving a EPriviledge error. any help would be great.
Link to game and screenshot