Author Topic: Ordering commands to AI  (Read 6429 times)

0 Members and 1 Guest are viewing this topic.

Offline potterman28wxcv

  • 27
  • Just a fan player
Ordering commands to AI
Let's suppose you have two AI wings Alpha and Beta (8 fighters in total), and you are Gamma 1 (so you are the 9th).
8 AI enemy fighters arrive, having the same fighters and weapons as Alpha and Beta.
You cannot directly participate in the battle, all you can do is giving orders, but you want to make sure your side wins.

Which orders would give to your mates to increase the maximum your chances to win the battle ?

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Ordering commands to AI
Order by wing and target one ship per wing at a time.

(Alpha wing attack enemy Alpha 1, Beta wing attack enemy Beta 1, after destruction, attack 2, then 3, then 4).

You may even experience no losses.

At least in my experience.

 

Offline Kie99

  • 211
Re: Ordering commands to AI
I've always thought the one obvious thing the Comms. menu lacked was an "attack wing" order.
"You shot me in the bollocks, Tim"
"Like I said, no hard feelings"

 

Offline Mars

  • I have no originality
  • 211
  • Attempting unreasonable levels of reasonable
Re: Ordering commands to AI
I'd have killed for an "Attack squadron" since FS1, nothing came close to that until BP WiH Act III

 
Re: Ordering commands to AI
I've often wished for more tailored, strategic AI commands, on the 'work on this objective' level. The normal way is a bit too micromanagey to really work in a hectic combat game, IMO.
The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell.

 

Offline NGTM-1R

  • I reject your reality and substitute my own
  • 213
  • Syndral Active. 0410.
Re: Ordering commands to AI
The only mission I ever felt I was effectively managing my wingmates was Good Luck, and that was because I was Ursaing along so I had plenty of time just flying to the target to direct them onto individual Shivan fighters.
"Load sabot. Target Zaku, direct front!"

A Feddie Story

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Ordering commands to AI
I've often wished for more tailored, strategic AI commands, on the 'work on this objective' level. The normal way is a bit too micromanagey to really work in a hectic combat game, IMO.

You can ~do this but it requires a lot of work by the mission designer.

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Re: Ordering commands to AI
Assign the hostile wing to a hotkey. With the hostile wing selected from the hotkey, order your wing to attack.

They'll first attack the craft you have targeted, and then go on to attack the other craft in the wing. I think they prioritize the wing leader or whoever is attacking themselves.
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline potterman28wxcv

  • 27
  • Just a fan player
Re: Ordering commands to AI
Assign the hostile wing to a hotkey. With the hostile wing selected from the hotkey, order your wing to attack.

They'll first attack the craft you have targeted, and then go on to attack the other craft in the wing. I think they prioritize the wing leader or whoever is attacking themselves.
I didn't know about that. I thought that after having destroyed their target, they would enter in the "Engage everything" state, not particularly the wing you had selected.

Order by wing and target one ship per wing at a time.

(Alpha wing attack enemy Alpha 1, Beta wing attack enemy Beta 1, after destruction, attack 2, then 3, then 4).

You may even experience no losses.

At least in my experience.
That's interesting, I will have to test it out. I have never really tried the C-3-1 or similar stuff, because I would see this as being very risky (while your wingmen focus on one target, they would be vulnerable to the rest of the enemy wing.)

Recently, after having read an old 2009 post called "Advanced Dogfighting" (the part where he says that flying in pair is best), I have tried the following :
Beta 1 guards Alpha 1
Beta 2 guards Alpha 2
Beta 3 guards Alpha 3
Beta 4 guards Alpha 4

Then Alpha wing : engage enemy

I tried it in the Hammer and Anvil from FSport, it worked well on insane (I think I lost less team mates than if I was doing plain C-3-9).

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Ordering commands to AI
It can be risky, yes, but if timed right, you have 4 fighters on 1 = quick (instant?) win, so, by the time your fighters start taking serious damage, the enemy wing is gone.

Difficulty level would affect that, but I'm not sure which way (for or against).

 

Offline potterman28wxcv

  • 27
  • Just a fan player
Re: Ordering commands to AI
I've been playing a bit with commands, and I've noticed a weird behaviour.

If you order Beta 2 to protect Alpha 2 for example, he won't protect Alpha 2 but Alpha 1. Even though he has the state "Guard Alpha 2", he will actually guard alpha 1, not alpha 2.

Though, if you order Alpha 4 to protect Alpha 2, Alpha 4 will actually protect Alpha 2, not Alpha 1.

