Results 1 to 3 of 3

Thread: Bizarre behavior/bug of the day: Two "LANDING" in a row make Stuka/JU-87 drop bombs

  1. #1
    Ace
    Join Date
    May 2015
    Location
    Kansas City, Missouri area
    Posts
    515
    Post Thanks / Like
    Total Downloaded
    130.02 MB

    Bizarre behavior/bug of the day: Two "LANDING" in a row make Stuka/JU-87 drop bombs

    OK, here is your bizarre AI behavior of the day:

    In this mission file, the JU-87s will immediately drop their bombs upon spawning in:

    Code:
    [PARTS]
      core.100
      bob.100
      tobruk.100
    [MAIN]
      MAP Land$Online_Volcanic_Island
      DespawnAfterLandingTimeout 600
      BattleArea 0 0 32768 40960 10000
      TIME 10.0000002421439
      WeatherIndex 0
      CloudsHeight 1000
      BreezeActivity 10
      ThermalActivity 10
    [GlobalWind_0]
      Power 3.000 0.000 0.000
      BottomBound 0.00
      TopBound 1500.00
      GustPower 0
      GustAngle 45
    [splines]
    [AirGroups]
      tobruk:Tobruk_LW_KG77_III.11
    [tobruk:Tobruk_LW_KG77_III.11]
      Flight0  1 2
      Class Aircraft.Ju-87B-2
      Formation LINEABREAST
      CallSign 11
      Fuel 37
      Weapons 1 1 2 1
      Detonator Bomb.SC-500_GradeIII_J 0 -1 0.08
      Detonator Bomb.SC-50_GradeII_J_DivePreferred 0 -1 0.08
      Detonator Bomb.SD-250_JB 0 -1 0.08
      Detonator Bomb.SD-500_E 0 -1 0.08
      Detonator Bomb.SC-250_Type2_J 0 -1 0.08
      SetOnPark 1
      Skill 0.32 0.32 0.32 0.95 0.32 0.32 0.32 0.32
      Aging 65
    [tobruk:Tobruk_LW_KG77_III.11_Way]
      NORMFLY 13675.02 25513.72 100.00 300.00
      NORMFLY 6864.82 7906.08 100.00 240.00
      NORMFLY 769.28 848.42 100.00 240.00
      NORMFLY 3524.80 406.95 690.00 240.00
      NORMFLY 5308.09 4894.76 690.00 240.00
      LANDING 5919.10 8855.90 264.00 240.00
      LANDING 5100.72 3512.42 264.00 300.00
    [CustomChiefs]
    [Chiefs]
    [0_Chief_Road]
    [Stationary]
    [Buildings]
    [BuildingsLinks]
    In this very similar example, they will function as expected--no immediate bomb drop:

    Code:
    [PARTS]
      core.100
      bob.100
      tobruk.100
    [MAIN]
      MAP Land$Online_Volcanic_Island
      DespawnAfterLandingTimeout 600
      BattleArea 0 0 32768 40960 10000
      TIME 10.0000002421439
      WeatherIndex 0
      CloudsHeight 1000
      BreezeActivity 10
      ThermalActivity 10
    [GlobalWind_0]
      Power 3.000 0.000 0.000
      BottomBound 0.00
      TopBound 1500.00
      GustPower 0
      GustAngle 45
    [splines]
    [AirGroups]
      tobruk:Tobruk_LW_KG77_III.11
    [tobruk:Tobruk_LW_KG77_III.11]
      Flight0  1 2
      Class Aircraft.Ju-87B-2
      Formation LINEABREAST
      CallSign 11
      Fuel 37
      Weapons 1 1 2 1
      Detonator Bomb.SC-500_GradeIII_J 0 -1 0.08
      Detonator Bomb.SC-50_GradeII_J_DivePreferred 0 -1 0.08
      Detonator Bomb.SD-250_JB 0 -1 0.08
      Detonator Bomb.SD-500_E 0 -1 0.08
      Detonator Bomb.SC-250_Type2_J 0 -1 0.08
      SetOnPark 1
      Skill 0.32 0.32 0.32 0.95 0.32 0.32 0.32 0.32
      Aging 65
    [tobruk:Tobruk_LW_KG77_III.11_Way]
      NORMFLY 13675.02 25513.72 100.00 300.00
      NORMFLY 6864.82 7906.08 100.00 240.00
      NORMFLY 769.28 848.42 100.00 240.00
      NORMFLY 3524.80 406.95 690.00 240.00
      NORMFLY 5308.09 4894.76 690.00 240.00
      LANDING 5919.10 8855.90 264.00 240.00
    [CustomChiefs]
    [Chiefs]
    [0_Chief_Road]
    [Stationary]
    [Buildings]
    [BuildingsLinks]
    The difference, as you may have seen, is that the first example has two LANDING waypoints in a row. You can't do this from FMB but if you are generating waypoints programmatically or by hand it is easy to do.

    (In fact in CloD 4.5 where AI didn't land reliably something like this was our normal practice - we had another routine that would come along and take care of "LANDING" aircraft that hadn't actually landed, after a while. You didn't want AI aircraft circling commonly-used airports endlessly, so you would send them to the first airport to attempt landing, which sometimes they did successfully, then after a while send them elsewhere to "land" which actually meant be despawned periodically. Anyway, a long story but one that is pretty unnecessary in 5.0 now that AI actually land correctly!)

    If ALL aircraft behaved like this it would be one thing, but as near as I can tell, only the JU-87 jettisons all bombs in this scenario. Perhaps some others do it as well--I didn't test each and every possible bomb-carrying aircraft systematically. But I tested quite a large number and of the ones I tested, only the JU-87 acts this way.

    Just something to be aware of, if your AI aircraft are jettisoning their bomb load at the very start of their flight, for no particular reason that you can see.
    System: Microsoft Windows 10 Pro 64 bit, 10.0.18362 N/A Build 18362, 20,437 MB |
    ASUS GeForce GTX 1060 3GB | Intel Core i5-2500 Quad-Core Processor 3.3 GHz 6 MB Cache LGA 1155 | Intel DB65AL motherboard | ARCTIC Freezer i11 CPU Cooler | SVGA 500 watt power supply | Microsoft Sidewinder 2 Force Feedback joystick

  2. #2
    Supporting Member
    Join Date
    Dec 2019
    Posts
    473
    Post Thanks / Like
    Total Downloaded
    22.61 MB

    Re: Bizarre behavior/bug of the day: Two "LANDING" in a row make Stuka/JU-87 drop bom

    Quote Originally Posted by TWC_Flug View Post
    if you are generating waypoints programmatically....
    Do you happen to have a simple example of this script that I could take a look at to then try and write my own please?
    I am Yo-Yo not YoYo (that's someone else)

  3. #3
    Ace
    Join Date
    May 2015
    Location
    Kansas City, Missouri area
    Posts
    515
    Post Thanks / Like
    Total Downloaded
    130.02 MB

    Re: Bizarre behavior/bug of the day: Two "LANDING" in a row make Stuka/JU-87 drop bom

    Quote Originally Posted by Yo-Yo View Post
    Do you happen to have a simple example of this script that I could take a look at to then try and write my own please?
    This probably isn't a very helpful answer, but we put all of our mission code online in a github repository and you and everyone else is welcome to look at it:

    https://github.com/bhugh/TWC_Mission...20Input%20File

    Unfortunately, there are a lot of examples of that there but exactly none of them are "simple". Partly because you start out thinking "this is going to be simple!!!'!1!" and then after you have spent 2 months cracking all the bugs, handling all the edge cases, etc it is a huge mess of complicated stuff.

    But a somewhat simple example would be to for example search for "public static ISectionFile BuildBomber" in Tobruk_Campaign.cs which is here: https://github.com/bhugh/TWC_Mission...uk_Campaign.cs
    System: Microsoft Windows 10 Pro 64 bit, 10.0.18362 N/A Build 18362, 20,437 MB |
    ASUS GeForce GTX 1060 3GB | Intel Core i5-2500 Quad-Core Processor 3.3 GHz 6 MB Cache LGA 1155 | Intel DB65AL motherboard | ARCTIC Freezer i11 CPU Cooler | SVGA 500 watt power supply | Microsoft Sidewinder 2 Force Feedback joystick

  4. Likes Yo-Yo, TWC_Fatal_Error liked this post

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •