| Author |
need help with ATTACK and ROE orders |
klh
Joined: Mar 07, 2002 Posts: 115 From: Wirral, UK
| Posted: 2003-02-06 06:39  
I am trying to write a scenario which includes some German bombers to help with the attack against a battleship.
I have tried various methods to ensure that the bombers engage the correct unit, but it seems that they pick a target more or less randomly each time. Sometimes they bomb the correct target (Unit2 in this case) and other times they veer off and choose a different target (even with the same order set). I have written waypoints directly to the target, and included ATTACK or ROE orders such as...
Order6.1=ROE,2,Unlimited,Destroy,Best,Permission
Order6.1=ROE,Target=2,Unlimited,Destroy,Best,Full
Order6.1=ROE,2,Unlimited,Destroy,Best,None
Order6.1=ROE,2,Unlimited,Hit_and_Run,Best,None
Order6.1=ROE,Target=2,Unlimited,Destroy,Best,Full
Order6.1=ROE,2
Order6.1=Attack,2,Bombs,UNIT
Order6.1=Attack,2
Order6.1=BombHigh,2,Bombs,UNIT
Order6.1=BombHigh,2
I'm been guessing that the initiative (Full/None/Permission) has something to do with it, but I can't seem to figure it out. Can anybody clue me in on how you specify a target? Many thanks,
_________________ Kapitänleutnant Hähl
 
|
Mecklor
Joined: Jan 29, 2003 Posts: 137 From: Somewhere in Georgia
| Posted: 2003-02-06 09:32  
Cant help you much, but when you do finalize the mission, I would to play it.
There is just nothing better than playing a "hand written" mission to me!
~Meck
_________________ ~I am crazy and have the papers to prove it! If only I could find them now......
 
|
Jester107th
Joined: Feb 28, 2002 Posts: 873 From: Jacksonville, FL
| Posted: 2003-02-06 12:01  
Try this:
Order6.1=ROE,Capital,Unlimited,Destroy,Cruising,Full,-1,-1
_________________ Jim Nowak
<img src= "http://www.lima1.co.uk/Sharkey/jester.gif">
 
|
klh
Joined: Mar 07, 2002 Posts: 115 From: Wirral, UK
| Posted: 2003-02-06 21:24  
Quote:
|
On 2003-02-06 12:01, Jester107th wrote:
Try this:
Order6.1=ROE,Capital,Unlimited,Destroy,Cruising,Full,-1,-1
|
|
Thanks for the advice. I tried inserting your suggestion into the orders and ran the scenario several times. Sometimes the bombers attack the BB, sometimes they choose a DD instead, and sometimes they just fly around for a while then leave. Actually, it doesn't seem like the ROE or attack orders do much of anything to the bombers' behaviour. They seem to pick their targets at random along their waypoints. Oh well, at least there's some realism in that real bombers didn't always attack their intended target.
Any clues on what exactly the targeting, engagement, and initiative parameters actually do in the sim would be greatly appreciated.
Order#.#=ROE,targeting,engagement,objective,movement,initiative
Also, according to roe.dsf, one of the targeting options is "specific". Some of the stock .sdf files (training1 for example) indicate that the syntax for this option is TARGET=xxx. Am I right in assuming that xxx is the unit number? Can anyone give me an example of this working so I can test it? When I try it, the AI still seems to choose a target more or less randomly.
Thanks again for all the brilliant help!
_________________ Kapitänleutnant Hähl
 
|
klh
Joined: Mar 07, 2002 Posts: 115 From: Wirral, UK
| Posted: 2003-02-10 16:23  
I'm still looking for a working example of specifying a target in an ROE. Does anyone know of an sdf file I could look at that contains...
Order#.#=ROE,Target=xxx,engagement,objective,movement,initiative
Also, I still don't understand what the other parameters, especially the initiative parameter (Full, None, Permission) do to the AI. I was hoping that I could somehow use this parameter to tell my attacking bombers to only attack a specific unit, but they still seem to get distracted by other targets on the way in.
Thanks,
_________________
Kapitänleutnant Hähl
[ This Message was edited by: klh on 2003-02-10 16:29 ]
 
