Page 1 of 3
I need some help.
Posted: Sat Apr 27, 2013 5:03 am
by TheNewbie
So, I'm trying to make a custom weapon. Here is how it will look like :

I have also made a glow image :

I'm trying hard to create this weapon, but I just can't. I finally did what AtillaBosma's guide told me to do, but as always ,nothing.
If someone who knows how to make a weapon can help me, please PM me.
Thanks in advance,
have a nice day everyone!

Re: I need some help.
Posted: Sat Apr 27, 2013 9:51 am
by DryEagle
I think you might have too many frames in your attack animation.
Try taking an existing beam weapon,
copying the number of frames it has,
copying the animation sheet entries (obviously you will need to change the image/frame size values),
and renaming it appropriately.
then it should work fine.
FTL is very picky about how many frames long an animation is, to the point where one wrong frame will make it not work properly at all.
Re: I need some help.
Posted: Sat Apr 27, 2013 10:33 am
by TheNewbie
Actually, this is the boss beam strip.
Re: I need some help.
Posted: Sat Apr 27, 2013 10:58 am
by DryEagle
In FTL, the "boss ship's <insert ANYTHING here>" is likely as not hardcoded, and doesn't work like the rest of the game. Try basing an animation off a standard weapon.
Re: I need some help.
Posted: Sat Apr 27, 2013 11:12 am
by TheNewbie
Ok.
Re: I need some help.
Posted: Sun Apr 28, 2013 5:16 pm
by TheNewbie
The Halberd Beams strip has more frames than my beams?!
Re: I need some help.
Posted: Sun Apr 28, 2013 10:53 pm
by DryEagle
It's not about having more or less frames. It's about having a precise number that the game will accept. I remember on one of my weapons, I could have 6 or 8 frames in one segment of the animation, but if I put 7 it would break. Seriously. The game is that picky. So you just have to keep experimenting with it basically, that's the only way :/
Re: I need some help.
Posted: Mon Apr 29, 2013 5:02 am
by TheNewbie
Wow! Thanks ,that's good to know!
Re: I need some help.
Posted: Mon Apr 29, 2013 5:03 am
by TheNewbie
Wait, you said that 7 frames could break the game!?

The weapon that I request has 7 frames!
Re: I need some help.
Posted: Mon Apr 29, 2013 7:53 am
by thashepherd
TheNewbie wrote:Wait, you said that 7 frames could break the game!? The weapon that I request has 7 frames!
DryEagle wrote:It's not about having more or less frames. It's about having a precise number that the game will accept. I remember on one of my weapons, I could have 6 or 8 frames in one segment of the animation, but if I put 7 it would break. Seriously. The game is that picky. So you just have to keep experimenting with it basically, that's the only way :/
I've definitely run into issues as well, but as far as I know they're not tied to a specific number. It seems to be tied to the relationship between desc length, chargedFrame, and fireFrame. I do not believe that chargedFrame and fireFrame can be equal to each other or desc length.
Another thing to examine is if desc length matches the animSheet you've provided. Something like:
Code: Select all
<animSheet name="VIRA_SHEET" w="100" h="10" fw="50" fh="10">weapons/browncoat.png</animSheet>
<weaponAnim name="VIRA">
<sheet>VIRA_SHEET</sheet>
<desc length="3" x="0" y="0"/>
...
<weaponAnim
might fail because the desc length is 3 and FTL can only make two fw="50" frames out of (what it thinks is a) 100 pixel file.
It would help us help you if you could:
1. Give us some more information on HOW this weapon is failing, and
2. Attach your animations.xml.append