nunuhara / alice-tools

Tools for extracting/editing files from AliceSoft games.
GNU General Public License v2.0
131 stars 19 forks source link

Some (DCF) CG files from Dohna Dohna don't convert properly #46

Closed OPNA2608 closed 1 year ago

OPNA2608 commented 1 year ago

The following are some examples of CG files from Dohna Dohna that look fine when viewed in galice, but get broken when extracted via galice / converted via alice:

nunuhara commented 1 year ago

This should be fixed now in 0.12.1

OPNA2608 commented 1 year ago

Checked on 0.12.1, no change: Images look the same (galice vs exported), same warning on the first one. Are they supposed to look like that?

Similar to https://github.com/nunuhara/alice-tools/issues/47#issuecomment-1372421485 I'm trying to guess how the format might work. It looks like there is a base graphic that DCF files are applied on top of, and the DCF has a sort of mask to indicate that only certain "blocks" of it are intended to be applied onto the base? If that's the case, maybe the mask could be exported into a separate black/white texture (it can't be put into the alpha channel because some DCF images also contain transparency)? That would be useful for reconstructing the composition in i.e. GIMP.

nunuhara commented 1 year ago

Oops, I forgot to push the change to libsys4 before building the release. I've updated the .zip file for 0.12.1 now so please try it again.

OPNA2608 commented 1 year ago

The warnings on DCFs have now disappeared and all images display properly in galice, but the exports are still weird to look at & hard to use without knowing what the base CG is & which areas are supposed to apply to it. Do you think something could be done about that?

nunuhara commented 1 year ago

Ah, the export from the GUI was still broken. I only checked the command line export. It should be fixed now.

OPNA2608 commented 1 year ago

Ah yes that seems to have fixed it, many thanks!