|
klh
Joined: Mar 07, 2002 Posts: 115 From: Wirral, UK
| Posted: 2003-02-11 06:47  
Did some more testing last night, and still couldn't get a bomber to stick to its assigned target. It seems that it just picks a target randomly.
My testing scenario has my sub set as a neutral. But every so often, I get attacked by one or the other side. Is target misidentification built into the sim? At first I thought I was doing something wrong, but maybe this is a realism feature?
Here's my sdf - this version was trying to force the bomber to attack the middle DD. I ran this one several times, and the bomber seems to pick its target randomly between the three DDs and my neutral SS!
;; Scenario created for testing scripts
[SCENARIO]
TitleEnglish=Testing
TitleGerman=Testing
Type=SINGLE
Weather=CLEAR
Map=W020N90
Origin=-56.25,34.25
Date=19440701
Time=800
InitialZoom=10
InvertColors=False
;; Sides
[SIDE1]
Alignment=Axis
Doctrine=GERMAN
Name=Axis
[SIDE2]
Alignment=Allies
Doctrine=AMERICAN
Name=Allies
[SIDE3]
Alignment=Neutral
Doctrine=German
Name=Observer
;; Groups
[GROUP1]
Name=Destroyer
Commander=AI
Type=SHIPSQUADRON
UnitType=Destroyer
Nationality=Britian
Side=2
Order1.1=Speed,exact,0,-1,-1
Order1.2=ROE,Aircraft,Limited,Destroy,Evade,Full
[GROUP2]
Name=U-Boat
Commander=HUMAN
Type=SHIPSQUADRON
UnitType=Submarine
Nationality=Germany
Side=3
[GROUP3]
Name=Incoming Bomber
Commander=AI
Type=AIRWING
UnitType=Bomber
Nationality=Germany
Side=1
EntryTime=802
EntryDate=19440701
EntryInterval=9930
Order1.1=ROE,target=1,Unlimited,Destroy,Cruise,None,-1,-1
Order1.2=WayPt2,-56.01,34.1-1,-1
Order2.1=WayPt2,-56.02,34.05,-1,-1
Order3.1=WayPt2,-55.99,34.00,-1,-1
Order4.1=WayPt2,-55,34,-1,-1
;; Units
[UNIT1]
Orientation=0
Group=1
Name=DD1
Control=AI
Class=NDDFletcher
Designation=1
TypeAbrev=DD
Location=-56.0,33.99
[UNIT2]
Orientation=0
Group=2
Name=Das Boot
Control=HUMAN
Class=NSSUboat7C
Designation=Me
TypeAbrev=SS
Location=-56.0,33.97
Depth=0
[UNIT3]
Altitude=1200
Throttle=0.8
IconName=AirCRAFT2
Orientation=180
Group=3
Name=Bomber
Control=AI
Class=ACFockewulf
TypeAbrev=HB
Location=-56.01,34.15
[UNIT4]
Orientation=0
Group=1
Name=DD2
Designation=2
Control=AI
Class=NDDFletcher
Designation=LP
TypeAbrev=DD
Location=-56.01,33.995
[UNIT5]
Orientation=0
Group=1
Name=DD3
Designation=3
Control=AI
Class=NDDFletcher
Designation=LP
TypeAbrev=DD
Location=-55.99,33.995
_________________ Kapitänleutnant Hähl
 
|
klh
Joined: Mar 07, 2002 Posts: 115 From: Wirral, UK
| Posted: 2003-02-13 11:10  
I still haven't figured out how to force a bomber to attack a specific unit, but I did get to watch one of my DD's shoot down the bomer. It was almost as good as a flight sim as he spiraled down trailing smoke and hit the water hard! The DD's were scripted to attack the bomber, so that seems to work.
Another interesting note from testing - I put a LoopPatrol in the bomber's orders thinking this would make it circle around for another pass, but instead, it just flies off the map (when it doesn't get shot). What gives?
So does anyone have other ideas on how to script a unit-targeted attack with a bomber?
Am I right in assuming that not all units/group types can use all types of orders? For example, can an Airwing not use a LoopPatrol order?
_________________ Kapitänleutnant Hähl
 
|
Col7777
Joined: Jan 25, 2003 Posts: 98 From: Manchester UK
| Posted: 2003-02-13 11:42  
klh,
Have you tried using the BASES so you can have multiple attacks, you can have more than one base set up like below, look in some of the SDF files, I copied this one from the Gauntlet mission.
[BASE1]
Alignment = ALLIES
Location = -5.415229,36.099415
AirRadius = 800000.000000
AirProbability = 0.050000
Timer = 6.000000
Group = 5
 
|
klh
Joined: Mar 07, 2002 Posts: 115 From: Wirral, UK
| Posted: 2003-02-13 13:33  
Quote:
|
On 2003-02-13 11:42, Col7777 wrote:
klh,
Have you tried using the BASES so you can have multiple attacks
|
|
Thanks Col7777. Yes, I have used bases successfully to generate attacks. The LoopPatrol issue I mentioned was just something I noticed, and not really critical to my mission design. I thought if I looped the bomber around the target, it might make multiple attacks.
What I'm trying to do is script a scheduled attack by German bombers on a specific British battleship. Instead, the bombers fly in and usually attack other ships instead of the intended target.
_________________ Kapitänleutnant Hähl
 
|
sergbuto
Joined: Nov 18, 2002 Posts: 111 From: Sweden
| Posted: 2003-02-13 14:06  
klh,
I see that you are using high-level bombers. Have you tried to use dive bombers in groups of six planes or so?
I have never checked whether the altitude value is important but I have seen Ju-87s often attacking two times at relatively low altitude of 200m.
_________________ http://w1.182.telia.com/~u18216264/
 
