Jump to content

Recommended Posts

Posted

Context: I'm one of the Devs on Briefing Room, a mission generator. Trying to place aircraft without overlapping or on a parking spot that is unsuitable while also making it look right in the ME.
DCS has 2 parking systems (for some reason) in the mission.lua file

"parking" - (int) internal hidden parking ref returned as "Term_index"  in Airbase.getParking 

"parking_id" -(string) Map reference version currently missing from Airbase.getParking (I understand this to be the superior method)

I've found no way of getting the mapping of the internal integer to the string map reference.

using "parking" only the unit positions look wrong in the ME but the game spawns the unit correctly.
using "parking_id" it places the unit perfectly but its a incredibly long task to extract parking_id data as its manual.

Posted (edited)

I used Moose for this:

local airbase1=AIRBASE:FindByName("Gudauta")
airbase1:MarkParkingSpots()

Then you will see parking int IDs in F10 map. Maybe you can look into moose how they retrieve that info. 

Hope it helps.
 

https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/Wrapper.Airbase.html##(AIRBASE).GetParkingSpotsTable

In Moose.lua:

function AIRBASE:GetParkingSpotsTable(termtype)

it uses https://wiki.hoggitworld.com/view/DCS_func_getParking inside so mapping is somewhere in moose code around GetParkingSpotsTable

Edited by ataribaby
Posted (edited)

Ahh I see now. You need find that "C01" string for given parking int id so plane is placed correctly in editor. I see. Sorry then probably it will not help you what I posted 😞

There must be some definition so editor knows this. Lets hope it is in some lua for airbases.

Edited by ataribaby
  • Recently Browsing   0 members

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