Hey PeeJott, this is Immortality from Discord, devices must contain a ID in the device.lua script and be given a value within the devices table in the device_init.lua. For example, your script could be declared this way.
-- devices.lua
devices["MYDEVICE"] = 1 -- or counter() should you have this function defined
-- device_init.lua
devices[MYDEVICE] = {"avLuaDevice", LockOn_Options.script_path.."SYSTEMS/mydevice.lua"}
Additionally make sure you have the following code in you entry.lua and mainaircraft.lua
-- entry.lua
make_flyable('Aircraft', current_mod_path..'/Cockpit/Scripts/',
nil, current_mod_path..'/Scripts/Comm.lua') -- makeflyable(aircraft_name, script_path, nil (no efm), comm_script)
-- main_aircraft.lua
aircraft_table = {
HumanCockpit = true, -- these need to be set
HumanCockpitPath = current_mod_path..'/Cockpit/Scripts/',
}