Page 1 of 3
[tool][wip] weapon creator
Posted: Mon Dec 22, 2014 7:09 pm
by lordrockit
hello again,
being that i am very board, i am going to make a tool to help us all, a html based weapon creator. this will provide you with the code to make the weapon, you just have o set it up! if you want any special features or want to host the web page for me, please let me know in the comments below.
thanks in advance,
-lordrockit
Re: [tool][wip] weapon creator
Posted: Mon Dec 22, 2014 9:47 pm
by lordrockit
i have been working on a bit now, its not hard just tedious, but i plan the weapon base, anim sheets, and sounds. very tedious work, lots of picking apart mods(second time making a weapon first time i just copied, renamed, and coverd the image with my own) so some time now and it will be ready. just remember i want your feedback and sugestions so i can make this as good as possible.

Re: [tool][wip] weapon creator
Posted: Mon Dec 22, 2014 10:50 pm
by R4V3-0N
Even though I think looking at the coding and stuff is an important skill. I do quite like the idea off a program to assist me...
If only someone someday makes an event tool

Re: [tool][wip] weapon creator
Posted: Mon Dec 22, 2014 11:03 pm
by lordrockit
i havent done anything with events yet so if you send me sample code for it with tons of comments, i can make a thing for it, simmiler to what im working on with text inputs and stuff to get a result. any way almost done

sooooooooo much code

Re: [tool][wip] weapon creator
Posted: Tue Dec 23, 2014 12:02 am
by lordrockit
bout time this got done, there are some limitations with html that i had to change some things, so you have to add the quotes around the values, and replace brackets with the tag signs, but it works

.
http://jsfiddle.net/lordrockit/9w9v9hn9 ... ed/result/
edit DONT CLICK I JUST FORGOT ITS BROKEN SO IM EDITING THIS.
edit fixed new link
http://jsfiddle.net/lordrockit/9w9v9hn9 ... ed/result/
Re: [tool][wip] weapon creator
Posted: Tue Dec 23, 2014 12:11 am
by stylesrj
Sweet. Does this mean I can throw in images of a weapon and make a custom weapon out of it? Because that will make it much easier than fiddling with animation sheets and not getting the gun to fire
Can't wait...
Re: [tool][wip] weapon creator
Posted: Tue Dec 23, 2014 12:15 am
by lordrockit
stylesrj wrote:Sweet. Does this mean I can throw in images of a weapon and make a custom weapon out of it? Because that will make it much easier than fiddling with animation sheets and not getting the gun to fire
Can't wait...
you still need an animation sheet but thats easy just decide how many frames you want, multiply the width of the image by the number of frames, and then animate from there read though this
http://www.ftlgame.com/forum/viewtopic.php?f=12&t=17122 to get a general idea of how it works, also you need to know were to put the images for it to work, this also tells you that.
If you dont want your new weapon to look as dull as the standard stuff you want to add a new image and animation.
For that to work you first need to know how FTL will treat the image you give it:
Here you see the basic laser animation strip.
The gray arrow points onto the base or depowered image. If your weapon is not powered, it will show this one.
The white arrow shows the start of the charging animation. Until your weapon is fully powered FTL will go through the remaining images of the powerup animation to the Charged Image until the weapon is powered.
The Green arrow is the Charged Image. Here the weapon is off cd and ready to fire. (this image also shows in stores)
The Red Arrow is the firing image. All images between the Charged Image and firing image are the shooting animation. All images behind the firing image are the recoil animation. (just as a note: Beam weapons only use the recoil animation as the animation they shoot).
from Metzelmax's artical on how to make a weapon
Re: [tool][wip] weapon creator
Posted: Tue Dec 23, 2014 1:13 am
by lordrockit
Re: [tool][wip] weapon creator
Posted: Tue Dec 23, 2014 2:26 am
by stylesrj
I know how the animation sheets work. I've been struggling with them for some time in trying to create an ion blaster weapon

Re: [tool][wip] weapon creator
Posted: Tue Dec 23, 2014 8:16 am
by R4V3-0N
stylesrj wrote:I know how the animation sheets work. I've been struggling with them for some time in trying to create an ion blaster weapon

I know how to make weapon animations, it's just I am not accurate at making them and in the end of the day It boils down to me putting random numbers in the areas and double checking to not accidentally miss lable something
Anyway OP I would like to help you with events but I am afraid I know nearly nothing about them. The reason why I want someone to make a tool to make events is because events is the hardest thing you can do in FTL. (not considering custom art from scratch or making audio or what have you)