Doug Posted October 14, 2006 Posted October 14, 2006 Hi! Export of LO stop sending data when my plane is crashed (not when I eject but when my plane is crashed). Do you know why ? Thanks LOTATC .NET // LOVICA .NET // 3rd Wing
GGTharos Posted October 14, 2006 Posted October 14, 2006 Because the data coming from your no-longer existant aircraft are now 'nil'. [sIGPIC][/sIGPIC] Reminder: SAM = Speed Bump :D I used to play flight sims like you, but then I took a slammer to the knee - Yoda
Doug Posted October 14, 2006 Author Posted October 14, 2006 Thans GG. Next i have recovered, the export doesnt restart. Is there a mean to make it restart ? LOTATC .NET // LOVICA .NET // 3rd Wing
GGTharos Posted October 14, 2006 Posted October 14, 2006 Yes, you need to stop it from failing in the next place by doing something if Myplane then Your code here end Where Myplane will be 'anything' if your plane exists, and 'nil' if it doesn't. That will prevent the code from erroring out. [sIGPIC][/sIGPIC] Reminder: SAM = Speed Bump :D I used to play flight sims like you, but then I took a slammer to the knee - Yoda
bnepethomas Posted October 14, 2006 Posted October 14, 2006 Thanks for the pointer re if Myplane then Your code here end I had wondered about that. This ain't directly related to this thread, but is related to LUA. After upgrading to 1.12 I could no longer export data via the network. I had modified the config.lua file and set export = True, nothing exported. Thinking the problem was LUA UDP related I went troubleshooting a possible N/W problem. Net result, the value true is case sensitive, it must be true not True. Cheers Peter
Doug Posted October 15, 2006 Author Posted October 15, 2006 Thanks GG. I have tested all my value returned by LOGet*** functions and t works. ;) LOTATC .NET // LOVICA .NET // 3rd Wing
Doug Posted October 15, 2006 Author Posted October 15, 2006 Is there a mean to make socket.receive non-bloking ? LOTATC .NET // LOVICA .NET // 3rd Wing
Recommended Posts