Hey guys, I found out how to add additional weapons to the game, just adding them, not yet making them dropped from events.
They are also duplicate weapons with just reskinned animations/models and damage values changed a bit, but I know people can figure it out further.
I shall give you a quick tutorial here:
Step 1: Unpack Data.dat and Resource.dat
That step is quite straightforward, follow the intructions in the first post.
Step 2: Go to data.dat-unpacked folder and look for these files:
Animations.xml, autoBlueprints.xml and Blueprints.xml.
Step 3: Open up Animations.xml.
What I did was make a duplicate missile, so look for
Code: Select all
<animSheet name="missiles_1" w="75" h="43" fw="25" fh="43">weapons/missiles_1_strip3.png</animSheet>
Copy that line and paste it underneath that line, rename it so it says this:
Code: Select all
<animSheet name="missiles_4" w="75" h="43" fw="25" fh="43">weapons/missiles_4_strip3.png</animSheet>
This means that it will start using the animation from the file missiles_4_strip3.png, but we'll get to that later.
Now look for this part of the code:
Code: Select all
<weaponAnim name="missiles_1">
<sheet>missiles_1</sheet>
<desc length="3" x="0" y="0"/>
<chargedFrame>1</chargedFrame>
<fireFrame>2</fireFrame>
<firePoint x="15" y="20"/>
<mountPoint x="7" y="30"/>
<chargeImage>weapons/missiles_1_glow.png</chargeImage>
</weaponAnim>
Copy that and paste it underneath with 1 line between, that means it will start using a duplicate version of missiles_1, change the code you pasted to:
Code: Select all
<weaponAnim name="missiles_4">
<sheet>missiles_4</sheet>
<desc length="3" x="0" y="0"/>
<chargedFrame>1</chargedFrame>
<fireFrame>2</fireFrame>
<firePoint x="15" y="20"/>
<mountPoint x="7" y="30"/>
<chargeImage>weapons/missiles_1_glow.png</chargeImage>
</weaponAnim>
This will make it so the weaponAnimation of Missiles_4, the one that we created earlier, will have the animation of missiles_1, you can make your own graphics but for the sake of this tutorial I didnt.
Now, the last part of the animations we have to cover is the actual projectile, look for this part of the code:
Code: Select all
<animSheet name="missile_1" w="32" h="80" fw="32" fh="80">weapons/missile_1.png</animSheet>
<anim name="missile_1">
<sheet>missile_1</sheet>
<desc length="1" x="0" y="0"/>
<time>1</time>
</anim>
Do the same as last time and change the code to:
Code: Select all
<animSheet name="missile_4" w="32" h="80" fw="32" fh="80">weapons/missile_4.png</animSheet>
<anim name="missile_4">
<sheet>missile_1</sheet>
<desc length="1" x="0" y="0"/>
<time>1</time>
</anim>
This means it will start using the file missile_4.png in the resource.dat as a graphic, but I'll get to that later.
Alright, we got the animations ready for our missile!
We only need to create the info about the missile, define its damage values and make it so your ship starts with it!
End of part 1 of this tutorial, I'll write part 2 as soon as possible.