Nasty Posted May 21, 2010 Posted May 21, 2010 any idea whats wrong becouse i cant get radio state table my code dofile("./Scripts/Aircrafts/Ka-50/Cockpit/devices.lua") -- enumeration of cockpit devices dofile("./Scripts/Aircrafts/Ka-50/Cockpit/command_defs.lua") function LuaExportStart() local file = io.open("./Temp/Export.log", "w") if file then io.output(file) end local R_800 = GetDevice(48) local radio = R_800:l_get_state() end and i get this error Lua::Config::call error LuaExportStart:./Config/Export/Export.lua:11: attempt to call method 'l_get_state' (a nil value) is something change patch 1.0.2 or i m so stupid so i cant that work :)
truhlik_fredy Posted April 5, 2012 Posted April 5, 2012 I get the same error with BS2. In devices.lua the r800 is still present as 48 device, but maybe the interface changed and different methods need to be called?
Recommended Posts