Page 1 of 4

[RELEASE] Skilled NPCs (1.77 only)

Posted: Wed Jan 09, 2013 6:02 pm
by cim
This is a very simple OXP. Oolite 1.77 allows pilots to be significantly more skilled than they were in 1.76 - this OXP means that some of them actually are. If you find combat in Oolite tough enough as it is, you probably don't want this OXP. If you can fight through an Anarchy without scratching the paintwork, on the other hand, this might make it a fairer fight.

Skilled NPCs 1.1
It can be configured with OXPConfig to increase the challenge further, should you need to.

For 1.79 and onwards there's now Skilled NPCs 1.2 (OXZ), which works better with the new ship roles and populator, and also checks auto_weapons before changing the accuracy (which is the right thing to do, but in the short term will probably lead to it only touching the core game ships)

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Tue Feb 05, 2013 7:06 pm
by UK_Eliter
cim

This is really good - and it is good it is configurable via the oxpconfig oxp. However, I couldn't work out how to do more than toggle boosting of particular types of ship, as against change how much their abilities were boosted by. Also: does 'boost aliens' really apply only to thargoids? Just checking. Thanks.

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Tue Feb 05, 2013 7:43 pm
by cim
UK_Eliter wrote:
This is really good - and it is good it is configurable via the oxpconfig oxp. However, I couldn't work out how to do more than toggle boosting of particular types of ship, as against change how much their abilities were boosted by.
To change the amount they're boosted by independently of the general level, you'll need to edit the script itself.
UK_Eliter wrote:
Also: does 'boost aliens' really apply only to thargoids?
Those with primary role "thargoid" only.

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Tue Feb 05, 2013 7:47 pm
by Shipbuilder
I like the sound of this OXP.

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Tue Feb 05, 2013 8:13 pm
by UK_Eliter
cim wrote:
UK_Eliter wrote:
This is really good - and it is good it is configurable via the oxpconfig oxp. However, I couldn't work out how to do more than toggle boosting of particular types of ship, as against change how much their abilities were boosted by.
To change the amount they're boosted by independently of the general level, you'll need to edit the script itself.
UK_Eliter wrote:
Also: does 'boost aliens' really apply only to thargoids?
Those with primary role "thargoid" only.
Right. Ta muchly for the information.

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Wed Feb 06, 2013 4:39 pm
by CaptSolo
Well done, Cim. I like it with difficulty level set to maximum. Makes one think twice about visiting so called unstable worlds.

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Fri Feb 08, 2013 1:34 am
by CaptSolo
Cim, I have logged about 500 game hours since adding your excellent OXP and adjusting the difficulty level to maximum. NPC's really are skillful pilots with it. A few blasts of laser fire cause them to take evasive action. Sniping is much more difficult now. I was surprised to learn how adjusting the accuracy effected NPC's combat AI. Your OXP has made a big difference on how I play the game.

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Sat Feb 09, 2013 1:18 pm
by Disembodied
Likewise for me! It adds whole new layers to combat technique and tactics: you can really tell when you're up against a good opponent and I get a real sense of satisfaction when I finally nail a troublesome foe ...

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Sat Feb 09, 2013 11:50 pm
by Svengali
// drop the entire "sub-Harmless" end entirely, including for custom roles
Ouch. Does it mean that I have to check the settings of my own stuff now? :?

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Sun Feb 10, 2013 10:09 am
by cim
Svengali wrote:
Ouch. Does it mean that I have to check the settings of my own stuff now?
Maybe. In Oolite 1.76, the accuracy variable was randomly assigned between -5 and +10, but apart from a barely-noticeable effect on the range the ship opened fire at, this didn't do a lot. However, there was also a check on entityPersonality - those with an odd number for that got some bad AI, those with an even number got a slightly better AI (I think it was that way round, anyway)

In 1.77 entityPersonality is not used for that any more. Instead, the accuracy range -5 to -0 corresponds to the bad AI, and the range from 0 to 5 corresponds to the slightly better AI. The random assignment is now between -5 and +5.

So your ships should behave the same as they did in 1.76, on average, if you've made no custom accuracy settings. If you would like them to behave with better skill, then you should be setting better accuracy explicitly - which is possible now and just wasn't before. The Constrictor, for instance, always has an accuracy >= 0

[wiki]OXP_NPC_Combat_AI[/wiki] has more details of what the accuracy thresholds mean.

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Sun Feb 10, 2013 8:19 pm
by Svengali
cim wrote:
Maybe.
Hmm. Wouldn't it make more sense to leave custom roles untouched? In my eyes these entities shouldn't be touched at all if they don't state it explicitely. Using a 'include me' approach (e.g. via script_info key) means that these OXPs are prepared and (hopefully) tested to work with the mechanisms they are using...

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Sun Feb 10, 2013 8:34 pm
by cim
Svengali wrote:
cim wrote:
Maybe.
Hmm. Wouldn't it make more sense to leave custom roles untouched? In my eyes these entities shouldn't be touched at all if they don't state it explicitely. Using a 'include me' approach (e.g. via script_info key) means that these OXPs are prepared and (hopefully) tested to work with the mechanisms they are using...
Possibly. But the only change made to custom roles (and indeed non-custom roles not listed, such as "miner") is to increase their accuracy into the +0 to +4.99 range if it was previously negative. In 1.76, they would have had a 50% chance of having that set of AI behaviours anyway (with nothing you could do about it in script). All having this OXP installed does is increase that chance from 50% to 100% per ship (which may make certain fights marginally tougher, but people installing this OXP presumably want that)

And, looking at the 1.76 code, I was slightly incorrect above: anything non-missile with an accuracy < 1.0 (or missile with accuracy < 0.0) would have its accuracy increased to that level anyway. So the only thing an OXP-based negative accuracy setting in shipdata.plist would have done in 1.76 code is marginally worsened their aim (very marginally - I could never tell the difference in actual fights between -5 and +10, in 1.76)

I could introduce a script_info setting for those cases where it's important to the plot that a ship has an incompetent pilot, but that's a pretty rare case.

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Mon Feb 11, 2013 9:26 pm
by Switeck
How is Skilled NPCs related to whether NPCs have rear and side mounted Beam or Military Lasers?
...Or is there any correlation at all?

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Mon Feb 11, 2013 9:33 pm
by CaptSolo
Switeck wrote:
How is Skilled NPCs related to whether NPCs have rear and side mounted Beam or Military Lasers?
...Or is there any correlation at all?
If they have them they use them, and much more efficiently on a whole versus 1.76 behaviour.

Re: [RELEASE] Skilled NPCs (1.77 only)

Posted: Mon Feb 11, 2013 9:51 pm
by cim
It doesn't change weapon load at all, and it doesn't consider weapons when adjusting accuracy.