[Help] Problem with a custom weapon
Posted: Mon Jul 17, 2017 7:48 pm
Hi, new modder here
The inquiries thread is dead so I figured a topic wouldn't hurt.
So I'm having an issue with a weapon that I am trying to make. Basically, I took the BL3 sprites, and gave them a recolour, but I can't get the sprites to appear in the game itself. One of several things happens, mostly that the game defaults to BL2 instead of using my weapon. Sometimes it doesn't appear and is invisible. I'll put the code in here and see if anyone can figure out if the code is wrong or not:
And here's the animation code too:
As a note: the animSheet uses "explosive_laser_mk3", mainly because I've tried it with just "explosive_laser_3" and I've had no luck there, so just imagine I didn't put the "mk" there
My files for the weapons are all correct, they use the xml.append file type, they're named correctly as "animations.xml.append" and "blueprints.xml.append", so I'm just wondering if I have messed up with the code somewhere.
If anyone could find the issue I'd certainly be grateful, I'm itching to start modding some of my own sprites

So I'm having an issue with a weapon that I am trying to make. Basically, I took the BL3 sprites, and gave them a recolour, but I can't get the sprites to appear in the game itself. One of several things happens, mostly that the game defaults to BL2 instead of using my weapon. Sometimes it doesn't appear and is invisible. I'll put the code in here and see if anyone can figure out if the code is wrong or not:
Code: Select all
<weaponBlueprint name="EXPLOSIVE_LASER_3">
<type>LASER</type>
<tip>tip_laser</tip>
<title>Explosive Laser Mk.III</title>
<short>Expl. L III</short>
<desc> High-tech laser that explodes when making contact with ship, high breach and fire chances. Penetrates one shield layer.</desc>
<tooltip>2 shots, 4 damage. High breach/fire chance.</tooltip>
<damage>3</damage>
<shots>2</shots>
<sp>1</sp>
<fireChance>9</fireChance>
<breachChance>9</breachChance>
<cooldown>14</cooldown>
<power>4</power>
<cost>95</cost>
<rarity>4</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>explosive_laser_3</weaponArt>
</weaponBlueprint>
Code: Select all
<animSheet name="explosive_laser_mk3" w="300" h="64" fw="25" fh="64">weapons/explosive_laser_3_strip12.png</animSheet>
<weaponAnim name="explosive_laser_3">
<sheet>explosive_laser_3</sheet>
<desc length="12" x="0" y="0" />
<chargedFrame>5</chargedFrame>
<fireFrame>8</fireFrame>
<firePoint x="14" y="10" />
<mountPoint x="6" y="45" />
</weaponAnim>

If anyone could find the issue I'd certainly be grateful, I'm itching to start modding some of my own sprites
