Page 2 of 2

Re: Proposed Change to Flee AI

Posted: Tue Jul 17, 2018 5:25 am
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.

Re: Proposed Change to Flee AI

Posted: Tue Jul 17, 2018 9:15 am
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.

Re: Proposed Change to Flee AI

Posted: Fri Jul 20, 2018 7:39 am
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... ;-)

Re: Proposed Change to Flee AI

Posted: Fri Jul 20, 2018 8:02 am
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!

Re: Proposed Change to Flee AI

Posted: Thu Jul 26, 2018 10:47 am
by Switeck
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");

Re: Proposed Change to Flee AI

Posted: Sat Nov 17, 2018 3:33 pm
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.

Re: Proposed Change to Flee AI

Posted: Sat Nov 17, 2018 4:39 pm
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.