Page 5 of 11

Re: [Modding]Creating your own weapons

Posted: Sat Jan 19, 2013 10:49 am
by alextfish
I don't know what <locked> means, but it's not how to stop things turning up in stores. That's the <rarity>. A rarity of 1 makes something common, 3 or 4 is rare; rarity of 0 means it won't be seen in stores (or in random event rewards) at all. This is how the game stops crystal weapons appearing in normal sectors. Sectors can also have sector-specific rarity lists, which is how crystal weapons /do/ show up in the crystal sector.

Re: [Modding]Creating your own weapons

Posted: Wed Jan 23, 2013 3:38 am
by thashepherd
Thanks. I was aware of how <rarity> worked, sort of a brain fart to expect duplicate functionality from <locked>.

Mantis, you may be right, although things like that are difficult to test without mauling the code base.

EDIT: After examining the wiki, it seems like only/mainly Ion and Bomb weapon have that locked tag. Based on stuff I've seen in the code, <locked> might be a nonfunctional tag added by Justin for a future update that allows you to unlock weapons or something (since, Mantis, the functionality you suggested could be done just as easily in sectorData.xml).

EDIT 2: The tag also shows up in one of the boss weapons, several systemBlueprints, and drones.

I'm going to leave it alone for now.

Re: [Modding]Creating your own weapons

Posted: Fri Jan 25, 2013 7:32 pm
by Durandal
What would cause a weapon to show up in-game, but when fired, NOTHING happens at all?

I can't figure out what I did wrong.

Re: [Modding]Creating your own weapons

Posted: Sat Jan 26, 2013 1:59 am
by thashepherd
Durandal wrote:What would cause a weapon to show up in-game, but when fired, NOTHING happens at all?

I can't figure out what I did wrong.


Check the reference to the projectile & your animations.xml.append in general.

Re: [Modding]Creating your own weapons

Posted: Sun Jan 27, 2013 4:14 pm
by UltraMantis
Better yet, check how someone else did.

I have a question. How can firing speed be altered? Or the projectile speed?

Re: [Modding]Creating your own weapons

Posted: Sun Jan 27, 2013 8:17 pm
by thashepherd
UltraMantis wrote:Better yet, check how someone else did.

I have a question. How can firing speed be altered? Or the projectile speed?


<speed> and <cooldown> in blueprints.xml, I believe. (<time> in projectile animations is just the animation speed of the projectile sprite itself, if it's one that changes in flight)

Not sure if <speed> is actually functional, but I think it is.

Drones are different. You basically have to speed up the firing rate by speeding up the drone itself, independent of its weapon.

Re: [Modding]Creating your own weapons

Posted: Sun Jan 27, 2013 8:21 pm
by Jonfon
thashepherd wrote:
UltraMantis wrote:Better yet, check how someone else did.

I have a question. How can firing speed be altered? Or the projectile speed?


<speed> and <cooldown> in blueprints.xml, I believe. (<time> in projectile animations is just the animation speed of the projectile sprite itself, if it's one that changes in flight)

Not sure if <speed> is actually functional, but I think it is.

Drones are different. You basically have to speed up the firing rate by speeding up the drone itself, independent of its weapon.


Speed is definitely functional for lasers and missiles.

Re: [Modding]Creating your own weapons

Posted: Mon Jan 28, 2013 2:12 am
by UltraMantis
Lazars don't have <speed>

Re: [Modding]Creating your own weapons

Posted: Mon Jan 28, 2013 2:28 am
by DryEagle
Speed for lasers /missiles controls projectile speed between your barrel and the enemy ship.
Speed for beams controls the rate at which the beam cuts across the line you drew.
Speed for drones controls their movement speed.

Re: [Modding]Creating your own weapons

Posted: Mon Jan 28, 2013 4:59 am
by Kieve
UltraMantis wrote:Lazars don't have <speed>


Not by default, but then they don't have <missile> either. ;) It can be added to change their properties, but reverts to a default otherwise.