-
-
Notifications
You must be signed in to change notification settings - Fork 67
Create your lua file
Jerker Dahlblom edited this page Sep 19, 2023
·
14 revisions
- Create your *.lua file in folder
Scripts\DCS-BIOS\lib\modules\aircraft_modules\
. - Open up an existing lua and use it as an example.
We will use P-51D as an example :
-
P-51D
is the DCS-BIOS Module Name, also the file name. - The
0x5000
is the base address for this module, this must not collide with other modules -
"P-51D", "TF-51D", "P-51D-30-NA"
These are Digital Combat Simulator's identifiers for the airplanes. In this case they are variants of the P-51D. By keeping them all in theP-51D.lua
the DCS-BIOS module is easier to maintain. Usually there is only the one entry. -
P_51D
is the local lua object name.
The file must return the local lua object in the end of the file as such :
return P_51D
That is where you add your controls, digging into DCS files, using ModelViewer2.exe and test, test, test. It takes times and no two DCS modules are the same.