RASMIB Posted February 9, 2014 Report Posted February 9, 2014 Hi Peter How to run a lua file when an aircraft is loaded ? other than using an ipcready.lua file with : if ipc.readSTR(0x3D00, 30) == "<aircraft name>" then ipc.runlua("pathname") end I can't find any information about [AUTO] or [AUTO.<aircraft>] in the FSUIPC4 manuals Are they obsoleted ? or restricted to FS9 ? Michel RAS-MIB
Pete Dowson Posted February 9, 2014 Report Posted February 9, 2014 I've moved this to the Support Forum, where it belongs. How to run a lua file when an aircraft is loaded ? other than using an ipcready.lua file with : if ipc.readSTR(0x3D00, 30) == "<aircraft name>" then ipc.runlua("pathname") end I can't find any information about [AUTO] or [AUTO.<aircraft>] in the FSUIPC4 manuals Are they obsoleted ? or restricted to FS9 ? No, the AUTO facilities are the same for FSUIPC4 -- in fact they were implemented there first. The facilities are described in the section (obscurely?) entitled "Automatic running of Macros and Lua plugins", in the Advanced User's document. This section is even listed in the contents list at the beginning, so is it that you just didn't even bother to look?! If you have a running Lua program and simply want to know when the aircraft changes, better to use event.sim with the "AIRCRAFTCHANGE" option than reading offsets yourself. Pete
RASMIB Posted February 10, 2014 Author Report Posted February 10, 2014 It was on a raining Saturday afternoon ... With your help I find the right section on page 41 on Advanced User's Manual Many thanks for your so-fast answer Have a good day RASMIB
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