Author Topic: Set Palette command missing for one or more of the four palettes  (Read 6159 times)

0 Members and 1 Guest are viewing this topic.

Offline robbo007

Hi,
I noticed if you import pictures from other SCI games you sometimes get this error when saving the picture. Can this be safely ignored? Or will I have issues later on? Does it affect anything when using different graphics cards like CGA, EGA etc?








Offline Kawa

Re: Set Palette command missing for one or more of the four palettes
« Reply #1 on: October 10, 2025, 09:24:21 AM »
Near as I can tell, there's the startup state of the game palette, which pictures can override. Which makes sense. The problem is that if a picture doesn't do so, it will be drawn with whatever palette settings are already there. Could be the default, could be whatever fancy setup the previous picture set up.

It's like a box of chocolates uninitialized variables.

At least that's how I read it.

As for CGA and such, the palette in question is itself an abstraction of sorts that, no matter what combinations you put in there, is ultimately mapped down to the standard 16 for rendering, and anything with fewer than 16 colors maps it even further down. But until it reaches the video driver, the color values you're assigning are effectively always the standard 16 under the hood.

Offline robbo007

Re: Set Palette command missing for one or more of the four palettes
« Reply #2 on: October 10, 2025, 09:29:45 AM »
ok thanks. Pretty much all the pictures in LSL2 don't have this information in the startup. Start, Set Visual: etc etc..

I might have to risk it for a biscuit as when using Erik's SCIVEC to compress my pictures it seems to leave this info out. If I add it later it messes up the pics. I really need the reduced picture size as I'm at my size limit now. I have closed all artwork now otherwise I won't have enough room for music and sfx.


Offline Kawa

Re: Set Palette command missing for one or more of the four palettes
« Reply #3 on: October 10, 2025, 09:40:44 AM »
I've seen your babes. Like I meant to say about the surf shop babe, her portrait is mostly 50% dither patterns (good) but not all of them may be available at once in the default palette. So you may need to use a custom palette with those specific dither patterns in it. And that would in turn mess up rendering of any other subsequent picture that doesn't have a "set palette" command.

Retrogame development is FUN.

Offline lskovlun

Re: Set Palette command missing for one or more of the four palettes
« Reply #4 on: October 10, 2025, 12:18:03 PM »
You can always have a dummy pic with just those commands in it, and force that picture to draw first on a room change before the real pic. Sierra used this technique sometimes (in KQ1 GAL!).

Offline robbo007

Re: Set Palette command missing for one or more of the four palettes
« Reply #5 on: October 10, 2025, 01:07:26 PM »
You can always have a dummy pic with just those commands in it, and force that picture to draw first on a room change before the real pic. Sierra used this technique sometimes (in KQ1 GAL!).

Amazing trick :) Thanks


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.046 seconds with 22 queries.