BLooperZ / nutcracker

Tools for editing resources in SCUMM games.
GNU General Public License v3.0
42 stars 11 forks source link

Re-encoding images problems on COMI #12

Closed Anthiflo closed 1 year ago

Anthiflo commented 1 year ago

Hello, I have a problem with COMI while re-encoding graphics. There is 2 problems I found:

  1. On the CMI (The Monkeys are listening...) screen, the white parts are visible on frame 1 while the rest of the picture is still not visible
  2. Some object images have green (supposed to be transparent) around them. I didn't edit this images, and don't need to
  3. Some object images seems to miss some colors

Screenshots_1_COMI Screenshots_2_COMI Screenshots_3_COMI

I did the following commands: nutcracker.exe sptum room decode --ref myfile\COMI.LA0 nutcracker.exe sptum room encode --ref myfile\COMI.LA0 COMI nutcracker.exe sptum room build myfile\COMI.LA0 COMI

Did I do something wrong?

BLooperZ commented 1 year ago

Hi, thanks for reporting. usually this problem is related to palette optimization most graphic editors do automatically. (I recommend using GraphicsGale as it does not do this) were the images opened and saved using some editor (even if no changes were made)? is this problem happens when just decoding and re-encoding the images as-is?

Anthiflo commented 1 year ago

For the first one (the CMI logo) I edited it with photoshop (the image was already in limited palette, I didn't change that). I edited an other image (Part 1 screen) and did not encounter any problem in-game. For the other images (screenshots 2 et 3), I didn't edit this files nor opened them in an editor since I don't need to do anything to them. I'll try to do a decoding/re-encoding without touching anything.

Anthiflo commented 1 year ago

OK so I did a decoding/re-encoding without touching any file and :

Note : After opening the CMI logo in GraphicsGale, I see where are the problems, the palette actually have multiple times the same colors to make elements appear at different times. It's a pain to edit but now it works great :)

BLooperZ commented 1 year ago

Thank you, fixed. could you please try again with latest update?

Anthiflo commented 1 year ago

I tried with the latest version : The color problem (on the inventory) seems to be fixed, however the green around items is still there.

BLooperZ commented 1 year ago

The green around items is fixed now as well, thank you.

Anthiflo commented 1 year ago

Seems good now, thanks!