trigger-segfault / TriggersTools.CatSystem2

A library for extracting from and working with the CatSystem 2 visual novel game engine.
MIT License
50 stars 8 forks source link

Multiple files inside .hg3 #4

Closed Cerzs closed 3 years ago

Cerzs commented 3 years ago

Hello.

I'm trying to convert a single .hg3 that contains multiple images inside. The documentation says that adding @ to the beginning of the layer (PSD) results in all of them being copied, but I have not been able to. Can you tell me what I'm doing wrong?

Here's a sample of the original file.

Thank you.

AtomCrafty commented 3 years ago

Ahaha, that file is from Rinko, isn't it? :D This is what the layer structure looks like for that particular file: image Every layer starting with an @ symbol becomes a layer in the hg3 file, its index is the sum of the numbers in parentheses on the path from the document root to that layer. The string in brackets at the top decides the name of the generated file.

So the layer (900)ヘッダーボタン/(30)システム/@(3)押下 in this case would be exported as layer 933 in file sys_config.hg3.

I believe these are the converter settings I used for Rinko: image

tbhoang12 commented 3 years ago

hi I had downloaded the tool you said ,when I click on the exe to start it gave me error Error hgx2bmp tool 7_9_2021 , 1_33_25 AM I'm using win7 32bit and here is the sys_title.hg3 in Japanese contains menu icons I need to mod ,please show me step by step because I don't know how to coding and stuffs (if you can make an easy tool for newbie fan translator like CatSceneEditor script edit tool it would be great) SKMK Touka with kids in townScreenshot - 7_7_2021 , 5_38_15 AM

trigger-segfault commented 3 years ago

For context, I redirected @tbhoang12 here since they were having the same difficulty building an HG3 from extracted images.

Individual frames are GARbro-extracted, so they need to be extracted again while restoring the removed transparency border.


You can grab the zlib1.dll here, and place it in the same folder as the tool. (This is the dll needed to handle decompressing the image formats).

Also I think you'll need to use hgx2bmp.exe (not the no expand one).

Additionally, this is a command line tool. However you can operate it by dragging the HG3 file on-top of the executable.


I'm not sure how well I can provide detailed instructions though >.>

tbhoang12 commented 3 years ago

ok,now after fixed that "zlib1.dll is missing error" >> I dragged and drop the sys_title.hg3 (which I used GarBro to extract from image01.int file ) into the hgx2bmp.exe like you instructed I got a black BMP image file ? Now what do I have to do next ? SKMK Sys_title extracted black BMP 7_9_2021 , 8_35_59 AM

For context, I redirected @tbhoang12 here since they were having the same difficulty building an HG3 from extracted images.

Individual frames are GARbro-extracted, so they need to be extracted again while restoring the removed transparency border.

You can grab the zlib1.dll here, and place it in the same folder as the tool. (This is the dll needed to handle decompressing the image formats).

Also I think you'll need to use hgx2bmp.exe (not the no expand one).

Additionally, this is a command line tool. However you can operate it by dragging the HG3 file on-top of the executable.

I'm not sure how well I can provide detailed instructions though >.>