|
klh
Joined: Mar 07, 2002 Posts: 115 From: Wirral, UK
| Posted: 2003-02-13 17:09  
Quote:
|
On 2003-02-13 14:06, sergbuto wrote:
klh,
I see that you are using high-level bombers. Have you tried to use dive bombers in groups of six planes or so?
|
|
Yes, I have done exactly that. I have tested larger groups of planes, but only posted one in my example. The Ju87s at low altitude do the same thing. Sometimes they attack their assigned target, and other times they go off and bomb a DD or merchant instead. To be honest, if I were given the choice, I probably would too.
It just struck me, what will happen if I call my bomber group a Shipsquadron or Shipdivision instead of an Airwing? Or maybe call the UnitType Destroyer instead of Bomber? Back to the test file...
_________________ Kapitänleutnant Hähl
 
|
Mark K
Joined: Feb 27, 2002 Posts: 474 From: Petaluma, California
| Posted: 2003-02-13 21:37  
Order6.1=ROE,Capital,Unlimited,Destroy,Cruising,Full,-1,-1
The "capital" line determines targeting preference. However, it's not always a sure thing. Planes might attack escorts or merchants instead of capital ships, or vice versa.
If there's only one type of target around, then it will probably get attacked no matter what.
thanks,
Mark Kundinger
(Ultimation)
 
|
Neal Stevens
Joined: May 06, 2006 Posts: 0 From: Houston, Texas
| Posted: 2003-02-13 23:19  
I learned the hard way that the orders do not completely control the units. If it appears something you are trying isn't working, don't kill yourself over it, just move on.
In one scenario I was going to have an AI u-boat on the eastern US coast follow a convoy east, while the player left France to intercept. I plopped down a nice little convoy, plotted some zig-zag waypoints across the Atlantic, and set the speed to 10 knots. Next I dropped an AI U-boat 30 miles behind, then copied all the waypoints so it would actually follow the same course as the convoy, in effect, shadowing it. I also timed some radio messages to simulate his reports.
Forget it!! For some reason, and no one could tell me why, the U-boat would follow a couple waypoints then sky out to Greenland!! It would NOT follow all it's waypoints. I spent three days trying to figure it out.
 
|
Col7777
Joined: Jan 25, 2003 Posts: 98 From: Manchester UK
| Posted: 2003-02-14 02:13  
klh,
I don't know the storyline behind your mission, but it's obvious you want the battleship to be attacked rather than the escorts.
So in your mission do you want the battleship destroyed solely by the aircraft or do you want it damaged enough so you can go in for the kill?
If it's the later then you could add this line to the battleship 'unit' Damage = 0.2
you can increase this number but be careful or she may sink before you get chance to finish the job yourself.
 
|
klh
Joined: Mar 07, 2002 Posts: 115 From: Wirral, UK
| Posted: 2003-02-14 06:58  
Mark, Neal, and Colin,
Thanks for the comments back. At least now I know that I'm not scripting it wrong. It's ironic that we've all been wanting a "dynamic" game that isn't predictable, but now, when I get a little random behaviour, I complain. Actually it's quite impressive that the AI doesn't follow the script exactly every time.
I'll take your advice and just leave this problem and finish up the final touches on the mission. Colin is right in that I was trying to get some bombers to attack a battleship in port, and then have my sub waiting to finish it off. That's why I wanted to specify a target, and why I've been trying to figure a good way to have a ship at rest start moving out after it is attacked later in the mission.
Here's a draft of the mission briefing if you're interested...
YELLOW SUBMARINE
3 April, 1941
To Commander U-113,
The admiralty is impressed with your successful deployment of a new type IX boat. Instead of continuing your Irish sea patrol, you have a new and dangerous mission to complete prior to returning home.
A new British battleship of the 36,000 ton King George V class, HMS Prince of Wales, was launched from Camell Laird shipyards in Birkenhead, England on 31 March. Our intelligence indicates she will leave Liverpool for sea trials in the near future.
You are to proceed at best speed without detection to the mouth of the River Mersey, grid AM93, and lie in wait for the battleship. (Note - to the best of my knowledge, no uboat successfully entered Liverpool bay - maybe later I can add some sub nets to this mission) Your first priority is to attack and sink the HMS Prince of Wales. Be warned that she will be carefully guarded. You may attack other enemy targets at your discretion before returning to your base at Lorient.
PATROL DETAILS
Your primary objectives:
- Reach the mouth of the River Mersey safely
- Sink the battleship HMS Prince of Wales
Secondary objectives:
- Sink at least 10,000 tons of British shipping
- Return to your base at Lorient
Area: Irish Sea
Grid: AM93
Time Frame: 1 to 2 Weeks
Weather: Partial
Sea Conditions: Moderate
Good Luck Commander
HISTORY
This mission is ficticious, but the early destruction of the HMS Prince of Wales may have significantly changed history. She served for less than a year, but she played a key role in the naval history of WWII. At 36,203 tons, 745 feet long, and with a top speed of 28 knots, she was one of the largest and most modern ships of the Royal Navy.
Even before she was fully fitted out, she scored hits in the battle with the Bismark on 24 May, 1941. She carried the Prime Minister, Winston Churchill, to the meeting with U.S. President Roosevelt in August, 1941 which increased American involvement and potentially changed the war for Europe. (note - I am also working on a ficticious intercept mission) She was subsequently deployed to the south Pacific, where she was sunk by the Japanese on 10 December, 1941.
_________________ Kapitänleutnant Hähl
 
|
|