Jump to content
The simFlight Network Forums

Lua blackbox


Recommended Posts

Ciao from Italy, Mr. Pete ...

Though I succeeded in writing a lua script that logs every takeoff and landing time, I am short of ideas about how to log the Icao code of the field where t/o and landing are performed.

Need your help on this !

thanks and very best regards,

Eugenio

Link to comment
Share on other sites

Though I succeeded in writing a lua script that logs every takeoff and landing time, I am short of ideas about how to log the Icao code of the field where t/o and landing are performed.

Need your help on this !

 

Such information isn't supplied by FS for the user aircraft, only for AI  You'd need to read the Lat/Lon and look up the airfield in a database.

 

Pete

Link to comment
Share on other sites

Gulp !

And - provided that I find such database, and format it in a convenient layout - I guess the Lua language would then be able toi open it, do the search and come up with the suitable ICAO ...

Can you please address me to the library where such functions are performed, so that I can try to learn how to use 'em ?

Thanks in advance,

E.

Link to comment
Share on other sites

And - provided that I find such database, and format it in a convenient layout 

 

Most folks use my freeware program "Makerunways" to create data bases generated from your installed scenery.

 

- I guess the Lua language would then be able toi open it, do the search and come up with the suitable ICAO ...

Can you please address me to the library where such functions are performed, so that I can try to learn how to use 'em ?

 

 
There are standard libraries for file access, and searching depends on whether you choose a text-based database or a faster binary one. You need to know something about programming. I'm afraid I cannot tech Lua. I bought the printed books on the language and still need to refer to them. Or you can get all the help and information you need at the Lua website, link in the documentation I supply, or just Google it.
 
Pete
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.