Page 1 of 1

Need Help with Weapons!

Posted: Sun Aug 10, 2014 11:52 pm
by Abs
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

Re: Need Help with Weapons!

Posted: Mon Aug 11, 2014 12:43 am
by zabing12
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>

Re: Need Help with Weapons!

Posted: Mon Aug 11, 2014 12:46 am
by Abs
Thanks, but the vanilla beam is already where I got the config from. ;)

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

Abs

Re: Need Help with Weapons!

Posted: Mon Aug 11, 2014 12:48 am
by zabing12
Could I see the download?

You could look at my thread: http://www.ftlgame.com/forum/viewtopic.php?f=12&t=25837

I had the same troubles.

Re: Need Help with Weapons!

Posted: Mon Aug 11, 2014 12:59 am
by Abs
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

Re: Need Help with Weapons!

Posted: Mon Aug 11, 2014 1:12 am
by kartoFlane
Abs wrote:animsheet.xml.append
...that should be animations.xml.append ;)

Re: Need Help with Weapons!

Posted: Mon Aug 11, 2014 1:15 am
by Abs
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