[Modding]Creating your own weapons
-
- Posts: 184
- Joined: Sun Sep 30, 2012 2:24 pm
Re: [Modding]Creating your own weapons
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.
Many years ago I created the FTL Starcraft mod: 18 new challenging ships to fly through the FTL universe!, and wrote a tutorial on creating your own FTL ships. They haven't been updated for AE though.
-
- Posts: 194
- Joined: Fri Nov 16, 2012 11:45 pm
Re: [Modding]Creating your own weapons
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.
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.
You are the weak, and I am the tyranny of evil men - but I'm trying, I'm trying real hard to be the shepherd.
"Wow, that Kieve guy is one angsty nerd eh."
Sonata - "Best use of Common Lisp in an indie space roguelike!"
"Wow, that Kieve guy is one angsty nerd eh."
Sonata - "Best use of Common Lisp in an indie space roguelike!"
-
- Posts: 5
- Joined: Fri Jan 25, 2013 7:28 pm
Re: [Modding]Creating your own weapons
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.
I can't figure out what I did wrong.
-
- Posts: 194
- Joined: Fri Nov 16, 2012 11:45 pm
Re: [Modding]Creating your own weapons
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.
You are the weak, and I am the tyranny of evil men - but I'm trying, I'm trying real hard to be the shepherd.
"Wow, that Kieve guy is one angsty nerd eh."
Sonata - "Best use of Common Lisp in an indie space roguelike!"
"Wow, that Kieve guy is one angsty nerd eh."
Sonata - "Best use of Common Lisp in an indie space roguelike!"
-
- Posts: 2141
- Joined: Thu Sep 20, 2012 3:17 pm
Re: [Modding]Creating your own weapons
Better yet, check how someone else did.
I have a question. How can firing speed be altered? Or the projectile speed?
I have a question. How can firing speed be altered? Or the projectile speed?
Report spam using the handy Report Button Mod.
-
- Posts: 194
- Joined: Fri Nov 16, 2012 11:45 pm
Re: [Modding]Creating your own weapons
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.
You are the weak, and I am the tyranny of evil men - but I'm trying, I'm trying real hard to be the shepherd.
"Wow, that Kieve guy is one angsty nerd eh."
Sonata - "Best use of Common Lisp in an indie space roguelike!"
"Wow, that Kieve guy is one angsty nerd eh."
Sonata - "Best use of Common Lisp in an indie space roguelike!"
-
- Posts: 24
- Joined: Mon Jan 14, 2013 2:35 pm
Re: [Modding]Creating your own weapons
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.
-
- Posts: 2141
- Joined: Thu Sep 20, 2012 3:17 pm
Re: [Modding]Creating your own weapons
Lazars don't have <speed>
Report spam using the handy Report Button Mod.
-
- Posts: 363
- Joined: Thu Oct 04, 2012 11:17 am
Re: [Modding]Creating your own weapons
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.
Speed for beams controls the rate at which the beam cuts across the line you drew.
Speed for drones controls their movement speed.
- Kieve
- Posts: 952
- Joined: Tue Sep 18, 2012 2:21 pm
Re: [Modding]Creating your own weapons
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.