Kodi Community Forum
[RELEASE] Launcher - application launcher plugin for Linux, Mac, Windows, and Xbox - Printable Version

+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Launcher - application launcher plugin for Linux, Mac, Windows, and Xbox (/showthread.php?tid=35739)



- Angelscry - 2010-10-05 13:18

marjanovich Wrote:Script failed, replaced launcher stuff with pastebin stuff, updated XML to reflect the location of valid fanart image...
It seems that it is a problem related to text format differences between Linux and Windows. The log indicate an error on a comments line. Argggg... I'm not really familiar with those differences. Try this file : http://pastebin.com/5xCzA1VE an tell me if you obtain better result.


- marjanovich - 2010-10-05 16:43

Same results... sorry man...

Quote:07:38:38 T:5876 M:2344476672 INFO: -->Python script returned the following error<--
07:38:38 T:5876 M:2344476672 ERROR: Error Type: exceptions.SyntaxError
07:38:38 T:5876 M:2344476672 ERROR: Error Contents: ('invalid syntax', ('C:\\Users\\LITTLESISTER\\AppData\\Roaming\\XBMC\\addons\\plugin.program.launch​er\\resources\\lib\\launcher_plugin.py', 21, 4, ' """\n'))
07:38:38 T:5876 M:2344460288 ERROR: Traceback (most recent call last):
File "C:\Users\LITTLESISTER\AppData\Roaming\XBMC\addons\plugin.program.launcher\defaul​t.py", line 19, in ?
import resources.lib.launcher_plugin as plugin
File "C:\Users\LITTLESISTER\AppData\Roaming\XBMC\addons\plugin.program.launcher\resour​ces\lib\launcher_plugin.py", line 21
"""
^
SyntaxError: invalid syntax
07:38:38 T:5876 M:2344460288 INFO: -->End of Python script error report<--

So the questions I have are why is line 19 in default.py acceptable in default code but with the launcher_plugin.py modifications we have an error in both files suddenly?


- Angelscry - 2010-10-05 19:17

marjanovich Wrote:So the questions I have are why is line 19 in default.py acceptable in default code but with the launcher_plugin.py modifications we have an error in both files suddenly?
I think default.py is importing code from launcher_plugin.py. So if you have an error into launcher_plugin.py, default.py will not working


- Angelscry - 2010-10-05 19:31

Ok, if think the problem come from my Firefox browser which was not using the good encoding character configuration, and was adding "\n" at the end of each lines when I have copy/paste the code into pastebin. This new launcher_plugin.py may works (I hope...) : http://pastebin.com/a2MgXQhr


- malte - 2010-10-05 19:33

maybe the problem is the transfer via pastebin? it will surely change the line endings if you copy, paste the code. depending on the editor that you use.

Edit: two minutes too lateSmile


- marjanovich - 2010-10-05 20:41

no error... woot! fanart's still not appearing but i'm gonna poke that with a stick and see if I cannot figure that part out, but at least no errors!

Update... Ok this may sound a bit shortbus but on looking through the code, is the fanart capability litterally only adding to roms (within launcher) as opposed to any application you add?


- Zerqent - 2010-10-05 23:28

marjanovich Wrote:no error... woot! fanart's still not appearing but i'm gonna poke that with a stick and see if I cannot figure that part out, but at least no errors!

I believe you perhaps have to change your skin. I can't confirm this but I belive Confluence only has the ability to display thumbs in the Programs section.


- Angelscry - 2010-10-05 23:30

I'm not sure that I clearly understand your question, but actually you have to add manually (using a text editor) the fanarts into the launchers.xml using the <fanart></fanart> tags to saw them into XBMC. Maybe it will be possible to modify the launcher addon to do this automatically (for example by searching into a fanarts directory the picture with the same name as the rom) .


- marjanovich - 2010-10-05 23:38

Angelscry Wrote:I'm not sure that I clearly understand your question, but actually you have to add manually (using a text editor) the fanarts into the launchers.xml using the <fanart></fanart> tags to saw them into XBMC. Maybe it will be possible to modify the launcher addon to do this automatically (for example by searching into a fanarts directory the picture with the same name as the rom) .

I have the fanarts in the xml
Quote:<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<launchers>
<launcher>
<name>Defense Grid</name>
<application>C:\Program Files (x86)\Defense Grid - The Awakening\DefenseGrid.exe</application>
<args></args>
<rompath></rompath>
<romext></romext>
<thumb>C:\Program Files (x86)\Defense Grid - The Awakening\DefenseGrid.png</thumb>
<fanart>C:\Users\LITTLESISTER\Desktop\defense-grid-05.jpg</fanart>
<wait>true</wait>
<roms>
</roms>
</launcher>
<launcher>
<name>Allods</name>
<application>C:\gPotato.com\Allods Online\bin\AOgame.exe</application>
<args></args>
<rompath></rompath>
<romext></romext>
<thumb>C:\gPotato.com\Allods Online\bin\AOgame.png</thumb>
<fanart>C:\Users\LITTLESISTER\Desktop\screenshot000.png</fanart>
<wait>true</wait>
<roms>
</roms>
</launcher>
</launchers>

I just doesn't display the art... My question was... do your code modification cover everything added into launcher or just rom files?


- Zerqent - 2010-10-06 01:03

Angelscry Wrote:I'm not sure that I clearly understand your question, but actually you have to add manually (using a text editor) the fanarts into the launchers.xml using the <fanart></fanart> tags to saw them into XBMC. Maybe it will be possible to modify the launcher addon to do this automatically (for example by searching into a fanarts directory the picture with the same name as the rom) .

Aye, I was thinking either romname-fanart.(jpg|png|bmp) for romname.ext or a fanart folder, both works.

However if you want to haste a process to get fanart working in launcher (in the repo), please supply a patch with your changes.


- Ranger Rob - 2010-10-06 01:44

marjanovich Wrote:Unmount the disc image and restart xbmc

That fixed it.

Thanks!


- marjanovich - 2010-10-06 02:38

Np happens all the time


- Angelscry - 2010-10-06 04:10

marjanovich Wrote:I just doesn't display the art... My question was... do your code modification cover everything added into launcher or just rom files?
Does the skin you use has the ability to display fanarts in the Programs section (ListItem.Property(Fanart_Image) variable)?


- marjanovich - 2010-10-06 09:10

OK I've grabbed the updated Night GIT, and the updated Launcher plugins... still no fanart for the actual programs, I've placed fanart.jpg in each of the game's specific folders matching the location of both the executable and the cover...

[Image: Capture-3.png]

and looking at the log it seems to want to find the fanart.jpg in the actual addon folder itself...

Quote:00:00:07 T:4884 M:2266603520 DEBUG: ------ Window Init (MyPrograms.xml) ------
00:00:07 T:4884 M:2266603520 INFO: Loading skin file: MyPrograms.xml
00:00:07 T:4884 M:2266566656 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/executable/)
00:00:07 T:4884 M:2266566656 DEBUG: ParentPath = [addons://sources/executable/]
00:00:07 T:2500 M:2266492928 DEBUG: thread start, auto delete: 0
00:00:07 T:2500 M:2266492928 DEBUG: Thread 2500 terminating
00:00:07 T:1288 M:2262867968 DEBUG: CTextureCache::GetImageHash - unable to stat url C:\Users\LITTLESISTER\AppData\Roaming\XBMC\addons\plugin.program.launcher\fanart​.jpg
00:00:07 T:1288 M:2262863872 DEBUG: msg: PICTURE::LoadImage: Unable to open image: C:\Users\LITTLESISTER\AppData\Roaming\XBMC\addons\plugin.program.launcher\fanart​.jpg Error: (2)
00:00:07 T:1288 M:2262863872 ERROR: Texture manager unable to load file: C:\Users\LITTLESISTER\AppData\Roaming\XBMC\addons\plugin.program.launcher\fanart​.jpg
00:00:08 T:4884 M:2263408640 DEBUG: SDLKeyboard: scancode: 28, sym: 13, unicode: 13, modifier: 0
00:00:08 T:4884 M:2263408640 DEBUG: CApplication::OnKey: 61453 pressed, action is Select
00:00:08 T:4884 M:2263330816 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.program.launcher/)
00:00:08 T:4884 M:2263330816 DEBUG: ParentPath = [addons://sources/executable/]
00:00:08 T:1288 M:2263318528 DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Launcher('plugin://plugin.program.launcher/','0','')
00:00:08 T:1288 M:2263318528 INFO: initializing python engine.
00:00:08 T:1288 M:2263318528 DEBUG: new python thread created. id=2
00:00:08 T:1288 M:2263318528 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the Launcher plugin...
00:00:08 T:2596 M:2263318528 DEBUG: thread start, auto delete: 0
00:00:08 T:2596 M:2263318528 DEBUG: Python thread: start processing
00:00:08 T:2596 M:2263240704 DEBUG: msg: 'import site' failed; use -v for traceback
00:00:08 T:2596 M:2263240704 NOTICE: -->Python Interpreter Initialized<--
00:00:08 T:2596 M:2263240704 DEBUG: XBPyThread::Process - The source file to load is C:\Users\LITTLESISTER\AppData\Roaming\XBMC\addons\plugin.program.launcher\defaul​t.py
00:00:08 T:2596 M:2263240704 DEBUG: XBPyThread::Process - Setting the Python path to C:\Users\LITTLESISTER\AppData\Roaming\XBMC\addons\plugin.program.launcher;C:\Pro​gram Files (x86)\XBMC\addons\script.module.pil\lib;C:\Program Files (x86)\XBMC\addons\script.module.pysqlite\lib;special://xbmc/system/python/DLLs;special://xbmc/system/python/Lib;special://xbmcbin/system/python/python24.zip;special://xbmc/system/python\DLLs;special://xbmc/system/python\lib;special://xbmc/system/python\lib\plat-win;special://xbmc/system/python\lib\lib-tk;C:\Program Files (x86)\XBMC
00:00:08 T:2596 M:2263240704 DEBUG: XBPyThread::Process - Entering source directory C:\Users\LITTLESISTER\AppData\Roaming\XBMC\addons\plugin.program.launcher
00:00:08 T:2596 M:2263044096 NOTICE: C:\Users\LITTLESISTER\AppData\Roaming\XBMC\addons\plugin.program.launcher
00:00:08 T:2596 M:2263040000 NOTICE: Mode AddOn ON
00:00:08 T:2596 M:2263040000 NOTICE: C:\Users\LITTLESISTER\AppData\Roaming\XBMC\userdata\addon_data\plugin.program.la​uncher
00:00:08 T:2596 M:2263040000 NOTICE: 0
00:00:08 T:2596 M:2263027712 NOTICE: Launcher: found 3 launchers
00:00:08 T:1288 M:2262994944 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult- plugin returned successfully
00:00:08 T:2596 M:2263023616 INFO: Scriptresult: Success
00:00:08 T:2596 M:2263023616 INFO: Python script stopped
00:00:08 T:2596 M:2263023616 DEBUG: Thread 2596 terminating
00:00:08 T:6776 M:2262978560 DEBUG: thread start, auto delete: 0
00:00:08 T:6776 M:2262978560 DEBUG: Thread 6776 terminating
00:00:08 T:4884 M:2264375296 DEBUG: python thread 2 destructed
00:00:09 T:4884 M:2268598272 DEBUG: SDLKeyboard: scancode: 77, sym: 275, unicode: 0, modifier: 0
00:00:09 T:4884 M:2268598272 DEBUG: CApplication::OnKey: 61479 pressed, action is Right
00:00:10 T:4884 M:2268774400 DEBUG: SDLKeyboard: scancode: 77, sym: 275, unicode: 0, modifier: 0
00:00:10 T:4884 M:2268774400 DEBUG: CApplication::OnKey: 61479 pressed, action is Right
00:00:11 T:4884 M:2269057024 DEBUG: SDLKeyboard: scancode: 75, sym: 276, unicode: 0, modifier: 0
00:00:11 T:4884 M:2269057024 DEBUG: CApplication::OnKey: 61477 pressed, action is Left
00:00:11 T:4884 M:2268942336 DEBUG: SDLKeyboard: scancode: 75, sym: 276, unicode: 0, modifier: 0
00:00:11 T:4884 M:2268942336 DEBUG: CApplication::OnKey: 61477 pressed, action is Left
00:00:12 T:4884 M:2269052928 DEBUG: SDLKeyboard: scancode: 56, sym: 308, unicode: 0, modifier: 0
00:00:12 T:4884 M:2269052928 DEBUG: CWinEventsWin32::WndProcWindow is inactive
00:00:12 T:4884 M:2269052928 DEBUG: CWinEventsWin32::WndProcWindow lost focus
00:00:12 T:4796 M:2269048832 DEBUG: Thread 4796 terminating (autodelete)
00:00:12 T:1288 M:2269093888 DEBUG: Thread 1288 terminating (autodelete)
00:00:12 T:4884 M:2269093888 DEBUG: CAnnouncementManager - Announcement: ApplicationStop from xbmc
00:00:12 T:4884 M:2269057024 NOTICE: Storing total System Uptime
00:00:12 T:4884 M:2269057024 NOTICE: Saving settings
00:00:12 T:4884 M:2269122560 NOTICE: stop all
00:00:12 T:4884 M:2269122560 DEBUG: CNetwork::NetworkMessage - Signaling network services to stop
00:00:12 T:4884 M:2269122560 NOTICE: ES: Stopping event server
00:00:12 T:4884 M:2269114368 DEBUG: CNetwork::NetworkMessage - Waiting for network services to stop
00:00:13 T:652 M:2269700096 NOTICE: ES: UDP Event server stopped
00:00:13 T:652 M:2269700096 DEBUG: Thread 652 terminating
00:00:13 T:2244 M:2269745152 DEBUG: Thread 2244 terminating
00:00:13 T:4884 M:2269786112 NOTICE: stop sap announcement listener
00:00:13 T:4884 M:2269786112 NOTICE: clean cached files!
00:00:13 T:4884 M:2269777920 NOTICE: unload skin
00:00:13 T:4884 M:2269777920 DEBUG: CGUIAudioManager::DeInitialize
00:00:13 T:4884 M:2269777920 DEBUG: ------ Window Deinit (MyPrograms.xml) ------



- alexpigment - 2010-10-06 19:15

Is anyone else getting a server error when trying to submit a bug to the official google page for the plugin? I'm trying to submit a bug that affects first time installations freezing when trying to import the roms.