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 - Xepo - 2013-06-08

Ah, alright, so it could have happened with 2.0.9 as well. Thanks for the clarification.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - tential - 2013-06-08

(2013-06-08, 14:23)Angelscry Wrote:
(2013-06-08, 12:48)Xepo Wrote: Since the 2.0.10 update, advanced launcher has deleted all my entries... I was about 50% done with re-adding my stuff and it deleted it again.. it just reverts back to as if I just installed it (aka only empty Default folder).
http://forum.xbmc.org/showthread.php?tid=85724&pid=1432031#pid1432031

(2013-06-08, 06:19)tential Wrote: Ok I think I was using GameFAQs. 10 hours from now, when XBMC is done running that Batch Download Artwork thing then I guess I'll do that haha. I had no clue what it was when I clicked it. Oh well.
Still not even too clear what the difference is between using this vs what XBMC normally does haha. Guess I'll figure out soon.
And so , because you didn't know what you are doing, your are decided to do it on all your game collection instead of on just few games. Wink

Haha it was a misclick and boom it started. It completed pretty quickly actually. It went for my whole Movie/TV collection actually though. I'd only added 2 games. I only have 2 games on my laptop =D. This is all a test right now.

My Desktop is going to be here soon so then I'll set it all up the way I want. Advanced Launcher just makes XBMC that much better. Now I can just leave the XBMC interface up on my new Desktop all the time and people can get to whatever they need. I don't want anyone webbrowsing on it (somehow people always seem to visit places and get viruses), so Games, TV, Movies, Streams!

Thanks a lot for this Add On and the support you provide!


RE: - codeseven - 2013-06-09

(2011-02-02, 05:16)Angelscry Wrote:
Binary77 Wrote:I hope someone can help me, or at least share with me how they've managed to get PCSX2 working within Advanced Launcher. Apologies if anyone feels like i'm asking a question that I could figure out myself, but i've searched for a solution quite a bit and genuinely need a bit of help with this.
Ok... I have played this evening with the last version of PCSX2 (0.9.7), XBMC and advanced launcher to try to make them work together. This is what I have obtained and concluded using all of them on my Windows 7 system:
  • We need to use the last version 0.9.7 of PCSX2 if we want a good support of the command line. No lower version !!!
  • PCSX2 is not able to hide the mouse cursor when started into fullscreen.
  • The working directory need to be the directory where is located the PCSX2 executable file if we want it to found configuration files, ini files, bios files, etc...
  • When exiting PCSX2 using the ESC key the PCSX2 process still active!!!! That's could explain why after exiting PCSX2, XBMC still minimized and sometime freezes.
So, my conclusion is that we cannot use XBMC/Advanced launcher to start directly PCSX2. We need to use and intermediate script to try to solve all of these problems.
I have wrote this following small script using Autoit :
Code:
#include <Misc.au3>

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

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

Func Terminate()
    ProcessClose ( "pcsx2-r3878.exe" )
    Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe"' )
    Exit 0
EndFunc
Then I have compiled it into an executable file using Autoit, named the executable file as pcsx2-launcher.exe and saved it into the directory of PCSX2.
Here is the part of my launchers.xml XML file corresponding to the PCSX2/Playstation 2 :
Code:
<launcher>
                <name>Playstation 2 (pcsx2)</name>
                <application>C:\Program Files (x86)\PCSX2 0.9.7\pcsx2-launcher.exe</application>
                <args>"%rom%"</args>
                <rompath>E:\playstation2\roms\</rompath>
                <thumbpath>E:\playstation2\covers\</thumbpath>
                <fanartpath>E:\playstation2\fanarts\</fanartpath>
                <extrafanartpath>E:\playstation2\fanarts\</extrafanartpath>
                <romext>iso</romext>
                <platform>Playstation 2</platform>
                <thumb></thumb>
                <fanart></fanart>
                <genre></genre>
                <release></release>
                <publisher></publisher>
                <launcherplot></launcherplot>
                <wait>true</wait>
                <minimize>true</minimize>
                <lnk>true</lnk>
                <roms>
                        <rom>
                                <name>Suikoden III</name>
                                <filename>E:\playstation2\roms\suikoden III.iso</filename>
                                <platform>Playstation 2</platform>
                                <thumb>E:\playstation2\covers\suikoden III.JPG</thumb>
                                <fanart>E:\playstation2\fanarts\suikoden III.jpg</fanart>
                                <extrafanart>E:\playstation2\fanarts\</extrafanart>
                                <genre>Role-Playing</genre>
                                <release>2002</release>
                                <publisher>Konami Computer Entertainment Tokyo (KCET)</publisher>
                                <gameplot>The Suikoden series debuted in the early days of the original PlayStation. Six years after the first game and three years since the second‚ Konami brings the series back with Suikoden III for th$
                        </rom>
                </roms>
        </launcher>
