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?
Convoy AI
Moderators: winston, another_commander
- Uncle Reno
- ---- E L I T E ----
- Posts: 648
- Joined: Mon Apr 24, 2006 12:54 pm
- Location: UK
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?
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!
What I do when not reading the Oolite bulletin board!
- LittleBear
- ---- E L I T E ----
- Posts: 2880
- Joined: Tue Apr 04, 2006 7:02 pm
- Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.
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.
- Arexack_Heretic
- 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
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.
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!
- Commander McLane
- ---- 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
@ johnsmith: A well-meant advice: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.
If you copy and use A_H's code, make sure you have eliminated the bugs in it.
@ A_H: Happy birthday, Arnoud! (I haven't forgotten you.)
And BTW, the convoyAI is not in the scripter's cove.
- Arexack_Heretic
- 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:
- Commander McLane
- ---- 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:
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.