gromit190 Posted October 2, 2016 Share Posted October 2, 2016 Hey, I know I've seen this somewhere, someone had listed all (or, at least a lot) of the unit type names in DCS World. Does anyone know where I can find it? What I'm looking for are the type names used for the unit table used in group data when invoking coalition.addGroup http://wiki.hoggit.us/view/DCS_func_addGroup In the example they are using "LAV-25", I was hoping to find a list of all the unit type names possible Does anyone know? Autonomous ground AI project Link to comment Share on other sites More sharing options...
gromit190 Posted October 2, 2016 Author Share Posted October 2, 2016 (edited) Ran grep "GT.Names = " in C:\Program Files (x86)\Steam\steamapps\common\DCSWorld\Scripts\Database Made a javascript to process the output, so now I've got the following unit type names: unitTypes = {} unitTypes.navy = {} unitTypes.navy.blue = { VINSON = "VINSON", PERRY = "PERRY", TICONDEROG = "TICONDEROG" } unitTypes.navy.red = { ALBATROS = "ALBATROS", KUZNECOW = "KUZNECOW", MOLNIYA = "MOLNIYA", MOSCOW = "MOSCOW", NEUSTRASH = "NEUSTRASH", PIOTR = "PIOTR", REZKY = "REZKY" } unitTypes.navy.civil = { ELNYA = "ELNYA", Drycargo_ship2 = "Dry-cargo ship-2", Drycargo_ship1 = "Dry-cargo ship-1", ZWEZDNY = "ZWEZDNY" } unitTypes.navy.submarine = { KILO = "KILO", SOM = "SOM" } unitTypes.navy.speedboat = { speedboat = "speedboat" } unitTypes.vehicles = {} unitTypes.vehicles.Howitzers = { _2B11_mortar = "2B11 mortar", SAU_Gvozdika = "SAU Gvozdika", SAU_Msta = "SAU Msta", SAU_Akatsia = "SAU Akatsia", SAU_2C9 = "SAU 2-C9", M109 = "M-109" } unitTypes.vehicles.IFV = { AAV7 = "AAV7", BMD1 = "BMD-1", BMP1 = "BMP-1", BMP2 = "BMP-2", BMP3 = "BMP-3", Boman = "Boman", BRDM2 = "BRDM-2", BTR80 = "BTR-80", BTR_D = "BTR_D", Bunker = "Bunker", Cobra = "Cobra", LAV25 = "LAV-25", M1043_HMMWV_Armament = "M1043 HMMWV Armament", M1045_HMMWV_TOW = "M1045 HMMWV TOW", M1126_Stryker_ICV = "M1126 Stryker ICV", M113 = "M-113", M1134_Stryker_ATGM = "M1134 Stryker ATGM", M2_Bradley = "M-2 Bradley", Marder = "Marder", MCV80 = "MCV-80", MTLB = "MTLB", Paratrooper_RPG16 = "Paratrooper RPG-16", Paratrooper_AKS74 = "Paratrooper AKS-74", Sandbox = "Sandbox", Soldier_AK = "Soldier AK", Infantry_AK = "Infantry AK", Soldier_M249 = "Soldier M249", Soldier_M4 = "Soldier M4", Soldier_M4_GRG = "Soldier M4 GRG", Soldier_RPG = "Soldier RPG", TPZ = "TPZ" } unitTypes.vehicles.MLRS = { GradURAL = "Grad-URAL", Uragan_BM27 = "Uragan_BM-27", Smerch = "Smerch", MLRS = "MLRS" } unitTypes.vehicles.SAM = { _2S6_Tunguska = "2S6 Tunguska", Kub_2P25_ln = "Kub 2P25 ln", _5p73_s125_ln = "5p73 s-125 ln", S300PS_5P85C_ln = "S-300PS 5P85C ln", S300PS_5P85D_ln = "S-300PS 5P85D ln", SA11_Buk_LN_9A310M1 = "SA-11 Buk LN 9A310M1", Osa_9A33_ln = "Osa 9A33 ln", Tor_9A331 = "Tor 9A331", Strela10M3 = "Strela-10M3", Strela1_9P31 = "Strela-1 9P31", SA11_Buk_CC_9S470M1 = "SA-11 Buk CC 9S470M1", SA8_Osa_LD_9T217 = "SA-8 Osa LD 9T217", Patriot_AMG = "Patriot AMG", Patriot_ECS = "Patriot ECS", Gepard = "Gepard", Hawk_pcp = "Hawk pcp", SA18_Igla_manpad = "SA-18 Igla manpad", SA18_Igla_comm = "SA-18 Igla comm", Igla_manpad_INS = "Igla manpad INS", SA18_IglaS_manpad = "SA-18 Igla-S manpad", SA18_IglaS_comm = "SA-18 Igla-S comm", Vulcan = "Vulcan", Hawk_ln = "Hawk ln", M48_Chaparral = "M48 Chaparral", M6_Linebacker = "M6 Linebacker", Patriot_ln = "Patriot ln", M1097_Avenger = "M1097 Avenger", Patriot_EPP = "Patriot EPP", Patriot_cp = "Patriot cp", Roland_ADS = "Roland ADS", S300PS_54K6_cp = "S-300PS 54K6 cp", Stinger_manpad_GRG = "Stinger manpad GRG", Stinger_manpad_dsr = "Stinger manpad dsr", Stinger_comm_dsr = "Stinger comm dsr", Stinger_manpad = "Stinger manpad", Stinger_comm = "Stinger comm", ZSU234_Shilka = "ZSU-23-4 Shilka", ZU23_Emplacement_Closed = "ZU-23 Emplacement Closed", ZU23_Emplacement = "ZU-23 Emplacement", ZU23_Closed_Insurgent = "ZU-23 Closed Insurgent", Ural375_ZU23_Insurgent = "Ural-375 ZU-23 Insurgent", ZU23_Insurgent = "ZU-23 Insurgent", Ural375_ZU23 = "Ural-375 ZU-23" } unitTypes.vehicles.radar = { _1L13_EWR = "1L13 EWR", Kub_1S91_str = "Kub 1S91 str", S300PS_40B6M_tr = "S-300PS 40B6M tr", S300PS_40B6MD_sr = "S-300PS 40B6MD sr", _55G6_EWR = "55G6 EWR", S300PS_64H6E_sr = "S-300PS 64H6E sr", SA11_Buk_SR_9S18M1 = "SA-11 Buk SR 9S18M1", Dog_Ear_radar = "Dog Ear radar", Hawk_tr = "Hawk tr", Hawk_sr = "Hawk sr", Patriot_str = "Patriot str", Hawk_cwar = "Hawk cwar", p19_s125_sr = "p-19 s-125 sr", Roland_Radar = "Roland Radar", snr_s125_tr = "snr s-125 tr" } unitTypes.vehicles.Structures = { house1arm = "house1arm", house2arm = "house2arm", outpost_road = "outpost_road", outpost = "outpost", houseA_arm = "houseA_arm" } unitTypes.vehicles.Tanks = { Challenger2 = "Challenger2", Leclerc = "Leclerc", Leopard1A3 = "Leopard1A3", Leopard2 = "Leopard-2", M60 = "M-60", M1128_Stryker_MGS = "M1128 Stryker MGS", M1_Abrams = "M-1 Abrams", T55 = "T-55", T72B = "T-72B", T80UD = "T-80UD", T90 = "T-90" } unitTypes.vehicles.unarmed = { Ural4320_APA5D = "Ural-4320 APA-5D", ATMZ5 = "ATMZ-5", ATZ10 = "ATZ-10", GAZ3307 = "GAZ-3307", GAZ3308 = "GAZ-3308", GAZ66 = "GAZ-66", M978_HEMTT_Tanker = "M978 HEMTT Tanker", HEMTT_TFFT = "HEMTT TFFT", IKARUS_Bus = "IKARUS Bus", KAMAZ_Truck = "KAMAZ Truck", LAZ_Bus = "LAZ Bus", Hummer = "Hummer", M_818 = "M 818", MAZ6303 = "MAZ-6303", Predator_GCS = "Predator GCS", Predator_TrojanSpirit = "Predator TrojanSpirit", Suidae = "Suidae", Tigr_233036 = "Tigr_233036", Trolley_bus = "Trolley bus", UAZ469 = "UAZ-469", Ural_ATsP6 = "Ural ATsP-6", Ural375_PBU = "Ural-375 PBU", Ural375 = "Ural-375", Ural432031 = "Ural-4320-31", Ural4320T = "Ural-4320T", VAZ_Car = "VAZ Car", ZiL131_APA80 = "ZiL-131 APA-80", SKP11 = "SKP-11", ZIL131_KUNG = "ZIL-131 KUNG", ZIL4331 = "ZIL-4331" } Hoping that's all type names, at least it will do for me for now Edited October 7, 2016 by gromit190 1 Autonomous ground AI project Link to comment Share on other sites More sharing options...
Wrecking Crew Posted October 2, 2016 Share Posted October 2, 2016 (edited) Now put pictures with them ^^^:music_whistling: Note too, the available units are dependent upon the Country. Edited October 2, 2016 by Wrecking Crew lernt to spel Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site. Link to comment Share on other sites More sharing options...
gromit190 Posted October 2, 2016 Author Share Posted October 2, 2016 Now put pictures with them ^^^:music_whistling: Noet too, the available units are dependent upon the Country. Haha yeah, it's kinda hard to show th pictures in script but how about this? You're right the vehicles should be categorized according to country. I probably will categorize them later but it won't be a priority. If you spawn the units in your script the country doesn't seem to matter. I can spawn a Russian M-1 Abrams if I wanted. Autonomous ground AI project Link to comment Share on other sites More sharing options...
Grimes Posted October 3, 2016 Share Posted October 3, 2016 Even though you have a list, I've compiled tables of assorted data available for each object. Its useful to look up stuff like attributes, weapon, and sensor information. You will need to expand your javascript to also check objects in the coremods folder. At least as far as aircraft go new models and relevant DB info is done in coremods. Note too, the available units are dependent upon the Country. Yeah it doesn't matter to the scripting engine. I spawned an Italian Mig-29 armed with Aim-120s to test it out. You can also spawn tanks on water and they won't sink unless a player takes direct control. 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 Link to comment Share on other sites More sharing options...
gromit190 Posted October 5, 2016 Author Share Posted October 5, 2016 (edited) Even though you have a list, I've compiled tables of assorted data available for each object. Its useful to look up stuff like attributes, weapon, and sensor information. Impressive! But I'm a little unsure how to use the scripts you linked? The reason I wanted a list of the available unit types was so I could map them to lua variables, so LDT (Lue Development Tools) would recognize the variable names for autocompletion in the editor. Like this example: Maybe we could make a collaborate and make a separate repo for these unit type definitions? Make each unit definition into an object of some class holding all the information you have compiled? You will need to expand your javascript to also check objects in the coremods folder. At least as far as aircraft go new models and relevant DB info is done in coremods. Thanks, I'll look into this later today :) EDIT: Also, MIST is really great! We're using it for our scripts, thank you so much for all the work you have put into it. We really appreciate it! Edited October 5, 2016 by gromit190 Autonomous ground AI project Link to comment Share on other sites More sharing options...
Grimes Posted October 5, 2016 Share Posted October 5, 2016 Impressive! But I'm a little unsure how to use the scripts you linked? They are simply the result of using the functions getDesc(), getSensors(), and getAmmo() on every type of object. I guess it is mostly used for reference. If you are making a script that uses attributes or other data found in those tables to do anything, its just useful to be able to see whats in there without having to manually create your own script to do it. I made it mostly to check the data for air defenses. 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 Link to comment Share on other sites More sharing options...
gromit190 Posted October 5, 2016 Author Share Posted October 5, 2016 They are simply the result of using the functions getDesc(), getSensors(), and getAmmo() on every type of object. I guess it is mostly used for reference. If you are making a script that uses attributes or other data found in those tables to do anything, its just useful to be able to see whats in there without having to manually create your own script to do it. I made it mostly to check the data for air defenses. I see, how did you obtain every type of object? Autonomous ground AI project Link to comment Share on other sites More sharing options...
Grimes Posted October 5, 2016 Share Posted October 5, 2016 Placed every single object into a mission file and watched my ram disappear trying to load all of the textures. I then split them up into separate missions. Its pretty easy to keep track of when new objects get added to the game that I can add em to the mission. Within the mission is a simple script to access all of the objects using mist and then writes the files. 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 Link to comment Share on other sites More sharing options...
Wrecking Crew Posted October 6, 2016 Share Posted October 6, 2016 LOL -- That's ^^^ how I got images of every Static Object - but I did ... like ... 10 at a time. Scheesh. :) Static Objects r-s 2.jpj -- This factory site was built with Witchcraft. Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site. Link to comment Share on other sites More sharing options...
gromit190 Posted October 7, 2016 Author Share Posted October 7, 2016 Nice effort! I'll put the unit type definitions here: https://github.com/birgersp/dcs-unit-types Autonomous ground AI project Link to comment Share on other sites More sharing options...
OzDeaDMeaT Posted August 25, 2023 Share Posted August 25, 2023 Github link appears to be dead. Would love to take a look at that script. CPU: i9-12900K @ 4.9Ghz M/B: MSI MEG z690 Ace RAM: 128GB Video Card: MSI RTX 4090 Suprim Liquid X VR: Varjo Aero Link to comment Share on other sites More sharing options...
Recommended Posts