Nifflas' Support Forum

Level Editing Support => Knytt Stories Level Editing Support => Knytt Stories - Custom Content => Topic started by: GrayFace on November 12, 2012, 18:37:48

Title: Custom Characters collection
Post by: GrayFace on November 12, 2012, 18:37:48
This is a thread for custom main characters for both mine (http://nifflas.lpchip.nl/index.php?topic=4253) and egomassive's (http://nifflas.lpchip.nl/index.php?topic=4175) mods.
Please post your characters. When you post characters here and don't tell otherwise, it is assumed that anyone is free to use and modify them as long as proper credit is given and the derivative work is non-profit and KS-related.

Archive with all characters for KS Ex. (https://www.dropbox.com/s/tiw5htf05850ana/Custom%20Characters.rar?dl=1) Let's assume you put them into "Custom Characters" subfolder in your level. Then to use a character you should press Ctrl+D in Level Editor Ex and put these two lines of code there:
dofile(WorldPath.."Custom Characters/manage.lua")
DefaultCharacter = "Knytt"
(put character name instead of Knytt here)
Spoiler: More (click to show/hide)

To use a custom character in KS+ download the sprite-sheet image you see and follow the instructions of KS+:
Spoiler: KS+ Instructions (click to show/hide)

Characters

Knytt
(https://www.dropbox.com/s/q7a85dax059qi1a/Knytt.png?dl=1)
Authors: Nifflas, egomassive, GrayFace

Used in: KS+ Features Demonstration, Ship Parts (http://nifflas.lpchip.nl/index.php?topic=4175).

Cat
(https://www.dropbox.com/s/9luxu7vwmxgyoyw/Cat.png?dl=1)
Authors: Firecat, GrayFace

UCat
(https://www.dropbox.com/s/8h2j5o8qby71tma/UCat.png?dl=1)
Author: Firecat

Specifically for Cat. Note that you can do without it in KS Ex, cat can wear normal umbrella there.

Ghost
(https://www.dropbox.com/s/vtsvm0odi6g6649/Ghost.png?dl=1)
Authors: Toenail, GrayFace

Used in: Toenail - The World is Changing (http://nifflas.lpchip.nl/index.php?topic=5273.0).

UGhost
(https://www.dropbox.com/s/xct8dorcjnj6qhr/UGhost.png?dl=1)
Authors: Toenail, GrayFace

Mario
(https://www.dropbox.com/s/a5xgwgmaovldyup/Mario.png?dl=1)
Authors: Nintendo, Toenail, GrayFace
(no attempts made to ask Nintendo's permission)

Mario1
(https://www.dropbox.com/s/idr1qjkdyhbar0m/Mario1.png?dl=1)
Authors: Nintendo, Toenail, GrayFace
(older version of Mario with a different falling animation)

Used in: Toenail - The World is Changing (http://nifflas.lpchip.nl/index.php?topic=5273.0).

Dragon
(https://www.dropbox.com/s/3ulk8d8uqz8vnox/Dragon.png?dl=1)
Authors: richtaur, Toenail, GrayFace

Used in: Toenail - The World is Changing (http://nifflas.lpchip.nl/index.php?topic=5273.0).

squareman
(https://www.dropbox.com/s/ixtxqqzoc2plbrp/squareman.png?dl=1)
Authors: Elpis, GrayFace
(I've no idea how to contact Elpis about permission)

Used in: Elpis - Squaremans Adventure (http://knyttlevels.com/levels/Elpis%20-%20Squaremans%20Adventure%28KS%20Ego%21%29.knytt.bin).

Otto
(https://www.dropbox.com/s/0klht3mtoh01lwl/Otto.png?dl=1)
Authors: Nifflas, Raicuparta, GrayFace
You are free to use it as you please, but please notify Raicuparta via PM if you do so.

Rabbit
(https://www.dropbox.com/s/vf4fgv73it6khpf/Rabbit.png?dl=1)
Authors: Nifflas, GrayFace

JuniOld
(https://www.dropbox.com/s/zs2u4kjtn7yazzi/JuniOld.png?dl=1)
Authors: Nifflas, Pumpkinbot, Plural, GrayFace

General Purpose Umbrellas

UParachute
(https://www.dropbox.com/s/nslotre7m3k0qgd/UParachute.png?dl=1)
Authors: Firecat, GrayFace
Title: Re: Custom Characters collection
Post by: JTsentinel on November 12, 2012, 20:01:10
how do I set my custom character as my starting one in KS Ex? I'll post my custom character here when I'm done with my levels.
Title: Re: Custom Characters collection
Post by: GrayFace on November 12, 2012, 21:20:30
1) If it's in form of KS+ sprite-sheet, then you should convert it to KS Ex with CO to Template (http://dl.dropbox.com/u/44735333/ks/CO%20to%20Template.rar) tool (select "Convert custom player graphics", then drop the sprite-sheet onto the form). If you're just going to have this character graphics, skip over to step 2.
To change umbrella point open load.lua and change numbers in "UmbrellaOffsetX, UmbrellaOffsetY = 0, 0" line as you like.
To change height and/or width open PlayerPos.png and change it, it's the shape of player as the game sees it. However, when you change width you should also change ActionX in two "Objects.PlayerPos:LoadFrame" lines. The default values are 18 and 6. This picture should make it clear what they mean:
(https://dl.dropbox.com/u/44735333/ks/PlayerActionX.png)
2) In the Script.lua (Ctrl+D shortcut in the editor opens it) you should write
dofile(WorldPath.."Custom Characters/MyCharacter/load.lua")
Here "Custom Characters/MyCharacter" is the path to your character's folder inside world folder.
Title: Re: Custom Characters collection
Post by: JTsentinel on November 12, 2012, 23:54:21
I must be blind... I cant find "Convert custom player graphics" on CO to Template tool.

edit:
added pic
Title: Re: Custom Characters collection
Post by: GrayFace on November 13, 2012, 00:01:06
You have the old version.
Title: Re: Custom Characters collection
Post by: JTsentinel on November 13, 2012, 00:14:00
I get an error whenever I try to walk using my custom character.

Event 287: attempt to call nil value
stack traceback:


edit:

its working now. I had to redownload and reinstall everything.
Title: Re: Custom Characters collection
Post by: GrayFace on November 13, 2012, 02:06:19
Another note about the conversion tool: when it converts a character it doesn't overwrite load.lua if it's already there. That's different from what it does with custom objects. This way you can edit sprite-sheet and re-convert it overwriting frames and it won't mess up load.lua.
Title: Re: Custom Characters collection
Post by: Raicuparta on November 13, 2012, 09:26:53
(http://i.imgur.com/2zxm6.png)

I made this one of Otto (I think that was his name in Saira, not sure if that has always been the correct name) a few months ago. It was supposed to only be revealed during gameplay of an upcoming level of mine, but as it seems I get busier every day, I don't think I'm going to finish it any time soon. It may feel weird to control such a bulky chathiracter in KS, but I think it's not too bad. I recommend not using the umbrella, it probably just covers his face or something.
You are free to use it as you please, but I'd really like to be notified via PM if you do so.
Title: Re: Custom Characters collection
Post by: GrayFace on November 13, 2012, 20:29:09
I've added it to the 1st post with small modifications. I've fixed hologram, moved standing frame left by 1 pixel and falling frames down by 1 pixel. Also set correct transparency for invisible player and converted for KS Ex. I've fixed transparency of some other KS+ sprite sheets too.
The attached hologram template can be helpful when making hologram frames.
Title: Re: Custom Characters collection
Post by: Dj Gopher on November 14, 2012, 08:15:25
Not to be offensive, but why are you listed as an author in each one?
I specifically remember firecat releasing his as his alone, but for the others I can't be as certain...
Title: Re: Custom Characters collection
Post by: GrayFace on November 14, 2012, 09:05:16
Just for choosing player shape (PlayerPos.png) and umbrella point, also minor position/hologram tweaks for some characters (all except Knytt and Cat). Shape and umbrella point are KS Ex-only, KS+ doesn't allow changing player shape. I had a bit of doubts about this, but I felt I need to add myself at least to ghost character, because the repositioning of it introduced a noticeable difference from author's perspective. Thus I added myself everywhere. :P
Title: Re: Custom Characters collection
Post by: Dj Gopher on November 16, 2012, 07:42:50
Just for choosing player shape (PlayerPos.png) and umbrella point, also minor position/hologram tweaks for some characters (all except Knytt and Cat). Shape and umbrella point are KS Ex-only, KS+ doesn't allow changing player shape. I had a bit of doubts about this, but I felt I need to add myself at least to ghost character, because the repositioning of it introduced a noticeable difference from author's perspective. Thus I added myself everywhere. :P
Oh very cool, so the actual active area changes? for instance, if I made juni a pixel high, she could walk under three pixel tall ceilings?
Forgive me for going off topic a bit, but does this change how the player interacts with slopes?

Anyway I see, I'll agree that that is fair :P
Title: Re: Custom Characters collection
Post by: GrayFace on November 16, 2012, 08:37:42
Now it's completely fair with my name written in gray.

Oh very cool, so the actual active area changes? for instance, if I made juni a pixel high, she could walk under three pixel tall ceilings?
Yes. Non-rectangle shape will also work, though who knows how adequate it would be in various situations.

Forgive me for going off topic a bit, but does this change how the player interacts with slopes?
If you cut 2 pixels at the bottom on the right and left sides of Juni she would climb steeper slopes.

Edit: Now I've also made a character :) I'm not satisfied with climbing animation...
Title: Re: Custom Characters collection
Post by: Salmoneous on November 16, 2012, 11:31:54
Some cool stuff here guys, I love the rabbit :).  Would love to see these guys have their own levels. Maybe I could... hmm..
Title: Re: Custom Characters collection
Post by: GrayFace on November 17, 2012, 12:07:56
That would be cool. :) Some of them do already. BTW, it's a good idea to put in levels that use the characters.
I've updated [https://www.dropbox.com/s/euyzbaoqdt4r3uo/Standard%20Frames.rar?dl=0]Standard Frames[/url] archive with Player Sounds folder. Now you can easily replace sounds for custom characters.

Edit: Another update. In KS Ex manage.lua handles character replacement now and replaces sounds automatically. Simply copy your versions of sound files from Player Sounds (in Standard Frames (https://www.dropbox.com/s/euyzbaoqdt4r3uo/Standard%20Frames.rar?dl=0)) into character folder and they would be used. Don't copy sounds that shouldn't be replaced.
I've also modified Mario character.
Title: Re: Custom Characters collection
Post by: JTsentinel on November 18, 2012, 05:36:27
Can you be more specific about replacing the sound effects? Im really confused about this, I renamed my custom sound effect (like Knytt Jump) and placed it inside my custom character folder but I still cant get it to work. Please help :(

edit:

is it also possible to turn off sound effects? say if i dont want any sound playing when my character is walking or climbing...
Title: Re: Custom Characters collection
Post by: Firecat on November 18, 2012, 22:02:24
I don't know if i should put it here, But i made a ''Parachute'' custom umbrella for KS+ to compensate for the original umbrella not working in the cat.

To use it, you simply put it along with Knyttcat.png (Or change the name to U[Character].png to use it with other characters) And then follow the normal INI instructions for that character.
Title: Re: Custom Characters collection
Post by: egomassive on November 19, 2012, 01:16:34
I would think that this is a good place to post umbrella graphics since they will be made to compliment character graphics.

I tried the cat's parachute. It's a nice touch, much better than an umbrella floating above its head. I'm planning to make a hang glider to go with the Knytt character. I think a pair wings would look good for Juni.

I've seen all of the characters except for the dragon in action. It's a pretty amusing collection. Although I'm skeptical of the legality of using some of these. Collecting these resources here should aid and inspire level designers. *gives GrayFace a star*
Title: Re: Custom Characters collection
Post by: Salmoneous on November 19, 2012, 10:37:03
Is it possible to change player sprite within the level? So you could play as both Juni and Knytt for example.
Title: Re: Custom Characters collection
Post by: egomassive on November 19, 2012, 12:24:41
Is it possible to change player sprite within the level? So you could play as both Juni and Knytt for example.
Yes, character changing is possible. In fact, with the KS+ Features Demonstration level you can play as Juni and the Knytt.
Title: Re: Custom Characters collection
Post by: GrayFace on November 21, 2012, 09:50:18
I've updated Mario character again.

Can you be more specific about replacing the sound effects? Im really confused about this, I renamed my custom sound effect (like Knytt Jump) and placed it inside my custom character folder but I still cant get it to work. Please help :(
The easiest way is for you to send me the map or just sounds and Script.lua.

is it also possible to turn off sound effects? say if i dont want any sound playing when my character is walking or climbing...
You can use a silent file. An empty file will probably do it too.
Title: Re: Custom Characters collection
Post by: GrayFace on November 23, 2012, 13:06:44
I've updated manage.lua and converted the cat parachute to KS Ex, as well as made a version for normal height characters. Custom umbrellas work in KS Ex similar to KS+, you just name them "UCharacterName". You can also define DefaultUmbrella to be used by all characters that don't have custom umbrellas. E.g. DefaultUmbrella = "UParachute" in Script.lua will make everyone wear a parachute.
I've updated [https://www.dropbox.com/s/ryk5w1pqvuvg2kq/CO%20to%20Template.rar?dl=1]CO to Template[/url] tool as well. Now it creates PlayerPos.png if it doesn't exist, so the created character is ready for use. Second, now it supports umbrellas conversion. You should turn on "Convert custom player graphics" and drag the umbrella spritesheet onto the form, it will recognize that it's an umbrella.
Title: Re: Custom Characters collection
Post by: egomassive on November 23, 2012, 15:09:01
GrayFace, it's really amazing how you keep adapting your mod and conversion tool to accept KS+ sprite sheets. If someone starts building a level for KS+, then decides they want the power of scripts, the switch to KS Ex should be rather painless. *gives star*
Title: Re: Custom Characters collection
Post by: JTsentinel on December 01, 2012, 22:03:34
Can we also change the graphics of the default enemies (Meanies, etc.)? I'm trying to create a Mario level and I want to put goombas as one of the enemies. Can someone also upload KS enemy spritesheets, so I can use it as a template?

Thanks for the help. I'll post a KS level preview soon...

Title: Re: Custom Characters collection
Post by: GrayFace on December 01, 2012, 23:38:47
Yes. Tell me which exact enemies you need.
Title: Re: Custom Characters collection
Post by: JTsentinel on December 02, 2012, 00:34:25
Bank 4 Meanies
Object 2,3,9

Bank 6 Traps
Object 5
Is it possible to make this sprite smaller like 24x24? I was thinking of making this one work like a piranha plant but if its too much work then its ok as is.

I also need their spritesheets because I dont know how to extract them from the game and I need to know their frames/dimensions.

Thanks a lot!
Title: Re: Custom Characters collection
Post by: GrayFace on December 02, 2012, 01:27:56
I've added the objects to https://www.dropbox.com/s/euyzbaoqdt4r3uo/Standard%20Frames.rar?dl=1

Bank 6 Traps
Object 5
Is it possible to make this sprite smaller like 24x24? I was thinking of making this one work like a piranha plant but if its too much work then its ok as is.
The one that comes out of tubes? Make the graphics as separate frames or spritesheet and I'll do the template object. Shape of a standard object can be changed too.
Title: Re: Custom Characters collection
Post by: JTsentinel on December 02, 2012, 10:14:02
Yes, its the plant that comes out of the pipe but I think its better if we just make it stand still. I could just put it on top of the pipe or something and make it snap its jaws.

I've got two Piranha Plants spritesheet here that I'd like to use:
http://www28.zippyshare.com/v/4817474/file.html


Can you also make Bank 4 Meanie, Object 1 (red spiky enemy)?

Thanks again.
Title: Re: Custom Characters collection
Post by: GrayFace on December 03, 2012, 03:08:41
Then you can do it with CO to Template tool if you worked with COs, just check "Hurts Player" and "Detect Red" in addition.
Title: Re: Custom Characters collection
Post by: JTsentinel on December 03, 2012, 05:54:01
I tried that but it doesnt recognize the next other frames, it just shows the first frame and blinks on and off.
Title: Re: Custom Characters collection
Post by: GrayFace on December 03, 2012, 15:04:37
Ah, that's because you have "_" in their name. In KS Ex "_" in sprite names have a special meaning.
Title: Re: Custom Characters collection
Post by: JTsentinel on December 03, 2012, 22:21:30
Sir, you're a genius.
May I ask you one more request if its not too much already... C)
Can you please add Bank 4 Meanies, Object 1 to your Standard Frames archive?

Thanks for helping me out.
Title: Re: Custom Characters collection
Post by: Marximillian on December 03, 2012, 22:31:22
Ah, that's because you have "_" in their name. In KS Ex "_" in sprite names have a special meaning.
What is the special meaning?
Title: Re: Custom Characters collection
Post by: GrayFace on December 03, 2012, 23:51:28
For example: "Player_16_walking_4.png"
"16" is the angle (16 means left).
"walking" is the animation name (may be a number instead).
"4" is the frame number.
"_" separates these parts. ReplaceGraphics function takes picture names and replaces frames of the object accordingly.
A short form also exists: "Player_4" means the 4th frame of animation 0, angle 0. That's primarily for template objects, they only have animation 0 angle 0 and 256 frames in it.

Can you please add Bank 4 Meanies, Object 1 to your Standard Frames archive?
Done :)
Title: Re: Custom Characters collection
Post by: toenail on December 21, 2012, 12:03:05
Hi,

I have created an umbrella for the Ghost. It sort of look like the ghost is blown up.
I have yet to adapt my level since the difficulty is different as the custom umbrella does not protect you.

Title: Re: Custom Characters collection
Post by: Headgrinder on August 16, 2013, 12:22:57
Just found this thread!  Very cool.  Thought there were only a couple of these made so far.  I like the Otto a lot.
Title: Re: Custom Characters collection
Post by: Pumpkinbot on August 17, 2013, 05:39:35
Made an older version of Juni, with longer, messier hair! The spritework is mostly me (with the colors being from Nifflas' original Juni sprite), but credit for transparentifying it goes to Plural. Currently no umbrella. The default umbrella works...okay, though it does cover her head a bit.
Title: Re: Custom Characters collection
Post by: GrayFace on October 19, 2013, 10:08:14
I added her under the name JuniOld.
I have created an umbrella for the Ghost. It sort of look like the ghost is blown up.
Punk ghost XD
Title: Re: Custom Characters collection
Post by: GrayFace on November 23, 2013, 07:43:40
I've updated old Juni with proper transparency for KS+ in the 1st post. The right opacity is 34%.
Title: Re: Custom Characters collection
Post by: GrayFace on June 07, 2018, 03:54:45
I've updated the links. Stupid Dropbox.
Title: Re: Custom Characters collection
Post by: sergiocornaga on June 07, 2018, 05:56:47
I've updated the links. Stupid Dropbox.

Thanks so much for looking into this! The archive links are fine, but the images still aren't working for me. I can only guess that Dropbox has disabled image hotlinking entirely?

Edit: Seems it's just some of my older devices that can't render the images and newer ones are fine. Carry on!
Title: Re: Custom Characters collection
Post by: Lit Knob on May 20, 2022, 20:08:02
Note: this custom character is now part of KS+ Templates (https://nifflas.lp1.nl/index.php?topic=7339.0).

I made a playable hitbox with the Position sprites.
It's also very useful for making custom characters with proper collision for KS+ (since it has no custom position). Its hologram and lower half shouldn't be used as references, though.

Note: The hologram and that arrow in the lower half are "solid" on purpose, not mistakes.