Jump to content
The simFlight Network Forums

FSUIPC & VB: Checking weather settings


Recommended Posts

Hi Pete, others,

I'm writing adventure software in Visual Basic and I want to make sure that the pilots don't change any weather settings, for example set a convenient tailwind.

I imagine that I setup a situation in FS9, and then read all the weather settings, and store these in the VB-code.

Then when a pilot flies, every minute or so the weather settings are read, and compared to the values stored in the VB-code.

Last year I made this, but unfortunately the weather settings that were read during the flight usually differed from those stored in the VB-code; as if they changed during the flight by themselves.

Does any VB programmer have such a routine that does work well?

Thanks,

Ray

Link to comment
Share on other sites

Hi Ray,

Last year I made this, but unfortunately the weather settings that were read during the flight usually differed from those stored in the VB-code; as if they changed during the flight by themselves.

that is exactly what happens in FS9. The weather changes on it's own even if you have set the weather dynamics to "none".

That's all because of the new weather engine.

I'm not a programmer but I think that nothing can be done about it. The only thing I could think of is to reload the same weather settings every now and then but I beleive this would introduce some disadvantages (regarding smoothing options and such).

Regards,

Frank

Link to comment
Share on other sites

I'm writing adventure software in Visual Basic and I want to make sure that the pilots don't change any weather settings, for example set a convenient tailwind.

For FS2004 the only way you can be certain of the wind affecting the aircraft is by waiting for FSUIPC version 3.30 and using a new facility there to directly control the wind at the aircraft (only). This isn't an aspect of the Weather as controlled by WEATHER.DLL, but an override in the actual simulation engine, and so isn't readable in the normal weather structures.

For all versions of FS you can read the "Ambient Wind" value at the aircraft, however -- this is listed in one of the offsets and has been maintained by FSUIPC through all FS versions. At least with that you can monitor the wind and find out if your pilots are 'cheating'. However, until FSUIPC 3.30 you don't have precise control over that -- you would just have to "disqualify" him or do something nasty to his aircraft! :twisted:

Regards,

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.