Importing Issue

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
kylekrack
Liquid Metal Slime
Posts: 1240
Joined: Mon Jun 16, 2014 8:58 am
Location: USA
Contact:

Importing Issue

Post by kylekrack »

I'm trying to import a background with transparency, so I can have stuff show behind it. Seems simple enough, right? Well, for some reason it's not cooperating and instead of making it transparent it makes it a different color.

I attached the background I'm trying to import, and the pink is the transparency color taken from the Dragontao pallete (which is the master palette in my game). For some reason, when I import it into the editor, however, it uses a different color of pink, similar to the transparency, but not quite. I've even done a similar thing in a different game with the same palette and it worked fine, just not now.

Why is it putting me through this torment?

EDIT: I think I'm misunderstanding how this works. I've disabled every other pink color for importing, so it made the pink gray instead. Can you not use transparency on backdrops?
Attachments
arena_floor.png
arena_floor.png (1.18 KiB) Viewed 954 times
Last edited by kylekrack on Sun Mar 08, 2015 8:52 pm, edited 1 time in total.
My pronouns are they/them
Ps. I love my wife
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

I don't know if this is the issue but when you import a new backdrop it will prompt you to choose which colour you'd like as the transparency. Thus your transparency colour in you imported graphics does not have to be the same as the once in the editor master palette.

For example, if I want yellow to be transparent in a backdrop I:
-import the backdrop
-I am prompted to choose the transparency colour
-I direct the target cursor over the colour yellow
-I click Enter and bam, that colour is now transparent in that image!

Perhaps when you import it you are somehow skipping this step by clicking Esc which exits the prompt and chooses no transparency?
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
kylekrack
Liquid Metal Slime
Posts: 1240
Joined: Mon Jun 16, 2014 8:58 am
Location: USA
Contact:

Post by kylekrack »

:???: I have never been prompted with that. It just asks whether to remap to the current master palette, create a new palette, or do not remap colors.

EDIT: I've only been given this option when importing sprites.
Last edited by kylekrack on Sun Mar 08, 2015 9:01 pm, edited 1 time in total.
My pronouns are they/them
Ps. I love my wife
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

Hmm your right... I just tried to import a .bmp image to my game and was not prompted either... I swear I always get prompted. Perhaps in the latest update of the nightly this prompt somehow got excluded? I'm very confused myself since I feel like I haven't updated mine since the last time I was prompted with this. Maybe wait on someone elses reply. I don't know what to say.

EDIT: Maybe this has been fixed in the newest version. You could always update to the latest nightly and try that? Can't guarantee it though.
Last edited by sheamkennedy on Sun Mar 08, 2015 9:13 pm, edited 1 time in total.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Nightlies behave differently to Beelzebufo, but nothing has changed recently. Now if you import a 32 bit bmp, then you are asked which colour is meant to be transparent, if any. There's no prompt when importing paletted backdrops. All this does is map that colour to colour 0 in the palette. This allows you to draw using any colour you want for transparency, eg. pink, without having to change colour 0 in your in-game palette to pink. However it's also confused plenty of people, so I should try to make it clearer.

As for your issue, it sounds that you're using a nightly build and trying to import an 8 bit bmp with a palette that doesn't match your master palette. In nightlies the 8-bit bmp import will always map colour 0 to colour 0, and never remap anything else to colour 0, in order to preserve original transparency. Maybe this isn't always the right thing to do. It would probably be better to show that transparency-picking prompt also when importing a 8-bit bmp that doesn't match your master palette rather than forcing 0 -> 0. I'll change that.

In the meantime, either convert your bmp to 32 bit before import, or manually remap the transparency colour.
Last edited by TMC on Sun Mar 08, 2015 10:32 pm, edited 2 times in total.
User avatar
kylekrack
Liquid Metal Slime
Posts: 1240
Joined: Mon Jun 16, 2014 8:58 am
Location: USA
Contact:

Post by kylekrack »

Aaaah finally this makes sense. Ok yeah, I figured out how to remap the colors in GIMP. Now I just have to figure out how to make it change the colors without messing up the picture. I'm very unfamiliar with paint programs so I'm going at this blind, but thank you, I can figure this out now.
My pronouns are they/them
Ps. I love my wife
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

That's good to know. I guess I've always been importing 32 bit .bmp's until today.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

kylekrack wrote:Aaaah finally this makes sense. Ok yeah, I figured out how to remap the colors in GIMP. Now I just have to figure out how to make it change the colors without messing up the picture. I'm very unfamiliar with paint programs so I'm going at this blind, but thank you, I can figure this out now.
Or you could save the file as a 32-bit .bmp from gimp allowing you to use the transparency picker tool when importing in to CUSTOM. Might be easier for you.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
kylekrack
Liquid Metal Slime
Posts: 1240
Joined: Mon Jun 16, 2014 8:58 am
Location: USA
Contact:

Post by kylekrack »

This is true, but I found out how to remap it first, and I couldn't figure out how to force it to be 32-bit. Either way, I got it to work, which means I might post some screenshots later to show what I'm making.
My pronouns are they/them
Ps. I love my wife
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

Alright cool can't wait to see. I'm not too familiar with GIMP but in photoshop when you "save as" you can choose .bmp and it asks if you want 8-bit, 16-bit, 32-bit, etc... Maybe in GIMP it may be under File>Export or something along those lines. Either way if you got it figured out it's not a problem.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

To save as unpaletted in GIMP, you need to change the Image Mode from Paletted to True Color or whatever it's called. Under the Image menu.
Post Reply