Adventure Game Studio | Forums

AGS Support => Beginners' Technical Questions => Topic started by: CyberUncleCat on 27 Dec 2017, 22:32

Title: Background Problem
Post by: CyberUncleCat on 27 Dec 2017, 22:32
Hey there. I know it may be stupid question, but i struggle with finding an answer on my own since im a noob AGS user.

Well, ok.

In my 1st game that im developing right now ive encountered a problem durning change of background in one of rooms:
"The background could not be imported. The error was: Unknown pixel format"

Problem is - the background is done with exacly same way as BG's in other rooms (made in GraphicGale,black and white only, 320x200 res and output file type is .png) so how come this one's not working?
Title: Re: Background Problem
Post by: Cassiebsg on 27 Dec 2017, 22:45
Maybe the file got corrupt?
Title: Re: Background Problem
Post by: Kweepa on 27 Dec 2017, 23:08
I just tried this and got the same error.
Just change it from 1bit to 24bit and you should be fine.
Title: Re: Background Problem
Post by: CyberUncleCat on 27 Dec 2017, 23:16
Kweepa's solution did work:).

But still, why previous bgs worked fine and this one did not is a mystery. ???
Title: Re: Background Problem
Post by: Kweepa on 27 Dec 2017, 23:25
My guess is your previous backgrounds are black and white but not 1 bit. They just look like it. :P
Title: Re: Background Problem
Post by: CyberUncleCat on 28 Dec 2017, 00:03
As a matter of fact - all of them were made in 4bit (i needed other color for transparency durning their creation in GG) so outcome file was identical in terms of parameters:).

No matter now, got to be a bug of some sorts. Important thimg is we got a way around it :).
Title: Re: Background Problem
Post by: Crimson Wizard on 28 Dec 2017, 01:25
"The background could not be imported. The error was: Unknown pixel format"
As a matter of fact - all of them were made in 4bit

This may be simply that AGS does not support importing this particular image format. Might be worth to upload it so that developers could check and add support for it in the future.
Title: Re: Background Problem
Post by: Kweepa on 28 Dec 2017, 02:38
Yeah, I tried 1bit and 4bit pngs and neither could be used as backgrounds.
Developers, try these:
(http://www.kweepa.org/step/ags/critics/OneBitPNG.png) (http://www.kweepa.org/step/ags/critics/FourBitPNG.png)