Self-made weapon not appearing in UI

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
BLARGED
Posts: 2
Joined: Sat Jan 10, 2015 4:23 am

Self-made weapon not appearing in UI

Post by BLARGED »

Its late at night and i cant seem to find any problems with this weapon I am making :x , but it will not show up in the UI or on the ship! (glow image appears though)(sorry about the lazily pasted in xml files)

blueprint:(named: blueprints.xml(appended))

<weaponBlueprint name="BEAM_MATTER_CANNON">
<type>BEAM</type>
<title>Matter Cannon</title>
<short>Matter Cannon</short>
<desc>Powerful destruction and shield manipulation beam.</desc>
<tooltip>passes through shields with moderate damage</tooltip>
<damage>2</damage>
<speed>1</speed>
<length>3</length>
<shots>1</shots>
<sp>5</sp>
<fireChance>1</fireChance>
<breachChance>1</breachChance>
<cooldown>12</cooldown>
<color>
<r>124</r>
<g>235</g>
<b>1</b>
</color>
<power>3</power>
<cost>33</cost>
<bp>3</bp>
<rarity>1</rarity>
<launchSounds>
<sound>lightLaser1</sound>
<sound>lightLaser2</sound>
<sound>lightLaser3</sound>
</launchSounds>
<hitShipSounds>
<sound>hitHull2</sound>
<sound>hitHull3</sound>
</hitShipSounds>
<hitShieldSounds>
<sound>hitShield1</sound>
<sound>hitShield2</sound>
<sound>hitShield3</sound>
</hitShieldSounds>
<missSounds>
<sound>miss</sound>
</missSounds>
<weaponArt>beam_matter_cannon</weaponArt>
<image>beam_contact</image>
</weaponBlueprint>



animation sheet:(named: animations.xml(appended))

<animSheet name="beam_matter_cannon" w="344" h="41" fw="43" fh="41">weapons/beam_matter_cannon_strip8.png</animSheet>

<weaponAnim name="beam_matter_cannon">
<sheet>beam_matter_cannon</sheet>
<desc length="8" x="0" y="0"/>
<chargedFrame>1</chargedFrame>
<fireFrame>2</fireFrame>
<firePoint x="23" y="1"/>
<mountPoint x="2" y="50"/>
<chargeImage>weapons/beam_matter_cannon_glow.png</chargeImage>
</weaponAnim>
(I cant get an attachment in at the moment b/c the board is full but i will try later)
User avatar
RAD-82
Posts: 795
Joined: Sat Nov 09, 2013 12:16 am

Re: Self-made weapon not appearing in UI

Post by RAD-82 »

I'll guess that it is a problem with your beam_matter_cannon_strip8.png file.

Make sure it is 32-bit (16 million colors) and not 8-bit, like I've seen other people do.

Something else that I've noticed, but probably isn't causing your problem, is that the frame height on your weapon is 41, but the mount point for y is 50.
Image
Junkyard has FTL mods, mostly ships and a few other things.
BLARGED
Posts: 2
Joined: Sat Jan 10, 2015 4:23 am

Re: Self-made weapon not appearing in UI

Post by BLARGED »

I think the i was using 8 bit, thanks for the help it works perfectly now!
Post Reply