And it's working... Nod

Hey Angelscry. First of all I just wanted to say thank you for such a great application. It really works wonders! As far as my problem goes, I'm trying to get PCSX2 working correctly via the method you described above. I was having the same issue where when I launch PCSX2 it worked fine, but closing the application was the problem. So I went ahead and created the script you have above, compiled it to EXE, and all the other necessary steps. However when I go to launch a game, what it actually does now is it launches like it should but then the "focus" of my Windows goes to "Show Desktop" as if I have my mouse hovering over the "Show Desktop".

I noticed that post is a bit dated, so is this still the correct method of doing things? Or is there a new way since these applications have seen updates?

I'm running 32bit Windows 7, PCSX2 version pcsx2_1.0.0_r5350, XBMC version 12.1 Frodo, and Advanced Launcher 2.0.10. Here is a snippet of my script:

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\pcsx2-r3878.exe" --nogui "' & $CmdLine[1] & '"', "C:\Program Files\PCSX2\" )
    While 1
       Sleep(100)
    WEnd
EndIf

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

Thanks so much!


RE: - Angelscry - 2013-06-09

You need to update the script according to the version of PCSX2 your are using :

(2013-06-09, 11:32)codeseven Wrote: I'm running 32bit Windows 7, PCSX2 version pcsx2_1.0.0_r5350, XBMC version 12.1 Frodo, and Advanced Launcher 2.0.10.

So the script may be something like this :

Quote:#include <Misc.au3>

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

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

Func Terminate()
ProcessClose ( "pcsx2_1.0.0_r5350.exe" )
Run ( '"C:\Program Files\XBMC\XBMC.exe"' )
Exit 0
EndFunc

But because I don't know how (executable filename) and where (folder path) is installed PSCX2 on you system it could not be the exact script : http://www.gwenael.org/forum/viewtopic.php?id=43


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - codeseven - 2013-06-09

Thanks for the quick response. And yes, that was my bad actually, lol. My actual script is on another PC so I wrote that one up quicker than I should have apparently, hah. I have indeed already changed the filenames accordingly. I went and grabbed the original script from my other PC so you know exactly what I'm working with.

Code:
#include <Misc.au3>

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

