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

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Game Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=291)
+---- Thread: [CLOSED] Advanced Launcher - Applications Launcher Addon for XBMC (/showthread.php?tid=85724)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-09-11

Version 2.0.12 : This new version of Advanced Launcher fix bugs added by version 2.0.11. It also improve the way images are downloaded.

Changelog :
  • Fix images download bug into automatic scan mode.
  • Improve download image algorithm.



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-09-11

(2013-09-11, 03:26)Atarian Wrote: Another question that I'm not sure will matter when I rescrape. I tried deleting my game collection and starting fresh, it didnt pull anything in from thegamesdb, of course, but when I browsed the games when it finished, it preserved all of the thumbnails from the other scraper i tried. I even deleted them from the folder and they were still there on my screen. Can I completely delete all info from Advanced Launcher and start entirely fresh?
First you have to know that if you delete your game list from Advanced Launcher, the corresponding NFO files, thumbs and images will not be deleted from your hardrive. Also if you want to rescrap thumbss and fanarts you must check into Advanced Launcher settings that the "Overwrite Exiting Files" option is activated (for thumbs and fanarts). If not, Advanced Launcher will automatically take the saved thumbs and fanarts files. Concerning the fact that even after deleting the images, they still appear into XBMC, is due to the fact that XBMC automatically cache all the images. Also the fact that TheGameDB scraper was not able to found any images, may not help you. If you delete your item list, check the "Overwrite Exiting Files" options and perform a new scan, the thumbs and fanart images will be normally updated into XBMC.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Atarian - 2013-09-11

Thanks again, It's pulling in images from thegamesdb right now. I appreciate the help!


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - bakito - 2013-09-13

angel I got a problem, I had an windows 8 installation ( with dual boot) and windows 7 ( the one with xbmc)
yesterday i delete my windows 8 install and since the advanced launcher in windows 7 don't launch pc game " can't find explorer.exe"
but I have explorer working in my windows 7..
every emulator works fine, my pc game shortcuts work fine ( in windows) but advance "can't find explorer"....Sad and launch nothing...
You have an idea?
thanks

edit: I found the error, for some reason advanced pointed to the explorer.exe from my windows 8 install disk (??strange??)


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-09-13

(2013-09-13, 11:37)bakito Wrote: angel I got a problem, I had an windows 8 installation ( with dual boot) and windows 7 ( the one with xbmc)
yesterday i delete my windows 8 install and since the advanced launcher in windows 7 don't launch pc game " can't find explorer.exe"
but I have explorer working in my windows 7..
every emulator works fine, my pc game shortcuts work fine ( in windows) but advance "can't find explorer"....Sad and launch nothing...
You have an idea?
thanks

edit: I found the error, for some reason advanced pointed to the explorer.exe from my windows 8 install disk (??strange??)
If you have previoulsy created launchers using explorer.exe with XBMC under Windows 8, it is possible that you selected the default/active explorer.exe file path (the Windows 8 one). Once you have deleted Windows 8, all the created paths into launchers.xml were not anymore valid, and so, give you the error. Undecided


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - bakito - 2013-09-13

Yes indeed! But it s funny that it works all that time with explorer from 8 under 7 !
Anyway everything is back to normal!
What a relief!
Cheers


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - lekkerbek - 2013-09-13

Does anybody know how to open a program (Safari or Chrome for instance) with advanced launcher.

I'm on Mac/OSX.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-09-13

(2013-09-13, 16:56)lekkerbek Wrote: Does anybody know how to open a program (Safari or Chrome for instance) with advanced launcher.

I'm on Mac/OSX.
You can try this : http://forum.xbmc.org/showthread.php?tid=173052&pid=1505541#pid1505541


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - lekkerbek - 2013-09-13

Thanks I tried that, but obviously I did something wrong, cause it doesn't work for me.

I chose:
- standalone launcher
- usr/bin/open
- application arguments: -a"Applications/Safari.app

That's it. Am I forgetting something?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-09-13

(2013-09-13, 20:54)lekkerbek Wrote: Thanks I tried that, but obviously I did something wrong, cause it doesn't work for me.

I chose:
- standalone launcher
- usr/bin/open
- application arguments: -a"Applications/Safari.app

That's it. Am I forgetting something?
You need a space between each arguments, a slash before the Application directory and to close the double quotes :

Code:
-a "/Applications/Safari.app"

It may also works without the quotes.

Code:
-a /Applications/Safari.app

