Page 1 of 1

Weapons modding problem - help

Posted: Sun Mar 03, 2013 8:00 pm
by Seeder98
Hi, i have problem with modding weapon...
I see in game weapon skin. But the weapon don't shoot. Only discharges and recharges.
Under THIS text are codes of some files... thx for help

Sorry for my bad english...


Animations.xml.append

Code: Select all

<?xml version="1.0" encoding="us-ascii"?>
<animSheet name="mcannon" w="72" h="61" fw="24" fh="60">weapons/mcannon_strip3.png</animSheet>

<weaponAnim name="mcannon">
   <sheet>mcannon</sheet>
   <desc length="3" x="0" y="0"/>
   <chargedFrame>2</chargedFrame>
   <fireFrame>1</fireFrame>
   <firePoint  x="12" y="1"/>
   <mountPoint x="12" y="35"/>
</weaponAnim>

<animSheet name="laser_yellowcannon" w="200" h="20" fw="61" fh="21">weapons/laser_yellowcannon_strip4.png</animSheet>

<anim name="laser_yellowcannon">
   <sheet>laser_yellowcannon</sheet>
   <desc length="4" x="0" y="0"/>
   <time>1</time>
</anim>

Blueprints.xml.append file (only weapons code)

Code: Select all

<weaponBlueprint name="mcannon">
	<type>LASER</type>
	<title>main-cannon</title>
	<short>cannon</short>
	<desc>Slightly improved version of the burst laser that fires more shots per charge.</desc>
	<tooltip>Fires 3 lasers, 1 damage each.</tooltip>
	<damage>1</damage>
	<shots>5</shots>
	<sp>1</sp>
	<fireChance>0</fireChance>
	<breachChance>2</breachChance>
	<cooldown>1</cooldown>
	<power>1</power>
	<cost>110</cost>
	<bp>3</bp>
	<rarity>1</rarity>
	<image>laser_yellowcannon</image>
	<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>mcannon</weaponArt> 
</weaponBlueprint>
mcannon_strip3.png:
http://2i.cz/41f4a78d5e

laser_yellowcannon_strip4.png
http://2i.cz/14a1f2d80b

Thx for help...

Re: Weapons modding problem - help

Posted: Mon Mar 04, 2013 4:58 am
by UltraMantis
You can't put the fireFrame before the chargedFrame. chargedFrame is the frame when the animation stops (the weapon is charged and ready to be targeted). fireFrame is the frame of the animation when the projectile is spawned. It should be after chargedFrame. :)

Try setting chargedFrame to 1 and fireFrame to 2.