Jump to content
The simFlight Network Forums
tcagri

FSUIPC weather write problem externally

Recommended Posts

Hi everyone,

I have an external panel program which reads and writes data from FS2002. I deal with every variable and have no problem but i really have big trouble with variables starting from 0x0F1C.

When i write to these adresses, sometimes it writes something wrong and sometimes nothing.

for ex.

WORD y = 8;

FSUIPC_Write(0x0F80, 2, &y, &dw_Result);

what could be the problem?Is it something related to local/global weather setting or clearing weather thing?

thanks

Share this post


Link to post
Share on other sites

... i really have big trouble with variables starting from 0x0F1C.

When i write to these adresses, sometimes it writes something wrong and sometimes nothing.

for ex.

WORD y = 8;

FSUIPC_Write(0x0F80, 2, &y, &dw_Result);

what could be the problem?Is it something related to local/global weather setting or clearing weather thing?

Can you use FSUIPC IPC logging to check what you are doing? Also you can experiment with FSInterrogate -- that is why it is provided. Since you are trying to write weather data you may also find it useful to enable the FSUIPC weather logging.

I can help work out what it is you are doing wrong much more easily from log extracts showing these things. I think it would help you too.

In the case of FS2000 and FS2002 weather, you must clear it all first -- use the Clear Weather facilities in the FS weather dialogue, or the Hot Key provided by FSUIPC.

In the example you quote above, setting the lower cloud type without also setting the cover, altitude and ceiling in offsets 0F24 - 0F2A won't accomplish a lot. You need to set clouds as entities. Of course you should be able to change an existing layer with individual writes.

Regards,

Pete

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • 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.