Author Topic: Why does the AI always want to take formation?  (Read 2175 times)

0 Members and 1 Guest are viewing this topic.

Offline SF-Junky

  • 29
  • Bread can mold, what can you do?
Why does the AI always want to take formation?
If you have a group of ships forming a wing and you give more than one of these ships a single order to fly to a waypoint, all ships that are given the order are forming up, flying into the same direction, even if their destinations lie in opposite directions.

1) Why is this the case?
2) Is there anything to do against that? Because I have a group of convoy ships and I'd like to fly in a single line and head for different waypoints. I tried to help me out by using the waypoints-once SEXP, but it doesn't work. They're still taking their blasted formation around the wing leader. ;)

 

Offline Lepanto

  • 210
  • Believes in Truth
    • Skype
Re: Why does the AI always want to take formation?
I don't know the details of the AI code, but it makes sense that ships in a wing would move as a unit for navigation purposes; after all, ships in a wing will be moving and acting together in almost all circumstances.

I think you'll have to dissolve the wing into single ships.
"We have now reached the point where every goon with a grievance, every bitter bigot, merely has to place the prefix, 'I know this is not politically correct, but...' in front of the usual string of insults in order to be not just safe from criticism, but actually a card, a lad, even a hero. Conversely, to talk about poverty and inequality, to draw attention to the reality that discrimination and injustice are still facts of life, is to commit the sin of political correctness. Anti-PC has become the latest cover for creeps. It is a godsend for every curmudgeon and crank, from fascists to the merely smug."
Finian O'Toole, The Irish Times, 5 May 1994

Blue Planet: The Battle Captains: Missions starring the Admirals of BP: WiH
Frontlines 2334+2335: T-V War campaign
GVB Ammit: Vasudan strike bomber
Player-Controlled Capship Modding Tutorial

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: Why does the AI always want to take formation?
If you give each ship it's own waypoints once order towards its own, separate waypoint, the wing formation shouldn't occur. Are you sure that each ship has its own waypoint?
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline SF-Junky

  • 29
  • Bread can mold, what can you do?
Re: Why does the AI always want to take formation?
If you give each ship it's own waypoints once order towards its own, separate waypoint, the wing formation shouldn't occur. Are you sure that each ship has its own waypoint?
Yes, of course. I wrote that:
Quote
If you have a group of ships forming a wing and you give more than one of these ships a single order to fly to a waypoint, all ships that are given the order are forming up, flying into the same direction, even if their destinations lie in opposite directions.
;)

Well, I guess I'll just have to live with it.

  
Re: Why does the AI always want to take formation?
I just remembered that I fixed a similar problem some time ago (see this http://scp.indiegames.us/mantis/view.php?id=1496). I'm pretty sure this should fix any formation problems where ships have conflicting waypoint orders. Maybe you can try to use this flag.
« Last Edit: June 05, 2014, 02:03:06 pm by Admiral MS »
Here goes scripting and copy paste coding
Freespace RTS Mod
Checkpoint/Shipsaveload script