Jump to content
The simFlight Network Forums

Reload FS2004 after writing in Zulu time


Recommended Posts

I would like to start up my FS2004 situation files in Zulu time - as I believe FS2004 does not provide a facility to start in Zulu time, I am using the FSUIPC_Write/FSUIPC_Process functions to write in the Zulu time automatically upon start up. However, I am finding that although within the World->Time menu, the new Zulu time has been set, the simulator is not actually refreshed to the new time and requires me to go into the World->Time menu first and select OK in order to reload the set time.

Can I use FSUIPC_Write/FSUIPC_Process to force the simulator to reload/refresh with the new set Zulu time?

FSRealTime implements a similar functionality, but I would like to do this myself with my start up scripts.

Thank you,

Richard

Link to comment
Share on other sites

I am using the FSUIPC_Write/FSUIPC_Process functions to write in the Zulu time automatically upon start up. However, I am finding that although within the World->Time menu, the new Zulu time has been set, the simulator is not actually refreshed to the new time and requires me to go into the World->Time menu first and select OK in order to reload the set time.

I think you have to set both the Zulu and the Local time, not just one or the other. Maybe also the difference between them (0246).

Pete

Link to comment
Share on other sites

Hi Pete,

Thanks for your quick response - I tried writing both the local (0x238) and Zulu (0x23B) times as well as writing the offset between the two (0x246) using the correct sign, but the simulator environment still did not automatically update. I then tried using FSUIPC_Write with a FS control entry i.e. (FSUIPC_Write(0x3110, 8, upLocal, &dwResult), where upLocal only provides a new local time (control entry 66044 and local time parameter) that is offset from the correct Zulu time, and this automatically refreshes the simulator with the new local time as well as the corresponding correct system Zulu time.

Richard

Link to comment
Share on other sites

I then tried using FSUIPC_Write with a FS control entry i.e. (FSUIPC_Write(0x3110, 8, upLocal, &dwResult), where upLocal only provides a new local time (control entry 66044 and local time parameter) that is offset from the correct Zulu time, and this automatically refreshes the simulator with the new local time as well as the corresponding correct system Zulu time.

Oh,right. That's useful to know. Is that what FSRealTime does? I thought the old (FS98-compatible) offsets worked. Thanks.

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.