Auto-ECM v0.4 -- a very simple OXP

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Auto-ECM v0.4 -- a very simple OXP

Post by Switeck »

This is a watered-down ECM-only antimissile system inspired by Ramirez's chaff launcher, Thargoid's Anti Missile System, Cmdr Wyvern's Automatic Chaff System (which was based on Thargoid's AMS and Ramirez's Chaff Dispenser), and Screet's Missile Countermeasures (which was based on Cmdr Wyvern's Automatic Chaff System).

It's not "intelligent" -- it just fires the ECM *ONCE* when a missile is fired at the player's ship. In a sense, you can assume many NPC ships already have this equipment. It will warn but not fire the ECM if the energy levels are really low. It can be enabled/disabled, via equipment activation...in case you'd prefer to manually use ECM or if you have other OXP equipment that has the same effect. Even when enabled, ECM can still be fired manually...but not more often than normal.

There may be a minor conflict with this and Cmdr Wyvern's Automatic Chaff System, Ramirez's Chaff Launcher, Thargoid's Anti Missile System, and/or Screet's Missile Countermeasures.
The ECM may fire multiple times consecutively per each incoming missile as a result, rapidly depleting your energy banks.
So it's best to have only 1 such system installed or activated. (Good thing Auto-ECM can be disabled!)
But even together, the OXPs will not cause the ECM to fire faster than you could manually.


Auto-ECM_0.4.oxz for Oolite v1.79:
https://app.boxcn.net/s/0oqu1vv1goka0qhkzghm

Auto-ECM v0.2 OXP for Oolite v1.77:
http://www.boxcn.net/s/uyfp85y0ayltk9fb6age

(v0.3 was an internal testing version for when I was converting from v1.77 to v1.79...I may use that version if I release an updated Auto-ECM for Oolite v1.77 only.)
Last edited by Switeck on Wed Mar 26, 2014 6:30 am, edited 4 times in total.
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Re: Auto-ECM v0.2 -- a very simple OXP

Post by Cmdr Wyvern »

I hate to break it to you, but you've been beaten to the punch.

Not that someone couldn't find a use for this gadget, mind. :)
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Auto-ECM v0.2 -- a very simple OXP

Post by Switeck »

I'll add your Automatic Chaff System to the readme for the next release (v0.3 assuming there is one) and also edit my first post to reflect this. I'd mixed up your ACS with Ramirez's chaff launcher -- thinking they were made by the same person. :oops:

I recognize that there are quite a few anti-missile systems out there, most of which use the ECM as well. But I saw none that used ONLY the ECM, including yours.

Pretty much all of them seem to utilize hammerspace (http://tvtropes.org/pmwiki/pmwiki.php/Main/Hammerspace) with equipment that I don't see as very small. They need their own special ammo bin and launcher either firing forwards, firing/dropping rearwards, or both. Chopping specialized holes in the exterior of the player's ship can't help the overall resale value, especially if those items are later removed. While fluff-wise the Cobra 3 does have some unused internal space, I didn't get the impression it was in a convenient location for external exits. On top of this, the antimissile systems serve to devalue the somewhat expensive ECM-resistant "hardhead" missiles as well as quite a few even more expensive (but typically more powerful) OXP missiles. NPC ships cannot use the OXP antimissile equipment, at least not without additional complex scripting. In short, they all have serious game balance issues.

Incidentally, my other frustrations with your OXP specifically was partly why I made Auto-ECM. The ACS seemed pretty buggy regarding how many chaff bundles it had left -- it could be negative and still firing. It also seemed to have "messy" logic concerning whether to fire the ECM and/or chaff. Nested IFs can be useful, but that's the "deepest" If-else-if-else tree I've ever seen in any OXP! I spotted a couple places with:
&& missile.name == "Missile" && missile.name != "Missile"
...which doesn't make sense to me. (Not to say there's no reason for that -- I've been at a loss about a few ways Oolite syntax and logic works before!)
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Re: Auto-ECM v0.2 -- a very simple OXP

Post by Cmdr Wyvern »

OK, you got me there! Touche, Commander. And to think I made ACS because Thargoid's AMS tends to fail more often than it succeeds, and with only a six-round magazine at extortionist's pricing to boot.
Switeck wrote:
The ACS seemed pretty buggy regarding how many chaff bundles it had left -- it could be negative and still firing.
I'll have to look into that. I haven't noticed that bug myself, as I tend to reload at every main station that carries the reloads; it's usually well before the chaff magazine is emptied.
I know, my scripting sucks. If I manage to get the gadget to work at all, it's a victory. At least ACS mostly does what it says on the tin, funny chaff count bug aside.

Getting NPCs to carry it would be a treat, but I don't think Oolite's js engine is up to that. In any case, the NPCs can and do hurl oxp missiles at you - including some that aren't available_to_all. WTF is Rocketeer missiles? Never heard of Rocketeer missiles till one was shot at me!
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Auto-ECM v0.2 -- a very simple OXP

Post by Switeck »

Can't say I don't agree there...Thargoid's AMS seems to be firing barely homing gold-plated struts rather than missiles. They're too slow and with a poor corner rate to catch missiles. The triple-pack of fast missiles in armory would probably be a better choice than what AMS uses. Rigging that up to work with auto-launching antimissile logic controls...I just don't know if a player's missile can be scripted to auto-launch. Maybe added/removed by script...and firing something similar though?

As for NPCs using anti-missile systems, I can at least say they try to shoot missiles sometimes. Thargoids with their omnidirectional laser even do an ok job of it. It's almost a waste of time to drop a stationary q-mine off near them because of it. My auto-ECM can almost be assumed to already be on many NPC ships, due to how quickly many ECM incoming missiles.

Your ACS logic tries to handle every possible contingency. I think that's what makes it so very complex script logic-wise. I even ran into a headache even with just the auto-ECM due to whether the player had intentionally disabled that or whether it was damaged -- I felt different messages were merited for each condition.

As for OXP missiles and bombs, I do have fuel tanks and military missiles installed...though I'm more likely to have a military missile fired at me than installed on my ship. Might as well call Military Missiles "boomerang" when fired by pirates + ECMed. :lol: I did make it rarer on NPC ships though in my hacked version.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Auto-ECM v0.2 -- a very simple OXP

Post by Svengali »

Cmdr Wyvern wrote:
In any case, the NPCs can and do hurl oxp missiles at you - including some that aren't available_to_all. WTF is Rocketeer missiles? Never heard of Rocketeer missiles till one was shot at me!
He, funny missile isn't it (Vector.oxp)? I'm already working on some more NPC only things as I feel that the player has enough toys.

So the "Marc X Rocketeer" and "Barkas Barrier" will get some brothers and sisters in the next version (maybe something like "The Hugh Dave", "Big A's Revenge", "Mic Ha's Sorrowbringer", "Get A Fix - Shieldtest", "Jameson's Shaker", "Rincewinstons Nullifier" or "The Walch Pulsator") .-)
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Re: Auto-ECM v0.2 -- a very simple OXP

Post by Cmdr Wyvern »

Svengali wrote:
..."The Walch Pulsator"...
Batteries not included, right? :lol:

...Yeah. Naughty Lizard! :oops: I'll be over there. :arrow:
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Auto-ECM v0.2 -- a very simple OXP

Post by Svengali »

Cmdr Wyvern wrote:
Svengali wrote:
..."The Walch Pulsator"...
Batteries not included, right? :lol:
Sometimes :mrgreen:
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2028
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Auto-ECM v0.2 -- a very simple OXP

Post by maik »

Added to the [wiki]OXP List[/wiki], but without a page for now.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Auto-ECM v0.4 -- a very simple OXP

Post by Switeck »

Auto-ECM_0.4.oxz
https://app.boxcn.net/s/0oqu1vv1goka0qhkzghm

This version is converted to using Oolite v1.79 trunk's OXZ file format!

...There may be problems with its OXZ formatting, so please report anything unusual if you use this OXZ!
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Auto-ECM v0.4 -- a very simple OXP

Post by Switeck »

I forgot to document that I also added a test mode for Auto-ECM -- it will tell you if it's active, disabled or damaged when you press the Equipment Mode key with the Auto-ECM equipment selected.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Auto-ECM v0.4 -- a very simple OXP

Post by Wildeblood »

Switeck wrote:
I also added a test mode for Auto-ECM -- it will tell you if it's active, disabled or damaged when you press the Equipment Mode key with the Auto-ECM equipment selected.
Now that's a good idea.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Auto-ECM v0.4 -- a very simple OXP

Post by Diziet Sma »

Wildeblood wrote:
Switeck wrote:
I also added a test mode for Auto-ECM -- it will tell you if it's active, disabled or damaged when you press the Equipment Mode key with the Auto-ECM equipment selected.
Now that's a good idea.
Seconded.. very good idea indeed.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Cholmondely
Archivist
Archivist
Posts: 5368
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Auto-ECM v0.4 -- a very simple OXP

Post by Cholmondely »

Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
Josef
Competent
Competent
Posts: 60
Joined: Sat May 29, 2021 6:20 pm
Location: Wien

Re: Auto-ECM v0.4 -- a very simple OXP

Post by Josef »

Hi,
can somebody say to me, how much that equipment costs an on what Tech-level it is possible to buy?
Post Reply