Weapons modding problem - help

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
Seeder98
Posts: 5
Joined: Fri Mar 01, 2013 10:52 pm

Weapons modding problem - help

Post 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...
UltraMantis
Posts: 2125
Joined: Thu Sep 20, 2012 3:17 pm

Re: Weapons modding problem - help

Post 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.
Report spam using the handy Report Button Mod.
Post Reply