Claude Troncy Posted July 3, 2016 Report Posted July 3, 2016 Bonjour Pete, I have a strange problem with ipc.write. My script (for testing) in windows 7 P3D V3.3.5 print ("surf_wind start ") ipc.writeUW(0X0F72,15) print ("surf_wind stop ") 1 I load a situation from the startup screen. Everything works perfectly, the ipc.write is well executed. 2 I then load a new situation from the previous one The ipc.write seems to be not executed 3 If I use Fs- Interrogate and write a value in another offset than the one i use in the lua script, then it is working again and the previous ipc.write, which I think were blocked in a queue are then dequeued, and executed. I suspect that FS interrogate do something to deblock the ipc queue. I looked in the doc but did not find anything that could do the trick. Any idea ? Cheers Claude
Pete Dowson Posted July 3, 2016 Report Posted July 3, 2016 No, FSInterrogate does nothing differently to what you can do in Lua. I haven't sufficient information to help I'm afraid. Try using Lua trace/debug options in the Logging tab to see what it is doing, and also Monitor the offset on the right-hand side of that Tab to get all changes to it logged. Pete
Claude Troncy Posted July 3, 2016 Author Report Posted July 3, 2016 Thank you very much Pete for you quick answer. I have already done what you ask for. Nothing specific in the log. ********* FSUIPC4, Version 4.955 (1st June 2016) by Pete Dowson ********* Prepar3D.exe version = 3.3.5.17625 Reading options from "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\FSUIPC4.ini" Running inside Prepar3D v3 on Windows 7 Module base=5CB20000 User Name="Claude Troncy" User Addr="claude.troncy@laposte.net" FSUIPC4 Key is provided WideFS7 Key is provided 78 System time = 03/07/2016 16:21:37 78 FLT UNC path = "\\FLIGHT1\Users\Troncy\Documents\Prepar3D v3 Files\" 78 ------ Module Version Check ------ 78 acontain.dll: 3.3.5.17625 78 api.dll: 3.3.5.17625 78 controls.dll: 3.3.5.17625 78 fs-traffic.dll: 3.3.5.17625 78 G3D.dll: 3.3.5.17625 78 language.dll: 3.3.5.17625 78 sim1.dll: 3.3.5.17625 78 visualfx.dll: 3.3.5.17625 78 weather.dll: 3.3.5.17625 78 window.dll: 3.3.5.17625 78 ---------------------------------- 78 Trying C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\SimConnectP3D3.dll 78 Found it: trying to connect 78 FS UNC path = "\\FLIGHT1\C\Program Files (x86)\Lockheed Martin\Prepar3D v3\" 187 ---------------------- Joystick Device Scan ----------------------- 202 Product= PLAYSTATION(R)3 Controller 202 Manufacturer= ShanWan 202 Vendor=054C, Product=0268 (Version 1.0) 218 Serial Number= 218 Product= Saitek X52 Pro Flight Control System 218 Manufacturer= Saitek 218 Vendor=06A3, Product=0762 (Version 1.35) 218 Serial Number= 218 Product= Saitek Pro Flight Rudder Pedals 218 Manufacturer= Saitek 218 Vendor=06A3, Product=0763 (Version 1.1) 218 Serial Number= 218 ------------------------------------------------------------------- 218 LogOptions=00000000 00000001 234 ------------------------------------------------------------------- 234 ------ Setting the hooks and direct calls into the simulator ------ 234 --- CONTROLS timer memory location obtained ok 234 --- SIM1 Frictions access gained 234 --- FS Controls Table located ok 234 --- Installed Mouse Macro hooks ok. 234 --- Wind smoothing fix is installed 234 --- All links okay (except older global weather setting method) 234 ------------------------------------------------------------------- 234 SimConnect_Open succeeded: waiting to check version okay 234 Trying to use SimConnect Prepar3D 1544 Running in "Lockheed Martin® Prepar3D® v3", Version: 3.3.3.3 (SimConnect: 3.3.0.0) 1544 Initialising SimConnect data requests now 1544 FSUIPC Menu entry added 1560 \\FLIGHT1\Users\Troncy\AppData\Local\Lockheed Martin\Prepar3D v3\Prepar3D_Default.fxml 1560 \\FLIGHT1\C\Program Files (x86)\Lockheed Martin\Prepar3D v3\SimObjects\Airplanes\IRIS Raptor Driver\Raptor.air 12495 Weather Mode now = Global 13416 \\FLIGHT1\C\Program Files (x86)\Lockheed Martin\Prepar3D v3\SimObjects\Airplanes\PMDG 737-800NGX WL\B737-800WL.air 13416 \\FLIGHT1\Users\Troncy\Documents\Prepar3D v3 Files\test pmdg.fxml 42354 System time = 03/07/2016 16:22:19, Simulator time = 08:03:03 (07:03Z) 42354 Aircraft="PMDG 737-800NGX PMDG House Winglets" 48329 Starting everything now ... 48485 Advanced Weather Interface Enabled 122164 LUA.0: beginning "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 122164 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:1 122164 LUA.0: Global: ipcPARAM = 0 122164 LUA.0: surf_wind start 122164 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:2 122195 Weather cleared automatically for FS98 changes 122195 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:3 122211 LUA.0: surf_wind stop 122211 LUA.0: ended "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 122226 Weather Mode now = Theme 122226 Weather Mode now = Global 131696 Sim stopped: average frame rate for last 90 secs = 29.5 fps 131696 Max AI traffic was 12 aircraft 133505 Weather Mode now = Theme 134956 \\FLIGHT1\Users\Troncy\Documents\Prepar3D v3 Files\test pmdg default.fxml 224984 LUA.0: beginning "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 224984 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:1 224984 LUA.0: Global: ipcPARAM = 0 224984 LUA.0: surf_wind start 224984 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:2 225015 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:3 225015 LUA.0: surf_wind stop 225015 LUA.0: ended "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 227558 LUA.0: beginning "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 227558 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:1 227558 LUA.0: Global: ipcPARAM = 0 227558 LUA.0: surf_wind start 227558 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:2 227589 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:3 227589 LUA.0: surf_wind stop 227589 LUA.0: ended "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 231879 Sim stopped: average frame rate for last 74 secs = 29.4 fps 231879 Max AI traffic was 11 aircraft 238354 === NOTE: not calling SimConnect_Close ... 239352 System time = 03/07/2016 16:25:36, Simulator time = 08:01:13 (13:01Z) 239352 *** FSUIPC log file being closed Minimum frame rate was 21.6 fps, Maximum was 30.3 fps Minimum available memory recorded was 1434Mb Average frame rate for running time of 164 secs = 29.5 fps Maximum AI traffic for session was 12 aircraft Memory managed: 129 Allocs, 129 Freed ********* FSUIPC Log file closed *********** 3416---- Initial situation. the ipc.write modify the offset. 4956---- Loading a new situation. The ipc.write do nothing. Monitoring the offset, When I load a situation from the startup screen the ipc.write works and the offset change with the new value. Then loading a situation from the previous one, the offset does not change , the ipc.write is blocked somewhere in a queue. As I told you, if then I write a value in another offset using FS- Interrogate (I did that to debug), the write is then dequeued, which lead me to conclude (may be wrongly) that the write from fs-interrogate deblock something... Claude
Pete Dowson Posted July 3, 2016 Report Posted July 3, 2016 Sorry, please show the logging with the offset monitored, as I asked. Otherwise you are just repeating yourself ... nothing new above, and I reiterate too that FSInterrogate cannot "unblock" anything -- there s no "block" it can remove, and certainly no mechanism. Pete
Claude Troncy Posted July 3, 2016 Author Report Posted July 3, 2016 Hi Pete, Here is the log. I hope it is what you are looking for. Sorry if I did not understand but I am french (Nobody is perfect) and english is not my native language. ********* FSUIPC4, Version 4.955 (1st June 2016) by Pete Dowson ********* Prepar3D.exe version = 3.3.5.17625 Reading options from "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\FSUIPC4.ini" Running inside Prepar3D v3 on Windows 7 Module base=59F10000 User Name="Claude Troncy" User Addr="claude.troncy@laposte.net" FSUIPC4 Key is provided WideFS7 Key is provided 203 System time = 03/07/2016 19:46:01 219 FLT UNC path = "\\FLIGHT1\Users\Troncy\Documents\Prepar3D v3 Files\" 219 ------ Module Version Check ------ 219 acontain.dll: 3.3.5.17625 219 api.dll: 3.3.5.17625 219 controls.dll: 3.3.5.17625 219 fs-traffic.dll: 3.3.5.17625 219 G3D.dll: 3.3.5.17625 219 language.dll: 3.3.5.17625 219 sim1.dll: 3.3.5.17625 219 visualfx.dll: 3.3.5.17625 219 weather.dll: 3.3.5.17625 219 window.dll: 3.3.5.17625 219 ---------------------------------- 219 Trying C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\SimConnectP3D3.dll 219 Found it: trying to connect 219 FS UNC path = "\\FLIGHT1\C\Program Files (x86)\Lockheed Martin\Prepar3D v3\" 343 ---------------------- Joystick Device Scan ----------------------- 343 Product= PLAYSTATION(R)3 Controller 359 Manufacturer= ShanWan 359 Vendor=054C, Product=0268 (Version 1.0) 359 Serial Number= 359 Product= Saitek X52 Pro Flight Control System 359 Manufacturer= Saitek 359 Vendor=06A3, Product=0762 (Version 1.35) 359 Serial Number= 359 Product= Saitek Pro Flight Rudder Pedals 359 Manufacturer= Saitek 359 Vendor=06A3, Product=0763 (Version 1.1) 359 Serial Number= 359 ------------------------------------------------------------------- 375 LogOptions=00000000 00000001 375 ------------------------------------------------------------------- 375 ------ Setting the hooks and direct calls into the simulator ------ 375 --- CONTROLS timer memory location obtained ok 375 --- SIM1 Frictions access gained 375 --- FS Controls Table located ok 375 --- Installed Mouse Macro hooks ok. 375 --- Wind smoothing fix is installed 375 --- All links okay (except older global weather setting method) 375 ------------------------------------------------------------------- 375 SimConnect_Open succeeded: waiting to check version okay 375 Trying to use SimConnect Prepar3D 1763 Running in "Lockheed Martin® Prepar3D® v3", Version: 3.3.3.3 (SimConnect: 3.3.0.0) 1763 Initialising SimConnect data requests now 1763 FSUIPC Menu entry added 1779 \\FLIGHT1\Users\Troncy\AppData\Local\Lockheed Martin\Prepar3D v3\Prepar3D_Default.fxml 1779 \\FLIGHT1\C\Program Files (x86)\Lockheed Martin\Prepar3D v3\SimObjects\Airplanes\IRIS Raptor Driver\Raptor.air 1794 Monitor IPC:0F72 (U16) = 0 1794 Monitor IPC:0F74 (U16) = 0 8190 Weather Mode now = Global 9142 \\FLIGHT1\C\Program Files (x86)\Lockheed Martin\Prepar3D v3\SimObjects\Airplanes\PMDG 737-800NGX WL\B737-800WL.air 9142 \\FLIGHT1\Users\Troncy\Documents\Prepar3D v3 Files\test pmdg.fxml 39297 System time = 03/07/2016 19:46:40, Simulator time = 08:03:03 (07:03Z) 39297 Aircraft="PMDG 737-800NGX PMDG House Winglets" 44320 Starting everything now ... 44476 Advanced Weather Interface Enabled 130027 LUA.0: beginning "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 130027 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:1 130027 LUA.0: Global: ipcPARAM = 0 130027 LUA.0: surf_wind start 130027 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:2 130058 Weather cleared automatically for FS98 changes 130058 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:3 130058 LUA.0: surf_wind stop 130058 LUA.0: ended "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 130074 Weather Mode now = Theme 130074 Weather Mode now = Global 131322 Monitor IPC:0F72 (U16) = 15 131322 Monitor IPC:0F74 (U16) = 65472 145081 Sim stopped: average frame rate for last 106 secs = 41.3 fps 145081 Max AI traffic was 12 aircraft 147452 Weather Mode now = Theme 148950 \\FLIGHT1\Users\Troncy\Documents\Prepar3D v3 Files\test pmdg default.fxml 174659 Monitor IPC:0F74 (U16) = 325 181663 Monitor IPC:0F72 (U16) = 0 181663 Monitor IPC:0F74 (U16) = 0 206390 LUA.0: beginning "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 206390 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:1 206390 LUA.0: Global: ipcPARAM = 0 206390 LUA.0: surf_wind start 206390 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:2 206405 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:3 206405 LUA.0: surf_wind stop 206405 LUA.0: ended "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 211850 LUA.0: beginning "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 211850 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:1 211850 LUA.0: Global: ipcPARAM = 0 211850 LUA.0: surf_wind start 211850 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:2 211865 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:3 211865 LUA.0: surf_wind stop 211865 LUA.0: ended "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 229556 WideFS: write to 0F74 from skt=11512 ("ASUS"), program Id=3872 229571 Weather Mode now = Global 229992 Monitor IPC:0F72 (U16) = 15 229992 Monitor IPC:0F74 (U16) = 143 242114 Sim stopped: average frame rate for last 68 secs = 47.5 fps 242114 Max AI traffic was 10 aircraft 255140 === NOTE: not calling SimConnect_Close ... 256138 System time = 03/07/2016 19:50:17, Simulator time = 08:01:08 (13:01Z) 256138 *** FSUIPC log file being closed Minimum frame rate was 32.0 fps, Maximum was 50.9 fps Minimum available memory recorded was 1438Mb Average frame rate for running time of 174 secs = 43.7 fps Maximum AI traffic for session was 12 aircraft Memory managed: 186 Allocs, 186 Freed ********* FSUIPC Log file closed *********** I do not want to repeat myself, but you can see that when I write (offset 0F74) through FS-Interrogate from the PC ASUS ( 229556) in wideclient mode, then the offset 0F72 is updated. Cheers Claude
Pete Dowson Posted July 3, 2016 Report Posted July 3, 2016 Hmm. It does look odd. When you write with FSinterrogate, I didn't realise you were writing another Weather variable. Can you test instead with a write to something completely unconnected to weather? The only thing I can think which might be going on is that the weather change requested via 0F72 is not being actioned in P3D. When you READ offsets for sim values, they are the values obtained from the sim, not necessarily those written by you. So if P3D was not obeying that request, the read-back wouldn't change. When you write the other weather value with FSInterrogate, maybe this causes P3D to really implement the weather as requested. I don't know -- really these offsets relate to FS98 style weather control, with FSUIPC trying hard to provide compatibility through all versions since then. As a test of this why not add the write to 0F74 in the Lua and see if that produces the same result as doing it with FSinterrogate? You could even insert an "ipc.sleep(3000)" delay between them, to make it a closer match, but try without first. I could probably tell more about what's going on by seeing the weather stuff being sent and received. You can get that in the log by checking the Weather logging option in FSUIPC's Logging tab. This may produce a large log, so please try to keep the session short. You may wish to ZIP the file and attach it instead (if this Forum lets you!) I would try all this on my system, and check it on FSX too to see if it's a P3D bug to be reported, but I am away visiting my son in Spain this week -- back at my system on Monday 11th. Maybe you can remind me then if I've been no help beforehand. Pete
Claude Troncy Posted July 3, 2016 Author Report Posted July 3, 2016 I ll make the test and will come back to you next week. Happy holidays in spain. Claude
Claude Troncy Posted July 11, 2016 Author Report Posted July 11, 2016 Bonsoir Pete, I hope your holidays in Spain were good. I made the tests you asked for. On 7/3/2016 at 8:36 PM, Pete Dowson said: Can you test instead with a write to something completely unconnected to weather? When updating (with FS-Interrogate) an offset not related to the weather, then the 0F72 variable is not updated. On 7/3/2016 at 8:36 PM, Pete Dowson said: As a test of this why not add the write to 0F74 in the Lua and see if that produces the same result as doing it with FSinterrogate? You could even insert an "ipc.sleep(3000)" delay between them, to make it a closer match, but try without first. I tried but it doesn't work. On 7/3/2016 at 8:36 PM, Pete Dowson said: I would try all this on my system, and check it on FSX too to see if it's a P3D bug to be reported I test with FSX and it is exactly the same behavior than with P3D. When FS-interrogate write a weather data, it deblocks something, and after everything is working in the lua script. Please find the weather log. Note that this time I did not load a new situation but I reset the flight, which have the same effect. Cheers Claude ********* FSUIPC4, Version 4.955 (1st June 2016) by Pete Dowson ********* Prepar3D.exe version = 3.3.5.17625 Reading options from "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\FSUIPC4.ini" Running inside Prepar3D v3 on Windows 7 Module base=67E10000 User Name="Claude Troncy" User Addr="claude.troncy@laposte.net" FSUIPC4 Key is provided WideFS7 Key is provided 266 System time = 05/07/2016 16:39:47 266 FLT UNC path = "\\FLIGHT1\Users\Troncy\Documents\Prepar3D v3 Files\" 266 ------ Module Version Check ------ 266 acontain.dll: 3.3.5.17625 266 api.dll: 3.3.5.17625 266 controls.dll: 3.3.5.17625 266 fs-traffic.dll: 3.3.5.17625 266 G3D.dll: 3.3.5.17625 266 language.dll: 3.3.5.17625 266 sim1.dll: 3.3.5.17625 266 visualfx.dll: 3.3.5.17625 266 weather.dll: 3.3.5.17625 266 window.dll: 3.3.5.17625 266 ---------------------------------- 266 Trying C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\SimConnectP3D3.dll 266 Found it: trying to connect 266 FS UNC path = "\\FLIGHT1\C\Program Files (x86)\Lockheed Martin\Prepar3D v3\" 390 ---------------------- Joystick Device Scan ----------------------- 390 Product= PLAYSTATION(R)3 Controller 406 Manufacturer= ShanWan 406 Vendor=054C, Product=0268 (Version 1.0) 406 Serial Number= 406 Product= Saitek X52 Pro Flight Control System 406 Manufacturer= Saitek 406 Vendor=06A3, Product=0762 (Version 1.35) 406 Serial Number= 406 Product= Saitek Pro Flight Rudder Pedals 406 Manufacturer= Saitek 406 Vendor=06A3, Product=0763 (Version 1.1) 406 Serial Number= 406 ------------------------------------------------------------------- 422 LogOptions=00000000 00000003 422 ------------------------------------------------------------------- 422 ------ Setting the hooks and direct calls into the simulator ------ 422 --- CONTROLS timer memory location obtained ok 422 --- SIM1 Frictions access gained 422 --- FS Controls Table located ok 422 --- Installed Mouse Macro hooks ok. 422 --- Wind smoothing fix is installed 422 --- All links okay (except older global weather setting method) 422 ------------------------------------------------------------------- 422 SimConnect_Open succeeded: waiting to check version okay 422 Trying to use SimConnect Prepar3D 1826 Monitor IPC:0F74 (U16) = 0 1826 Monitor IPC:0F72 (U16) = 0 1826 Running in "Lockheed Martin® Prepar3D® v3", Version: 3.3.3.3 (SimConnect: 3.3.0.0) 1826 Initialising SimConnect data requests now 1826 FSUIPC Menu entry added 1841 \\FLIGHT1\Users\Troncy\AppData\Local\Lockheed Martin\Prepar3D v3\Prepar3D_Default.fxml 1841 \\FLIGHT1\C\Program Files (x86)\Lockheed Martin\Prepar3D v3\SimObjects\Airplanes\IRIS Raptor Driver\Raptor.air 7426 Weather Mode now = Theme 7832 \\FLIGHT1\Users\Troncy\Documents\Prepar3D v3 Files\test fsuipc.fxml 32246 System time = 05/07/2016 16:40:19, Simulator time = 08:00:09 (13:00Z) 32246 Aircraft="F-22 Raptor - 525th Fighter Squadron" 33244 Starting everything now ... 34570 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 34570 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 34570 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 34570 ***ICAOset = KVPS 34570 Advanced Weather Interface Enabled 36910 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 36910 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 00000KT&D609NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 36910 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 36910 Results: FS98 Pressure=1013.2 mb 36910 Results: FS98 CurrTemp at PlaneAlt=92: 15C 39079 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 39079 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 39079 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 39079 >Change: FS98 Vis: range =0sm, (raw value=0) 39079 >Change: FS98 Temp0: to 90ft, Day 0.0C, NightVar 0.0C 39079 >Change: FS98 Dewpoint Control: disabled 39079 >Change: FS98 Precip Control: disabled 41247 Weather Read request (At Aircrft) to area 4: Lat=30.50, Lon=-86.51, Alt=28.3, Req=2 41247 Weather Received (type 4 request, Interpolated): "????&A0 301300Z 00000KT&D0NG 100KM&B-457&D5029 CLR 14/04 Q1013 " 41247 WX Received in (0 mSecs), WX request type 4, Lat=30.4993, Lon=-86.5113, Alt=28.3m 43571 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 43571 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 43571 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 43571 >Change: Pressure=1013.0 mb 43571 >Change: Visibility[0]: range=62.1sm (100005m), from=-1500ft, to=15000ft 43571 >Change: Temperature[0]: alt=80ft, Day=14.0 C, NightVar=0.0 C, DewPt=4.0 C 43571 Results: FS98 Vis: range =62sm, (raw value=6214) 43571 Results: FS98 Temp0: to 90ft, Day 14.0C, NightVar 0.0C 45911 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 45911 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 00000KT&D609NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 45911 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 48251 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 48251 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 48251 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 50576 Weather Read request (At Aircrft) to area 4: Lat=30.50, Lon=-86.51, Alt=28.3, Req=2 50576 Weather Received (type 4 request, Interpolated): "????&A0 301300Z 00000KT&D0NG 100KM&B-457&D5029 CLR 14/04 Q1013 " 50576 WX Received in (0 mSecs), WX request type 4, Lat=30.4993, Lon=-86.5113, Alt=28.3m 52900 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 52900 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 52900 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 54850 LUA.0: beginning "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 54850 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:1 54850 LUA.0: Global: ipcPARAM = 0 54850 LUA.0: surf_wind start 54850 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:2 54866 Weather cleared automatically for FS98 changes 54866 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:3 54866 LUA.0: surf_wind stop 54866 LUA.0: ended "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 54897 Weather Mode now = Custom 55069 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 55069 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 00000KT&D609NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 55069 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 55069 >Change: FS98 Wind0: ground (88ft) to 0ft AGL, dir 0M, vel 0, gust 0, turb 0 55069 >Change: FS98 Temp0: to 90ft, Day 14.0C, NightVar 0.0C 55240 >NewSet: **** New Weather being set: ICAO=GLOB (Dyn=0) 55240 >NewSet: Pressure=1013.2, Drift=15.0 55240 >NewSet: Visibility[0]: range=244.0sm (392664m), from=-1490ft, to=15000ft 55240 >NewSet: Temperature[0]: alt=0ft, Day=15 C, NightVar=3 C, DewPt=5 C 55240 >NewSet: Surface wind: to alt=2090ft AMSL, dir=357T, vel=15.00, gust=0.0, turb=0, shear=0, var=0.0 55240 >NewSet: **** End of New Weather details for ICAO=GLOB 55240 Setting Weather: "GLOB 301300Z 35715KT&D636NG 393KM&B-457&D5029 CLR 15/05&A0 Q1013 " 55240 Weather Mode now = Global 56239 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 56239 >NewSet: **** New Weather being set: ICAO=GLOB (Dyn=0) 56239 >NewSet: Pressure=1013.2, Drift=15.0 56239 >NewSet: Visibility[0]: range=244.0sm (392664m), from=-1490ft, to=15000ft 56239 >NewSet: Temperature[0]: alt=0ft, Day=15 C, NightVar=3 C, DewPt=5 C 56239 >NewSet: Surface wind: to alt=2090ft AMSL, dir=357T, vel=15.00, gust=0.0, turb=0, shear=0, var=0.0 56239 >NewSet: **** End of New Weather details for ICAO=GLOB 56239 Setting Weather: "GLOB 301300Z 35715KT&D636NG 393KM&B-457&D5029 CLR 15/05&A0 Q1013 " 56239 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 35715KT&D636NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 56239 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 56239 >Change: FS98 Pressure=1013.0 mb 56239 >Change: FS98 Wind0: ground (88ft) to 0ft AGL, dir 0M, vel 0, gust 0, turb 0 56239 >Change: FS98 Temp0: to 90ft, Day 14.0C, NightVar 0.0C 56239 >Change: Surface wind: to alt=2090ft, dir=357T, vel=15.0, gust=0.0, turb=0, shear=0, var=0.0 56239 Results: FS98 Wind0: ground (88ft) to 1910ft AGL, dir 359M, vel 15, gust 0, turb 0 56239 Results: FS98 AmbientWind at PlaneAlt=92: dir 357M, vel 7 56239 Results: FS98 Temp0: to 90ft, Day 15.0C, NightVar 0.0C 56239 Monitor IPC:0F74 (U16) = 65497 56239 Monitor IPC:0F72 (U16) = 15 57409 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 57409 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 57409 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 35715KT&D636NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 57409 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 57409 Results: FS98 AmbientWind at PlaneAlt=92: dir 357M, vel 11 58563 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 58563 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 35715KT&D636NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 58563 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 58563 Results: FS98 AmbientWind at PlaneAlt=92: dir 357M, vel 13 59577 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 59577 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 35715KT&D636NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 59577 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 59577 Results: FS98 AmbientWind at PlaneAlt=92: dir 357M, vel 14 60654 Sim stopped: average frame rate for last 29 secs = 90.8 fps 60654 Max AI traffic was 10 aircraft 60654 Weather Mode now = Theme 63072 WX Error: timed out, WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 64242 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 64242 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 64242 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 64242 Results: FS98 AmbientWind at PlaneAlt=92: dir 0M, vel 0 66566 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 66566 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 00000KT&D609NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 66566 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 68750 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 68750 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 68750 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 71074 Weather Read request (At Aircrft) to area 4: Lat=30.50, Lon=-86.51, Alt=28.3, Req=2 71074 Weather Received (type 4 request, Interpolated): "????&A0 301300Z 00000KT&D0NG 100KM&B-457&D5029 CLR 14/04 Q1013 " 71074 WX Received in (0 mSecs), WX request type 4, Lat=30.4993, Lon=-86.5113, Alt=28.3m 73243 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 73243 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 73243 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 73243 >Change: Surface wind: to alt=80ft, dir=0T, vel=0.0, gust=0.0, turb=0, shear=0, var=0.0 73243 Results: FS98 Wind0: ground (88ft) to -80ft AGL, dir 0M, vel 0, gust 0, turb 0 73243 Results: FS98 Temp0: to 90ft, Day 14.0C, NightVar 0.0C 73243 Monitor IPC:0F74 (U16) = 0 73243 Monitor IPC:0F72 (U16) = 0 75583 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 75583 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 00000KT&D609NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 75583 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 76846 LUA.0: beginning "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 76846 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:1 76846 LUA.0: Global: ipcPARAM = 0 76846 LUA.0: surf_wind start 76846 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:2 76862 LUA.0: ...6)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua:3 76862 LUA.0: surf_wind stop 76862 LUA.0: ended "C:\Program Files (x86)\Lockheed Martin\Prepar3D v3\Modules\surf_wind.lua" 77907 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 77907 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 77907 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 80247 Weather Read request (At Aircrft) to area 4: Lat=30.50, Lon=-86.51, Alt=28.3, Req=2 80247 Weather Received (type 4 request, Interpolated): "????&A0 301300Z 00000KT&D0NG 100KM&B-457&D5029 CLR 14/04 Q1013 " 80247 WX Received in (0 mSecs), WX request type 4, Lat=30.4993, Lon=-86.5113, Alt=28.3m 82572 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 82572 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 82572 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 84912 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 84912 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 00000KT&D609NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 84912 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 87236 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 87236 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 87236 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 89576 Weather Read request (At Aircrft) to area 4: Lat=30.50, Lon=-86.51, Alt=28.3, Req=2 89576 Weather Received (type 4 request, Interpolated): "????&A0 301300Z 00000KT&D0NG 100KM&B-457&D5029 CLR 14/04 Q1013 " 89576 WX Received in (0 mSecs), WX request type 4, Lat=30.4993, Lon=-86.5113, Alt=28.3m 91916 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 91916 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 91916 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 94085 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 94085 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 00000KT&D609NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 94085 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 94709 >NewSet: **** New Weather being set: ICAO=GLOB (Dyn=0) 94709 >NewSet: Pressure=1013.2, Drift=15.0 94709 >NewSet: Visibility[0]: range=244.0sm (392664m), from=-1490ft, to=15000ft 94709 >NewSet: Temperature[0]: alt=0ft, Day=15 C, NightVar=3 C, DewPt=5 C 94709 >NewSet: Surface wind: to alt=2090ft AMSL, dir=3T, vel=15.00, gust=0.0, turb=0, shear=0, var=0.0 94709 >NewSet: **** End of New Weather details for ICAO=GLOB 94709 Setting Weather: "GLOB 301300Z 00315KT&D636NG 393KM&B-457&D5029 CLR 15/05&A0 Q1013 " 94709 WideFS: write to 0F74 from skt=10984 ("ASUS"), program Id=12184 94709 Weather Mode now = Global 95239 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 95239 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 00315KT&D636NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 95239 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 95239 >Change: FS98 Pressure=1013.0 mb 95239 >Change: FS98 Wind0: ground (88ft) to -80ft AGL, dir 0M, vel 0, gust 0, turb 0 95239 >Change: FS98 Temp0: to 90ft, Day 14.0C, NightVar 0.0C 95239 >Change: Surface wind: to alt=2090ft, dir=3T, vel=15.0, gust=0.0, turb=0, shear=0, var=0.0 95239 Results: FS98 Wind0: ground (88ft) to 1910ft AGL, dir 5M, vel 15, gust 0, turb 0 95239 Results: FS98 AmbientWind at PlaneAlt=92: dir 2M, vel 7 95239 Results: FS98 Temp0: to 90ft, Day 15.0C, NightVar 0.0C 95239 Monitor IPC:0F74 (U16) = 1053 95239 Monitor IPC:0F72 (U16) = 15 96409 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 96409 Weather Read request (Nr Station) to area 5: Lat=30.50, Lon=-86.51, Alt=0.0, Req=1 96409 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 00315KT&D636NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 96409 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 96409 Results: FS98 AmbientWind at PlaneAlt=92: dir 2M, vel 11 96409 Weather Received (type 5 request, Nearest): "KVPS&A25 301300Z 00000KT&D0NG 100KM&B-483&D5029 CLR 15/05 Q1013 " 96409 WX Received in (0 mSecs), WX request type 5, Lat=30.4993, Lon=-86.5113, Alt=0.0m 97579 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 97579 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 00315KT&D636NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 97579 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 97579 Results: FS98 AmbientWind at PlaneAlt=92: dir 2M, vel 13 98749 Weather Read request (Global set) to area 1: ICAO="GLOB", Req=0 98749 Weather Received (type 1 request, (null)): "GLOB&A0 301300Z 00315KT&D636NG 100KM&B-457&D5029 CLR 15/05 Q1013 " 98749 WX Received in (0 mSecs), WX request type 1, ICAO=GLOB 98749 Results: FS98 AmbientWind at PlaneAlt=92: dir 2M, vel 14 100184 Sim stopped: average frame rate for last 37 secs = 91.0 fps 100184 Max AI traffic was 10 aircraft
Pete Dowson Posted July 11, 2016 Report Posted July 11, 2016 I'm looking at this now. I've found that if you write a different value to 0F72, not just 15 all the time, then it works. Evidently something in the code thinks it isn't changing so doesn't send the weather request to SimConnect (the lines beginning ">NewSet:" in the Log). I'm not sure why this is. It isn't anything to do with Lua -- you can get exactly the same effect by simply assigning a keypress to "Offset word set" in FSUIPC assignments. The code here is very complex and actually dates back for before FS9 even. (except for the result being sent to SimConnect instead of using a direct call into FS innards). I am looking at it and if I see the reason I'll let you know -- maybe it's intentional for some reason. If not I'll see if I can fix it, but no guarantees at present. Meanwhile, if it is important for you to get that working, just try changing the value you are trying to set. It doesn't need to be a lot different. 1 knot should do it. Pete
Pete Dowson Posted July 12, 2016 Report Posted July 12, 2016 Found the reason for this. With this way of changing the weather (i.e. using the old FS98-style weather offsets), FSUIPC deliberately does not send a "NewSet" request if it sees no change from what was last written. This is because it uses the same action for doing the continuous filtering actions, and it cannot simply compare the weather to be written with the actual current weather, to see if it different, because it pretty much always will be -- the SimConnect weather actually set is very rarely 100% what is originally requested, and on top of that it is generally dynamically changing in any case. However, I've added more code to override this check when the reason for trying to "NewSet" is an actual write to any of those offsets This will be in interim update 4.955d, which I shall release in the Download Links subforum some time tomorrow (Tuesday), after more testing. Pete
Claude Troncy Posted July 12, 2016 Author Report Posted July 12, 2016 Thank you Pete As usual ... Always effective. Cheers Claude
Claude Troncy Posted July 12, 2016 Author Report Posted July 12, 2016 It works now. Thank you very much. And thank you to always explain where the problem is. It's pretty rare and I like it. Claude
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