How does AI work in Oolite?

General discussion for players of Oolite.

Moderators: winston, another_commander

User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Commander McLane wrote:
The AI-message is actually called "ODDS_BAD", and you are right, if the odds are calculated as bad, the pirate won't attack. Instead he will simply reach the "UPDATE"-message and begin another scan.
And this is one of the weaknesses of the current pirate scan. Odds are only calculated based on counts of both parties. And to add a random element, a random number is added to both sides before doing the comparison. This random number will make that in the end a solitary pirate will find an "ODDS_EVEN". Maybe the "ODDS_BAD" should be used to add a long pause before a next scan?
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Post by Switeck »

Smivs wrote:
From the Pirate AI
...suggesting that the pirates will weigh up the odds before attacking. There is not an "Odds_Poor", so presumably this defaults to a 'Don't attack'.
"ODDS_BAD" should default to "flee" for pirates. Being badly outgunned and likely to be shot at just because they're a pirate = certain death. And by flee, I mean even use witchfuel injectors at the start.

Were it possible, could the pirates instead declare themselves as "escorts" and seek out a pirate "mothership", such as a Python or even a Cobra 3 to build their limited force around?
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Switeck wrote:
Were it possible, could the pirates instead declare themselves as "escorts" and seek out a pirate "mothership", such as a Python or even a Cobra 3 to build their limited force around?
Pirates already form ship groups (they are called "wolf packs" in this case), which basically behave like mothers and escorts, with the only difference that there is no mother defined, but an attack on any one of them triggers a response of them all. On top of that pirate Pythons usually do have escorts, which of course will behave exactly like escorts.
Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 2411
Joined: Mon May 31, 2010 11:11 pm

Post by Switeck »

I meant lone pirates...flee till they can find friends.
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

Post by Cmdr Wyvern »

A part of the AI directs pirates to convene at a "loitering area", so it's not too uncommon to find large groups of retrobates hanging around waiting to spring an ambush.
When such a "loitering area" is encountered with a big gathering of pirates, expect a hairy furball indeed - the odds are definitely looking in their favor.
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
Post Reply