Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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

 

Posted

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

Posted

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

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.