huertix Posted August 5, 2015 Report Share Posted August 5, 2015 (edited) Buenas, En relación a la aplicación que he desarrollado para cubrir la ausencia de la palanca física de gases, me esta dando problemas en multiplayer mode. http://www.escuadron69.net/v20/foro/index.php?/topic/62998-control-gases-android/ En StandAlone o en Multiplayer como Host va perfectamente. Este es el error que me saltan en dcs.log: 00086.873 ERROR Lua::Config: Call error LuaExportAfterNextFrame:[string "C:\Users\huertix\Saved Games\DCS\Scripts\Export.lua"]:91: attempt to index local 'MainPanel' (a number value)stack traceback: [C]: ? [string "C:\Users\huertix\Saved Games\DCS\Scripts\Export.lua"]:91: in function <[string "C:\Users\huertix\Saved Games\DCS\Scripts\Export.lua"]:88>. Alguien sabría decirme que puede estar pasando? Saludos y gracias. Edited August 5, 2015 by huertix Quote Link to comment Share on other sites More sharing options...
Disablez Posted August 6, 2015 Report Share Posted August 6, 2015 Ains... mainPanel = GetDevice(0)if mainPanel == nil or type(mainPanel)~="table" then return false // sal // no hagas nadaend Quote Link to comment Share on other sites More sharing options...
huertix Posted August 6, 2015 Author Report Share Posted August 6, 2015 (edited) Gracias Disablez ... [FSF]Ian respondió algo parecido en el foro de Eagle: In multiplayer, there are times when you are not in any aircraft, so GetDevice(0) returns nil because there is no main panel. (This may also apply to FC3 aircraft, I am not sure about that.) If LoGetSelfData() returns nil, there is no active aircraft. Otherwise, check LoGetSelfData()["Name"] to see if you are in an A-10C. Incluso ahora puedo exportar la aplicación para otros modelos a parte del A10. :) Edited August 6, 2015 by huertix Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.