Also, it seems that Alpha 3 cannot protect Alpha 2 : it seems to be impossible to order that command (it is greyed). But Alpha 3 can be ordered to protect another ship (Beta 1, Beta 2..).
EDIT : with 3 fighters in a wing, it seems that fighter n cannot be ordered  to protect fighter n-1. Though, if ordered via the Wing command (instead of individually), it can be ordered to protect the fighter.

Not sure if this bug belongs to FSO in general, or just in FSport, or maybe it's something written in the scripts that make this happening
« Last Edit: April 15, 2015, 03:33:06 pm by potterman28wxcv »

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Ordering commands to AI
I've been playing a bit with commands, and I've noticed a weird behaviour.

If you order Beta 2 to protect Alpha 2 for example, he won't protect Alpha 2 but Alpha 1. Even though he has the state "Guard Alpha 2", he will actually guard alpha 1, not alpha 2.

Though, if you order Alpha 4 to protect Alpha 2, Alpha 4 will actually protect Alpha 2, not Alpha 1.

Also, it seems that Alpha 3 cannot protect Alpha 2 : it seems to be impossible to order that command (it is greyed). But Alpha 3 can be ordered to protect another ship (Beta 1, Beta 2..).
EDIT : with 3 fighters in a wing, it seems that fighter n cannot be ordered  to protect fighter n-1. Though, if ordered via the Wing command (instead of individually), it can be ordered to protect the fighter.

Not sure if this bug belongs to FSO in general, or just in FSport, or maybe it's something written in the scripts that make this happening
I'm not sure why the order is grayed out; could you upload a test mission in which you can reproduce this behavior reliably?

As for ordering fighters in one wing to guard fighters in another wing, this will cause the AI to guard that wing as a whole unless the AI profiles flag "$ai guards specific ship in wing:" is set (which currently doesn't have an entry on the wiki... I'll try to fix that rather than leaving it for somebody else to do).

EDIT: And done.
« Last Edit: April 15, 2015, 08:20:08 pm by AdmiralRalwood »
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 
Re: Ordering commands to AI
Which orders would give to your mates to increase the maximum your chances to win the battle ?

C-3-0. Wait, I meant C-3-9! C-3-9!!!! No, No! NO!!! :banghead:  :mad: :hopping:

 

Offline potterman28wxcv

  • 27
  • Just a fan player
Re: Ordering commands to AI
Which orders would give to your mates to increase the maximum your chances to win the battle ?
C-3-0. Wait, I meant C-3-9! C-3-9!!!! No, No! NO!!! :banghead:  :mad: :hopping:
C-3-9. What ? Why are they all gone ? Did I... Oh no.

I've been playing a bit with commands, and I've noticed a weird behaviour.

If you order Beta 2 to protect Alpha 2 for example, he won't protect Alpha 2 but Alpha 1. Even though he has the state "Guard Alpha 2", he will actually guard alpha 1, not alpha 2.

Though, if you order Alpha 4 to protect Alpha 2, Alpha 4 will actually protect Alpha 2, not Alpha 1.

Also, it seems that Alpha 3 cannot protect Alpha 2 : it seems to be impossible to order that command (it is greyed). But Alpha 3 can be ordered to protect another ship (Beta 1, Beta 2..).
EDIT : with 3 fighters in a wing, it seems that fighter n cannot be ordered  to protect fighter n-1. Though, if ordered via the Wing command (instead of individually), it can be ordered to protect the fighter.

Not sure if this bug belongs to FSO in general, or just in FSport, or maybe it's something written in the scripts that make this happening
I'm not sure why the order is grayed out; could you upload a test mission in which you can reproduce this behavior reliably?
Sure, I will upload tonight a mission where it occurs (and check again that it actually occurs)

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Ordering commands to AI
So it turns out that the comm menu was comparing an object number to an instance number to see if you were trying to order a ship to do something to itself. This is obviously doomed to failure, although it rarely matters given the rarity of the circumstances.

Fixed in r11305.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Ordering commands to AI
How long has it been doing that?

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Ordering commands to AI
How long has it been doing that?
It's :v:-original code.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Ordering commands to AI
Sweet.  :yes:

  

Offline qwadtep

  • 28
Re: Ordering commands to AI
So it turns out that the comm menu was comparing an object number to an instance number to see if you were trying to order a ship to do something to itself. This is obviously doomed to failure, although it rarely matters given the rarity of the circumstances.

Fixed in r11305.
I'm kind of curious what such rare circumstances would be. Sathanas, stop hitting yourself! Sathanas, stop hitting yourself!

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Ordering commands to AI
I'm kind of curious what such rare circumstances would be.
Pretty much just the kind pointed out by potterman28wxcv: wingmate randomly refusing to guard another because the latter's objnum happened to match former's instance number.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.