I need some help.

Discuss and distribute tools and methods for modding. Moderator - Grognak
TheNewbie
Posts: 138
Joined: Thu Mar 28, 2013 9:56 am
Location: In HELL!

I need some help.

Postby TheNewbie » Sat Apr 27, 2013 5:03 am

So, I'm trying to make a custom weapon. Here is how it will look like :Image I have also made a glow image :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. :x
If someone who knows how to make a weapon can help me, please PM me.

Thanks in advance,
have a nice day everyone! :)
Last edited by TheNewbie on Mon Apr 29, 2013 2:03 pm, edited 1 time in total.
DryEagle
Posts: 363
Joined: Thu Oct 04, 2012 11:17 am

Re: I need some help.

Postby DryEagle » Sat Apr 27, 2013 9:51 am

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.
All ships I have created include custom weapons, graphics etc:
Image
ImageImageImageImage
TheNewbie
Posts: 138
Joined: Thu Mar 28, 2013 9:56 am
Location: In HELL!

Re: I need some help.

Postby TheNewbie » Sat Apr 27, 2013 10:33 am

Actually, this is the boss beam strip.
DryEagle
Posts: 363
Joined: Thu Oct 04, 2012 11:17 am

Re: I need some help.

Postby DryEagle » Sat Apr 27, 2013 10:58 am

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.
All ships I have created include custom weapons, graphics etc:
Image
ImageImageImageImage
TheNewbie
Posts: 138
Joined: Thu Mar 28, 2013 9:56 am
Location: In HELL!

Re: I need some help.

Postby TheNewbie » Sat Apr 27, 2013 11:12 am

Ok.
TheNewbie
Posts: 138
Joined: Thu Mar 28, 2013 9:56 am
Location: In HELL!

Re: I need some help.

Postby TheNewbie » Sun Apr 28, 2013 5:16 pm

The Halberd Beams strip has more frames than my beams?!
DryEagle
Posts: 363
Joined: Thu Oct 04, 2012 11:17 am

Re: I need some help.

Postby DryEagle » Sun Apr 28, 2013 10:53 pm

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 :/
All ships I have created include custom weapons, graphics etc:
Image
ImageImageImageImage
TheNewbie
Posts: 138
Joined: Thu Mar 28, 2013 9:56 am
Location: In HELL!

Re: I need some help.

Postby TheNewbie » Mon Apr 29, 2013 5:02 am

Wow! Thanks ,that's good to know!
TheNewbie
Posts: 138
Joined: Thu Mar 28, 2013 9:56 am
Location: In HELL!

Re: I need some help.

Postby TheNewbie » Mon Apr 29, 2013 5:03 am

Wait, you said that 7 frames could break the game!? :shock: The weapon that I request has 7 frames!
thashepherd
Posts: 194
Joined: Fri Nov 16, 2012 11:45 pm
Location: Rochester, NY

Re: I need some help.

Postby thashepherd » Mon Apr 29, 2013 7:53 am

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
You are the weak, and I am the tyranny of evil men - but I'm trying, I'm trying real hard to be the shepherd.

"Wow, that Kieve guy is one angsty nerd eh."
Sonata - "Best use of Common Lisp in an indie space roguelike!"

Who is online

Users browsing this forum: No registered users and 7 guests