[RELEASE] Launcher - application launcher plugin for Linux, Mac, Windows, and Xbox

  Thread Rating:
  • 7 Votes - 4.86 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
fr500 Offline
Senior Member
Posts: 278
Joined: Oct 2008
Reputation: 1
Post: #971
Angelscry Wrote:I will need more information to help you and to fix this error. Could you please post here the part of the launchers.xml file corresponding to the launcher and the rom which give you the error? Thank you.

This is the error he mentions:

Quote:17:30:01 T:2352 M:4294967295 INFO: -->Python script returned the following error<--
17:30:01 T:2352 M:4294967295 ERROR: Error Type: exceptions.NameError
17:30:01 T:2352 M:4294967295 ERROR: Error Contents: global name 'launcher' is not defined
17:30:01 T:2352 M:4294967295 ERROR: Traceback (most recent call last):
File "C:\Program Files (x86)\XBMC\portable_data\addons\plugin.program.launcher\default.py", line 20, in ?
plugin.Main()
File "C:\Program Files (x86)\XBMC\portable_data\addons\plugin.program.launcher\resources\lib\launcher_p​lugin.py", line 146, in __init__
self._scrap_launcher(launcher)
File "C:\Program Files (x86)\XBMC\portable_data\addons\plugin.program.launcher\resources\lib\launcher_p​lugin.py", line 751, in _scrap_launcher
self.launchers[launcher]["name"] = re.sub("/","-",results[selectgame]["title"])
NameError: global name 'launcher' is not defined
17:30:01 T:2352 M:4294967295 INFO: -->End of Python script error report<--
17:30:01 T:2376 M:4294967295 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
17:30:01 T:2352 M:4294967295 INFO: Python script stopped
17:30:01 T:2352 M:4294967295 DEBUG: Thread 2352 terminating
17:30:01 T:2376 M:4294967295 DEBUG: python thread 2 destructed
17:30:03 T:2376 M:4294967295 DEBUG: CWinEventsWin32::WndProcWindow is active
17:30:03 T:2376 M:4294967295 DEBUG: CWinEventsWin32::WndProcWindow lost focus
17:30:06 T:2376 M:4294967295 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------

It happens when you create a launcher for a PC game and then select the "Get Information" option to scrape info
find quote
Angelscry Offline
Skilled Python Coder
Posts: 2,691
Joined: Sep 2010
Reputation: 37
Location: MTL, Canada
Post: #972
This is the last version of the launcher addon (v1.16.2): plugin.program.launcher.zip

What's new :
- Fix the bug when getting Information for stand alone launcher (thank you fr500 and spong_miester)
- Python code cleaning (just starting)
- Splitting gamefaqs scrapper code from main launcher source code.

[Image: screenshot001ze.png]

Advanced Launcher | Manual | WiKi | Forums | Tutorials | Gallery | GitHub | Archives | Donate

find quote
Angelscry Offline
Skilled Python Coder
Posts: 2,691
Joined: Sep 2010
Reputation: 37
Location: MTL, Canada
Post: #973
Robert de Clair Wrote:Angelscry i dont know its a good example, but Youtube (movie addon) from official repo doesnt have this issue (at selecting destination to download folder)

edit: im using xp home on one from my comps and effect is same. no local drives letters.
No, it is not exactly the same thing. For Youtube movie addon, the selection of the destination download folder is into the plugin settings. In our case the selection of the folder is coded into the plugin itself and use the browse function :
Code:
xbmcgui.Dialog().browse(1,__language__( 30023 ),"files",filter)
As you see the code line is very simple. I have try to change the starting default directory. It works, but then you will be limited to the c:\ drive (not possibility to access external or network drives).

As crispy86 wrote here : click on the windows orb in the bottom left hand corner of the screen > click all programs > click the xbmc folder > right click on the xbmc icon > choose properties > click the 'Compatibility' tab > click 'Change settings for all users button' > at the bottom, where it says privilege level put a tick in the click on the windows orb in the bottom left hand corner of the screen > click all programs > click the xbmc folder > right click on the xbmc icon > choose properties > click the 'Compatibility' tab > click 'Change settings for all users button' > at the bottom, where it says privilege level put a tick in the 'Run this program as an administrator' box.

Start an Application in Administrator Mode
- on Windows 7 or Vista
- on Windows XP

That is what I have done and it fix the problem for me under Windows 7. Then, I have unchecked the 'Run this program as an administrator' box and I still able to access local directories. Not able to go back to the error, so the bug seems definitively fixed for me. That is clearly a kind of XBMC privilege bug. When the user is not the administrator it was not able to access the local directory directly from a plugin.

