Jump to content

Where to find DCS enums?


Go to solution Solved by Zyll,

Recommended Posts

Posted

Hey all,

Does anyone know which file holds DCS various enum definitions? I know that the Hoggit wiki has a bunch of info, but some of it is out of date, (e.g. the page for Reaction to Threat includes reference to the nonexistent Bypass and Escape enum, but not the Evasive Vertical Maneuver or Horizontal AAA Fire Evade enums.

I can obviously access them by using the associated integer, but I'd like to be able to double-check this stuff for myself (assuming the files haven't been encrypted).

i7-7700K @ 4.9Ghz | 16Gb DDR4 @ 3200Mhz | MSI Z270 Gaming M7 | MSI GeForce GTX 1080ti Gaming X | Win 10 Home | Thrustmaster Warthog | MFG Crosswind pedals | Oculus Rift S

Posted (edited)

Thanks Zyll. Weirdly, that file (and the DCS.lua in DCS itself) both reference the same fields as the Hoggit wiki.

Turns out that I can actually trigger the Horizontal AAA Fire Evade behaviour by using the integer value 5 through script, but it's strange that the definitions file and ME-side options appear to be out of sync.

image.png

image.png

Edited by Pizzicato

i7-7700K @ 4.9Ghz | 16Gb DDR4 @ 3200Mhz | MSI Z270 Gaming M7 | MSI GeForce GTX 1080ti Gaming X | Win 10 Home | Thrustmaster Warthog | MFG Crosswind pedals | Oculus Rift S

Posted

Oh that IS weird. It makes sense that the Moose version could be out of sync, but for the file in the ED folder to be off, that's crappy.

Zyll @ TAW

  • Like 1
Posted
2 hours ago, Pizzicato said:

Hey all,

Does anyone know which file holds DCS various enum definitions? I know that the Hoggit wiki has a bunch of info, but some of it is out of date, (e.g. the page for Reaction to Threat includes reference to the nonexistent Bypass and Escape enum, but not the Evasive Vertical Maneuver or Horizontal AAA Fire Evade enums.

I can obviously access them by using the associated integer, but I'd like to be able to double-check this stuff for myself (assuming the files haven't been encrypted).

Most of the entries can exist within assorted lua name spaces. For example coalition.side and coalition.service are just two tables within coalition that contain the enums that identify red and blue, and enums for ATC, tankers, etc. In this specific instance the enum values can literally be found in the AI.Option.Air.val.REACTION_ON_THREAT table. 

image.png

As you made note that the names aren't the same and AAA fire evade is missing. The former is mostly a localization thing. The name doesn't matter because the number value is what is used by the AI. ED have decided to reword/rephrase assorted parts of the mission editor, but the functionality remains the same. Also note it is "reaction on threat" in the enum but is named "reaction to threat" in the editor, the same thing is happening there.  As for why AAA fire evade is missing from the table, the sad fact is that not everything gets added to the AI or other tables when it exists in the game. Thus someone has to realize that the options exist and document it. 

  • Like 1

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...