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: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Proposed Change to Flee AI

Post by another_commander »

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: 573
Joined: Sun Jul 19, 2015 1:09 pm

Re: Proposed Change to Flee AI

Post by gsagostinho »

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: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Proposed Change to Flee AI

Post by another_commander »

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: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Proposed Change to Flee AI

Post by Cody »

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!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Re: Proposed Change to Flee AI

Post by Switeck »

I used performTumble in Switeck's Shipping OXP a few years ago:
https://bb.oolite.space/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: 170
Joined: Mon May 25, 2015 5:23 pm
Location: Russia

Re: Proposed Change to Flee AI

Post by Rustem »

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: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Proposed Change to Flee AI

Post by another_commander »

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