Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: TheJBurger on Mon 03/03/2008 00:04:09

Title: Import Walkbehind Mask [ SOLVED ]
Post by: TheJBurger on Mon 03/03/2008 00:04:09
Trying to import a walkbehind mask (using this method (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=26744.msg338930#msg338930)) has worked in the past for me, but doing so in 3.0 gives me the message "Invalid colors were found in the imported mask. They have now been removed. etc"

My walkbehind has 10 areas. None of the areas import correctly EXCEPT area # 7 imports in exactly the right place. I don't know why. I'm using the same color swatches that I have used before, but they aren't working this time.
Title: Re: Import Walkbehind Mask
Post by: Pumaman on Thu 06/03/2008 20:08:42
Would you be able to upload a sample mask image that doesn't work so that I can investigate?
Title: Re: Import Walkbehind Mask
Post by: TheJBurger on Thu 06/03/2008 22:13:30
Here's the background version of the room: http://img521.imageshack.us/img521/3316/room122stairwellcb6.png

And the walkbehind mask: http://img521.imageshack.us/img521/2132/room122stairwellwalkbehqy5.png
All colors disappear and don't work except area # 7 (the darker gray just above the middle).

The room is scrolling, but I don't think that has anything to do with it, since walkbehind masks also do not work on my 320x200 room.
Title: Re: Import Walkbehind Mask
Post by: Pumaman on Sat 08/03/2008 22:15:11
Well, as the error message says, make sure that the colours on the mask are index 1-15 in the palette.

In the image you've posted, they are index 7, 245, 247, 249, 250, 251, 252, 253 and 254 -- which is why only #7 is being imported.
Title: Re: Import Walkbehind Mask
Post by: TheJBurger on Sun 09/03/2008 00:36:25
Thanks for the help, I managed to fix it.

My current color swatches were the ones I used in 2.72 and they imported correctly as PCX files in the old version, but I guess PNG takes different color slots.