Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...