Nifflas' Support Forum

Level Editing Support => Knytt Stories Level Editing Support => Topic started by: GFA101 on December 07, 2012, 23:09:37

Title: Please help! Custom Tileset problem!
Post by: GFA101 on December 07, 2012, 23:09:37
Help! I created my very own Custom Tileset, but I have a problem with the transparency! All the other Tilesets have a transparent background, and so does mine, but it comes out all black in the editor! Please help!  :sad:

Title: Re: Please help! Custom Tileset problem!
Post by: sergiocornaga on December 07, 2012, 23:24:06
I'm guessing that's because your tileset is an 8-bit PNG, a format Knytt Stories typically doesn't get on well with. If so, the solution would be to convert it to a 24-bit PNG with a full alpha channel. Also, only the top left corner tile should be fully transparent.
Title: Re: Please help! Custom Tileset problem!
Post by: GFA101 on December 07, 2012, 23:59:08
Thanks, but what do you mean by "Full Transparent"? Do you mean lower the transparency level?
Title: Re: Please help! Custom Tileset problem!
Post by: LPChip on December 08, 2012, 00:48:08
fully transparent means: the entire tile cannot have any pixels other than transparency.
Title: Re: Please help! Custom Tileset problem!
Post by: GFA101 on December 08, 2012, 01:22:18
Ugh, sorry, I tried all the things you guys said, but it still did not work. :(
Title: Re: Please help! Custom Tileset problem!
Post by: Healy on December 08, 2012, 01:39:15
Are you using Paint.net? You might have to save it as a 32-bit png.
Title: Re: Please help! Custom Tileset problem!
Post by: GFA101 on December 08, 2012, 03:58:47
Though I CAN'T save it as 32 bit, I'm using it Windows XP And it isn't there. Well, I guess I'll just use the tilesets that are already there...
Title: Re: Please help! Custom Tileset problem!
Post by: Firecat on December 08, 2012, 04:24:34
One last resort would be to apply a magenta background that, if the image really isn't transparent, the game will remove automatically.
Title: Re: Please help! Custom Tileset problem!
Post by: LPChip on December 08, 2012, 12:16:18
Weird. I used paint.net in the past to make my tilesets, so it should work.

Are you using the latest version of paint.net?
Title: Re: Please help! Custom Tileset problem!
Post by: GFA101 on December 08, 2012, 16:50:25
Yes sir! I am using the latest version of Paint.NET. I wonder if it has to do with my operating system.
Title: Re: Please help! Custom Tileset problem!
Post by: LPChip on December 08, 2012, 17:45:42
Google gave me this:

http://forum.worldweaver.com/showthread.php?8518-Paint-NET-and-Transparent-PNGs

If you miss the 32-bit one, you might need a plugin for paint.net to allow saving as 32-bit png. I remember that I installed such plugin myself.
Title: Re: Please help! Custom Tileset problem!
Post by: GFA101 on December 08, 2012, 20:49:44
Oh, thank you so much everyone! It worked! Thanks guys! Now I can continue making my first level! Take your stars!  8D  C)p C)p C)p C)p
EDIT: Though I have just ONE last problem. Since I can't turn it on 0 transparency, I still have a problem: Look carefully, it sorta darkens the background around the object. :(
Title: Re: Please help! Custom Tileset problem!
Post by: LPChip on December 08, 2012, 22:03:24
Thats weird, you should be able to use full transparancy. Just make sure you delete everything that is supposed to be transparent.
Title: Re: Please help! Custom Tileset problem!
Post by: JTsentinel on December 09, 2012, 00:01:10
Use tileset0 as your base template and draw everything on top of it. Then, start erasing the blue-ish background colors (I use magic wand selection) and save your tileset as png. If you know how your graphics program work then you should try creating new layers (because its already transparent) and merge them once you're done drawing your tiles.


I started doing some of your tiles as an example, the black tileset should be transparent now.
Title: Re: Please help! Custom Tileset problem!
Post by: GFA101 on December 09, 2012, 00:24:39
Use tileset0 as your base template and draw everything on top of it. Then, start erasing the blue-ish background colors (I use magic wand selection) and save your tileset as png. If you know how your graphics program work then you should try creating new layers (because its already transparent) and merge them once you're done drawing your tiles.


I started doing some of your tiles as an example, the black tileset should be transparent now.

