VNTranslationTools icon indicating copy to clipboard operation
VNTranslationTools copied to clipboard

CSystem extraction Issue

Open RedEye13 opened this issue 2 years ago • 5 comments

Hello, while trying to decrypt the .a files of C System games I'm running into this issue

image

What I tried so far is

1- I'm using the latest version of VNTools v0.0.25 2- used both CSystem Tools and GARbro to extract the files didn't affect the result 3- tried a second game that I want to work on same thing happened 4- according to GARbro both games are using Grand Guignol no Yoru Director's Cut for encryption (at least that's the only one I found to get the images to display correctly) several others would only work on some of the pictures

Here's a link for the 2 games https://vndb.org/v32745 https://vndb.org/v29958

Also I zipped the .a files for one of them hopefully it helps input.zip

RedEye13 avatar Dec 24 '22 15:12 RedEye13

Same issue with #95, it's not encrypted, the scripts are unicode string

Cosetto avatar Dec 24 '22 17:12 Cosetto

Isn't this tool supposed to read Unicode strings? it always worked just fine with Kirikiri games that I tried in the past that had Unicode instead of Shift JIS also should I close the issue if it's the same as #95?

RedEye13 avatar Dec 24 '22 18:12 RedEye13

Nope, it hasn't been implied in Csystem script link

Cosetto avatar Dec 25 '22 00:12 Cosetto

Maybe this code can help to read and write unicode string

        public static string ReadWordLengthUnicodeString(this BinaryReader reader)
        {
            var length = reader.ReadInt16();
            var bytes = reader.ReadBytes(length);
            return Encoding.Unicode.GetString(bytes);
        }

        public static void WriteWordLengthUnicodeString(this BinaryWriter writer, string s)
        {
            var bytes = Encoding.Unicode.GetBytes(s);
            writer.Write(Convert.ToUInt16(bytes.Length));
            writer.Write(bytes);
        }

Cosetto avatar Dec 27 '22 10:12 Cosetto

It seems to be encrypted image

onefive1156 avatar Jan 30 '23 05:01 onefive1156