Jump to content
Sign in to follow this  

Recommended Posts

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.


-

Belligerent X-Plane 12 enthusiast on Apple M1 Max 64GB

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 ,

 

  • Upvote 2

Share this post


Link to post
Share on other sites

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


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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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


A pilot is always learning and I LOVE to learn.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...