Jump to content

Prblem with Kirikiri Z


Recommended Posts

 

I am trying to translate a visual novel into English using Kirikiri engine. I also did all the steps on the web. First, I used Kirikiri Extract to extract my data.xp3. Then I searched for scenario in data folder. I used Translator++ to automatically translate all the script files (which are .ks files). After that, I injected all my English scenario files into my data folder. Finally, I repacked my data folder into patch.xp3. But it did not work. I tried to delete my original data.xp3 and replaced with new data.xp3 (which has a translated scenario inside), but it raised an error called script exception. I tried to encode all the files to Shift-JIS, but some still remained ANSI. I also tried not to repack the data folder and put it back into the game, but it did not work as well. Can anyone help me with this problem?

P/s: The game I am translating is:  Koakuma-chan no Yuuwaku!. The game uses Kirikiri Z core. :<<<<<<<<

Link to comment
Share on other sites

Posted (edited)

I have not thoroughly tested this, but KiriKiriTools seems to work for the initial proof of concept.

0. Download both the version.dll and Xp3Pack.exe
1. Somehow get Translator++ to give you all of the script assets (the *.ks files). Make sure they are shift-jis encoded.
2. Create a folder named "Patch".
3. Place the files exported in step 1 into the folder named Patch.
4. Open a command prompt.
5. Run the following command:  Xp3Pack.exe Patch
6. That should create a file called "Patch.xp3".  If not, rename the .xp3 to "Patch.xp3" Do not use Garbro for the above step. Xp3Pack creates the .xp3 in a special way. Feel free to use Garbro to make sure the files are actually in there.
7. Put version.dll and Patch.xp3 inside of the game folder's path.
8. Launch to see if the game loads the changes.
9. If it does, play through the entire game with fresh savedata to see where it crashes and fix stuff as appropriate.
10. Once you are sure it does not crash, create an entry on vndb.org and upload your patch somewhere so other people can use it to play the game.

Pic:

Mia-Is-Not-Best-Girl.png

Edited by Entai2965
Link to comment
Share on other sites

On 5/29/2024 at 9:06 AM, Entai2965 said:

I have not thoroughly tested this, but KiriKiriTools seems to work for the initial proof of concept.

0. Download both the version.dll and Xp3Pack.exe
1. Somehow get Translator++ to give you all of the script assets (the *.ks files). Make sure they are shift-jis encoded.
2. Create a folder named "Patch".
3. Place the files exported in step 1 into the folder named Patch.
4. Open a command prompt.
5. Run the following command:  Xp3Pack.exe Patch
6. That should create a file called "Patch.xp3".  If not, rename the .xp3 to "Patch.xp3" Do not use Garbro for the above step. Xp3Pack creates the .xp3 in a special way. Feel free to use Garbro to make sure the files are actually in there.
7. Put version.dll and Patch.xp3 inside of the game folder's path.
8. Launch to see if the game loads the changes.
9. If it does, play through the entire game with fresh savedata to see where it crashes and fix stuff as appropriate.
10. Once you are sure it does not crash, create an entry on vndb.org and upload your patch somewhere so other people can use it to play the game.

Pic:

Mia-Is-Not-Best-Girl.png

Sorry, I already followed your instruction. However, that game always return to the home screen, or automatically restart again and again. How can I solve it ? I think the problem comes from Patch.xp3.

Link to comment
Share on other sites

Troubleshoot. Are you able to reproduce the test in the screenshot above?

If you are, then does the game return to the home screen when loading Patch.xp3 filled with the original unmodified scripts or only the modified ones?

If it returns to the home screen even with the unmodified scripts, then the issue is the .dll or the Patch.xp3. If it does not and only returns to the home screen after loading changes, then the problem is the changes made to the scripts.

Can you play through part of the game, but not the rest? In that case, figure out which .ks file is crashing and why it is crashing. Is the encoding correct (shift-jis)? Did the T++ parser mess with some line it should not have? Try loading an unmodified version of that .ks and go through line-by-line making changes until it crashes so you can find the issue.

Link to comment
Share on other sites

8 hours ago, Entai2965 said:

Troubleshoot. Are you able to reproduce the test in the screenshot above?

If you are, then does the game return to the home screen when loading Patch.xp3 filled with the original unmodified scripts or only the modified ones?

If it returns to the home screen even with the unmodified scripts, then the issue is the .dll or the Patch.xp3. If it does not and only returns to the home screen after loading changes, then the problem is the changes made to the scripts.

Can you play through part of the game, but not the rest? In that case, figure out which .ks file is crashing and why it is crashing. Is the encoding correct (shift-jis)? Did the T++ parser mess with some line it should not have? Try loading an unmodified version of that .ks and go through line-by-line making changes until it crashes so you can find the issue.

Yeah, I tried to put the original file scripts (.ks scripts, the unmodified) in to Patch folder and used Xp3Pack.exe to repack again. I put Patch.xp3 and version.dll back to game directory. Yep, and the result is still the same, still encounter that error, not change compare when I put the translated scripts file in to Patch folder. Yep, I think issue is the .dll or the Patch.xp3. This is so bad, can't even play this game, ........... there must be a solution to this. :<<<<<<<<<<<<,. I am so depressed.

 

Link to comment
Share on other sites

Posted (edited)

Were you able to reproduce the workflow from the original post? As in, have a single file in the Patch folder and change a single line in that file? Does that single change load, or does that fail to load for you? If not, verify the file is shift-jis encoded.

Are you able to run the game normally when version.dll and Patch.xp3 are not in the main folder? If not, are you running the game with Japanese locale? JP VNs tend to need that. If you still cannot get it working without version.dll, Patch.xp3 and after using a locale emulator, then what OS are you using?

Edited by Entai2965
Link to comment
Share on other sites

  • 1 month later...

Actually, T++ itself has a KAG tool you can use to repack folders into .xp3 files, and it works for most of the cases, as long as the game doesn't use a special encryption method at least

This is where you find the repacking tool, hope it helps

image.png

Link to comment
Share on other sites

3 hours ago, ragnar0574 said:

Actually, T++ itself has a KAG tool you can use to repack folders into .xp3 files, and it works for most of the cases, as long as the game doesn't use a special encryption method at least

That would not have worked. Xp3Pack.exe creates the .xp3 in a special way. The version.dll used to read the unencrypted.xp3 used for scripts repackaged for this game requires using xp3pack.

Quote

[Xp3Pack] Creates unencrypted .xp3 archives for use with the KirikiriUnencryptedArchive DLL. Unlike other packing tools, it sets all hashes in the file table to zero; this serves as a marker for the DLL to bypass the game's decryption for those files.

Edited by Entai2965
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...