The other trick you can try is to edit the launcher_plugin.py file and replace the two lines :
Code:
app = xbmcgui.Dialog().browse(1,__language__( 30023 ),"files",filter)
and replace them by those one
Code:
app = xbmcgui.Dialog().browse(1,__language__( 30023 ),"files",filter, False, False, BASE_PATH)
It will maybe solve your problem but not corrects the XBMC bug.

Advanced Launcher | Manual | WiKi | Forums | Tutorials | Gallery | GitHub | Archives | Donate

(This post was last modified: 2010-11-16 13:53 by Angelscry.)
find quote
dePt Offline
Junior Member
Posts: 2
Joined: Nov 2010
Reputation: 0
Post: #974
Running the program as an administrator didn't help me.
How do I edit the launcher_plugin.py file?
find quote
PainToad Offline
Senior Member
Posts: 217
Joined: Aug 2008
Reputation: 0
Post: #975
If you have to ask. Then your out of your depth.
find quote
Angelscry Offline
Skilled Python Coder
Posts: 2,691
Joined: Sep 2010
Reputation: 37
Location: MTL, Canada
Post: #976
dePt Wrote:Running the program as an administrator didn't help me.
How do I edit the launcher_plugin.py file?

- Use an advanced text editor like EditPlus.
- Open the launcher_plugin.py file normally located here: C:\Program Files (x86)\XBMC\portable_data\addons\plugin.program.launcher\resources\lib\launcher_p​lugin.py if you are under Windows 7.
- Found the 2 lines and replace them by the 2 lines code I have previously post here.

This will be my last help on this only Windows related XBMC Dharma beta bug.

Advanced Launcher | Manual | WiKi | Forums | Tutorials | Gallery | GitHub | Archives | Donate

(This post was last modified: 2010-11-17 00:17 by Angelscry.)
find quote
jpreville Offline
Member
Posts: 82
Joined: Jan 2009
Reputation: 0
Location: Michigan, USA
Post: #977
Hi Angelscry,

thank you for working on such a great plugin.... a little off topic. but what emulator do you run for genesis games? I've tried to configure Fusion under Ubuntu 10.04/xbmc/Launcher. But the problem with the Fusion it doesn't seem to want to exit on ESC like most of the other Emulators.

Any In-site would be appreciated...

John
find quote
Angelscry Offline
Skilled Python Coder
Posts: 2,691
Joined: Sep 2010
Reputation: 37
Location: MTL, Canada
Post: #978
jpreville Wrote:thank you for working on such a great plugin.... a little off topic. but what emulator do you run for genesis games? I've tried to configure Fusion under Ubuntu 10.04/xbmc/Launcher. But the problem with the Fusion it doesn't seem to want to exit on ESC like most of the other Emulators.

I'm using the Gens/Gs emulator. You will found Ubuntu version on the page. And, here is the corresponding part of my launchers.xml file with the rights parameters for fullscreen end exit with ESC key :
Code:
        <name>Megadrive</name>
        <application>/usr/bin/gens</application>
        <args>--fs --quickexit </args>
        <rompath>/mnt/multimedias/consoles/genesis/roms/</rompath>
        <thumbpath>/mnt/multimedias/consoles/genesis/covers/</thumbpath>
        <fanartpath>/mnt/multimedias/consoles/genesis/fanarts/</fanartpath>
        <romext>bin</romext>
        <platform>Sega Genesis</platform>
        <thumb>/mnt/multimedias/consoles/genesis/logo.png</thumb>
        <fanart>/mnt/multimedias/consoles/genesis/console.png</fanart>
        <genre>Console / 16-bit / Color</genre>
        <release>1988</release>
        <publisher>Sega</publisher>
        <launcherplot>The Mega Drive is a fourth-generation video game console released by Sega in Japan in 1988 and Europe, Australia and other PAL regions in 1990. The console was released in North America in 1989 under the name Sega Genesis, as Sega was unable to secure legal rights to the Mega Drive name in that region. The Mega Drive was Sega's fifth home console and the successor to the Sega Master System, with which it is electronically compatible.</launcherplot>
        <wait>true</wait>

Advanced Launcher | Manual | WiKi | Forums | Tutorials | Gallery | GitHub | Archives | Donate

find quote
jpreville Offline
Member
Posts: 82
Joined: Jan 2009
Reputation: 0
Location: Michigan, USA
Post: #979
Thanks Alot AngelsCry!!

That worked like a charm. Only thing that tripped me up. is that i had to force-architecture on installing on ubuntu 64bit....

Thanks again John
find quote
timdog82001 Offline
Posting Freak
Posts: 1,132
Joined: Mar 2006
Reputation: 0
Post: #980
For some reason, I'm getting an installation failed notification when I try installing this. I'm running xbmc live dharma beta 4. I tried downloading some of your older versions to test them out. The 2010.11.09 version and all that follow fail to install. All previous versions seem to install and work just fine. Any idea what might be wrong?
find quote
Post Reply