Pizzicato Posted April 19, 2024 Posted April 19, 2024 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
Solution Zyll Posted April 19, 2024 Solution Posted April 19, 2024 You can reference the DCS.lua that comes with Moose: https://github.com/FlightControl-Master/MOOSE/blob/master/Moose Development/Moose/DCS.lua
Pizzicato Posted April 19, 2024 Author Posted April 19, 2024 (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. Edited April 19, 2024 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
Zyll Posted April 19, 2024 Posted April 19, 2024 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 1
Grimes Posted April 19, 2024 Posted April 19, 2024 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. 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. 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts