Jump to content
The simFlight Network Forums

Recommended Posts

Posted
Hello to all.

I would like to know how to control rain in fsx with FSUIPC. I have developed a acars to my fsx and want to control the weather but also using offset 04D2 have no result.

 

my code



procedure TForm1.precipitacao;
var
  dds:dword;
  prec:dword;
begin
  prec := 2;
  if FSUIPC_Write($04D2,2,@press,dds) then
  if  FSUIPC_Process(dds) then
    beep;
end;


 

thank you

Posted

Sorry, that sort of direct control doesn't work with FSX. It was only experimental in FS9. You'd need to use the New Weather Interface to set weather stations, or global weather, and this entails setting all of the weather, not just the rain.

 

Pete

Posted

ah, I'm sorry for my ignorance but how I do it? has an example of which offset should I use?

it is possible that with SimConnect?

 

The SDK contains the details of the offsets and values to be used for the New Weather Interface. If you don't want to deal with binary data you can use SimConnect style METAR strings.

 

You can of course use SimConnect directly. That's all FSUIPC is doing.

 

Any weather control program for FSX is going to be quite a big job. It isn't something to do lightly. There are commercial programs doing it very well, of course. I use ASN.

 

There is a free weather read/write program provided in the SDK -- WeatherSet2. That uses the New Weather Interface.

 

Pete

 

 

Pete

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.