Cockpit liveries are no longer supported since v0.2.0-alpha
Closed this issue · 3 comments
Calling MainPanel in device_init in FC3 without specifying the desired livery causes the mission to start with the default livery instead of the desired livery.
Method 1
Make a detection logic of the wanted livery by reading the options, intergrating it in a variable, and use this variable in MainPanel of CLICKABLE-FC3
Method 2: try moving the PNT_UPD device into FC3 to get get_cockpit_draw_argument_value() without fiddling
Method 1 Make a detection logic of the wanted livery by reading the options, intergrating it in a variable, and use this variable in MainPanel of CLICKABLE-FC3
-- _G["__index"]["string"]["sub"] = function: 000002D271B7A500
-- _G["__index"]["string"]["upper"] = function: 000002D271B79D50
-- _G["__index"]["string"]["len"] = function: 000002D271B79F00
-- _G["__index"]["string"]["gfind"] = function: 000002D271B79E70
-- _G["__index"]["string"]["rep"] = function: 000002D271B79FC0
-- _G["__index"]["string"]["find"] = function: 000002D271B7A470
-- _G["__index"]["string"]["match"] = function: 000002D271B7A0B0
-- _G["__index"]["string"]["char"] = function: 000002D271B78970
-- _G["__index"]["string"]["dump"] = function: 000002D271B78CA0
-- _G["__index"]["string"]["gmatch"] = function: 000002D271B79E70
-- _G["__index"]["string"]["reverse"] = function: 000002D271B79C00
-- _G["__index"]["string"]["byte"] = function: 000002D271B77D40
-- _G["__index"]["string"]["format"] = function: 000002D271B7A290
-- _G["__index"]["string"]["gsub"] = function: 000002D271B79C60
-- _G["__index"]["string"]["lower"] = function: 000002D271B7A380
-- _G["__index"]["lfs"]["normpath"] = function: 000002D271B79600
-- _G["__index"]["lfs"]["locations"] = function: 000002D271B79450
-- _G["__index"]["lfs"]["dir"] = function: 000002D271B79090
-- _G["__index"]["lfs"]["tempdir"] = function: 000002D271B79330
-- _G["__index"]["lfs"]["realpath"] = function: 000002D271B79780
-- _G["__index"]["lfs"]["writedir"] = function: 000002D271B792D0
-- _G["__index"]["lfs"]["mkdir"] = function: 000002D271B79960
-- _G["__index"]["lfs"]["currentdir"] = function: 000002D271B796F0
-- _G["__index"]["lfs"]["add_location"] = function: 000002D271B79510
-- _G["__index"]["lfs"]["attributes"] = function: 000002D271B796C0
-- _G["__index"]["lfs"]["create_lockfile"] = function: 000002D271B7A200
-- _G["__index"]["lfs"]["md5sum"] = function: 000002D271B79840
-- _G["__index"]["lfs"]["del_location"] = function: 000002D271B79720
-- _G["__index"]["lfs"]["chdir"] = function: 000002D271B79210
-- _G["__index"]["lfs"]["rmdir"] = function: 000002D271B79A20
Use the functions above normally available in the dcs lua environment to search, sort and use the configurations of the liveries contained in the file below
C:\Users\punko\Saved Games\DCS\Config\options.lua
["FC3"] = {
["CPLocalList_A-10A"] = "default",
["CPLocalList_F-15C"] = "default",
["CPLocalList_J-11A"] = "English Gray",
["CPLocalList_MiG-29A"] = "default",
["CPLocalList_MiG-29G"] = "default",
["CPLocalList_MiG-29S"] = "default",
["CPLocalList_Su-25"] = "default",
["CPLocalList_Su-27"] = "English Gray",
["CPLocalList_Su-33"] = "English Gray",