XBMC Community Forum
[RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- 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] Advanced Launcher - Applications Launcher Addon for XBMC (/showthread.php?tid=85724)



- nekoarashi - 2011-12-30 06:14

Fresh install of pcsx2 + ISO's - works a charm thx!! Smile


- Angelscry - 2011-12-30 06:16

nekoarashi Wrote:Fresh install of pcsx2 + ISO's - works a charm thx!! Smile
Great!!!! Wink


- Muyfa666 - 2011-12-30 09:50

Angelscry Wrote:As I already write to you, if you want XBMC to correctly regain focus you must activate the Use a fullscreen window rather than true fullscreen option that is present into XBMC system settings.

If you do not want to use the fullscreen window mode of XBMC, then you will have to restore XBMC focus by using an external launcher (.bat or autoit). In your case (PowerDVD 11) you can create and use this small autoit script :
Code:
Run ( "C:\Program Files (x86)\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe" )
ProcessWaitClose ( "PDVDLaunchPolicy.exe" )
ProcessWaitClose ( "PowerDVD11.exe" )
ProcessWaitClose ( "PowerDVDCinema11.exe" )
WinSetState ( "XBMC", "", @SW_MAXIMIZE )
How to proceed :
  1. Install Autoit on your system (freeware),
  2. Save the previous script as launcher-powerdvd11.au3 (for example),
  3. Right clic on launcher-powerdvd11.au3 and compile it as launcher-powerdvd11.exe,
  4. Modify your launcher by selecting launcher-powerdvd11.exe file instead of PDVDLaunchPolicy.exe.

I don't want to be rude, but I have tried it with the setting "use a fullscreen window...". The only difference is that I can see XBMC in the background instead of it being minimized, but it is still out of focus.

But as you are saying, the focus problem may very well be a problem limited to my computers.

More importantly, your AutoIt-script works PERFECT! A elegant solution that's completely seamless. Bravo. You sir, are my personal hero, sir. ;-)

Also, I have to say that Advanced Launcher is way better than the old launcher. Keep up the excellent work mate. :-)


- dsync89 - 2011-12-30 14:57

I'm currently using Cirrus extended mod v2 and I'm just wondering how does this plugin read the extrafanarts. I had put some images into the folder, set the extrafanart to point to that folder, but the fanart doesn't seemed to change? What are the naming convention to be used? Currently I created each extrafanart folder for each PS2 roms.

Another feature that would be great is to scrape the games based on folder name instead of the filename, which is what I did to organize my roms (1 folder for each game).

Oh and I'm also having script error: addon.py whenever I tried to fetch thumbnail or fanart for the launcher.


- Angelscry - 2011-12-30 19:50

Muyfa666 Wrote:I don't want to be rude, but I have tried it with the setting "use a fullscreen window...". The only difference is that I can see XBMC in the background instead of it being minimized, but it is still out of focus.

But as you are saying, the focus problem may very well be a problem limited to my computers.
No problem... I was just able to reproduce your problem on my Windows 7 system by activating the "true fullscreen" mode of XBMC... what's why I want to be sure it was not the problem. Wink


- Angelscry - 2011-12-30 20:14

dsync89 Wrote:I'm currently using Cirrus extended mod v2 and I'm just wondering how does this plugin read the extrafanarts. I had put some images into the folder, set the extrafanart to point to that folder, but the fanart doesn't seemed to change? What are the naming convention to be used? Currently I created each extrafanart folder for each PS2 roms.
Advanced Launcher have effectively a extrafanart parameter for each launcher. Unfortunately, skins are not using it... To use extrafanart with Cirrus Extented skin... just read the instruction here : http://www.gwenael.org/forum/viewtopic.php?pid=341#p341

dsync89 Wrote:Another feature that would be great is to scrape the games based on folder name instead of the filename, which is what I did to organize my roms (1 folder for each game).
All the Advanced Launcher code is based on executables (launchers) and files managed by these executables (items). Item recognition by scrapper is based of the executable/item filenames. Base Advanced Launcher on folder name do not really make sens. Advanced Launcher manage files, not folder. If you really want to keep your folder structure, you can activate the "recursive scan" option of Advanced Launcher and name your files (items, thumbs and fanarts) with the name of the game.

