SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
03-20-23, 08:27 AM | #1 |
Soundman
|
(The following notes are based entirely on in-game testing of DC only).
The AI is hard-coded (HC) and varies by country and unit type (see DC's AI folder). This is the primary AI used by the sim. Rules of Engagement (ROE) statements can be added to modify HC behavior. There are two ways that ROE is added: (1) While the game is running via the sliding panel menu or (2) Directly to the scenario script (SDF). Some ROE statements can override HC behavior. For example the ATTACK ROE statement can be added to force specific units to attack certain others. However, most ROE "MAY" only have an effect depending on the game situation. Unit AI is strongly influenced by its environment through sensors (visual, radar, sonar, ESM etc). This get complicated very quickly when you consider that each unit type has it's own sensors that come on-line on different dates . (see UDF files) I set up a quick simple Destroyer vs. U-boat test scenario sdf . I suggest setting all visibility Options "on" to watch what happens Description: May 1943. Clear. An Amer. At start the player's destroyer (NDDFletcher) and a Ger. U-boat (NSSUBoat7C) are on opposite courses roughly 5000 yards apart. The U-boat is initially on the surface and immediately spots the player's destroyer and submerges to periscope depth and salvos its torps . Avoid the U-boat's torps, and try to ram the U-boat. The U-boat will spot the player's destroyer at ~ 400 yards and start diving . (Obviously, it would be better if the U-boat picked up the DD sooner) You may be able to ram the sub before it gets deep enough and cause minor damages but either way it continues going deeper and slinks away. Most of this AI behavior is HC but I also added a ROE (ROE,DESTROYER,EVADE,STEALTHY,BEST,FULL ) that can be experimented with by commenting it out with a ";" before the line. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;; ;; SIMPLE TEST: DESTROYER VS SUB ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;; [SCENARIO] Date = 19430515 Time = 1200 TitleEnglish = Training 5 Simple Test Anti-Submarine_Moving&Evading Origin = -10.000000, 62.000000 InitialZoom = 7 Weather = CLEAR Preprocess = FALSE ;;; Objectives ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Bases ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Radio Messages ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Multi ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Mutex ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Sides ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [SIDE1] Alignment = ALLIES Name = Allies Doctrine = AMERICAN [SIDE2] Alignment = AXIS Name = Axis Doctrine = German ;;; Groups ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [GROUP1] Commander = HUMAN Type = SHIPSQUADRON UnitType = Destroyer Side = 1 Name = DD76 Nationality = American WayptDisplay = DO_NOT_SHOW [GROUP1.1] Commander = HUMAN Type = SHIPDIVISION UnitType = Destroyer Side = 1 Name = DD76 Nationality = American WayptDisplay = DO_NOT_SHOW [GROUP2] Type = SHIPDIVISION UnitType = submarine Side = 2 Name = U-123 Nationality = German WayptDisplay = DO_NOT_SHOW Order1.1 = Speed,Telegraph,FULL,-1,-1 Order1.2 = ROE,DESTROYER,EVADE,STEALTHY,BEST,FULL ;;; Units ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [UNIT1] Group = 1.1 TypeAbrev = DD Class = NDDFletcher Name = DD79 Designation = 79 Control = HUMAN Flag = TRUE Guide = TRUE Location = -10.000000, 62.000000 Orientation = 90 BoilersHot = TRUE IconName = NSHIP [UNIT2] Group = 2 TypeAbrev = SS Class = NSSUBoat7C ;Class = NSSUboat9C40 Name = U-123 Flag = TRUE Guide = TRUE Location = -9.900000, 62.000000 Orientation = 270 Depth = 0 ;Depth =100 BoilersHot = TRUE IconName = SUBMARINE ############## Link to file Dropbox https://www.dropbox.com/s/86z3eanszq...ssion.zip?dl=0 Last edited by Vox165; 03-21-23 at 01:46 PM. |
Thread Tools | |
Display Modes | |
|
|