September 13, 20169 yr Error in PI NOAA weather log .. After Modules InitSearching for Standard ScriptsScript 'PI_noaaWeather.py' successfully loaded.Traceback (most recent call last): File "E:/XPlane10/Resources/plugins/PythonScripts\PI_noaaWeather.py", line 1260, in floopCallback self.weather.setClouds() File "E:/XPlane10/Resources/plugins/PythonScripts\PI_noaaWeather.py", line 430, in setClouds setClouds.append([base, top, cover])UnboundLocalError: local variable 'setClouds' referenced before assignment
September 13, 20169 yr Davide and Zulfi 1) did you replace the original self.visibility entry with: self.visibility = EasyDref('sim/multiplayer/position/plane19_speedbrake_ratio', 'float') <---- around "float" it's a quote, not the back-quote wrongly used in the Manual, as Mario pointed out above! 2) The other line to change is not "setClouds" but rather, on line 403 of the original "py" script: # lastBase = 0 a bit above the "setClouds" one... However the line 403 of original file is setClouds = [] Is the guide wrong? Davide Ragonetto
September 13, 20169 yr Author Sounds interesting, although it means I need 2 payware addons and 2 freeware addons to be able to run yours. Is there a reason why you don't allow X-Plane default clouds? I also have a technical question about this part of the manual: Isn't it possible that you create your own dataref and use this one instead of using the 19th AI plane's speedbrake dataref? Or is it not possible to access datarefs created in a Lua script via a Python script (but only default datarefs)? See the manual, there is a explanation why it won't work with X-Plane's default clouds. You may still test Ventura Sky without these add-ons, though. Also see my previous post, this was a quick hack, with Beta 4 and the next version of NOAA, there will be a more elegant solution... Davide and Zulfi 1) did you replace the original self.visibility entry with: self.visibility = EasyDref('sim/multiplayer/position/plane19_speedbrake_ratio', 'float') <---- around "float" it's a quote, not the back-quote wrongly used in the Manual, as Mario pointed out above! 2) The other line to change is not "setClouds" but rather, on line 403 of the original "py" script: # lastBase = 0 a bit above the "setClouds" one... Don't know what's going on here, 403 should be infact the setClouds one. Are you running NOAA 2.2.2? However the line 403 of original file is setClouds = [] That is correct. - Currently giving X-Plane 12.10 a spin on Shadow PC. 10 years with X-Plane now, since 10.20
September 13, 20169 yr I performed lot of tests but without any good result, the custo py file is not load from XP, at this point for me this plugins is unsable...i need to wait the beta4 with auto settings with Noaa In feature, rth will be compatibile? Davide Ragonetto
September 13, 20169 yr Error in PI NOAA weather log .. After Modules Init Searching for Standard Scripts Script 'PI_noaaWeather.py' successfully loaded. Traceback (most recent call last): File "E:/XPlane10/Resources/plugins/PythonScripts\PI_noaaWeather.py", line 1260, in floopCallback self.weather.setClouds() File "E:/XPlane10/Resources/plugins/PythonScripts\PI_noaaWeather.py", line 430, in setClouds setClouds.append([base, top, cover]) UnboundLocalError: local variable 'setClouds' referenced before assignment If I edit LIne 430 and commnet it # setClouds.append([base, top, cover]) The error is gone and it seems to work OK .. Can someone please check and concur ..
September 13, 20169 yr You can have both versions of Python running without any problems , I have no problems with python-2.7.10.amd64 I beg to differ Sir. I have tried running Ortho4XP with both version (2.7 and 3.5) installed. It doesn't work. Do you use Ortho? i7 7700k, @ 4.6Ghz. GTX1070 8Gig. 32Gigs DDR4 2400. Win 10 pro. X-Plane 11.
September 13, 20169 yr I beg to differ Sir. I have tried running Ortho4XP with both version (2.7 and 3.5) installed. It doesn't work. Do you use Ortho? Yes I do ,
September 13, 20169 yr You can have both versions of Python running without any problems , I have no problems with python-2.7.10.amd64 Thanks. Checked readme "This is Python version 2.7.3" I searched but can't find v1. Is this safe? https://www.python.org/downloads/release/python-2710/ MSFS
September 13, 20169 yr Thanks. Checked readme "This is Python version 2.7.3" I searched but can't find v1. Is this safe? https://www.python.org/downloads/release/python-2710/ https://www.python.org/ftp/python/2.7.10/python-2.7.10.amd64.msi
September 13, 20169 yr Yes I do , Excellent! Thank you very kindly SIr! i7 7700k, @ 4.6Ghz. GTX1070 8Gig. 32Gigs DDR4 2400. Win 10 pro. X-Plane 11.
September 13, 20169 yr https://www.python.org/ftp/python/2.7.10/python-2.7.10.amd64.msi That works! :wub: I like it: MSFS
September 13, 20169 yr Wow, did you install two different versions of Python ? Is that SMP ? Ryzen 5 1600x - 16GB DDR4 - RTX 3050 8GB - MSI Gaming Plus
September 13, 20169 yr That works! :wub: I like it: How have you solved? I've 2 version of python 2.7.3 and 3.5.1 that use for orthoxp Davide Ragonetto
September 13, 20169 yr Wow, did you install two different versions of Python ? Is that SMP ? Just v. 27.10 I first performed an uninstall 0f v 27.13, then installed v. 27.10. I followed the Ventura PDF to the letter. How have you solved? I've 2 version of python 2.7.3 and 3.5.1 that use for orthoxp I followed the pdf to the letter, then installed v 27.10 of the python. See post #39 for download. Wow, did you install two different versions of Python ? Is that SMP ? SMP & RWC & NOAA & Ventura MSFS
Archived
This topic is now archived and is closed to further replies.