I tried that, I tried literally everything. I tried laying your black blocks and it worked! It did not darken the background, but then when I tried doing the same thing, it just did not work. Thanks for your help guys, but I give up.  :sad:
Title: Re: Please help! Custom Tileset problem!
Post by: LPChip on December 09, 2012, 00:33:49
Try this: http://www.youtube.com/watch?v=cdFpS-AvNCE

Except for the saving part, where they keep it on automatic...
Title: Re: Please help! Custom Tileset problem!
Post by: GFA101 on December 09, 2012, 00:40:12
I know how to make transparent backgrounds, I do it just like that.
Title: Re: Please help! Custom Tileset problem!
Post by: LPChip on December 09, 2012, 01:16:54
There must be a setting or an action that you do that somehow fills your pixels with alpha transparency.

Maybe you have it set to add instead of replace? Although with fully transparent tiles that should have no effect.
Title: Re: Please help! Custom Tileset problem!
Post by: GFA101 on December 09, 2012, 01:35:27
There must be a setting or an action that you do that somehow fills your pixels with alpha transparency.

Maybe you have it set to add instead of replace? Although with fully transparent tiles that should have no effect.
Just tried that, also did not work. JTsentinel, do you think you could post the whole tileset with the transparency?
Title: Re: Please help! Custom Tileset problem!
Post by: Firecat on December 09, 2012, 02:26:27
I made this one, it should work alright.
Title: Re: Please help! Custom Tileset problem!
Post by: GFA101 on December 09, 2012, 02:53:44
I made this one, it should work alright.
Gee, thanks so much Firecat! It worked.  :^^: And to everyone: Thank you for trying to help; I've used Paint.Net for a number of years and have never ran into a transparency problem, but I guess there is a first time for everyone. Also, to Firecat: Could you add a couple of more object to that file? (See attachment.)
Title: Re: Please help! Custom Tileset problem!
Post by: sergiocornaga on December 09, 2012, 08:17:24
GFA101, if you want to keep working on the tileset just do this for now:

One last resort would be to apply a magenta background that, if the image really isn't transparent, the game will remove automatically.

Refer to Farik's levels if you need to see a working example.
Title: Re: Please help! Custom Tileset problem!
Post by: GFA101 on December 09, 2012, 16:05:49
Hay, hay, guys! I went to and edited Fircat's version of my set and added a few things and deleted the background around them, and guess what? It did not darken the background!!! I guess as long as I do not erase the whole background of the tileset, it will work. I also unchecked transparency in window, in Paint.NET.  So, it's working so far.
P.S. Thanks sergiocornaga I'll check some out.
Title: Re: Please help! Custom Tileset problem!
Post by: LPChip on December 09, 2012, 16:15:00
I notice that the creatures that were last added need more transparency. Now they have a bit of the background tiles on them at the bottom, left and right of the set. I'm pretty sure you don't want those tiles in your tileset?
Title: Re: Please help! Custom Tileset problem!
Post by: GFA101 on December 09, 2012, 16:36:23
I notice that the creatures that were last added need more transparency. Now they have a bit of the background tiles on them at the bottom, left and right of the set. I'm pretty sure you don't want those tiles in your tileset?
Don't worry, I fixed those.  C)
Title: Re: Please help! Custom Tileset problem!
Post by: Sisdog on July 31, 2013, 01:02:58
What if you are using MC Paint? I have the same problem except my background is white... I am confused... :moody:
Title: Re: Please help! Custom Tileset problem!
Post by: egomassive on July 31, 2013, 23:34:08
MS Paint can't save transparent png files. However, if you use the color fuchsia (see image) it will be invisible in Knytt Stories and probably Fink. If you want to have tiles that are partially see-through like a mist, then you will need to use a better picture editor.
Title: Re: Please help! Custom Tileset problem!
Post by: Denis on December 12, 2013, 08:48:16
Guys, how do you save manualy? My paint net saves files automaticaly, and I cannot controll that. I have the same transparency problem, as you understand. I've had it for half a year, that is why I stopped working at my levels, actualy.
Title: Re: Please help! Custom Tileset problem!
Post by: Denis on December 12, 2013, 08:50:13
Man, I just got it..... Yeah, baby yeah!!!! Denis is back!!!! Hail to the forum, the avatar of helpfulness!!!