Convoy AI

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
johnsmith
Deadly
Deadly
Posts: 141
Joined: Fri Sep 22, 2006 10:32 am
Location: Teance
Contact:

Convoy AI

Post by johnsmith »

I'm trying to set up a convoy of fugitives. Using linerAI.plist
and linerescortAI.plist results in mayhem, with everyone trying to kill everyone else. If I remove the bounty from each ship, they seem to gather together, but if you attack them Oolite crashes. Any ideas?
User avatar
Uncle Reno
---- E L I T E ----
---- E L I T E ----
Posts: 648
Joined: Mon Apr 24, 2006 12:54 pm
Location: UK

Post by Uncle Reno »

Well, my first guess would be to look how the escorts determine their targets, perhaps that will point the way to why you get infighting.

What error message, if any, do you get before it crashes?
"Get back or I unleash my lethal spotted batoid!!"

What I do when not reading the Oolite bulletin board!
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

Are you calling the escorts as escorts in Shipdata? If so they go to escortAI even if you give them a different one. escortAI can switch to route1patrolAI, which has a ScanforOffenders in it. That would explain why they are attacking each other. Maybe spawn them together with an AddShipsWithinRadius using a custom role with script and have a scanforNearestShipwithRole : specialpirate (or whatever) and a setdesiredrange to in AI might keep 'em together.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
johnsmith
Deadly
Deadly
Posts: 141
Joined: Fri Sep 22, 2006 10:32 am
Location: Teance
Contact:

Post by johnsmith »

Thanks guys. Looks like I will have to develop my own custom AI for this then, will post results when I have them. This mission is top secret!
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

convoy

Post by Arexack_Heretic »

You may want to look in the scripters' cove,
I started on a convoyAI there (WIP).
They basically each scan for all ships with rank above them and follow the first found.
Riding the Rocket!
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:

Re: convoy

Post by Commander McLane »

Arexack_Heretic wrote:
You may want to look in the scripters' cove,
I started on a convoyAI there (WIP).
They basically each scan for all ships with rank above them and follow the first found.
@ johnsmith: A well-meant advice:
If you copy and use A_H's code, make sure you have eliminated the bugs in it. :wink:

@ A_H: Happy birthday, Arnoud! (I haven't forgotten you.) :D

And BTW, the convoyAI is not in the scripter's cove.
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Post by Arexack_Heretic »

yeah I really am a [edit: 30year-old] bug-lover. ;)

Not in there?
I'll have to put it there then....I thought I started out with convoys as an example project.
I'll have to exhume it, polish it some and then post it before JS does. ;)
Riding the Rocket!
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 »

Not quite, you started it with a sript that should disable legalStatus in anarchy systems, but restore it in lawfull systems as an example project, and no other examples were added later, apart from a few lines of code.
Post Reply