According to this website (http://stackoverflow.com/questions/12150569/open-safari-with-url-from-command-line-and-get-process-handle) safari could also be started like this :

Code:
open -a Safari

So :
  • Create a standalone launcher
  • Application : usr/bin/open
  • Application arguments: -a Safari
May also works...


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - lekkerbek - 2013-09-13

Apologies for me being an idiot :-)

Thanks for your help. It works.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - mcarni - 2013-09-14

(2013-09-10, 02:54)Angelscry Wrote:
(2013-09-09, 15:31)mcarni Wrote:
(2013-09-09, 14:52)Angelscry Wrote: You just have to create a standalone launcher and select your bash script as application.
You will found here is a Youtube tutorial to create Stand Alone launcher : http://www.youtube.com/watch?v=CvaGzEc_6e4
And you will found here is the user guide part concerning Stand Alone launcher creation : http://www.gwenael.org/forum/viewtopic.php?pid=4#p4

Thanks a lot, I will try it tonight from home and let you know.


M

EDIT
i got a bit further
"context menu" was not active on my samsung remote so I had to change my remote.xml and now i can add sources etc.

unfortunately I am now stuck with a "script not found" error and a "WARNING: Attempt to use invalid handle -1" in my xbmc.log
probably I am doing something silly...
just in case someone had similar issues, I am running openelec on a raspberrypi

Thanks
Which versions of XBMC and Advanced Launcher are you using?

Angelscry,

I think I understood what was wrong with my setup.

I had my bash script on an nfs share, so when I created my standalone launcher I added my nfs share to the sources.

today I did it slightly different, I had the nfs share mounted on /tmp/share by an autostart.sh in .config
i then added this /tmp/share to the sources and recreated the launcher.

this time everything worked!

hope this makes sense and can help
thanks again for this addon

M


Start Firefox on Android - Angelscry - 2013-09-14

Start Firefox on Android

Under Android you cannot directly simply start applications using command line. You must have root privileges to do that (su). Also Android's applications are not based on executable files but on activities concept. So you need also to start the activity manage (am). So the complete command line to start Firefox under Android is :

Code:
su -c 'am start org.mozilla.firefox/.App'

Your Android devise must be rooted to have root acces... but if you are running XBMC on it, it is surely the case.
So, the corresponding stand-alone launcher settings into Advanced Launcher to start Firefox will be :

Application : /bin/su
Arguments : -c 'am start org.mozilla.firefox/.App'

People interested to discuss about Advanced Launcher support on Android are invited to do it on the Advanced Launcher dedicated forum : http://www.gwenael.org/forum/viewforum.php?id=16


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - fr500 - 2013-09-19

Another update to my script, I managed to find a way to start STEAM in BIG PICTURE MODE. All that is required is a small registry tweak. Sadly steam changes it back every time so the script itself has to handle the change.

Usage:
call launcher_steam with an argument that is the steamid of the game
ex: launcher_steam 40800

Script will start steam in big picture mode by default, in this mode steam will **not** close by itself since it's impossible to track the BPM in-game overlay.
In desktop mode steam will close itself if it wasn't running in the first place

Arguments:
launcher_steam gameid [PAUSE] [OFFLINE] [BPM]
only the first argument is mandatory, arguments are parsed in order and if null they will use their default value.
If you need to set OFFLINE you **must** set a value for PAUSE, if you need to set BPM you **must** set a value for PAUSE **and** OFFLINE

PAUSE will define if a process must be tracked
possible values are: TRUE|FALSE
default is: TRUE

OFFLINE will define if STEAM must be started in offline mode
possible values are: TRUE|FALSE
default is: FALSE

BPM will define if STEAM must be started in big picture mode
possible values are: TRUE|FALSE
default is: TRUE

Code:
@echo off

REM simple usage:
REM call launcher_steam with an argument that is the steamid of the game
REM ex: launcher_steam 40800

REM script will start steam in big picture mode by default
REM in this mode steam will **not** close by itself since it's impossible to track the BPM in-game overlay
REM in desktop mode steam will close itself if it wasn't running in the first place

REM arguments:
REM launcher_steam gameid [PAUSE] [OFFLINE]    [BPM]
REM only the first argument is mandatory, arguments are parsed in order and if null they will use their default value
REM if you need to set OFFLINE you **must** set a value for PAUSE, if you need to set BPM you **must** set a value for PAUSE **and** OFFLINE

REM PAUSE will define if a process must be tracked
REM possible values are: TRUE|FALSE
REM default is: TRUE