If $CmdLine[0] == 1 Then
    _MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight)
    ProcessClose ( "XBMC.exe" )
    Run    ( '"C:\Users\SATELLITE\Documents\GAMES\EMUs\pcsx2_1.0.0_r5350\pcsx2-r5350.exe" --nogui "' & $CmdLine[1] & '"', "C:\Users\SATELLITE\Documents\GAMES\EMUs\pcsx2_1.0.0_r5350\" )
    While 1
       Sleep(100)
    WEnd
EndIf

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

These are the paths to my various applications:
pcsx2: C:\Users\SATELLITE\Documents\GAMES\EMUs\pcsx2_1.0.0_r5350\pcsx2-r5350.exe
XBMC: C:\Program Files\XBMC\XBMC.exe
pcsx2-launcher.exe: C:\Users\SATELLITE\Documents\GAMES\EMUs\pcsx2_1.0.0_r5350\pcsx2-launcher.exe

Also the only argument I have in the actual Advanced Launcher itself is "%rom%"

It still launches the game fine (although it still includes the GUI, not sure if that's a problem) and closes down XBMC, then when I exit the game (ESC) it loads XBMC up again just fine. The only thing it seems to be doing is putting the "focus" of my windows on "Show Desktop" (the little button in the bottom right of the taskbar).


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

(2013-06-09, 14:20)codeseven Wrote: Thanks for the quick response. And yes, that was my bad actually, lol. My actual script is on another PC so I wrote that one up quicker than I should have apparently, hah. I have indeed already changed the filenames accordingly. I went and grabbed the original script from my other PC so you know exactly what I'm working with.

Code:
#include <Misc.au3>

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

If $CmdLine[0] == 1 Then
    _MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight)
    ProcessClose ( "XBMC.exe" )
    Run    ( '"C:\Users\SATELLITE\Documents\GAMES\EMUs\pcsx2_1.0.0_r5350\pcsx2-r5350.exe" --nogui "' & $CmdLine[1] & '"', "C:\Users\SATELLITE\Documents\GAMES\EMUs\pcsx2_1.0.0_r5350\" )
    While 1
       Sleep(100)
    WEnd
EndIf

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

These are the paths to my various applications:
pcsx2: C:\Users\SATELLITE\Documents\GAMES\EMUs\pcsx2_1.0.0_r5350\pcsx2-r5350.exe
XBMC: C:\Program Files\XBMC\XBMC.exe
pcsx2-launcher.exe: C:\Users\SATELLITE\Documents\GAMES\EMUs\pcsx2_1.0.0_r5350\pcsx2-launcher.exe

Also the only argument I have in the actual Advanced Launcher itself is "%rom%"

It still launches the game fine (although it still includes the GUI, not sure if that's a problem) and closes down XBMC, then when I exit the game (ESC) it loads XBMC up again just fine. The only thing it seems to be doing is putting the "focus" of my windows on "Show Desktop" (the little button in the bottom right of the taskbar).
Ok so... try to put XBMC Video settings to "True Fullscreen" and Advanced Launcher "Toggle XBMC into Windowed Mode" option to OFF.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - codeseven - 2013-06-09

(2013-06-09, 14:35)Angelscry Wrote: Ok so... try to put XBMC Video settings to "True Fullscreen" and Advanced Launcher "Toggle XBMC into Windowed Mode" option to OFF.

Bleh that didn't seem to work either. It does the same thing where it focuses on Show Desktop. I guess I will try running this on another machine and see if I have any luck.


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

(2013-06-09, 14:47)codeseven Wrote:
(2013-06-09, 14:35)Angelscry Wrote: Ok so... try to put XBMC Video settings to "True Fullscreen" and Advanced Launcher "Toggle XBMC into Windowed Mode" option to OFF.

Bleh that didn't seem to work either. It does the same thing where it focuses on Show Desktop. I guess I will try running this on another machine and see if I have any luck.
Hummm... what happen if you remove the

Code:
...
_MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight)
...

line from the script. Does it change something?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - codeseven - 2013-06-09

(2013-06-09, 14:54)Angelscry Wrote: Hummm... what happen if you remove the

Code:
...
_MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight)
...

line from the script. Does it change something?

I love you Love


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - tential - 2013-06-10

Does anyone else find that XBMC running in the background effects their gaming? I been using Advanced Launcher but it seems that the CPU usage of XBMC is still around 25%. This is a problem for my laptop, not sure about my desktop yet, I'll find out when the parts come in. I think there is a way to Suspend XBMC though while you're gaming so it uses 0% CPU but not sure if it still works with latest releases of Advanced Launcher and XBMC.
Edit: Tried some keywords into google and just found that in general XBMC can have high cpu usage for a variety of reasons and that it's being worked on in Gotham. Optimization work is never over! =D. I guess I'll have to do what other people do and try to get it to close XBMC then open it back up when done.


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

(2013-06-10, 06:22)tential Wrote: Does anyone else find that XBMC running in the background effects their gaming? I been using Advanced Launcher but it seems that the CPU usage of XBMC is still around 25%. This is a problem for my laptop, not sure about my desktop yet, I'll find out when the parts come in. I think there is a way to Suspend XBMC though while you're gaming so it uses 0% CPU but not sure if it still works with latest releases of Advanced Launcher and XBMC.
Edit: Tried some keywords into google and just found that in general XBMC can have high cpu usage for a variety of reasons and that it's being worked on in Gotham. Optimization work is never over! =D. I guess I'll have to do what other people do and try to get it to close XBMC then open it back up when done.
Any running application use CPU resources even if it is minimized or do not have the focus. To avoid this your have two solutions :
  • Suspend XBMC > Start your application > Close your application > Restore XBMC : scripts for Windows and Linux
  • Close XBMC > Start your application > Close your application > Restart XBMC : scripts for Windows and Linux
In most of the case, the "suspend" method is enough. It reduce the XBMC CPU usage to its minimum. The advantage versus the "close", is that you did not have to restart XBMC, just restore it (so it is faster). In some case, where your started application and XBMC use the same graphical/audio/system resources and generate compatibility errors, you do not have the choice than use the "close" method.

These methods use system scripts to affect operating system processes (suspend, restore, close and start), so they are not linked to a specific XBMC or Advanced Launcher version, and so are fully compatibles with XBMC and Advanced Launcher.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - dugan26 - 2013-06-12

Hi,

sorry for asking this again - but cant find my original post - I need to wipe my system clean how do i save the configs for Advance Launcher - ? and move them over properly ?


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

(2013-06-12, 17:09)dugan26 Wrote: Hi,

sorry for asking this again - but cant find my original post - I need to wipe my system clean how do i save the configs for Advance Launcher - ? and move them over properly ?
Are you going to use the same operating system? Same applications (emulators) and use the same paths?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - dugan26 - 2013-06-12

Yes same everything


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

(2013-06-12, 17:39)dugan26 Wrote: Yes same everything
Ok, so you will just have to make a backup of your launchers.xml file and of course all your scraped images (thumbs and fanart). Then when you will resinstall your system and Advanced Launcher just replace the launchers.xml file by the one of your backup. The launchers.xml file contain all the information :
  • categories descriptions
  • categories images paths
  • path to the applications (emulators) + arguments
  • launchers descriptions
  • launchers images paths
  • items descriptions
  • items images paths

So if the paths are the same... there will be not problem to recover anything.