Proposed Change to Flee AI

General discussion for players of Oolite.

Moderators: winston, another_commander

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5394
Joined: Wed Feb 28, 2007 7:54 am

Re: Proposed Change to Flee AI

Post by another_commander » Tue Jul 17, 2018 5:25 am

gsagostinho wrote:
Tue Jul 17, 2018 1:20 am
@another_commander The behaviour of the AI seems better from what I can tell but I did have some crashes using this executable together with the latest nightly.
Are you on NVidia graphics? If yes, disable "Multi-threading Optimizations" in the NVidia control panel.

Edit: Alternatively, check whether your antivirus is interfering and maybe shutting down the game as a result of a false positive.

User avatar
gsagostinho
---- E L I T E ----
---- E L I T E ----
Posts: 558
Joined: Sun Jul 19, 2015 1:09 pm

Re: Proposed Change to Flee AI

Post by gsagostinho » Tue Jul 17, 2018 9:15 am

another_commander wrote:
gsagostinho wrote:
Tue Jul 17, 2018 1:20 am
@another_commander The behaviour of the AI seems better from what I can tell but I did have some crashes using this executable together with the latest nightly.
Are you on NVidia graphics? If yes, disable "Multi-threading Optimizations" in the NVidia control panel.

Edit: Alternatively, check whether your antivirus is interfering and maybe shutting down the game as a result of a false positive.
I am on NVIDIA indeed but the crashes are not happening during the launch, I actually can play the game. I had a couple of crashes when jumping to another system, for instance.

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5394
Joined: Wed Feb 28, 2007 7:54 am

Re: Proposed Change to Flee AI

Post by another_commander » Fri Jul 20, 2018 7:39 am

If there are no further comments on this, I am planning to commit it to the repository this evening.

I have made a small change to how the "OMG he's targeting me!!" response works. In the snippet posted at the start of the thread, the AI will try to jink even if the player is looking at it using rear view. I have changed this so that the AI's panic attack happens only if the player faces the AI ship on his front viewscreen. Normally, facing forward and targeting means intention to attack, while facing rear looking at the AI means we are running away from it, so no reason to panic under normal circumstances. Now, if you happen to have a rear laser and know how to use it... ;-)

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13567
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Proposed Change to Flee AI

Post by Cody » Fri Jul 20, 2018 8:02 am

another_commander wrote:
Fri Jul 20, 2018 7:39 am
Now, if you happen to have a rear laser and know how to use it...
Yeah... turkey shoot!

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

Re: Proposed Change to Flee AI

Post by Switeck » Thu Jul 26, 2018 10:47 am

I used performTumble in Switeck's Shipping OXP a few years ago:
http://aegidian.org/bb/viewtopic.php?f= ... 44#p172044

For instance, in the pirateAI.plist file's FLEE section:

Code: Select all

		"ENERGY_LOW" = ("rollD: 5");
		ATTACKED = (setTargetToPrimaryAggressor, "rollD: 2");
		"ROLL_1" = (performTumble, "setSpeedFactorTo: 7.0", "setDesiredRangeTo: 27000", performFlee, "pauseAI: 2.0");

Rustem
Deadly
Deadly
Posts: 166
Joined: Mon May 25, 2015 5:23 pm
Location: Russia

Re: Proposed Change to Flee AI

Post by Rustem » Sat Nov 17, 2018 3:33 pm

Checked on the Anaconda. It has an aft laser.
But when he switches to flee, he does not use the aft laser for protect. Only flee.

Sometimes may setup an use aft laser on the ships in flee state? For example, for accuracy >= 4.5.

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5394
Joined: Wed Feb 28, 2007 7:54 am

Re: Proposed Change to Flee AI

Post by another_commander » Sat Nov 17, 2018 4:39 pm

I checked briefly with 1.86 and it looks like it was the same there. Anacondas in flee state did not use their aft lasers, they were just running away. Your idea is very worthy of exploring further, though. Although it would look weird for a trader begging for mercy to fire back with their aft laser, it should not be excluded as a possibility of a panicked reaction.

Post Reply