Custom weapon art
Posted: Fri Apr 17, 2015 5:54 pm
Hey everybody,
Been learning a lot of stuff on my own the last few days and been getting help from others in the mean time of course.
This community is frigging awesome.
Anyway, been trying my hand on custom weapons and whilst I can create the weapon and add it to the ship, I can't get a custom image to show up.
I can however change the images of existing weapons and get those to work.
I'm assuming I need to change the weapon art in the weapon blueprint to something specific but that part still eludes me a bit.
This is what I'm trying to get to work.
For now, I'm using the following images to change the appearance which are recolors of the original bio beam:

The weapon images

The glow
I tried changing <weaponArt>beam_bio</weaponArt> to <weaponArt>beam_arc</weaponArt> whilst changing the name of the images from beam_bio_strip8 to beam_arc_strip8. Same with glow.
But I get an invisible weapon. Changing the names back from arc to bio makes it work again.
The images are in /img/weapons of the resource folders of the ship.
Anyway, I'm kind of confused on what I could do since that's the only line of code where it still refers to the biobeam.
For this weapon in particular it's not that important since the Bio-beam is a pretty rare weapon and the ship it's going on will replace Slug A anyway. Still, I'm trying to do the same with a type of bomb so...
Any help will be well appreciated and credit will be given when the ship finally gets released.
Been learning a lot of stuff on my own the last few days and been getting help from others in the mean time of course.
This community is frigging awesome.
Anyway, been trying my hand on custom weapons and whilst I can create the weapon and add it to the ship, I can't get a custom image to show up.
I can however change the images of existing weapons and get those to work.
I'm assuming I need to change the weapon art in the weapon blueprint to something specific but that part still eludes me a bit.
This is what I'm trying to get to work.
Code: Select all
<weaponBlueprint name="BEAM_ARC">
<type>BEAM</type>
<tip>tip_crew_beam</tip>
<title>Arc Beam</title>
<short>Arc Beam</short>
<desc>A modified Anti-Bio Beam. Less damaging for crew but can deal damage to systems.</desc>
<tooltip>2 power beam weapon that damages enemy crew and systems.</tooltip>
<!--<desc>Power Req: 2 A beam weapon that does 1 damage and starts fires in a line if the enemy has no shields.</desc>-->
<damage>0</damage>
<persDamage>2</persDamage>
<sp>0</sp>
<fireChance>0</fireChance>
<breachChance>0</breachChance>
<sysDamage>1</sysDamage>
<cooldown>14</cooldown>
<color>
<!-- Color only works for beams -->
<r>235</r>
<g>52</g>
<b>239</b>
</color>
<speed>13</speed>
<power>2</power>
<cost>50</cost>
<bp>6</bp>
<rarity>0</rarity>
<length>140</length>
<image>beam_contact</image>
<launchSounds>
<sound>beam2</sound>
</launchSounds>
<weaponArt>beam_bio</weaponArt>
<iconImage>beam</iconImage>
</weaponBlueprint>

The weapon images

The glow
I tried changing <weaponArt>beam_bio</weaponArt> to <weaponArt>beam_arc</weaponArt> whilst changing the name of the images from beam_bio_strip8 to beam_arc_strip8. Same with glow.
But I get an invisible weapon. Changing the names back from arc to bio makes it work again.
The images are in /img/weapons of the resource folders of the ship.
Anyway, I'm kind of confused on what I could do since that's the only line of code where it still refers to the biobeam.
For this weapon in particular it's not that important since the Bio-beam is a pretty rare weapon and the ship it's going on will replace Slug A anyway. Still, I'm trying to do the same with a type of bomb so...
Any help will be well appreciated and credit will be given when the ship finally gets released.