Need Help with Weapons!

Discuss and distribute tools and methods for modding. Moderator - Grognak
Abs
Posts: 82
Joined: Tue Aug 05, 2014 10:01 am

Need Help with Weapons!

Postby Abs » Sun Aug 10, 2014 11:52 pm

Hi all,

I am making a mod, and my weapons do not seem to be showing up in the UI.

Image

blueprints.xml.append

Code: Select all

<blueprintList name="STFTL_WEAPONS">
   <name>STFTL_PHASERS</name>
</blueprintList>
<weaponBlueprint name="STFTL_PHASERS">  <!-- 1 shot 1power-->
   <type>BEAM</type>
   <title>Phasers</title>
   <short>Phasers</short>
   <tip>tip_beams</tip>
   <desc>Standard Federation Phasers.</desc>
   <tooltip>Large beam with high damage.</tooltip>
   <damage>1</damage>
   <sp>2</sp>
   <fireChance>2</fireChance>
   <breachChance>2</breachChance>
   <cooldown>4</cooldown>
   <color> <!-- Color only works for beams -->
      <r>51</r>
      <g>204</g>
      <b>255</b>
   </color>
   <power>1</power>
   <cost>95</cost>
   <bp>2</bp>
   <rarity>0</rarity>
   <length>140</length>
   <image>beam_contact</image>
   <launchSounds>
      <sound>STFTL_PHASERSOUND</sound>
   </launchSounds>
   <weaponArt>phasers</weaponArt>
   <iconImage>beam</iconImage>
</weaponBlueprint>


animsheet.xml.append

Code: Select all

<!-- Define Anim Sheet -->
<animSheet name="phasers" w="20" h="54" fw="10" fh="54">weapons/phasers.png</animSheet>

<!-- Define Animation -->
<weaponAnim name="phasers">
   <sheet>phasers</sheet>
   <desc length="2" x="0" y="0"/>
   <chargedFrame>1</chargedFrame>
   <fireFrame>1</fireFrame>
   <firePoint  x="16" y="20"/>
   <mountPoint x="0" y="0"/>
   <chargeImage>weapons/phasers.png</chargeImage>
</weaponAnim>


Does anyone know what looks wrong here?

Thanks in advance!

Abs
Image
Click to go to the mod's facebook page for the latest updates!
zabing12
Posts: 63
Joined: Fri Jul 18, 2014 5:35 pm

Re: Need Help with Weapons!

Postby zabing12 » Mon Aug 11, 2014 12:43 am

Here, use a vanilla beam to compare:

Code: Select all

<weaponBlueprint name="BEAM_1">
   <type>BEAM</type>
   <tip>tip_beams</tip>
   <title>Mini Beam</title>
   <short>Mini Beam</short>
   <desc>Extremely cheap and weak beam weapon.</desc>
   <tooltip>One damage per room beam weapon</tooltip>
   <damage>1</damage>
   <sp>0</sp>
   <fireChance>1</fireChance>
   <breachChance>0</breachChance>
   <cooldown>12</cooldown>
   <speed>3</speed>
   <power>1</power>
   <cost>20</cost>
   <bp>2</bp>
   <rarity>0</rarity>
   <image>beam_contact</image>
   <length>45</length>
   <launchSounds>
      <sound>beam1</sound>
      <sound>beam1_2</sound>
   </launchSounds>
   <weaponArt>beam_1</weaponArt>
   <iconImage>beam</iconImage>


Code: Select all

<animSheet name="beam_1" w="192" h="33" fw="24" fh="33">weapons/beam_1_strip8.png</animSheet>
<weaponAnim name="beam_1">
   <sheet>beam_1</sheet>
   <desc length="8" x="0" y="0" />
   <chargedFrame>1</chargedFrame>
   <fireFrame>2</fireFrame>
   <firePoint x="16" y="9" />
   <mountPoint x="5" y="24" />
   <chargeImage>weapons/beam_1_glow.png</chargeImage>
Abs
Posts: 82
Joined: Tue Aug 05, 2014 10:01 am

Re: Need Help with Weapons!

Postby Abs » Mon Aug 11, 2014 12:46 am

Thanks, but the vanilla beam is already where I got the config from. ;)

I still do not see anything wrong. Does anyone else?

Abs
Image
Click to go to the mod's facebook page for the latest updates!
zabing12
Posts: 63
Joined: Fri Jul 18, 2014 5:35 pm

Re: Need Help with Weapons!

Postby zabing12 » Mon Aug 11, 2014 12:48 am

Could I see the download?

You could look at my thread: viewtopic.php?f=12&t=25837

I had the same troubles.
Abs
Posts: 82
Joined: Tue Aug 05, 2014 10:01 am

Re: Need Help with Weapons!

Postby Abs » Mon Aug 11, 2014 12:59 am

zabing12 wrote:Could I see the download?


Unfortunately, not yet. I believe all the pertinent information has been included in the thread, however. If I am missing anything to make it work, please let me know and I'll provide the requested info.

Abs
Image
Click to go to the mod's facebook page for the latest updates!
User avatar
kartoFlane
Posts: 1470
Joined: Mon Jan 14, 2013 10:20 pm

Re: Need Help with Weapons!

Postby kartoFlane » Mon Aug 11, 2014 1:12 am

Abs wrote:animsheet.xml.append

...that should be animations.xml.append ;)
Superluminal2 - a ship editor for FTL
Abs
Posts: 82
Joined: Tue Aug 05, 2014 10:01 am

Re: Need Help with Weapons!

Postby Abs » Mon Aug 11, 2014 1:15 am

kartoFlane wrote:
Abs wrote:animsheet.xml.append

...that should be animations.xml.append ;)


It is...well, sorta. You hit the nail on the head, kartoFlane. Turns out it was called animations.xml.append.txt. DOH!

Thanks again, man!

Abs
Image
Click to go to the mod's facebook page for the latest updates!

Who is online

Users browsing this forum: No registered users and 17 guests