[Help] How encrypt a script.dat file ?

chenoulei

Newbie
Jun 9, 2018
59
30
Hello everyone,
I'm working on translating a visual novel for my own enjoyment. I managed to extract and decrypt the script file using GARbro, translated the text, and repacked it back into a .dat file. However, when I try to launch the game, nothing happens…
1745221694103.png

I'm wondering if the issue is that the repacked file is no longer encrypted. The original file uses the ACV1 signature, so I'm assuming I need to re-encrypt it?
1745221899456.png
Does anyone know a tool or method to encrypt files with ACV1? I believe it's possible, since there's already a machine translation patch for Tsujidou-san no Virgin Road:

If anyone has encountered this issue before or knows a solution, I’d really appreciate any advice!

Thanks in advance!
 

chenoulei

Newbie
Jun 9, 2018
59
30
This should suffice:
I make my script.dat using whale-tool, it's packed, I can launch the game. But now, the problem is when i come at a certain line on the game it's just crash... A problem in my translation ?
 

Winterfire

Forum Fanatic
Respected User
Game Developer
Sep 27, 2018
5,771
8,423
I make my script.dat using whale-tool, it's packed, I can launch the game. But now, the problem is when i come at a certain line on the game it's just crash... A problem in my translation ?
Does the game have a debug/Dev mode or does it generate a log at all? Just check the line where the issue occurs, and as a test, put a simple "text", see if that solves the issue. If it does, then yes. Just find the cause, and continue. Sometimes there's a lot of trial and error involved, more often than not involving unsupported characters.
 

chenoulei

Newbie
Jun 9, 2018
59
30
Does the game have a debug/Dev mode or does it generate a log at all? Just check the line where the issue occurs, and as a test, put a simple "text", see if that solves the issue. If it does, then yes. Just find the cause, and continue. Sometimes there's a lot of trial and error involved, more often than not involving unsupported characters.
No, the vn don't have a debug/dev mode.
I try to remove the line it's work, but it's crash just after that ...
I suspect that not the patch itself but just the fact i'm on Window11 that make itinstable ... I need to try it on a VM