Hello all,
I'm currently trying to sync FSX weather between a master PC and a client IG and am having a few issues with things not working.
It's seemingly simple and I'm sure I'm just missing some FSX settings or a step or two in the process.
Anyway what I'm doing:
- Reading the METAR string out of the master by reading 2048 bytes from 0xB800
- Changing the ICAO (in this case YMML) to GLOB inside the string so as to make the settings global (have also tried leaving the ICAO intact)
- Sending the string over the network the the client and writing the 2048 bytes to 0xB000
After this, a loading screen appears on the client, seemingly loading new weather settings, but after loading the weather remains the same.
I've also tried reading 1024 bytes from 0xC400 and writing them to 0xC800 with the same result. And also setting the string using SimConnect, again same result.
Is there possibly a setting in FSX that could be overriding my weather sets? It mentions in the FSUIPC documentation that there's a facility provided to force FSX into global-only weather, but doesn't explain much more.
Does anyone have any ideas?
About simFlight - simflight.com - simflight.de - simflight.fr - simflight.nl - simflight.pt - simflight.es - simflight.it - simflight.jp - simrussia.com - simMarket
Setting FSX Metar strings
Started by
AJMurray
, Mar 18 2009 01:21 AM
5 replies to this topic
#1
Posted 18 March 2009 - 01:21 AM
#2
Posted 18 March 2009 - 02:02 AM
AJMurray said:
- Reading the METAR string out of the master by reading 2048 bytes from 0xB800
Quote
- Changing the ICAO (in this case YMML) to GLOB inside the string so as to make the settings global (have also tried leaving the ICAO intact)
Quote
Sending the string over the network the the client and writing the 2048 bytes to 0xB000
The only definitions of the peculiar METAR formats they use are in the SimConnect SDK. If you have the Deluxe FSX you have that on the DVD. Else I would recommend the ESP one instead, it is better cross-referenced and the details are the same (ESP == FSX+Acceleration, less some aircraft and missions and things).
You are also using an FSUIPC4 facility which, to my knowledge, nobody else has actually tried since I implemented it during the FSX Beta period, over two years ago. As I think is still noted, it isn't tested well. Maybe you can turn on the Weather Logging in FSUIPC so we can see what is happening? I'd be glad to make it work if it isn't already.
Also, SimConnect logging could be useful -- it shows the actual Metar strings going back and forth too.
Quote
After this, a loading screen appears on the client, seemingly loading new weather settings, but after loading the weather remains the same.
The weather might be unchanged because either the Global mode hasn't been set, or, if you are writing a specific WX station, because it is slow in being interpolated with the other station weather around. You really would be best setting Global mode. Or it might be unchanged because the string formatting is wrong. The log may show an error, or the SimConnect log might.
Quote
I've also tried reading 1024 bytes from 0xC400 and writing them to 0xC800 with the same result.
Considering the weird complexities of the METAR strings, you'd probably get further using the parametric NWI -- and in fact that would be compatible with FS9 too (so you could, at a pinch, copy weather from one to the other).
Quote
Is there possibly a setting in FSX that could be overriding my weather sets? It mentions in the FSUIPC documentation that there's a facility provided to force FSX into global-only weather, but doesn't explain much more.
Regards
Pete
#3
Posted 19 March 2009 - 06:28 AM
Ah I see now, NWI seems like the way to go. I've educated myself.
A few questions about the process...
1. When setting the weather dynamics to zero, the readme mentions that I should write 0 first, then the command. As I understand it the whole structure has to be written at once, so does this mean I should set the uDynamics variable in the structure, write it, then set the uCommand variable, write it again, then do a process call?
2. Should I write the NW_CLEAR command every time I set the weather, or only once at application startup? Is this the same for NW_EXACT?
3. When reading out a weather structure, it mentions writing the chICAO and uSignature variables before reading, should these be written to the write area at 0xC800 or to the read area at 0xCC00?
Thanks for your help on this one, unfortunately I'm not onsite at the simulator to be able to write this stuff on the fly so I'm trying to nail everything down before I head out there!
A few questions about the process...
1. When setting the weather dynamics to zero, the readme mentions that I should write 0 first, then the command. As I understand it the whole structure has to be written at once, so does this mean I should set the uDynamics variable in the structure, write it, then set the uCommand variable, write it again, then do a process call?
2. Should I write the NW_CLEAR command every time I set the weather, or only once at application startup? Is this the same for NW_EXACT?
3. When reading out a weather structure, it mentions writing the chICAO and uSignature variables before reading, should these be written to the write area at 0xC800 or to the read area at 0xCC00?
Thanks for your help on this one, unfortunately I'm not onsite at the simulator to be able to write this stuff on the fly so I'm trying to nail everything down before I head out there!
#4
Posted 19 March 2009 - 11:45 AM
AJMurray said:
1. When setting the weather dynamics to zero, the readme mentions that I should write 0 first, then the command. As I understand it the whole structure has to be written at once, so does this mean I should set the uDynamics variable in the structure, write it, then set the uCommand variable, write it again, then do a process call?
Writing it all as one structure averts any of that complication, but makes your code a little more complex, to work with structures. That's all.
Quote
2. Should I write the NW_CLEAR command every time I set the weather, or only once at application startup? Is this the same for NW_EXACT?
If this is for FSX only, setting Global weather mode should be enough, but it is probably a good idea to CLEAR as well, to start off with a blank canvas, as it were.
For FS9 it is more complex. Unless you CLEAR every time all FS9 weather develops into Localised weather, and then GLOB fails to change it. In FS9 there's no "GLOBAL" mode. The only sure way to control FS9 weather for continuing periods is to write all of the nearby Weather stations.
If you aren't worried about FS9, it is easier. Just set GLOBAL mode -- added especially by Microsoft after our complaints about not being able to pre-determine weather properly for training purposes.
Quote
3. When reading out a weather structure, it mentions writing the chICAO and uSignature variables before reading, should these be written to the write area at 0xC800 or to the read area at 0xCC00?
Regards
Pete
#5
Posted 27 May 2009 - 11:32 AM
Hi,
I am also trying to set the Global weather, but I am not able to succed.
I am using FSUIPC 4.50 and fsx.
Below is the FSUIPC log details.
Can you please help me?
Rajan
********* FSUIPC4, Version 4.50 by Pete Dowson *********
Reading options from "D:\Program Files\Microsoft Games\Microsoft Flight Simulator X\Modules\FSUIPC4.ini"
User Name="Kusumba Sridhar"
User Addr="kusumba@tell-e.com"
FSUIPC4 Key is provided
WideFS7 Key is provided
Running inside FSX (using SimConnect Acc/SP2 Oct07)
Module base=61000000
Wind smoothing fix is fully installed
DebugStatus=255
62 System time = 15:16:17
62 FLT UNC path = "\\VIS-CENTRE\Flight Simulator X Files\"
62 FS UNC path = "D:\Program Files\Microsoft Games\Microsoft Flight Simulator X\"
1000 LogOptions=00000000 00000001
1000 SimConnect_Open succeeded: waiting to check version okay
3266 Running in "Microsoft Flight Simulator X", Version: 10.0.61637.0 (SimConnect: 10.0.61259.0)
3266 Initialising SimConnect data requests now
3266 FSUIPC Menu entry added
3312 \\VIS-CENTRE\Flight Simulator X Files\cessna.FLT
3312 D:\Program Files\Microsoft Games\Microsoft Flight Simulator X\SimObjects\Airplanes\C172\Cessna172SP.AIR
18828 Aircraft="Cessna Skyhawk 172SP G1000"
18828 System time = 15:16:35, Simulator time = 07:12:07 (02:12Z)
19391 Advanced Weather Interface Enabled
84531 Weather Mode now = Custom
103016 Weather Mode now = Global
212016 LogOptions changed, now 00000000 00000005
221609 WRITE0 C800, 1024 bytes: 05 00 01 00 00 00 00 00 47 4C 4F 42 00 00 01 00 ........GLOB....
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 40 06 00 00 E8 03 00 00 ........@.......
221609 1F 00 00 00 03 00 00 00 E8 03 00 00 00 00 64 00 ..............d.
221609 D0 07 00 00 00 00 64 00 B8 0B 00 00 00 00 64 00 ......d.......d.
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 ................
221609 A0 0F B9 0B 00 00 06 01 00 00 E8 03 00 01 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 WRITE0 0239, 1 bytes: 20
221609 WRITE0 023B, 1 bytes: 05 .
221609 WRITE0 023E, 2 bytes: 18 1F ..
221609 WRITE0 0248, 2 bytes: 02 00 ..
I am also trying to set the Global weather, but I am not able to succed.
I am using FSUIPC 4.50 and fsx.
Below is the FSUIPC log details.
Can you please help me?
Rajan
********* FSUIPC4, Version 4.50 by Pete Dowson *********
Reading options from "D:\Program Files\Microsoft Games\Microsoft Flight Simulator X\Modules\FSUIPC4.ini"
User Name="Kusumba Sridhar"
User Addr="kusumba@tell-e.com"
FSUIPC4 Key is provided
WideFS7 Key is provided
Running inside FSX (using SimConnect Acc/SP2 Oct07)
Module base=61000000
Wind smoothing fix is fully installed
DebugStatus=255
62 System time = 15:16:17
62 FLT UNC path = "\\VIS-CENTRE\Flight Simulator X Files\"
62 FS UNC path = "D:\Program Files\Microsoft Games\Microsoft Flight Simulator X\"
1000 LogOptions=00000000 00000001
1000 SimConnect_Open succeeded: waiting to check version okay
3266 Running in "Microsoft Flight Simulator X", Version: 10.0.61637.0 (SimConnect: 10.0.61259.0)
3266 Initialising SimConnect data requests now
3266 FSUIPC Menu entry added
3312 \\VIS-CENTRE\Flight Simulator X Files\cessna.FLT
3312 D:\Program Files\Microsoft Games\Microsoft Flight Simulator X\SimObjects\Airplanes\C172\Cessna172SP.AIR
18828 Aircraft="Cessna Skyhawk 172SP G1000"
18828 System time = 15:16:35, Simulator time = 07:12:07 (02:12Z)
19391 Advanced Weather Interface Enabled
84531 Weather Mode now = Custom
103016 Weather Mode now = Global
212016 LogOptions changed, now 00000000 00000005
221609 WRITE0 C800, 1024 bytes: 05 00 01 00 00 00 00 00 47 4C 4F 42 00 00 01 00 ........GLOB....
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 40 06 00 00 E8 03 00 00 ........@.......
221609 1F 00 00 00 03 00 00 00 E8 03 00 00 00 00 64 00 ..............d.
221609 D0 07 00 00 00 00 64 00 B8 0B 00 00 00 00 64 00 ......d.......d.
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 ................
221609 A0 0F B9 0B 00 00 06 01 00 00 E8 03 00 01 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
221609 WRITE0 0239, 1 bytes: 20
221609 WRITE0 023B, 1 bytes: 05 .
221609 WRITE0 023E, 2 bytes: 18 1F ..
221609 WRITE0 0248, 2 bytes: 02 00 ..
#6
Posted 27 May 2009 - 12:31 PM
Sridhar said:
I am also trying to set the Global weather, but I am not able to succed.
I am using FSUIPC 4.50 and fsx.
Below is the FSUIPC log details.
Can you please help me?
I am using FSUIPC 4.50 and fsx.
Below is the FSUIPC log details.
Can you please help me?
Anyway, I really cannot spend all the time needed to decode the binary data. Can you please enable Weather logging in FSUIPC, which will show things more clearly. I'm sure you'll see what you are doing yourself then. If you want further help also please tell me what weather you are trying to set, and what results you see which you think are wrong.
Regards
Pete
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











