Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: mettalx1 on Tue 03/01/2012 03:38:32

Title: Importing mask for walkbehinds/walkable areas doesn't work!
Post by: mettalx1 on Tue 03/01/2012 03:38:32
Hi!

So I downloaded AGS 3.2 and started making a new game. The problem is AGS wont let me import a mask for walkbehinds and walkable areas. It says I have to import the image as a 256 8-bit color, and when I did it said that invalid colors were found in the mask. After that I tried with blank images in all formats and it still didn't import.

I downloaded AGS 2.72 and tried importing and it let me import images saved as 16 color (which is still better then nothing!).

Any help please? (my game runs under 32 true color)
Title: Re: Importing mask for walkbehinds/walkable areas doesn't work!
Post by: Khris on Tue 03/01/2012 10:51:34
Could you upload one of the masks AGS wouldn't let you import? http://imgur.com
Title: Re: Importing mask for walkbehinds/walkable areas doesn't work!
Post by: mettalx1 on Tue 03/01/2012 12:09:41
Ok, here is the original room (it's from the insta-game package, just edited a bit) http://i.imgur.com/xZqv3.png

the walkbehind with 8-bit http://i.imgur.com/boKbD.png

and the error I get when trying to import http://i.imgur.com/3IqWG.png

???
Title: Re: Importing mask for walkbehinds/walkable areas doesn't work!
Post by: David Ostman on Tue 03/01/2012 12:28:00
I've never had PNGs work, but a BMP usually does the trick for me.
Title: Re: Importing mask for walkbehinds/walkable areas doesn't work!
Post by: mettalx1 on Tue 03/01/2012 12:35:38
Quote from: David Ostman on Tue 03/01/2012 12:28:00
I've never had PNGs work, but a BMP usually does the trick for me.

They are both bmp. so that's probably not it. Thanks anyway :-[.
Title: Re: Importing mask for walkbehinds/walkable areas doesn't work!
Post by: Khris on Tue 03/01/2012 14:15:37
Your png had lots of unused colors in the palette, and the white and green you had in the image were in the last 16 slots, not the first 16, that's why you got the error.
I opened the image with PSP7, converted it to millions of colors, then back to 256 and could import it fine after that.

Try this one:
http://i.imgur.com/sy1Ub.png

It's still not usable as-is after the import because the palette slots aren't in the right order but all you have to do is fill the blank area with ID 2, then right click the grey area (ID 1) to clear it.

Which program did you use to create the map?
Title: Re: Importing mask for walkbehinds/walkable areas doesn't work!
Post by: mettalx1 on Tue 03/01/2012 23:02:07
I used paint, maybe that's the problem?

Anyway thanks, that image worked :)!
Title: Re: Importing mask for walkbehinds/walkable areas doesn't work!
Post by: Khris on Wed 04/01/2012 00:12:34
Yep, using Paint is always a problem :=

google GraphicsGale, TheGimp, Paint.NET