eudoniga Posted October 16, 2014 Report Posted October 16, 2014 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
Pete Dowson Posted October 16, 2014 Report Posted October 16, 2014 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
eudoniga Posted October 17, 2014 Author Report Posted October 17, 2014 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.
Pete Dowson Posted October 17, 2014 Report Posted October 17, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now