Page 1 of 1

[1328.14] Incorrect WRA window output when # of salvo is above 8

Posted: Thu Feb 22, 2024 9:59 am
by lumiere
In attached scenario, starting side WRA doctrine for SS-N-19/P-700 missile (DBID #109) is set as do not use this weapon.

Using ScenEdit_SetDoctrineWRA() function allows custom salvo size above 8 that is not listed in pulldown menu. For example, set side WRA as follows.

2999 = Surface_Contact_Unknown_Type - Salvo 10rds, range 123nm
3000 = Ship_Unspecified - Salvo 11rds, range 45nm
3001 = Ship_Carrier_0_25000_tons - Salvo 12rds, range 67nm

Code: Select all

ScenEdit_SetDoctrineWRA({
  side = "Side1",
  weapon_dbid = 109,
  target_type= 2999
},
  {
    10,
    "inherit",
    123,
    "inherit"
  })

ScenEdit_SetDoctrineWRA({
  side = "Side1",
  weapon_dbid = 109,
  target_type= 3000
},
  {
    11,
    "inherit",
    45,
    "inherit"
  })

ScenEdit_SetDoctrineWRA({
  side = "Side1",
  weapon_dbid = 109,
  target_type= 3001
},
  {
    12,
    "inherit",
    67,
    "inherit"
  })
After running above script, check side WRA window. Although salvo size has changed from "do not use...", it incorrectly shows system default value, not custom size set by script. Range is OK and shows custom range value.

Mission/unit doctrine shows custom salvo size as inherited value. Only parent (side doctrine here) WRA window does not show intended salvo size above 8, or 3 for AAW weapon.
WRAside.PNG
WRAside.PNG (22.5 KiB) Viewed 213 times
WRAunit.PNG
WRAunit.PNG (19.8 KiB) Viewed 213 times

Re: [1328.14] Incorrect WRA window output when # of salvo is above 8

Posted: Thu Feb 22, 2024 12:14 pm
by blu3s
Thanks for the report,

Logged 0015606