k4riM Posted April 11, 2019 Posted April 11, 2019 (edited) Beginner for now I'm just trying to get a message on the screen to see if my instance is called, but it displays nothing with the M2000C module. Mods\aircraft\M-2000C\Cockpit\devices.lua devices["TEST"] = counter() Mods\aircraft\M-2000C\Cockpit\device_init.lua creators[devices.TEST] = {"avLuaDevice" ,LockOn_Options.script_path.."test_device.lua"} Mods\aircraft\M-2000C\Cockpit\test_device.lua dofile(LockOn_Options.script_path.."command_defs.lua") dofile(LockOn_Options.script_path.."devices.lua") local dev = GetSelf() local update_time_step = 0.1 local sensor_data = get_base_data() make_default_activity(update_time_step) function post_initialize () print ("post_initialize called") end function update () print ("post_initialize called") end After I am a little lost but I create a mission and I never have any message that appears on the screen Thank you for your help Edited April 11, 2019 by k4riM
Nero.ger Posted April 11, 2019 Posted April 11, 2019 if you want to start messing around modding i suggest using the a4 or 339 for such tests. Much more repeatable results 'controlling' the Ka50 feels like a discussion with the Autopilot and trim system about the flight direction.
fl0w Posted April 11, 2019 Posted April 11, 2019 print() is an internal message call. You are looking for print_message_to_user() which appears in the top right corner.
k4riM Posted April 11, 2019 Author Posted April 11, 2019 Thank you indeed Now it works and the Print function can I get it where?
fl0w Posted April 11, 2019 Posted April 11, 2019 (edited) No clue, sorry. From BGSC guide, the function is explained. https://docs.google.com/document/d/10HGVrN8CfXWK5Hz2zNTxrm_Tz0bJQGAPZP_QbqsbQZ4/edit Edited April 11, 2019 by Sirius
Recommended Posts