MarcusMüller Posted July 27, 2010 Report Posted July 27, 2010 Hi all, I am trying to set Global weather in FSX. Here is what I am doing: 1. Set FSX Global weather mode (NW_GLOBAL) 2. Switch of Dynamics 3. Clear all weather 4. Set my weather with Global I am doing all that with LUA. When I set global weather ("GLOB") it does not work at all. When I try to set the weather at my position I can at least set the visibility but no clouds. Here is what the logfile says: 31855 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 31855 WRITElua C800, 2 bytes: 05 00 .. 31855 NW_GLOBAL command, setting weather to global mode 31917 System time = 27/07/2010 03:54:47, Simulator time = 12:54:19 (10:54Z) 31933 Aircraft="Beech Baron 58 Paint1" 33883 WRITElua C80C, 2 bytes: 00 00 .. 33883 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 33945 WRITElua C800, 2 bytes: 04 00 .. 33945 NW_DYNAMICS command, setting weather dynamics = 0 67766 WRITElua C8F8, 4 bytes: 00 00 00 00 .... 67829 WRITElua CA7C, 4 bytes: 02 00 00 00 .... 67876 WRITElua CA80, 16 bytes: F4 05 30 01 F4 00 08 08 00 00 30 01 00 00 00 00 ..0.......0..... 67938 WRITElua CA90, 16 bytes: E8 0B F4 05 30 01 00 01 00 00 F4 05 00 00 00 00 ....0........... 68000 WRITElua C82C, 8 bytes: E8 03 00 00 3E 00 00 00 ....>... 68063 WRITElua C828, 4 bytes: 50 3F 00 00 P?.. 68110 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 68172 WRITElua C810, 8 bytes: 00 00 00 00 00 00 00 00 ........ 68234 WRITElua C818, 8 bytes: 00 00 00 00 00 00 00 00 ........ 68297 WRITElua C834, 4 bytes: 01 00 00 00 .... 68359 WRITElua C838, 8 bytes: 00 00 0F 00 00 00 05 00 ........ 68406 WRITElua C80C, 2 bytes: 00 00 .. 68468 WRITElua C80E, 2 bytes: 00 00 .. 68531 WRITElua C820, 4 bytes: 00 00 00 00 .... 68593 WRITElua C804, 4 bytes: 01 00 00 00 .... 68656 WRITElua C802, 2 bytes: 00 00 .. 68702 WRITElua C800, 2 bytes: 01 00 .. 68702 NW_SET weather command received, ICAO=GLOB 68702 >NewSet: **** New Weather being set: ICAO=GLOB (Dyn=0) 68702 >NewSet: Pressure=1013.0, Drift=0.0 68702 >NewSet: Visibility[0]: range=0.6sm (998m), from=0ft, to=3280ft 68702 >NewSet: Temperature[0]: alt=0ft, Day=15 C, NightVar=0 C, DewPt=5 C 68702 >NewSet: Cloud[0]: type=8, from 1000ft to 5000ft (+/- 800ft), cover=8, turb=0, topshape=0 68702 >NewSet: Precip=0, base=1000ft, rate=0, icing=0 68702 >NewSet: Cloud[1]: type=1, from 5000ft to 10000ft (+/- 1000ft), cover=0, turb=0, topshape=0 68702 >NewSet: Precip=0, base=5000ft, rate=0, icing=0 68702 >NewSet: **** End of New Weather details for ICAO=GLOB 68702 Setting Weather: "GLOB 271054Z 00000KT 0998&B0&D1000 8ST010&ST040FNVN010N 0CI050&CI050FNVN050N 15/05&A0 Q1013 " Any idea what I am doing wrong here ? Marcus
Pete Dowson Posted July 27, 2010 Report Posted July 27, 2010 When I set global weather ("GLOB") it does not work at all. When I try to set the weather at my position I can at least set the visibility but no clouds. Here is what the logfile says Is that a severely edited version of the Log file? Because there are many critical messages missing. You have weather logging enabled, yet there's no sign of any weather being read. Have you turned FSUIPC's weather reading off? By cutting off the top of the Log you deny me knowing what version of FSUIPC4 it is you are using, and you don't state it. It also doesn't show me the version of FSX you are using. And it is a shame you did not include your Lua program, or at least a small one enough to demonstrate your problem. However, I made a very small one, without actually any weather being set, just to show you the Log entries I would have expected to see: Here's my test Lua: ipc.writeUW(0xC800, 5) ipc.writeUW(0xC80C, 0) ipc.writeUW(0xC800, 4) ipc.writeUW(0xC800, 3) Here's part of a default log, with no logging options selected at all: 894765 Weather Mode now = Global 894828 NWI weather clear actioned 894828 External weather discarded 895219 Weather Mode now = Theme 895219 Weather Mode now = Global See that the FSX weather mode changes are logged? They are ALWAYS logged (unless you are using an original FSX which was buggy and doesn't notify apps). See also that clearing all weather resets the mode to "Theme" (as it uses the "clear skies" theme", but FSUIPC restores Global mode afterwards? With weather and IPC write logging enabled too, as in your case: 1155594 WRITElua C800, 2 bytes: 05 00 .. 1155609 NW_GLOBAL command, setting weather to global mode 1155625 WRITElua C80C, 2 bytes: 00 00 .. 1155625 Weather Mode now = Global 1155625 WRITElua C800, 2 bytes: 04 00 .. 1155625 NW_DYNAMICS command, setting weather dynamics = 0 1155656 begin_of_the_skype_highlighting 0 1155656 end_of_the_skype_highlighting begin_of_the_skype_highlighting 0 1155656 end_of_the_skype_highlighting WRITElua C800, 2 bytes: 03 00 .. 1155672 NW_CLEAR weather command received 1155672 NWI weather clear actioned 1155672 External weather discarded 1155687 Weather Mode now = Theme 1155703 Weather Mode now = Global 1156640 Weather Read request (At Aircrft) to area 4: Lat=53.36, Lon=-2.27, Alt=147.1, Req=2 1156640 Weather Read request (Nr Station) to area 5: Lat=52.86, Lon=-1.43, Alt=0.0, Req=1 1156640 Weather Received (type 4 request, Interpolated): "GLOB&A0 271116Z 00000KT&D609NG 100KM&B-1500&D6072 CLR 15/05 Q1013 " 1156640 WX Received in 0 mSecs, WX request type 4, Lat=53.3600, Lon=-2.2723, Alt=147.1m 1160812 WX Error: timed out, WX request type 5, Lat=52.8600, Lon=-1.4344, Alt=0.0m 1160812 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 1160812 Weather Read request (Nr Station) to area 5: Lat=53.36, Lon=-2.27, Alt=0.0, Req=1 1160812 Weather Received (type 1 request, AtStation): "GLOB&A0 271116Z 00000KT&D609NG 100KM&B-1500&D6072 CLR 15/05 Q1013 " 1160812 WX Received in 0 mSecs, WX request type 1, ICAO=GLOB 1160828 >Change: Pressure=1013.0 mb 1160828 >Change: Surface wind: to alt=3530ft, dir=0T, vel=0.0, gust=0.0, turb=0, shear=0, var=0.0 1160828 >Change: Wind layer 1: to alt=6530ft, dir=49T, vel=22.0, gust=0.0, turb=2, shear=0, var=0.0 1160828 >Change: Visibility[0]: range=62.1sm (100005m), from=-1210ft, to=8780ft 1160828 >Change: Cloud[0]: remainder cleared 1160828 >Change: Temperature[0]: alt=226ft, Day=15.0 C, NightVar=0.0 C, DewPt=5.0 C 1160828 Results: FS98 Pressure=1011.7 mb 1160828 Results: FS98 Wind0: ground (255ft) to 3280ft AGL, dir 0M, vel 0, gust 0, turb 0 1160828 Results: FS98 Wind1: 3530ft to 6530ft AMSL, dir=48T, vel 22, gust 0, turb 128 1160828 Results: FS98 AmbientWind at PlaneAlt=482: dir 0M, vel 4 1160828 Results: FS98 Vis: range =62sm, (raw value=6214) 1160828 Results: FS98 Tstorm: type=0, from 0ft to 0ft (+/- 0ft), cover 0, turb 0, ice 0 1160828 Results: FS98 Cloud1: type=0, from 0ft to 0ft (+/- 0ft), cover 0, turb 0, ice 0 1160828 Results: FS98 Temp0: to 256ft, Day 15.0C, NightVar 0.0C 1160828 Results: FS98 CurrTemp at PlaneAlt=482: 15C If you aren't sure why you are not seeing these things, please show me your FSUIPC4.INI file. Please check that your FSX is at least at SP1 level -- weather is still buggy in FSX even with SP1 and SP2, but a lot didn't work at all in the original release. Please also make sure you are using FSUIPC4 version 4.60 or later. If you want me to test further, please supply the Lua you are testing with. Regards Pete
MarcusMüller Posted July 27, 2010 Author Report Posted July 27, 2010 Hi Pete, sorry, I did not post everything. Here is a complete log: ********* FSUIPC4, Version 4.60a by Pete Dowson *********Reading options from "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\FSUIPC4.ini" NOTE: SimConnect Acc/SP2 Oct07 is supported, but it isn't installed. NOTE: SimConnect SP1 May07 is supported, but it isn't installed. Trying to connect to SimConnect Original ... User Name="Marcus Müller" User Addr="marcus@xxxxxxx FSUIPC4 Key is provided WIDEFS7 not user registered, or expired Running inside FSX on Windows 7 (using SimConnect Original) Module base=61000000 Wind smoothing fix is fully installed DebugStatus=15 624 System time = 27/07/2010 13:59:24 639 FLT UNC path = "\\MW-MM\Develop\Users\marcus\Documents\Flight Simulator X-Dateien\" 639 FS UNC path = "\\MW-MM\Develop\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\" 1482 LogOptions=80000000 00000007 1497 SimConnect_Open succeeded: waiting to check version okay 7987 Running in "Microsoft Flight Simulator X", Version: 10.0.60905.0 (SimConnect: 2.0.60905.0) 16645 SimStart Event: Initialising SimConnect data requests 16645 FSUIPC Menu entry added 16739 \\MW-MM\Develop\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\FLIGHTS\OTHER\FLTSIM.FLT 16739 \\MW-MM\Develop\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\SimObjects\Airplanes\beech_baron_58\Beech_Baron_58.AIR 16848 System time = 27/07/2010 13:59:40, Simulator time = 13:59:30 (20:59Z) 16863 Aircraft="Beech Baron 58 Paint1" 16863 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 16863 WRITElua C800, 2 bytes: 05 00 .. 16863 NW_GLOBAL command, setting weather to global mode 18876 WRITElua C80C, 2 bytes: 00 00 .. 18876 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 18876 WRITElua C800, 2 bytes: 04 00 .. 18876 NW_DYNAMICS command, setting weather dynamics = 0 20888 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 20888 WRITElua C800, 2 bytes: 03 00 .. 20888 NW_CLEAR weather command received 20888 NWI weather clear actioned 20888 External weather discarded 47346 Weather Read request (Nr Station) to area 5: Lat=48.42, Lon=10.92, Alt=0.0, Req=1 51371 WX Error: timed out, WX request type 5, Lat=48.4234, Lon=10.9238, Alt=0.0m 51371 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 51371 Weather Received (type 1 request, AtStation): "GLOB&A0 000000Z 00000KT&D305NG 100KM&B-1500&D1957 CLR 15/07 Q1013 " 51371 WX Received in 0 mSecs, WX request type 1, ICAO=GLOB 51371 Advanced Weather Interface Enabled 55505 Weather Read request (Nr Station) to area 5: Lat=48.42, Lon=10.92, Alt=0.0, Req=1 59530 WX Error: timed out, WX request type 5, Lat=48.4234, Lon=10.9238, Alt=0.0m 59530 Weather Read request (At Aircrft) to area 4: Lat=48.42, Lon=10.92, Alt=461.8, Req=2 59530 Weather Received (type 4 request, Interpolated): "????&A0 272059Z 00000KT&D305NG 100KM&B-457&D30936 CLR 12/04 Q1013 " 59530 WX Received in 0 mSecs, WX request type 4, Lat=48.4234, Lon=10.9238, Alt=461.8m 63679 Weather Read request (Nr Station) to area 5: Lat=48.42, Lon=10.92, Alt=0.0, Req=1 67564 WX Error: timed out, WX request type 5, Lat=48.4234, Lon=10.9238, Alt=0.0m 69576 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 69576 Weather Received (type 1 request, AtStation): "GLOB&A0 000000Z 00000KT&D305NG 100KM&B-1500&D1957 CLR 15/07 Q1013 " 69576 WX Received in 0 mSecs, WX request type 1, ICAO=GLOB 69576 >Change: Pressure=1013.0 mb 69576 >Change: Surface wind: to alt=1510ft, dir=0T, vel=0.0, gust=0.0, turb=0, shear=0, var=0.0 69576 >Change: Visibility[0]: range=62.1sm (100005m), from=0ft, to=0ft 69576 >Change: Temperature[0]: alt=1510ft, Day=12.0 C, NightVar=0.0 C, DewPt=4.0 C 69576 Results: FS98 Pressure=1013.0 mb 69576 Results: FS98 Wind0: ground (1515ft) to 0ft AGL, dir 0M, vel 0, gust 0, turb 0 69576 Results: FS98 Vis: range =62sm, (raw value=6214) 69576 Results: FS98 Temp0: to 1516ft, Day 12.0C, NightVar 0.0C 69576 Results: FS98 CurrTemp at PlaneAlt=1516: 12C 73866 Weather Read request (Nr Station) to area 5: Lat=48.42, Lon=10.92, Alt=0.0, Req=1 91182 WX Error: timed out, WX request type 5, Lat=48.4234, Lon=10.9238, Alt=0.0m 91182 Weather Read request (At Aircrft) to area 4: Lat=48.42, Lon=10.92, Alt=462.8, Req=2 91182 Weather Received (type 4 request, Interpolated): "????&A0 271052Z 00000KT&D305NG 100KM&B-457&D30936 CLR 11/03 Q1013 " 91182 WX Received in 0 mSecs, WX request type 4, Lat=48.4234, Lon=10.9238, Alt=462.8m 95332 Weather Read request (Nr Station) to area 5: Lat=48.42, Lon=10.92, Alt=0.0, Req=1 95332 Weather Received (type 5 request, Nearest): "EDMA&A462 000000Z 00000KT&D305NG 100KM&B-1962&D1957 CLR 14/06 Q1013 " 95332 WX Received in 0 mSecs, WX request type 5, Lat=48.4234, Lon=10.9238, Alt=0.0m 95332 ***ICAOset = EDMA 95332 >Change: FS98 Vis: range =62sm, (raw value=6214) 95332 >Change: FS98 Temp0: to 1516ft, Day 12.0C, NightVar 0.0C 95332 >Change: FS98 Dewpoint Control: disabled 95332 >Change: FS98 Precip Control: disabled 95332 Results: FS98 Temp0: to 1516ft, Day 11.0C, NightVar 0.0C 95332 Results: FS98 CurrTemp at PlaneAlt=1516: 12C 99528 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 99528 Weather Received (type 1 request, AtStation): "GLOB&A0 000000Z 00000KT&D305NG 100KM&B-1500&D1957 CLR 15/07 Q1013 " 99528 WX Received in 0 mSecs, WX request type 1, ICAO=GLOB 103678 Weather Read request (Nr Station) to area 5: Lat=48.42, Lon=10.92, Alt=0.0, Req=1 103678 Weather Received (type 5 request, Nearest): "EDMA&A462 000000Z 00000KT&D305NG 100KM&B-1962&D1957 CLR 14/06 Q1013 " 103678 WX Received in 0 mSecs, WX request type 5, Lat=48.4234, Lon=10.9238, Alt=0.0m 107828 Weather Read request (At Aircrft) to area 4: Lat=48.42, Lon=10.92, Alt=462.8, Req=2 107828 Weather Received (type 4 request, Interpolated): "????&A0 271052Z 00000KT&D305NG 100KM&B-457&D30936 CLR 11/03 Q1013 " 107828 WX Received in 0 mSecs, WX request type 4, Lat=48.4234, Lon=10.9238, Alt=462.8m 111852 Weather Read request (Nr Station) to area 5: Lat=48.42, Lon=10.92, Alt=0.0, Req=1 111852 Weather Received (type 5 request, Nearest): "EDMA&A462 000000Z 00000KT&D305NG 100KM&B-1962&D1957 CLR 14/06 Q1013 " 111852 WX Received in 0 mSecs, WX request type 5, Lat=48.4234, Lon=10.9238, Alt=0.0m 111852 >Change: Surface wind: to alt=2516ft, dir=0T, vel=0.0, gust=0.0, turb=0, shear=0, var=0.0 111852 >Change: Visibility[0]: range=62.1sm (100005m), from=-4920ft, to=1500ft 111852 Results: FS98 Wind0: ground (1515ft) to 1000ft AGL, dir 0M, vel 0, gust 0, turb 0 116158 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 116158 Weather Received (type 1 request, AtStation): "GLOB&A0 000000Z 00000KT&D305NG 100KM&B-1500&D1957 CLR 15/07 Q1013 " 116158 WX Received in 0 mSecs, WX request type 1, ICAO=GLOB 120339 Weather Read request (Nr Station) to area 5: Lat=48.42, Lon=10.92, Alt=0.0, Req=1 120339 Weather Received (type 5 request, Nearest): "EDMA&A462 000000Z 00000KT&D305NG 100KM&B-1962&D1957 CLR 14/06 Q1013 " 120339 WX Received in 0 mSecs, WX request type 5, Lat=48.4234, Lon=10.9238, Alt=0.0m 120339 Results: FS98 CurrTemp at PlaneAlt=1516: 12C 124691 Weather Read request (At Aircrft) to area 4: Lat=48.42, Lon=10.92, Alt=462.8, Req=2 124691 Weather Received (type 4 request, Interpolated): "????&A0 271052Z 00000KT&D305NG 100KM&B-457&D30936 CLR 11/03 Q1013 " 124691 WX Received in 0 mSecs, WX request type 4, Lat=48.4234, Lon=10.9238, Alt=462.8m 124925 WRITElua C8F8, 4 bytes: 00 00 00 00 .... 124988 WRITElua CA7C, 4 bytes: 02 00 00 00 .... 125050 WRITElua CA80, 16 bytes: 61 02 30 01 00 00 08 08 00 00 00 00 00 00 00 00 a.0............. 125112 WRITElua CA90, 16 bytes: E8 0B F4 05 00 00 03 08 00 00 00 00 00 00 00 00 ................ 125159 WRITElua C82C, 8 bytes: E8 03 00 00 36 01 00 00 ....6... 125222 WRITElua C828, 4 bytes: 50 3F 00 00 P?.. 125284 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 125346 WRITElua C810, 8 bytes: 00 00 00 00 00 00 00 00 ........ 125409 WRITElua C818, 8 bytes: 00 00 00 00 00 00 00 00 ........ 125456 WRITElua C834, 4 bytes: 01 00 00 00 .... 125518 WRITElua C838, 8 bytes: 00 00 0F 00 00 00 05 00 ........ 125580 WRITElua C80C, 2 bytes: 00 00 .. 125643 WRITElua C80E, 2 bytes: 00 00 .. 125705 WRITElua C820, 4 bytes: 00 00 00 00 .... 125752 WRITElua C804, 4 bytes: 01 00 00 00 .... 125814 WRITElua C802, 2 bytes: 00 00 .. 125877 WRITElua C800, 2 bytes: 01 00 .. 125877 NW_SET weather command received, ICAO=GLOB 125877 >NewSet: **** New Weather being set: ICAO=GLOB (Dyn=0) 125877 >NewSet: Pressure=1013.0, Drift=0.0 125877 >NewSet: Visibility[0]: range=3.1sm (4989m), from=0ft, to=3280ft 125877 >NewSet: Temperature[0]: alt=0ft, Day=15 C, NightVar=0 C, DewPt=5 C 125877 >NewSet: Cloud[0]: type=8, from 1000ft to 2000ft (+/- 0ft), cover=8, turb=0, topshape=0 125877 >NewSet: Precip=0, base=0ft, rate=0, icing=0 125877 >NewSet: Cloud[1]: type=8, from 5000ft to 10000ft (+/- 0ft), cover=3, turb=0, topshape=0 125877 >NewSet: Precip=0, base=0ft, rate=0, icing=0 125877 >NewSet: **** End of New Weather details for ICAO=GLOB 125877 Setting Weather: "GLOB 271052Z 00000KT 4989&B0&D1000 8ST010&ST010FNVN000N 3ST050&ST050FNVN000N 15/05&A0 Q1013 " 128841 Weather Read request (Nr Station) to area 5: Lat=48.42, Lon=10.92, Alt=0.0, Req=1 128841 Weather Received (type 5 request, Nearest): "EDMA&A462 000000Z 00000KT&D305NG 100KM&B-1962&D1957 CLR 14/06 Q1013 " 128841 WX Received in 0 mSecs, WX request type 5, Lat=48.4234, Lon=10.9238, Alt=0.0m And here is my lua script. It is based on your slaveserver - however I changed the protocol to UDP: -- "Slave Server" example LUA plug-in, by Pete Dowson, October 2009-- To make the Server FS follow the Client one socket = require("socket"); host = "*"; port = "8386"; local function processdata(command) -- decode string, just numbers in order with non-number separators w = string.gmatch(command, "[+-]?[0-9%.?]+") utype = w() ucover = w() ubase = w() utop = w() uvar = w() ltype = w() lcover = w() lbase = w() ltop = w() lvar = w() vis = w() -- Wind ipc.writeSD (0xC8F8,0); -- Wolken ipc.writeSD (0xCA7C,2); -- Layer 1 ipc.writeStruct(0xCA80,"3UW",ltop,lbase,0,"4UB",lcover,ltype,0,0,"1SW",0,"4UB",0,0,0,0); -- Layer 2 ipc.writeStruct(0xCA90,"3UW",utop,ubase,0,"4UB",ucover,utype,0,0,"1SW",0,"4UB",0,0,0,0); -- Visibility ipc.writeStruct(0xC82C,"4UW",1000,0,vis,0); -- PRESS ipc.writeStruct(0xC828,"2UW",16208,0); -- Global ipc.writeSTR(0xC808,"GLOB"); ipc.writeDBL(0xC810,0); ipc.writeDBL(0xC818,0); -- TEMP ipc.writeSD(0xC834,1); ipc.writeStruct(0xC838,"4UW",0,15,0,5); -- Dynamics off ipc.writeUW(0xC80C,0); ipc.writeUW(0xC80E,0); -- Elevation ipc.writeSD(0xC820,0); -- Signature ipc.writeSD(0xC804,1); -- Flags ipc.writeUW(0xC802,0); -- Write Data ipc.writeUW(0xC800,1); end -- Global Mode ipc.writeSTR(0xC808,"GLOB"); ipc.writeUW (0xC800,5); ipc.sleep (2000); -- Dynamics off ipc.writeUW (0xC80C,0); ipc.writeSTR(0xC808,"GLOB"); ipc.writeUW (0xC800,4); ipc.sleep (2000); -- Clear Weather ipc.writeSTR(0xC808,"GLOB"); ipc.writeUW (0xC800,3); udp = assert(socket.udp()) assert(udp:setsockname(host, port)); while 1 do command = udp:receive(); processdata(command) end Thanks, Marcus
Pete Dowson Posted July 27, 2010 Report Posted July 27, 2010 Here is a complete log ... NOTE: SimConnect Acc/SP2 Oct07 is supported, but it isn't installed. NOTE: SimConnect SP1 May07 is supported, but it isn't installed. Trying to connect to SimConnect Original ... ... Running inside FSX on Windows 7 (using SimConnect Original) 7987 Running in "Microsoft Flight Simulator X", Version: 10.0.60905.0 (SimConnect: 2.0.60905.0) There's the real problem -- you've not yet updated your copy of FSX. The original version was VERY buggy, and most of the weather facilities in SimConnect did not work. You need at least SP1 installed. Try that and let me know please. Regards Pete
MarcusMüller Posted July 27, 2010 Author Report Posted July 27, 2010 Hi Pete, thank you for the info. Right now I am downloading SP2 for FSX. I will let you know if it works then. Marcus
Pete Dowson Posted July 27, 2010 Report Posted July 27, 2010 thank you for the info. Right now I am downloading SP2 for FSX. You need to apply SP1 before SP2. The latter did not include it, unlike Acceleration. Regards Pete
MarcusMüller Posted July 27, 2010 Author Report Posted July 27, 2010 Hi Pete, now I have applied SP1 + SP2 - however the weather problem did not change. Here is my last logfile: ********* FSUIPC4, Version 4.60a by Pete Dowson *********Reading options from "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\FSUIPC4.ini" Trying to connect to SimConnect Acc/SP2 Oct07 ... User Name="Marcus Müller" User Addr="marcus@xxxxxx" FSUIPC4 Key is provided WIDEFS7 not user registered, or expired Running inside FSX on Windows 7 (using SimConnect Acc/SP2 Oct07) Module base=61000000 Wind smoothing fix is fully installed DebugStatus=15 499 System time = 27/07/2010 16:04:40 515 FLT UNC path = "\\MW-MM\Develop\Users\marcus\Documents\Flight Simulator X-Dateien\" 515 FS UNC path = "\\MW-MM\Develop\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\" 1326 LogOptions=80000000 00000007 1326 SimConnect_Open succeeded: waiting to check version okay 5756 Running in "Microsoft Flight Simulator X", Version: 10.0.61472.0 (SimConnect: 10.0.61259.0) 5756 Initialising SimConnect data requests now 5756 FSUIPC Menu entry added 5897 \\MW-MM\Develop\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\FLIGHTS\OTHER\FLTSIM.FLT 5897 \\MW-MM\Develop\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\SimObjects\Airplanes\Aircreation_582SL\Aircreation_582SL.AIR 24118 \\MW-MM\Develop\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\SimObjects\Airplanes\beech_baron_58\Beech_Baron_58.AIR 56909 Weather Mode now = Theme 56909 \\MW-MM\Develop\Users\marcus\AppData\Roaming\Microsoft\FSX\Vorheriger Flug.FLT 185704 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 185704 WRITElua C800, 2 bytes: 05 00 .. 185704 NW_GLOBAL command, setting weather to global mode 186016 Weather Mode now = Global 186624 System time = 27/07/2010 16:07:46, Simulator time = 01:04:45 (23:04Z) 186640 Aircraft="Beech Baron 58 Paint1" 187170 Weather Read request (Nr Station) to area 5: Lat=48.43, Lon=10.94, Alt=0.0, Req=1 187763 WRITElua C80C, 2 bytes: 00 00 .. 187825 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 187872 WRITElua C800, 2 bytes: 04 00 .. 187872 NW_DYNAMICS command, setting weather dynamics = 0 189479 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 189479 Weather Received (type 1 request, AtStation): "GLOB&A0 000000Z 00000KT&D985NG 27020KT&A2001NG 27025KT&A6001NG 100KM&B-448&D3048 2CU057&CU001FNMN000N 6CI393&CI001FNMN000N 15/05 Q1013 @@@ 66 15 270 20 | 197 15 270 25 | " 189479 WX Received in 0 mSecs, WX request type 1, ICAO=GLOB 189479 Advanced Weather Interface Enabled 189884 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 189884 WRITElua C800, 2 bytes: 03 00 .. 189884 NW_CLEAR weather command received 189884 NWI weather clear actioned 189884 External weather discarded 189931 Weather Mode now = Theme 189931 Weather Mode now = Global 191647 WX Error: timed out, WX request type 5, Lat=48.4270, Lon=10.9397, Alt=0.0m 191647 Weather Read request (Nr Station) to area 5: Lat=48.43, Lon=10.94, Alt=0.0, Req=1 207123 WX Error: timed out, WX request type 5, Lat=48.4270, Lon=10.9397, Alt=0.0m 208215 Weather Read request (At Aircrft) to area 4: Lat=48.43, Lon=10.94, Alt=462.8, Req=2 208215 Weather Received (type 4 request, Interpolated): "GLOB&A0 272304Z 00000KT&D609NG 100KM&B-1500&D6072 CLR 15/05 Q1013 " 208215 WX Received in 0 mSecs, WX request type 4, Lat=48.4270, Lon=10.9397, Alt=462.8m 210539 Weather Read request (Nr Station) to area 5: Lat=48.43, Lon=10.94, Alt=0.0, Req=1 212723 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 212723 Weather Received (type 1 request, AtStation): "GLOB&A0 272304Z 00000KT&D609NG 100KM&B-1500&D6072 CLR 15/05 Q1013 " 212723 WX Received in 0 mSecs, WX request type 1, ICAO=GLOB 212723 >Change: Pressure=1013.0 mb 212723 >Change: Surface wind: to alt=2000ft, dir=0T, vel=0.0, gust=0.0, turb=0, shear=0, var=0.0 212723 >Change: Visibility[0]: range=62.1sm (100005m), from=0ft, to=0ft 212723 >Change: Temperature[0]: alt=0ft, Day=15.0 C, NightVar=0.0 C, DewPt=5.0 C 212723 Results: FS98 Pressure=1013.2 mb 212723 Results: FS98 Wind0: ground (1515ft) to 480ft AGL, dir 0M, vel 0, gust 0, turb 0 212723 Results: FS98 Vis: range =62sm, (raw value=6214) 212723 Results: FS98 Temp0: to 1516ft, Day 15.0C, NightVar 0.0C 212723 Results: FS98 CurrTemp at PlaneAlt=1516: 15C 214860 WX Error: timed out, WX request type 5, Lat=48.4270, Lon=10.9397, Alt=0.0m 214860 Weather Read request (Nr Station) to area 5: Lat=48.43, Lon=10.94, Alt=0.0, Req=1 214860 Weather Received (type 5 request, Nearest): "EDMA&A462 272304Z 00000KT&D609NG 100KM&B-1962&D6072 CLR 15/05 Q1013 " 214860 WX Received in 0 mSecs, WX request type 5, Lat=48.4270, Lon=10.9397, Alt=0.0m 214860 ***ICAOset = EDMA 214860 >Change: FS98 Pressure=1013.2 mb 214860 >Change: FS98 Vis: range =62sm, (raw value=6214) 214860 >Change: FS98 Temp0: to 1516ft, Day 15.0C, NightVar 0.0C 214860 >Change: FS98 Dewpoint Control: disabled 214860 >Change: FS98 Precip Control: disabled 217044 Weather Read request (At Aircrft) to area 4: Lat=48.43, Lon=10.94, Alt=462.8, Req=2 217044 Weather Received (type 4 request, Interpolated): "GLOB&A0 272304Z 00000KT&D609NG 100KM&B-1500&D6072 CLR 15/05 Q1013 " 217044 WX Received in 0 mSecs, WX request type 4, Lat=48.4270, Lon=10.9397, Alt=462.8m 219181 Weather Read request (Nr Station) to area 5: Lat=48.43, Lon=10.94, Alt=0.0, Req=1 219181 Weather Received (type 5 request, Nearest): "EDMA&A462 272304Z 00000KT&D609NG 100KM&B-1962&D6072 CLR 15/05 Q1013 " 219181 WX Received in 0 mSecs, WX request type 5, Lat=48.4270, Lon=10.9397, Alt=0.0m 219181 >Change: Surface wind: to alt=3514ft, dir=0T, vel=0.0, gust=0.0, turb=0, shear=0, var=0.0 219181 >Change: Visibility[0]: range=62.1sm (100005m), from=-4920ft, to=15000ft 219181 >Change: Temperature[0]: alt=1516ft, Day=15.0 C, NightVar=0.0 C, DewPt=5.0 C 219181 Results: FS98 Wind0: ground (1515ft) to 2000ft AGL, dir 0M, vel 0, gust 0, turb 0 221069 WRITElua C8F8, 4 bytes: 00 00 00 00 .... 221131 WRITElua CA7C, 4 bytes: 02 00 00 00 .... 221194 WRITElua CA80, 16 bytes: 61 02 30 01 00 00 08 08 00 00 00 00 00 00 00 00 a.0............. 221256 WRITElua CA90, 16 bytes: E8 0B F4 05 00 00 04 08 00 00 00 00 00 00 00 00 ................ 221303 WRITElua C82C, 8 bytes: E8 03 00 00 36 01 00 00 ....6... 221365 WRITElua C828, 4 bytes: 50 3F 00 00 P?.. 221428 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 221490 WRITElua C810, 8 bytes: 00 00 00 00 00 00 00 00 ........ 221537 WRITElua C818, 8 bytes: 00 00 00 00 00 00 00 00 ........ 221537 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 221537 Weather Received (type 1 request, AtStation): "GLOB&A0 272304Z 00000KT&D609NG 100KM&B-1500&D6072 CLR 15/05 Q1013 " 221537 WX Received in 0 mSecs, WX request type 1, ICAO=GLOB 221599 WRITElua C834, 4 bytes: 01 00 00 00 .... 221662 WRITElua C838, 8 bytes: 00 00 0F 00 00 00 05 00 ........ 221662 WRITElua C80C, 2 bytes: 00 00 .. 221724 WRITElua C80E, 2 bytes: 00 00 .. 221787 WRITElua C820, 4 bytes: 00 00 00 00 .... 221833 WRITElua C804, 4 bytes: 01 00 00 00 .... 221896 WRITElua C802, 2 bytes: 00 00 .. 221958 WRITElua C800, 2 bytes: 01 00 .. 221958 NW_SET weather command received, ICAO=GLOB 221958 >NewSet: **** New Weather being set: ICAO=GLOB (Dyn=0) 221958 >NewSet: Pressure=1013.0, Drift=0.0 221958 >NewSet: Visibility[0]: range=3.1sm (4989m), from=0ft, to=3280ft 221958 >NewSet: Temperature[0]: alt=0ft, Day=15 C, NightVar=0 C, DewPt=5 C 221958 >NewSet: Cloud[0]: type=8, from 1000ft to 2000ft (+/- 0ft), cover=8, turb=0, topshape=0 221958 >NewSet: Precip=0, base=0ft, rate=0, icing=0 221958 >NewSet: Cloud[1]: type=8, from 5000ft to 10000ft (+/- 0ft), cover=4, turb=0, topshape=0 221958 >NewSet: Precip=0, base=0ft, rate=0, icing=0 221958 >NewSet: **** End of New Weather details for ICAO=GLOB 221958 Setting Weather: "GLOB 281052Z 00000KT 4989&B0&D1000 8ST010&ST010FNVN000N 4ST050&ST050FNVN000N 15/05&A0 Q1013 " 223737 Weather Read request (Nr Station) to area 5: Lat=48.43, Lon=10.94, Alt=0.0, Req=1 223737 Weather Received (type 5 request, Nearest): "EDMA&A462 272304Z 00000KT&D609NG 100KM&B-1962&D6072 CLR 15/05 Q1013 " 223737 WX Received in 0 mSecs, WX request type 5, Lat=48.4270, Lon=10.9397, Alt=0.0m 225874 Weather Read request (At Aircrft) to area 4: Lat=48.43, Lon=10.94, Alt=462.8, Req=2 225874 Weather Received (type 4 request, Interpolated): "GLOB&A0 281052Z 00000KT&D304NG 4989&B-1500&D1000 8ST010&ST001FNVN000N 4ST050&ST005FNVN000N 15/05 Q1013 " 225874 WX Received in 0 mSecs, WX request type 4, Lat=48.4270, Lon=10.9397, Alt=462.8m 228058 Weather Read request (Nr Station) to area 5: Lat=48.43, Lon=10.94, Alt=0.0, Req=1 228058 Weather Received (type 5 request, Nearest): "EDMA&A462 272304Z 00000KT&D609NG 100KM&B-1962&D6072 CLR 15/05 Q1013 " 228058 WX Received in 0 mSecs, WX request type 5, Lat=48.4270, Lon=10.9397, Alt=0.0m 228058 >Change: Visibility[0]: range=3.1sm (4989m), from=-4920ft, to=15000ft 228058 >Change: Cloud[0]: type=8, from 1000ft to 1500ft (+/- 0ft), cover=8, turb=0, topshape=0 228058 >Change: Precip=0, base=0ft, rate=0, icing=0 228058 >Change: Cloud[1]: type=8, from 5000ft to 5500ft (+/- 0ft), cover=4, turb=0, topshape=0 228058 >Change: Precip=0, base=0ft, rate=0, icing=0 228058 Results: FS98 Vis: range =3sm, (raw value=310) 228058 Results: FS98 Cloud1: type=8, from 1000ft to 1500ft (+/- 0ft), cover 8, turb 0, ice 0 228058 Results: FS98 Cloud2: type=8, from 5000ft to 5500ft (+/- 0ft), cover 4, turb 0, ice 0 Any ideas what might cause that ? Marcus
Pete Dowson Posted July 27, 2010 Report Posted July 27, 2010 now I have applied SP1 + SP2 - however the weather problem did not change. The log looks better now. 185704 WRITElua C808, 5 bytes: 47 4C 4F 42 00 GLOB. 185704 WRITElua C800, 2 bytes: 05 00 .. 185704 NW_GLOBAL command, setting weather to global mode 186016 Weather Mode now = Global ... 189884 WRITElua C800, 2 bytes: 03 00 .. 189884 NW_CLEAR weather command received 189884 NWI weather clear actioned 189884 External weather discarded 189931 Weather Mode now = Theme 189931 Weather Mode now = Global ... 208215 Weather Received (type 4 request, Interpolated): "GLOB&A0 272304Z 00000KT&D609NG 100KM&B-1500&D6072 CLR 15/05 Q1013 " ... 212723 Weather Received (type 1 request, AtStation): "GLOB&A0 272304Z 00000KT&D609NG 100KM&B-1500&D6072 CLR 15/05 Q1013 " ... 212723 >Change: Pressure=1013.0 mb 212723 >Change: Surface wind: to alt=2000ft, dir=0T, vel=0.0, gust=0.0, turb=0, shear=0, var=0.0 212723 >Change: Visibility[0]: range=62.1sm (100005m), from=0ft, to=0ft 212723 >Change: Temperature[0]: alt=0ft, Day=15.0 C, NightVar=0.0 C, DewPt=5.0 C 212723 Results: FS98 Pressure=1013.2 mb 212723 Results: FS98 Wind0: ground (1515ft) to 480ft AGL, dir 0M, vel 0, gust 0, turb 0 212723 Results: FS98 Vis: range =62sm, (raw value=6214) 212723 Results: FS98 Temp0: to 1516ft, Day 15.0C, NightVar 0.0C 212723 Results: FS98 CurrTemp at PlaneAlt=1516: 15C ... 217044 Weather Received (type 4 request, Interpolated): "GLOB&A0 272304Z 00000KT&D609NG 100KM&B-1500&D6072 CLR 15/05 Q1013 " ... 219181 Weather Received (type 5 request, Nearest): "EDMA&A462 272304Z 00000KT&D609NG 100KM&B-1962&D6072 CLR 15/05 Q1013 " so far, so good. GLOB weather mode is in effect and set at the nearest WX station too. Your setting: 221958 WRITElua C800, 2 bytes: 01 00 .. 221958 NW_SET weather command received, ICAO=GLOB 221958 >NewSet: **** New Weather being set: ICAO=GLOB (Dyn=0) 221958 >NewSet: Pressure=1013.0, Drift=0.0 221958 >NewSet: Visibility[0]: range=3.1sm (4989m), from=0ft, to=3280ft 221958 >NewSet: Temperature[0]: alt=0ft, Day=15 C, NightVar=0 C, DewPt=5 C 221958 >NewSet: Cloud[0]: type=8, from 1000ft to 2000ft (+/- 0ft), cover=8, turb=0, topshape=0 221958 >NewSet: Precip=0, base=0ft, rate=0, icing=0 221958 >NewSet: Cloud[1]: type=8, from 5000ft to 10000ft (+/- 0ft), cover=4, turb=0, topshape=0 221958 >NewSet: Precip=0, base=0ft, rate=0, icing=0 221958 >NewSet: **** End of New Weather details for ICAO=GLOB 221958 Setting Weather: "GLOB 281052Z 00000KT 4989&B0&D1000 8ST010&ST010FNVN000N 4ST050&ST050FNVN000N 15/05&A0 Q1013 " has been sent, as that FSX-style METAR string, to SimConnect, and a few seconds later reported as such: 225874 Weather Read request (At Aircrft) to area 4: Lat=48.43, Lon=10.94, Alt=462.8, Req=2 225874 Weather Received (type 4 request, Interpolated): "GLOB&A0 281052Z 00000KT&D304NG 4989&B-1500&D1000 8ST010&ST001FNVN000N 4ST050&ST005FNVN000N 15/05 Q1013 " FSUIPC decodes this METAR thus: 228058 >Change: Visibility[0]: range=3.1sm (4989m), from=-4920ft, to=15000ft 228058 >Change: Cloud[0]: type=8, from 1000ft to 1500ft (+/- 0ft), cover=8, turb=0, topshape=0 228058 >Change: Precip=0, base=0ft, rate=0, icing=0 228058 >Change: Cloud[1]: type=8, from 5000ft to 5500ft (+/- 0ft), cover=4, turb=0, topshape=0 228058 >Change: Precip=0, base=0ft, rate=0, icing=0 228058 Results: FS98 Vis: range =3sm, (raw value=310) 228058 Results: FS98 Cloud1: type=8, from 1000ft to 1500ft (+/- 0ft), cover 8, turb 0, ice 0 228058 Results: FS98 Cloud2: type=8, from 5000ft to 5500ft (+/- 0ft), cover 4, turb 0, ice 0 So I can't see anything wrong. Mind you, I've not decoded the data you are sending to the C8xx offsets to determine whether FSUIPC encoded them correctly in the METAR. It would be easier to see if it was correct if you told me the weather you were setting too. Any ideas what might cause that ? Cause what? It seems okay. It might take FSX some time for the weather to be promulgated to all the weather stations. I notice that although you set the "seconds" filed to zero: 221724 WRITElua C80E, 2 bytes: 00 00 you don't set the flag in C802 to tell FSUIPC to apply that non-standard blending delay. In fact you clear all flags instead: 221896 WRITElua C802, 2 bytes: 00 00 Regards Pete
MarcusMüller Posted July 27, 2010 Author Report Posted July 27, 2010 Hi Pete, the settings that I make are the ones shown here - that is correct: 221958 >NewSet: **** New Weather being set: ICAO=GLOB (Dyn=0)221958 >NewSet: Pressure=1013.0, Drift=0.0 221958 >NewSet: Visibility[0]: range=3.1sm (4989m), from=0ft, to=3280ft 221958 >NewSet: Temperature[0]: alt=0ft, Day=15 C, NightVar=0 C, DewPt=5 C 221958 >NewSet: Cloud[0]: type=8, from 1000ft to 2000ft (+/- 0ft), cover=8, turb=0, topshape=0 221958 >NewSet: Precip=0, base=0ft, rate=0, icing=0 221958 >NewSet: Cloud[1]: type=8, from 5000ft to 10000ft (+/- 0ft), cover=4, turb=0, topshape=0 221958 >NewSet: Precip=0, base=0ft, rate=0, icing=0 221958 >NewSet: **** End of New Weather details for ICAO=GLOB However, in FSX there is no weather activated. Furthermore the visibility does not change at all. Interestingly the read does return a different result: 212723 >Change: Pressure=1013.0 mb212723 >Change: Surface wind: to alt=2000ft, dir=0T, vel=0.0, gust=0.0, turb=0, shear=0, var=0.0 212723 >Change: Visibility[0]: range=62.1sm (100005m), from=0ft, to=0ft 212723 >Change: Temperature[0]: alt=0ft, Day=15.0 C, NightVar=0.0 C, DewPt=5.0 C 212723 Results: FS98 Pressure=1013.2 mb 212723 Results: FS98 Wind0: ground (1515ft) to 480ft AGL, dir 0M, vel 0, gust 0, turb 0 212723 Results: FS98 Vis: range =62sm, (raw value=6214) 212723 Results: FS98 Temp0: to 1516ft, Day 15.0C, NightVar 0.0C 212723 Results: FS98 CurrTemp at PlaneAlt=1516: 15C Here we have a visibility of 62sm and no clouds. I will try to set the flag for the non-standard blending delay, maybe that helps. Marcus
Pete Dowson Posted July 27, 2010 Report Posted July 27, 2010 However, in FSX there is no weather activated. Furthermore the visibility does not change at all. I think the default blending time is around 30 seconds. But I'm not sure. Interestingly the read does return a different result:... Here we have a visibility of 62sm and no clouds. That is a read almost immediately after your write. The one for interpolated weather at the aircraft was correct, as I highlighted for you: ... and a few seconds later reported as such: 225874 Weather Read request (At Aircrft) to area 4: Lat=48.43, Lon=10.94, Alt=462.8, Req=2 225874 Weather Received (type 4 request, Interpolated): "GLOB&A0 281052Z 00000KT&D304NG 4989&B-1500&D1000 8ST010&ST001FNVN000N 4ST050&ST005FNVN000N 15/05 Q1013 " FSUIPC decodes this METAR thus: 228058 >Change: Visibility[0]: range=3.1sm (4989m), from=-4920ft, to=15000ft 228058 >Change: Cloud[0]: type=8, from 1000ft to 1500ft (+/- 0ft), cover=8, turb=0, topshape=0 228058 >Change: Precip=0, base=0ft, rate=0, icing=0 228058 >Change: Cloud[1]: type=8, from 5000ft to 5500ft (+/- 0ft), cover=4, turb=0, topshape=0 228058 >Change: Precip=0, base=0ft, rate=0, icing=0 228058 Results: FS98 Vis: range =3sm, (raw value=310) 228058 Results: FS98 Cloud1: type=8, from 1000ft to 1500ft (+/- 0ft), cover 8, turb 0, ice 0 228058 Results: FS98 Cloud2: type=8, from 5000ft to 5500ft (+/- 0ft), cover 4, turb 0, ice 0 did you miss that part of my last reply? FSUIPC is doing what you ask, and, as far as I can see, so is SimConnect. Whether the FSX weather rendering system does as well is another matter. I have no idea how to correct its idiosyncrasies I'm afraid. Folks like Damian (Active Sky author) know far more about the fiddles one has to endure than I. Regards Pete
MarcusMüller Posted July 27, 2010 Author Report Posted July 27, 2010 Hi Pete, thank you for that info. Interestingly if I go to the weather settings within FSX I can see exactly the weather that I have set - however FSX does not use it. Only the visibility is not shown - very strange. Marcus
MarcusMüller Posted July 27, 2010 Author Report Posted July 27, 2010 Hi Pete, at least I was able to get the clouds working - they where not shown correcctly due to my visual settings within FSX. Now I only need to get the visibility working ... Marcus
JSkorna Posted July 28, 2010 Report Posted July 28, 2010 Hi, Make sure you are on the ground to work on your visibility situations.
MarcusMüller Posted July 30, 2010 Author Report Posted July 30, 2010 Hi, thank you for the tip - however I was testing while I was on the ground. The fix is rather simple: The LowerAlt of the visibility layer should not be 0 - if I set it to 1 everything works.... One further strange effect is, that the UpperAlt of the cloud layers is simply ignored. The thickness of a cloud layer cannot be defined - it is fixed by the type of cloud. Stratus is 2000ft, Cumulus 10000ft and Cirrus 1500ft. No idea why the upper alt does not work. Very strange ... Marcus
Pete Dowson Posted July 31, 2010 Report Posted July 31, 2010 One further strange effect is, that the UpperAlt of the cloud layers is simply ignored. The thickness of a cloud layer cannot be defined - it is fixed by the type of cloud. Yes, a grave omission by Microsoft when designing the SimConnect weather interface. The internal structures for weather do allow the upper altitudes to be set, but getting at them is very complex. I managed in in FS9, and that was convoluted. It is much worse in FSX. I gave up. They did promise a thorough overhaul of the interface in a later SimConnect release, but of course, like FSXI, it wasn't to be. Regards Pete
MarcusMüller Posted July 31, 2010 Author Report Posted July 31, 2010 Hi Pete, OK, then that wasn't my mistake... Is there any trick to set the upper limit for the clouds or is it simply impossible in FSX ? Marcus
Andydigital Posted July 31, 2010 Report Posted July 31, 2010 I believe Pete did already answer your question, its not possible without some extensive hacking, It simply isn't worth the outlay in time and headaches for the tiny return in feature. You could use more layers immediately next to another one to get an approximation of the thickness you need.
joaopagotto Posted October 11, 2011 Report Posted October 11, 2011 Hello friends of the forum. I'm wanting to do a program to change the climate of FSX-AcceleraionPack. Is there any example in C / C + + so I can be analyzed. not able to figure out the sequence to create the layers of atmosphere. I have enough ability to use FSUIPC for panels, but weather this is the first time. Any example in C / C + + that helps it. The variables studied C800-CBFF Global / Write ICAO. I need the exact sequence of use of these variables. This was not explicit in the FSUIPC documentation. Hugs.
Pete Dowson Posted October 11, 2011 Report Posted October 11, 2011 When I set global weather ("GLOB") it does not work at all. When I try to set the weather at my position I can at least set the visibility but no clouds. Any idea what I am doing wrong here ? Sorry, I haven't got time this week to analyse your log, and I'm on holiday next week (back on the 31st), but please try WeatherSet2, which uses the same mechanism, and log what that does. Then compare it to what you are doing. That's what I would need to do here in any case, because I really cannot remember all this stuff after so many years (5 since FSX code, but 7 now since that weather setting mechanism was designed). I'm around for another couple of days to answer questions and if I do make time I'll have a more detailed look, but really anything serious is going to have to wait a while I'm afraid. Regards Pete
joaopagotto Posted October 11, 2011 Report Posted October 11, 2011 I think I got what I wanted now. Using the structure of NewWeather.h, really, as said in earlier texts and in the documentation accompanying the same, do not use the FSInterrogate to guess or discover the things using the structure is much more practical and easier to understanding. I read the game time in the structure, which manipulate need and write the address 0xC800 whole structure and the test worked normally, I noticed an anomaly in: //----------------------------------------------------------------------------- // Cloud structure (size 16 bytes) typedef struct _NewCloud { unsigned short UpperAlt; // Metres unsigned short LowerAlt; // Metres unsigned short Deviation; // Metres unsigned char Coverage; // Octas, 0-8 unsigned char Type; // 1-10 unsigned char Turbulence; // 0-4 unsigned char Icing; // 0-4 signed short PrecipBase; // Metres unsigned char PrecipType; // 0-2 unsigned char PrecipRate; // 0-5 unsigned char TopShape; // ? unsigned char Spare; } NewCloud; UpperAlt I put a value but the weather in FSX does not appear correct, very strange. But the rest is usually accepted. The following code below. NewWeather weather; //------------------------------------------------------------------------- // C400-C7FF (Area 1): Last set global weather - ReadOnly if ( FSUIPC_Read(0xC400, 1024, &weather, &dwResult) ) { FSUIPC_Process(&dwResult); } weather.nCloudsCtr = 2; weather.Cloud[0].UpperAlt = 5000 / 3.28084; weather.Cloud[0].LowerAlt = 1000 / 3.28084; weather.Cloud[0].Deviation = 0; weather.Cloud[0].Coverage = 3; weather.Cloud[0].Type = 2; weather.Cloud[0].Turbulence = 1; weather.Cloud[0].Icing = 1; weather.Cloud[0].PrecipBase = 0; weather.Cloud[0].PrecipType = 1; weather.Cloud[0].PrecipRate = 3; weather.Cloud[1].UpperAlt = 12000 / 3.28084; weather.Cloud[1].LowerAlt = 10000 / 3.28084; weather.Cloud[1].Deviation = 0; weather.Cloud[1].Coverage = 3; weather.Cloud[1].Type = 2; weather.Cloud[1].Turbulence = 1; weather.Cloud[1].Icing = 1; weather.Cloud[1].PrecipBase = 0; weather.Cloud[1].PrecipType = 1; weather.Cloud[1].PrecipRate = 3; weather.uCommand = NW_SET; //------------------------------------------------------------------------- // C800-CBFF (Area 2): Weather setting area - WriteOnly if ( FSUIPC_Write(0xC800, 1024, &weather, &dwResult) ) { FSUIPC_Process(&dwResult); } Any help thank you!
Pete Dowson Posted October 11, 2011 Report Posted October 11, 2011 I think I got what I wanted now. Okay, good. UpperAlt I put a value but the weather in FSX does not appear correct, very strange. FSX does not allow any program to set the height of the clouds. It determines that automatically using some algorithm based on cloud types. FSUIPC4 just ignores the "UpperAlt" value. it is used in earlier versions of FS. Any help thank you! Sorry, I think I missed the question? Pete
joaopagotto Posted October 11, 2011 Report Posted October 11, 2011 Okay, good. FSX does not allow any program to set the height of the clouds. It determines that automatically using some algorithm based on cloud types. FSUIPC4 just ignores the "UpperAlt" value. it is used in earlier versions of FS. Sorry, I think I missed the question? Pete Hello friend Pete. Thanks for the reply. I think that's right, the FSX should handle the altitude of the cloud top. I posted about this code is what I am using and it has worked. That is correct mode to use? Some detail I left behind? I'm doing experiments by using Microsoft Visual C + + 2010 Express. But my application will be made in Delphi XE, the example of FSUIPC_SDK 2010/XE/XE2 does not work in Delphi, I am debugging the FSUIPC_SDK for Delphi to migrate to D2010/XE/XE2 because both have a new structure. So if I can finish it and would like to send you the example of Delphi to the weather for Delphi2010 to share with the community and include in FSUIPC_SDK. Hugs friend.
joaopagotto Posted October 11, 2011 Report Posted October 11, 2011 Hello friends follows the structure of NewWeather.pas for Pascal / Delphi. { Based data structure NewWeather.h by Pete Dawson Migrated to Pascal / Delphi by: João Ricardo Pagotto Mail....: joaopagotto@gmail.com WebSite.: www.projectcockpit.com.br Date....: 11/10/2011 } unit NewWeather; interface //------------------------------------------------------------------------------ // Commands (for set weather area only) const NW_SET = 1; // Set weather via FSUIPC user filters NW_SETEXACT = 2; // Set weather bypassing user filters NW_CLEAR = 3; // Clear all weather, but leave dynamic setting alone NW_DYNAMICS = 4; // Set weather dynamics (from uDynamics value) NW_SET_PENDING = 257; // Set weather using filters, but don't activate in FS yet NW_SETEXACT_PENDING = 258; // Set weather bypassing filters, but don't activate in FS yet NW_ACTIVATE = 256; // Activate pending weather settings // The 4 distinct areas are used as follows: // C000 - read only, maintains current interpolated weather at aircraft // C400 - read only, maintains last written global weather values // C800 - write area to set weather according to Command, flags, etc etc. // CC00 - selected read (via signature + ICAO), reads weather at weather station or GLOB //------------------------------------------------------------------------------ // Wind structure (size 16 bytes) type TNewWind = record UpperAlt : Word; // Metres Speed : Word; // Knots Gust : Word; // Max gust speed difference, knots Direction : Word; // usual 65536 = 360 units Turbulence : Byte; // 0-4 Shear : Byte; // 0-3 Variance : Word; // direction variability, same units as Direction SpeedFract : Word; // 1/65536ths of Knots, for more accurate vector calcs Spare : Word; end; //------------------------------------------------------------------------------ // Visibility structure (size 8 bytes) type TNewVis = record UpperAlt : Word; // Metres LowerAlt : SmallInt; // Metres Range : Word; // in 1/100ths sm Spare : Word; end; //------------------------------------------------------------------------------ // Cloud structure (size 16 bytes) type TNewCloud = record UpperAlt : Word; // Metres LowerAlt : Word; // Metres Deviation : Word; // Metres Coverage : Byte; // Octas, 0-8 TypeCloud : Byte; // 1-10 Turbulence : Byte; // 0-4 Icing : Byte; // 0-4 PrecipBase : SmallInt; // Metres PrecipType : Byte; // 0-2 PrecipRate : Byte; // 0-5 TopShape : Byte; // ? Spare : Byte; end; //------------------------------------------------------------------------------ // Temperature structure (size 8 bytes) type TNewTemp = record Alt : Word; // Metres Day : SmallInt; // Degrees C DayNightVar : SmallInt; // Degrees C DewPoint : SmallInt; // Degrees C end; //------------------------------------------------------------------------------ // Pressure structure (size 4 bytes) type TNewPress = record Pressure : Word; // 16 x mb Drift : SmallInt; // ? Maybe end; //------------------------------------------------------------------------------ // Structure mapped to FSUIPC offsets // C000, C400, C800 and CC00 type TNewWeather = record uCommand : Word; // C000 C400 C800 CC00 uFlags : Word; // C002 C402 C802 CC02 // Not used at present -- leave alone or set to zero ulSignature : Cardinal; // C004 C404 C804 CC04 chICAO : array[0..3] of AnsiChar; // C008 C408 C808 CC08 uDynamics : Word; // C00C C40C C80C CC0C // 0=none, 4=extreme uSpare : Word; // C00E C40E C80E CC0E dLatitude : Real ; // C010 C410 C810 CC10 // LLA zero for GLOB or unknown ICAO dLongitude : Real; // C018 C418 C818 CC18 nElevation : Integer; // C020 C420 C820 CC20 // metres * 65536 ulTimeStamp : Cardinal; // C024 C424 C824 CC24 // mSecs since start of session Press : TNewPress; // C028 C428 C828 CC28 Vis : TNewVis; // C02C C42C C82C CC2C nTempCtr : Integer; // C034 C434 C834 CC34 // Number of temperature layers Temp : array[0..23] of TNewTemp; // C038 C438 C838 CC38 nWindsCtr : Integer; // C0F8 C4F8 C8F8 CCF8 // Number of wind layers Wind : array[0..23] of TNewWind; // C0FC C4FC C8FC CCFC nCloudsCtr : Integer; // C27C C67C CA7C CE7C // Number of Cloud layers Cloud : array[0..23] of TNewCloud; // C280 C680 CA80 CE80 end; //------------------------------------------------------------------------------ implementation end.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now