dsync89 Wrote:Oh and I'm also having script error: addon.py whenever I tried to fetch thumbnail or fanart for the launcher.
This could happen if you do not have define where will be saved the thumbs and fanarts images of each launcher. By default these images are saved into the same directory of the executable files... but if the XBMC user you do not have write access to this directory... you will have a error. That's a supposition, until I cannot take a look at your launchers.xml and xbmc.log files.


- dsync89 - 2011-12-30 20:30

Thanks for the reply Angelscry, it really answers all my questions.

I had set the path to the proper ones and I do have permission to read and write to it. Anyway here is the log file.

http://pastebin.com/bPUmbebp

I believe the following error is causing it.

Code:
02:26:28 T:7624    INFO: -->Python script returned the following error<--
02:26:28 T:7624   ERROR: Error Type: <type 'exceptions.TypeError'>
02:26:28 T:7624   ERROR: Error Contents: not enough arguments for format string
02:26:28 T:7624   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\addo​n.py", line 19, in <module>
                                                plugin.Main()
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\reso​urces\lib\launcher_plugin.py", line 136, in __init__
                                                self._edit_launcher(launcher)
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\reso​urces\lib\launcher_plugin.py", line 715, in _edit_launcher
                                                self._scrap_thumb_launcher(launcherID)
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\reso​urces\lib\launcher_plugin.py", line 418, in _scrap_thumb_launcher
                                                xbmc.executebuiltin("XBMC.Notification(%s,%s, 3000)" % (__language__( 30000 ), __language__( 30065 ) % (self.settings[ "thumbs_scraper" ]).encode('utf-8','ignore')))
                                            TypeError: not enough arguments for format string
02:26:28 T:7624    INFO: -->End of Python script error report<--
02:26:28 T:7624    INFO: Python script stopped

Code:
    <launcher>
        <id>bd2eb1eec016df9f8923b28eb8e72b1d</id>
        <name>Anno 1404 Gold Edition</name>
        <application>C:\Program Files (x86)\UBISOFT\Related Designs\ANNO 1404\Anno4.exe</application>
        <args></args>
        <rompath></rompath>
        <thumbpath>C:\XBMC Thumbs\</thumbpath>
        <fanartpath>C:\XBMC Fanarts\</fanartpath>
        <extrafanartpath>C:\XBMC Fanarts\</extrafanartpath>
        <romext></romext>
        <platform>IBM PC Compatible</platform>
        <thumb></thumb>
        <fanart></fanart>
        <genre>Miscellaneous</genre>
        <release>2010</release>
        <publisher>Related Designs / Ubisoft</publisher>
        <launcherplot>Anno 1404 Gold Edition is a Compilation game‚ developed by Related Designs and published by Ubisoft‚  which was released in Europe in 2010.</launcherplot>
        <minimize>true</minimize>
        <lnk>true</lnk>
        <roms>
        </roms>
    </launcher>



- Angelscry - 2011-12-30 21:04

dsync89 Wrote:Thanks for the reply Angelscry, it really answers all my questions.

I had set the path to the proper ones and I do have permission to read and write to it. Anyway here is the log file.

http://pastebin.com/bPUmbebp

I believe the following error is causing it.

Code:
02:26:28 T:7624    INFO: -->Python script returned the following error<--
02:26:28 T:7624   ERROR: Error Type: <type 'exceptions.TypeError'>
02:26:28 T:7624   ERROR: Error Contents: not enough arguments for format string
02:26:28 T:7624   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\addo​n.py", line 19, in <module>
                                                plugin.Main()
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\reso​urces\lib\launcher_plugin.py", line 136, in __init__
                                                self._edit_launcher(launcher)
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\reso​urces\lib\launcher_plugin.py", line 715, in _edit_launcher
                                                self._scrap_thumb_launcher(launcherID)
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\reso​urces\lib\launcher_plugin.py", line 418, in _scrap_thumb_launcher
                                                xbmc.executebuiltin("XBMC.Notification(%s,%s, 3000)" % (__language__( 30000 ), __language__( 30065 ) % (self.settings[ "thumbs_scraper" ]).encode('utf-8','ignore')))
                                            TypeError: not enough arguments for format string