REM OFFLINE will define if STEAM must be started in offline mode
REM possible values are: TRUE|FALSE
REM default is: FALSE

REM BPM will define if STEAM must be started in big picture mode
REM possible values are: TRUE|FALSE
REM default is: TRUE

REM global variables usually these won't need to be tweaked

REM the process that must be tracked
set process_1=gameoverlayui.exe

REM steam process
set process_2=steam.exe

REM process to be paused
set process_3=xbmc.exe

REM don't touch this
set ignore_result=INFO:

REM initialize iteration
set iteration=0

REM if second argument is true or not set it will pause process_3 while process_1 is running
IF "%2"=="" (
    set PAUSE=TRUE
) ELSE (
    IF "%2"=="TRUE" (
        set PAUSE=TRUE
    ) ELSE (
        set PAUSE=FALSE
    )
)

REM if third argument is true it start steam as offline
IF "%3"=="" (
    set OFFLINE=FALSE
) ELSE (
    IF "%3"=="TRUE" (
        set OFFLINE=TRUE
    ) ELSE (
        set OFFLINE=FALSE
    )
)

REM if fourth argument is true it will not start steam in bpm
IF "%4"=="" (
    set BPM=TRUE
) ELSE (
    IF "%4"=="TRUE" (
        set BPM=FALSE
    ) ELSE (
        set BPM=TRUE
    )
)

echo --
echo PAUSE=%PAUSE%
echo OFFLINE=%OFFLINE%
echo BPM=%BPM%

set STEAMSTATE=STOPPED
set GAMESTATE=STOPPED
set LAUNCHERSTATE=INITIALIZING

echo --
echo --

REM setup steam to start in bpm if required
IF %BPM%==TRUE (
    REM start "REGEX" regedit /s c:\windows\bpm.reg
    set process_1=steam.exe
)


:CHECKSTEAM
echo --

if %LAUNCHERSTATE%==INITIALIZING set limit=5
if %LAUNCHERSTATE%==STARTSTEAM set limit=60

echo check if steam is running
echo -----------------------------------------------------------------
set iteration=0
set interval=1
set limit=10

echo launcher status: %LAUNCHERSTATE%
echo steam status: %STEAMSTATE%
echo game status: %GAMESTATE%

:0
set var=NOT_RUNNING
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %process_2%"`) do if not %%A==%ignore_result% set var=RUNNING
echo waiting...
set /a iteration=iteration+1
timeout %interval% > null
IF %var% == NOT_RUNNING (
    IF %LAUNCHERSTATE%==INITIALIZING (

        set LAUNCHERSTATE=STARTSTEAM    
        goto :LAUNCH
    )
    IF %LAUNCHERSTATE%==STARTSTEAM (
        if %iteration%==%limit% goto :FAILURE
        goto :0
    )
    IF %LAUNCHERSTATE%==STOPSTEAM (
        set STEAMSTATE=STOPPED
        goto :EXIT
    )    
)
IF %var% == RUNNING (
    IF %LAUNCHERSTATE%==INITIALIZING (
        set STEAMSTATE=ALREADYRUNNING
        set LAUNCHERSTATE=STARTINGGAME
    
        goto :LAUNCH
    )
    IF %LAUNCHERSTATE%==STARTSTEAM (
        
        IF %STEAMSTATE%==STOPPED set STEAMSTATE=STARTED
        set LAUNCHERSTATE=STARTINGGAME
        
        goto :CHECKGAME    
    )
    IF %LAUNCHERSTATE%==STOPSTEAM (
        if %iteration%==%limit% goto :FAILURE
        goto :0        
    )    
)
exit /B

:CHECKGAME
echo --

echo check if game is running
echo -----------------------------------------------------------------

set iteration=0
set limit=60
IF %LAUNCHERSTATE% == STARTINGGAME (    
    set interval=1
)
IF %LAUNCHERSTATE% == WAITING (
    set interval=10
)



echo launcher status: %LAUNCHERSTATE%
echo steam status: %STEAMSTATE%
echo game status: %GAMESTATE%

