Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

  • Replies 170
  • Views 35.3k
  • Created
  • Last Reply

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

  • 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

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

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  ..

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.

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 ,

 

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

Yes I do ,

 

 

Excellent! Thank you very kindly SIr!

i7 7700k, @ 4.6Ghz. GTX1070 8Gig. 32Gigs DDR4 2400. Win 10 pro. X-Plane 11.

Wow, did you install two different versions of Python ?  Is that SMP ?

Ryzen 5 1600x - 16GB DDR4 - RTX 3050 8GB - MSI Gaming Plus

 

 


I like it:

...and I like it too. Simply beautiful shots José.

That works! :wub:

I like it:

1.jpg

2.jpg

3.jpg

4.jpg

5.jpg

6.jpg

How have you solved?

 

I've 2 version of python 2.7.3 and 3.5.1 that use for orthoxp

Davide Ragonetto

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.