Invisible gun-help please! (SOLVED)

Discuss and distribute tools and methods for modding. Moderator - Grognak
randomness5555
Posts: 11
Joined: Sat Feb 18, 2017 6:11 pm

Invisible gun-help please! (SOLVED)

Postby randomness5555 » Sat Feb 18, 2017 6:28 pm

Hello all! I'll get straight to the point. I've been trying to make a new weapon, based on something I made for FTL years ago at high school. Now, the weapon itself *did* work perfectly fine-while it was using a placeholder graphic (one of the laser animations that already existed). After heavily editing the graphic to make something new, I put the mod back together and started it up. Sure enough, the weapon still works... but the firing animation and the gun itself are completely invisible. The laser bolt can be seen but the gun can't.

Any idea what I'm doing wrong? Is there something you have to do when you save the PNG, or is it a code error? I have double checked it but it seems fine. I'll attach the mod itself below, since it was following this guide (viewtopic.php?f=12&t=17122) the weapon itself is already equipped to the kestrel.

Note that the Zip file is arranged exactly as the .ftl file would be.

*Edit* Apparently I can't upload the file, it tells me 'sorry, the board attachment quota has been reached'. Dropbox is playing up at the moment but if I can get it working, I'll put a link to the file through that.

FIle: https://www.dropbox.com/s/vd6qvhz34htsq ... d.zip?dl=0
Last edited by randomness5555 on Sun Feb 19, 2017 3:15 am, edited 1 time in total.
User avatar
mr_easy_money
Posts: 626
Joined: Fri May 29, 2015 9:05 pm

Re: Invisible gun-help please!

Postby mr_easy_money » Sat Feb 18, 2017 10:59 pm

in the weaponAnim, "laser_ion_weapon_1", you've specified a sheet that doesn't exist instead of the one you want, thereby not using any image.

Code: Select all

<animSheet name="laser_ion_weapon_1" w="192" h="60" fw="16" fh="60">weapons/laser_ion_strip_1.png</animSheet>

<weaponAnim name="laser_ion_weapon_1">
   <sheet>laser_ion_1</sheet>
   <desc length="12" x="0" y="0"/>
   <chargedFrame>5</chargedFrame>
   <fireFrame>8</fireFrame>
   <firePoint  x="10" y="16"/>
   <mountPoint x="2" y="44"/>
</weaponAnim>

as you can see, the sheet tag references "laser_ion_1" instead of "laser_ion_weapon_1".

also, you misspelled "powerful" in the weapon's description :P
randomness5555
Posts: 11
Joined: Sat Feb 18, 2017 6:11 pm

Re: Invisible gun-help please!

Postby randomness5555 » Sun Feb 19, 2017 3:15 am

Thanks man, works perfectly now! And corrected that small spelling error, that's a pretty common one for me honestly.