:1
set var=NOT_RUNNING
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %process_1%"`) do if not %%A==%ignore_result% set var=RUNNING
echo waiting...
set /a iteration=iteration+1
timeout %interval% > null
IF %var% == NOT_RUNNING (
    IF %LAUNCHERSTATE% == STARTINGGAME (
        if %iteration%==%limit% goto :FAILURE
        goto :1
    )
    IF %LAUNCHERSTATE% == WAITING (
        SET LAUNCHERSTATE=STOPSTEAM
        SET GAMESTATE=STOPPED
                
        goto :STOP
    )    
)
IF %var% == RUNNING (
    IF %LAUNCHERSTATE% == STARTINGGAME (
        SET LAUNCHERSTATE=WAITING
        SET GAMESTATE=STARTED
        
        if %PAUSE%==TRUE (
            echo pausing %process_3%
            pssuspend %process_3%
        )
        
        
        goto :CHECKGAME
    )
    IF %LAUNCHERSTATE% == WAITING (
        goto :1
    )
)


exit /B

:LAUNCH
echo --

echo call launcher
echo -----------------------------------------------------------------
set iteration=0
set interval=1
set limit=60

echo launcher status: %LAUNCHERSTATE%
echo steam status: %STEAMSTATE%
echo game status: %GAMESTATE%

start "GAME" "steam://rungameid/"%1

echo waiting...
set /a iteration=iteration+1
timeout %interval% > null

IF %STEAMSTATE%==ALREADYRUNNING (
    goto :CHECKGAME
)
IF %STEAMSTATE%==STOPPED (
    goto :CHECKSTEAM
)
exit /B

:STOP
echo --

echo stopping launcher
echo -----------------------------------------------------------------
set iteration=0
set interval=1
set limit=60

echo launcher status: %LAUNCHERSTATE%
echo steam status: %STEAMSTATE%
echo game status: %GAMESTATE%

if %PAUSE%==TRUE (
    echo unpausing %process_3%
    pssuspend -r %process_3%
)    

IF %STEAMSTATE%==ALREADYRUNNING (
    set STEAMSTATE=WONTSTOP
    goto :EXIT
)
IF %STEAMSTATE%==STARTED (
    
    IF %BPM%==FALSE    (
        start C:\Games\steam\steam.exe -shutdown
        echo waiting...
        set /a iteration=iteration+1
        timeout %interval% > null
    )
        

    
    goto :CHECKSTEAM
)


echo waiting...

:EXIT
echo --

echo cleanup
echo -----------------------------------------------------------------
set iteration=0
set interval=1
set limit=60

echo launcher status: %LAUNCHERSTATE%
echo steam status: %STEAMSTATE%
echo game status: %GAMESTATE%
echo done..
timeout %limit%
exit /B

:FAILURE
echo FAILURE %LAUNCHERSTATE%
exit /B

To use it you must have PsTools installed and on your path. I usually extract those to C:\WINDOWS to make it easy.

Also to use BIG PICTURE MODE tweak you must be able to import settings to registry (so no UAC) or you could schedule an import process to run every hour or so. If you have UAC disabled you can save the text below as C:\WINDOWS\BPM.REG and uncomment the REGEDIT line at this section:

Code:
REM setup steam to start in bpm if required
IF %BPM%==TRUE (
    REM start "REGEX" regedit /s c:\windows\bpm.reg
    set process_1=steam.exe
)

If you're going to use task scheduler for this purpose you should run regedit /s registryfile.reg
The registry changes that must be made are the following:

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\steam\Shell\Open\Command]
@="\"C:\\Games\\Steam\\steam.exe\" \"-bigpicture\" \"%1\""



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - IceCorp - 2013-09-19

Hi guys,

I'm really happy with XBMC and AL plugin, but I have some questions to make my interface works fine.

XBMC Version: 12.2
Skin: Aeon MQ4
AL Version: 2.0.12
View: Show Case
Style: Plot Style

As you can see below in Red, there are 2 space for a multimidia file (picture or video Huh), but I cannot find how.
Image

On xbmc.log, there are some line that shows some wrong configuration or something:

Code:
11:20:13 T:2412  NOTICE: Thread Jobworker start, auto delete: true
11:20:13 T:5084 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(plugin) in plugin://plugin.program.advanced.launcher/extrathumbs/thumb1.jpg
11:20:13 T:3892 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(plugin) in plugin://plugin.program.advanced.launcher/extrathumbs/thumb2.jpg
11:20:13 T:4852  NOTICE: Thread Jobworker start, auto delete: true </code>

I already tried put JPG file with same rom's name on:
<root rom>\Fanart
<root rom>\Fanart Extra
<root rom>\Fanarts
<root rom>\Thumbnails

And a MP4 file on:
<root rom>\Trailer

Is there another configuration to do or AL cannot show an image/video in this view ?

Thanks a lot

IceCorp