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 - REralte - 2013-08-04

Thank Angelscry so much you were right the script was wrong the one you give works great, now i can open PCSX2 without paused, the only problem now is when a press ESC it close PCSX2 but dont open back XBMC.

The location from XBMC is: C:\Program Files\XBMC

Thanx you one more time Smile


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Sajk - 2013-08-04

(2013-08-02, 17:20)Angelscry Wrote:
(2013-08-02, 09:39)Sajk Wrote: I've been reading through the thread and playing around with the settings in XBMC but can't seem to get my problem solved. I watch my TV with SimpleTV and I've set it up to start with advanced launcher from XBMC and everything is working fine, but when I quit SimpleTV my XBMC doesn't go into fullscreen again.

I've set the launcher NOT to toggle XBMC into Windowed mode when I start SimpleTV but then it just minimizes XBMC and I have to klick on XBMC to get into fullscreen again. If I set the launcher to toggle into Windowed mode it does just that but doesn't set me back to fullscreen mode at exit so I have to go into settings and change to Fullscreen mode again, which is a pain in the A..

I've tinkered with every possible setting in there but just can't seem to get to work.
Are you Using the "fullscreen window" or the "true fullscreen" option into XBMC system settings? Normally if you use the "fullscreen window" option into XBMC and the "toogle XBMC into Window" option into the Advanced Launcher settings. Trye to play with this 2 options to obtain the perfect transition for your application.

The problem is that this bug is not linked to XBMC. XBMC is simply not able the return into fullscreen mode correctly. XBMC statut into Windows is as fullscreen, but the reel display is minimized. I have reported this bug 2 years ago to XBMC devellopers, but it seems that they are more interested to add new features than fix bugs.

You will found also here some trick to force XBMC to regain focus : http://www.gwenael.org/forum/viewtopic.php?id=199

Worked like a charmSmile

Thanks angelscry


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - styx06 - 2013-08-04

(2013-07-30, 04:27)Angelscry Wrote: Ok... so your problem come from your XBMC/System configuration. Normally this XBMC 12.x problem has been fixed by version 12.2 of XBMC. Are you using this version? If so, check that your XBMC audio output is set to analogic (even is you are using a digital one).

Also... are you using PulseAudio on your linux system?

If so you can take a look here : http://forum.xbmc.org/showthread.php?tid=85724&pid=1322276#pid1322276
If not, you can then take a look here : http://forum.xbmc.org/showthread.php?tid=85724&pid=1376322&highlight=asoundrc#pid1376322

Tried your suggestions, but no effect. I am not using PulseAudio (and not intend to) and I'm on 12.2.
As said, audio works by itself perfectly, but I cannot control it via the Alsamixer (volume up, down, mute etc). I have configured my asound.conf with the DMIX plugin to share the audio source. Should I look into that direction?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-08-05

(2013-08-04, 23:12)styx06 Wrote:
(2013-07-30, 04:27)Angelscry Wrote: Ok... so your problem come from your XBMC/System configuration. Normally this XBMC 12.x problem has been fixed by version 12.2 of XBMC. Are you using this version? If so, check that your XBMC audio output is set to analogic (even is you are using a digital one).

Also... are you using PulseAudio on your linux system?

If so you can take a look here : http://forum.xbmc.org/showthread.php?tid=85724&pid=1322276#pid1322276
If not, you can then take a look here : http://forum.xbmc.org/showthread.php?tid=85724&pid=1376322&highlight=asoundrc#pid1376322

Tried your suggestions, but no effect. I am not using PulseAudio (and not intend to) and I'm on 12.2.
As said, audio works by itself perfectly, but I cannot control it via the Alsamixer (volume up, down, mute etc). I have configured my asound.conf with the DMIX plugin to share the audio source. Should I look into that direction?
Unfortunately I cannot help you more. It is now out of my skills.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - REralte - 2013-08-05

Angelscry my location from XBMC is: C:\Program Files\XBMC


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-08-05

(2013-08-05, 16:46)REralte Wrote: Angelscry my location from XBMC is: C:\Program Files\XBMC
So.... you script must be...

Code:
#include <Misc.au3>

HotKeySet("{ESC}", "Terminate")

