RedK0d / CLICKABLE-FC3

A partially clickable mod for the FC3 Planes
174 stars 23 forks source link

Cockpit liveries are no longer supported since v0.2.0-alpha #56

Closed RedK0d closed 2 years ago

RedK0d commented 2 years ago

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.

RedK0d commented 2 years ago

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

RedK0d commented 2 years ago

Method 2: try moving the PNT_UPD device into FC3 to get get_cockpit_draw_argument_value() without fiddling

RedK0d commented 2 years ago

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",