Jump to content
The simFlight Network Forums
mer

offset to determine visibility layer count

Recommended Posts

I noted that FSInterrogate has offsets for temperature/wind/cloud layer counts. Is there a dedicated offset that gives the number of visibility layers or should we determine this value based on one of the other counts?

 

Thank you

Share this post


Link to post
Share on other sites

There is an offset for this. This is from newWeather.h:
 

    int nUpperVisCtr;           // C38C C78C CB8C CF8C // Number of upper Vis layer (new in FSX)
    NewVis UpperVis[12];        // C390 C790 CB90 CF90

 

Note that for visibility, the base (surface) layer is stored separately:

    NewVis Vis;                    // C02C C42C C82C CC2C // Base Vis

 

The intended purpose of FsInterrogate is to examine the contents of offsets. It should never be used to find out what offsets are available. Its list of offsets incomplete (it's 11 years old) and sometimes wrong. Always work from Pete's documentation (e.g. FSUIPC4 Offset Status.pdf, newWeather.h) instead.

Paul

 

 

 

Share this post


Link to post
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

×

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.