If $CmdLine[0] == 1 Then
    _MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight)
    ProcessClose ( "XBMC.exe" )
    Run ( '"C:\Program Files\PCSX2 0.9.7\pcsx2-r3878.exe" --nogui "' & $CmdLine[1] & '"', "C:\Program Files\PCSX2 0.9.7\" )
    While 1
        Sleep(100)
    WEnd
EndIf

Func Terminate()
    ProcessClose ( "pcsx2-r3878.exe" )
    Run ( '"C:\Program Files\XBMC\XBMC.exe"' )
    Exit 0
EndFunc



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - REralte - 2013-08-05

Thank you so much Angelscry everything is working fine now. you are the man Smile, now my xbmc is almost ready .


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - lordzerg - 2013-08-10

Hello , i have problems with install . im using LInux ubuntu and i searched the launcher in addons but i found its marked broken and then i found this forum and i got the addon from GIT and then i copy it to /home/USER/.xbmc/userdata/addons/ but its still missing .
Im not sure this is the right dir. to put it in. can you help me pls?

EDIT
ah now i found this is dir. is for settings of addons, not the addons dir.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-08-10

(2013-08-10, 16:29)lordzerg Wrote: Hello , i have problems with install . im using LInux ubuntu and i searched the launcher in addons but i found its marked broken and then i found this forum and i got the addon from GIT and then i copy it to /home/USER/.xbmc/userdata/addons/ but its still missing .
Im not sure this is the right dir. to put it in. can you help me pls?

EDIT
ah now i found this is dir. is for settings of addons, not the addons dir.
You just have to download and install my repository addon Angelscry's Repository. Then you will have access from XBMC to the last version of Advanced Launcher and will be automatically updated in the future. All is indicated into Advanced Launcher's user manual. All the information is into the first post of this thread.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Sgt.Stedenko - 2013-08-12

Hi Angelscry,

I have a program that scrapes metadata from Mobygames.com. Is it possible for you to add gamefaqs.com to it? I use windows 7. I dont know with what or how it is made.

Thank you


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - fr500 - 2013-08-12

I remade my steam script, it allows ALA to launch steam games.

- it will track if steam is open and if it was it will not close it after closing the game
- it will let you pause xbmc once the game starts
- it will resume xbmc when the game is done

I'm looking for a way to print a toaster popup on XBMC itself when an error occurs but this is not implemented yet. I will also add a parameter to force shutdown steam even if it was open before starting the script

You can call it like this:

Code:
launcher_steam 20800 TRUE
Will launch steam game with id 20800 and will pause XBMC

Code:
launcher_steam 20800 FALSE
Will launch steam game with id 20800 and will not pause XBMC

Code:
launcher_steam 20800
Will launch steam game with id 20800 and will not pause XBMC

You need sysinternals suite in your path, to makes things easy you can extract them in c:\windows

Code:
@echo off

REM usage:
REM call launcher_steam with an argument that is the steamid of the game
REM ex: launcher_steam 40800
REM script will track for gameoverlayui.exe


REM global variables
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 it will pause process_3 while process_1 is running
IF "%2"=="" (
    set PAUSE=FALSE
) ELSE (
    IF "%2"=="TRUE" (
        set PAUSE=TRUE
    ) ELSE (
        set PAUSE=FALSE
    )
)

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

echo pause %process_3%: %PAUSE%
echo --
echo --

: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 (
    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..
exit /B

:FAILURE
echo FAILURE %LAUNCHERSTATE%
exit /B



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-08-12

(2013-08-12, 05:58)Sgt.Stedenko Wrote: Hi Angelscry,

I have a program that scrapes metadata from Mobygames.com. Is it possible for you to add gamefaqs.com to it? I use windows 7. I dont know with what or how it is made.

Thank you
Which program? What the interest for me or or the Advanced Launcher users? You will pay me for this job? Wink

(2013-08-12, 08:23)fr500 Wrote: I remade my steam script, it allows ALA to launch steam games.

- it will track if steam is open and if it was it will not close it after closing the game
- it will let you pause xbmc once the game starts
- it will resume xbmc when the game is done

I'm looking for a way to print a toaster popup on XBMC itself when an error occurs but this is not implemented yet. I will also add a parameter to force shutdown steam even if it was open before starting the script
Thank you for the update. Rofl


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Sgt.Stedenko - 2013-08-12

Thank you
[/quote]Which program? What the interest for me or or the Advanced Launcher users? You will pay me for this job? Wink

combien tu veux mon cher ami? Big Grin


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Camelen - 2013-08-12

Hi.

I have this problem with Advanced Launcher when I try to add a Game Emulator-type of launcher which scans files, it crashes (error addon.py).
Not only does it crash but it also corrupts launchers.xml. It deletes like half of it. I've tried several different versions of Advanced Launcher and now I have 2.0.10 with XBMC 12.1.

I have no idea what to do anymore. If i rebuild launchers.xml manually and I don't touch any settings it works fine. If I add another ROM to it there's like a 20% chance of advanced launcher crashing and corrupting my entire launchers.xml.

Here's the pastebin of xbmc.log
http://pastebin.com/WseZTd3f


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2013-08-12

(2013-08-12, 18:05)Camelen Wrote: Hi.

I have this problem with Advanced Launcher when I try to add a Game Emulator-type of launcher which scans files, it crashes (error addon.py).
Not only does it crash but it also corrupts launchers.xml. It deletes like half of it. I've tried several different versions of Advanced Launcher and now I have 2.0.10 with XBMC 12.1.

I have no idea what to do anymore. If i rebuild launchers.xml manually and I don't touch any settings it works fine. If I add another ROM to it there's like a 20% chance of advanced launcher crashing and corrupting my entire launchers.xml.

Here's the pastebin of xbmc.log
http://pastebin.com/WseZTd3f
This bug occurs since XBMC Frodo RC and I've not found the exact cause and how to fix it. Use the backup feature of Advanced Launcher to restore your launchers list when it has been deleted : http://forum.xbmc.org/showthread.php?tid=85724&pid=1432031#pid1432031

(2013-08-12, 16:01)Sgt.Stedenko Wrote: Which program? What the interest for me or or the Advanced Launcher users? You will pay me for this job? Wink

combien tu veux mon cher ami? Big Grin
Please for questions that have nothing to do with Advanced Launcher or XBMC use PM.