Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: cat on Sun 27/01/2008 14:47:31

Title: Wrong color in background
Post by: cat on Sun 27/01/2008 14:47:31
Hi!

I haven't found anything in search or the manual about it.

I'm using AGS 3.0 with 8bit color and 320x240. I didn't edit the palett by now.
I have imported a background which looks ok in the room details view and i can also make walkable areas without problems. But when I start the game (either with or without debug) the areas which are black in the background are suddenly bright blue.
Probably it is something with the palett, however I don't know. The background itself looks ok in my other graphics viewer and has 21 colors and is stored in gif format.

edit: ok, additional problem:
Now I have imported a sprite with "Remap colors" and "lock to room palette" checked. It looks ok in the preview of the room (as does the background) but when i start the debug it has wrong colors.
The sprite also looks correct in the sprites overview

Thanks in advance, cat
Title: Re: Wrong color in background
Post by: twin-moon on Wed 05/03/2008 20:49:37
*Bump*

I have the same problem, also using 3.0, 256 colours and 320x240.

I solved this by changing the black in my original image to grey (32,32,32) but it's a bit of a ramshackle solution. Bug?
Title: Re: Wrong color in background
Post by: Pumaman on Thu 06/03/2008 20:08:08
Hmm, would one of you mind uploading a sample image that causes this problem?
Title: Re: Wrong color in background
Post by: twin-moon on Fri 07/03/2008 12:02:22
Of course.
I started a new game in 256 colours (I've tested 320x200 and 320x240) and used this image as room 1:

(http://i264.photobucket.com/albums/ii175/twinmoon_1979/test.png)

It looks normal in the editor, but if I run the game, it looks like this:
(http://i264.photobucket.com/albums/ii175/twinmoon_1979/scrnshot.png)
Title: Re: Wrong color in background
Post by: cat on Fri 07/03/2008 13:04:45
I thought there was a problem with my pics. After trying several things I changed the mode to 16bit color. Now it is working fine. Probably there is some problem with 256 color mode?
Title: Re: Wrong color in background
Post by: Khris on Fri 07/03/2008 13:05:51
Yes, that'd be my advice, too.
I tried different formats and palette index numbers, and every time, a near-black color ends up blue (0,0,170) in-game.
Title: Re: Wrong color in background
Post by: cat on Fri 07/03/2008 13:08:05
Did you also have strange behaviour with "Remap colors" and "lock to room palette" checked for sprites?
Title: Re: Wrong color in background
Post by: twin-moon on Fri 07/03/2008 15:56:31
Switching to more colours did fix the problems.

Quote from: cat on Fri 07/03/2008 13:08:05
Did you also have strange behaviour with "Remap colors" and "lock to room palette" checked for sprites?

Yep. Colours are not 100% correct and there's one door which turned into a completely black rectangle? Importing things again keeps giving different results.

But this was also fixed by switching to hi-colour mode.
Title: Re: Wrong color in background
Post by: cat on Sat 08/03/2008 14:34:21
So, should we make some kind of trouble ticket or what is the procedure? I think chances are good that this is a problem with AGS 3.0 and other people might have this problem as well.
Title: Re: Wrong color in background
Post by: Pumaman on Sat 08/03/2008 22:12:41
Thanks for uploading the image, I've verified that there is a bug in AGS 3.0 importing 8-bit backgrounds if black is not colour 0 on the source image. I'll get it fixed.

QuoteDid you also have strange behaviour with "Remap colors" and "lock to room palette" checked for sprites?

If there are more issues, please let me know. I wouldn't be surprised if there were, because during AGS 3.0 beta testing it was almost impossible to find anyone with an 8-bit game to make sure that everything was working properly.
Title: Re: Wrong color in background
Post by: Gilbert on Sun 09/03/2008 04:29:34
Sorry for intruding this thread, but since there's something needed to be fixed in the background import routine, is it possible to bring back the exact palette import feature in the next version?
Title: Re: Wrong color in background
Post by: cat on Sun 09/03/2008 10:07:27
Quote from: Pumaman on Sat 08/03/2008 22:12:41

If there are more issues, please let me know. I wouldn't be surprised if there were, because during AGS 3.0 beta testing it was almost impossible to find anyone with an 8-bit game to make sure that everything was working properly.


I had problems, as written in the first post. I imported my sprites with "Remap colors" and "lock to room palette" checked and they had wrong colors when executing the game.
I converted my game to 16bit to avoid this problem so I can't make screenshots of the problem anymore. Should I make a demo game to show you the problem?
Title: Re: Wrong color in background
Post by: Pumaman on Sun 09/03/2008 16:35:15
Hmm there does seem to be some inconsistency in the results here, I'll look into it.

QuoteSorry for intruding this thread, but since there's something needed to be fixed in the background import routine, is it possible to bring back the exact palette import feature in the next version?

Is this something that anybody else needs?
Title: Re: Wrong color in background
Post by: twin-moon on Mon 10/03/2008 18:06:16
Quote from: Pumaman on Sun 09/03/2008 16:35:15
Is this something that anybody else needs?

Yes please!
Title: Re: Wrong color in background
Post by: abstauber on Sun 20/07/2008 17:14:23
*bump*
Quoteis it possible to bring back the exact palette import feature in the next version?
QuoteIs this something that anybody else needs?

me too, please bring it back.
Pretty pretty please  :D
Title: Re: Wrong color in background
Post by: Pumaman on Sun 20/07/2008 17:40:54
I have added a Preferences option to the latest beta version to support this behaviour, since it seems more than 0 people were using it after all :)
Title: Re: Wrong color in background
Post by: abstauber on Mon 21/07/2008 07:50:41
Great! Thanks  :=