02:26:28 T:7624    INFO: -->End of Python script error report<--
02:26:28 T:7624    INFO: Python script stopped

Code:
    <launcher>
        <id>bd2eb1eec016df9f8923b28eb8e72b1d</id>
        <name>Anno 1404 Gold Edition</name>
        <application>C:\Program Files (x86)\UBISOFT\Related Designs\ANNO 1404\Anno4.exe</application>
        <args></args>
        <rompath></rompath>
        <thumbpath>C:\XBMC Thumbs\</thumbpath>
        <fanartpath>C:\XBMC Fanarts\</fanartpath>
        <extrafanartpath>C:\XBMC Fanarts\</extrafanartpath>
        <romext></romext>
        <platform>IBM PC Compatible</platform>
        <thumb></thumb>
        <fanart></fanart>
        <genre>Miscellaneous</genre>
        <release>2010</release>
        <publisher>Related Designs / Ubisoft</publisher>
        <launcherplot>Anno 1404 Gold Edition is a Compilation game‚ developed by Related Designs and published by Ubisoft‚  which was released in Europe in 2010.</launcherplot>
        <minimize>true</minimize>
        <lnk>true</lnk>
        <roms>
        </roms>
    </launcher>
Thank you for the feedback. I will try to fix this as soon as possible (maybe I'm already fixing this). Do you use XBMC with English or another language? Most of the translation files into Advanced Launcher are actually broken (not updated by foreign languages users). If you use XBMC with English language do you still have the same error?


- Angelscry - 2011-12-30 21:16

dsync89 Wrote:Thanks for the reply Angelscry, it really answers all my questions.

I had set the path to the proper ones and I do have permission to read and write to it. Anyway here is the log file.

http://pastebin.com/bPUmbebp

I believe the following error is causing it.

Code:
02:26:28 T:7624    INFO: -->Python script returned the following error<--
02:26:28 T:7624   ERROR: Error Type: <type 'exceptions.TypeError'>
02:26:28 T:7624   ERROR: Error Contents: not enough arguments for format string
02:26:28 T:7624   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\addo​n.py", line 19, in <module>
                                                plugin.Main()
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\reso​urces\lib\launcher_plugin.py", line 136, in __init__
                                                self._edit_launcher(launcher)
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\reso​urces\lib\launcher_plugin.py", line 715, in _edit_launcher
                                                self._scrap_thumb_launcher(launcherID)
                                              File "C:\Users\Gary2\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\reso​urces\lib\launcher_plugin.py", line 418, in _scrap_thumb_launcher
                                                xbmc.executebuiltin("XBMC.Notification(%s,%s, 3000)" % (__language__( 30000 ), __language__( 30065 ) % (self.settings[ "thumbs_scraper" ]).encode('utf-8','ignore')))
                                            TypeError: not enough arguments for format string
02:26:28 T:7624    INFO: -->End of Python script error report<--
02:26:28 T:7624    INFO: Python script stopped

Code:
    <launcher>
        <id>bd2eb1eec016df9f8923b28eb8e72b1d</id>
        <name>Anno 1404 Gold Edition</name>
        <application>C:\Program Files (x86)\UBISOFT\Related Designs\ANNO 1404\Anno4.exe</application>
        <args></args>
        <rompath></rompath>
        <thumbpath>C:\XBMC Thumbs\</thumbpath>
        <fanartpath>C:\XBMC Fanarts\</fanartpath>
        <extrafanartpath>C:\XBMC Fanarts\</extrafanartpath>
        <romext></romext>
        <platform>IBM PC Compatible</platform>
        <thumb></thumb>
        <fanart></fanart>
        <genre>Miscellaneous</genre>
        <release>2010</release>
        <publisher>Related Designs / Ubisoft</publisher>
        <launcherplot>Anno 1404 Gold Edition is a Compilation game‚ developed by Related Designs and published by Ubisoft‚  which was released in Europe in 2010.</launcherplot>
        <minimize>true</minimize>
        <lnk>true</lnk>
        <roms>
        </roms>
    </launcher>
Ok... It's my fault. Last version bring this bug... It will be fixed in the next version.... maybe before the end of the day.


Version 1.7.1 - Angelscry - 2011-12-30 21:50

Version 1.7.1 : This new version of Advanced Launcher bring some fixes and a big cleaning into the language translation files. Advanced Launcher will be shortly (I hope...) hosted on the official eden repository of XBMC. Add-ons quality is more strict than on my personal repo and so a lot of clean and fixes must be done before. Most of all the translation language files were not updated and mostly broken. So I have decided to delete them. New translation contribution are welcome. English translation have also been cleaned and fixed. But main goal of this version is to fix a launcher thumbs and fanarts bug that has appear with the version 1.7.0, and that is now fixed.

Changelog:
[list=*]
[*]Fix thumb and fanart scraper for launcher.
[*]Fix and clean english strings.xml file.
[*]Delete broken translations.
[/list]


- dsync89 - 2011-12-31 07:11

Thanks very much for the quick fix Angelscry. That was fast. Tested it and it worked flawlessly Smile


- Angelscry - 2011-12-31 07:22

dsync89 Wrote:Thanks very much for the quick fix Angelscry. That was fast. Tested it and it worked flawlessly Smile
Thank you also for your complete feedback that allows me to quickly identify the problem and fix it.Nod


- Gingerbread Man - 2012-01-04 19:36

If I use this to launch PowerDVD from XBMC for Blu Ray purposes, I'm assuming it launches if I insert a blu Ray and press play? Or will it be a menu item, or will I have to go deep in XBMC, into the launcher program, select PowerDVD and then hopefully I'll be there?

Also, odd question, what happens when the Blu Ray has finished, how do I get back to XBMC with my Harmony one contoller?

I currently use a Logitech Mini Dinovo keyboard to close XBMC and load PowerDVD. Honest answer, would this still be the quickest and easiest way?


- Angelscry - 2012-01-04 20:58

Gingerbread Man Wrote:If I use this to launch PowerDVD from XBMC for Blu Ray purposes, I'm assuming it launches if I insert a blu Ray and press play? Or will it be a menu item, or will I have to go deep in XBMC, into the launcher program, select PowerDVD and then hopefully I'll be there?
Advanced Launcher only start applications that have been selected and configured as launchers. So, basically you will have to select the PowerDVD entry into Advanced Launcher items list to start PowerDVD and then read your blu-ray with it. You could add PowerDVD entry as favorite into XBMC and then have the possibility to add it as a XBMC custom menu item.

Gingerbread Man Wrote:Also, odd question, what happens when the Blu Ray has finished, how do I get back to XBMC with my Harmony one contoller?
I'm not a PowerDVD user, but when the Blu-ray is finished you may return back to the PowerDVD interface. Maybe there is an option into PowerDVD to automatically close it after blue-ray reading. In this case you will automatically return back to XBMC. Concerning your Harmony one controller you may be able to map a key to automatically close PowerDVD. Personally, under Windows I have mapped the "STOP" key of my remote to send "ESC" key press to windows (but I have a PS3 remote). Then I have written a small Autoit script that force applications to close (http://www.gwenael.org/forum/viewtopic.php?id=43). Under linux I'm using lircd functionalities to kill specific processes when the "STOP" key of the remote is pressed.

Gingerbread Man Wrote:I currently use a Logitech Mini Dinovo keyboard to close XBMC and load PowerDVD. Honest answer, would this still be the quickest and easiest way?
You can try to create a small autoit script that will start PowerDVD and then will close it when a keyboard key will be pressed. Then you will have to map one button of you remote to with keyboard key : ESC key and STOP button seems logical for me. Here is the possible autoitscript :
Code:
HotKeySet("{ESC}", "Terminate")
Run ( '"C:\Program Files (x86)\CyberLink\PowerDVD11\PDVDLaunchPolicy.exe" E:', "C:\Program Files (x86)\CyberLink\PowerDVD11\" )
While 1
    Sleep(100)
WEnd
Func Terminate()
    ProcessClose ( "PowerDVD11.exe" )
    Exit 0
EndFunc
Then compile this script as powerdvd11-launcher.exe (for example) and select it as launcher executable file instead of PDVDLaunchPolicy.exe. I have not tested this script at all... but the idea is here.


- Gingerbread Man - 2012-01-04 21:06

Thanks for the fast reply!