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


- Angelscry - 2011-01-31

Materian Wrote:Keep getting an error while trying to attach an emulator. Error occurs after all launcher settings have been entered (paths, etc.). Any clues?
Thank you for your feedback. Yes I found the error.... a stupid character missing. It has been fixed by the version 1.0.4. Sorry for the generated errors on your launchers.xml file. Sad


- Materian - 2011-01-31

Thanks so much, working perfecly now upon update =)


- Geurge - 2011-02-01

I've added 2 emulators to this (Zsnes and Gens) both install fine, I edit all the paths, but I can't see the roms of either one. For the Snes I have some as Zip, some as smc, srm, and zst, but it doesn't see any of them. They worked for the old launcher add-on, and the paths are definitely correct, so I'm not sure why it can't see any roms.

EDIT: oops, didn't see the add items under the context menu.


- Spaggi - 2011-02-01

hey folks,

I am very sorry if this has been asked here before. This thread is now over 130 Pages long and those of us with little free time cannot read them throughfully. Rolleyes

I wrote myself a little Windows script to restart Eventghost. I have to do this if I plug in a new USB controller.

The script is a simple bat File. I run it using a .ink-Shortcut:

Code:
tskill eventghost
"C:\Program Files\Eventghost\Eventghost.exe"

The script itself just works fine, unforunately, XBMC does not Maximize after running the script. Instead, I still see the "Command Window". If I close the window, XBMC will not maximize again.

Is there anything I can do to resolve this? Thanks in advance folks. This addon is pure greatness!!


- Binary77 - 2011-02-01

nekoarashi Wrote:I got nearly everything set up, just- has anyone had any luck running pcsx2 through this mod? How to get it to add ps2 iso and mdf- I can't quite figure that out. thank you.

Hey man, have you had any luck with this now?

I'm desperately trying to get PCSX2 to work with Advanced Launcher, but to no avail. I have tried several different arguments withing XBMC, including the original suggested '%rom%' argument and the ones included in the help file for PCSX2 (--nogui, --usecd etc), but none seem to get PCSX2 to load up an .ISO for me. If I select one of my games, then it just takes me through to the GUI but I have to manually load up the .ISO & then boot the game myself, but even then it comes up saying that the 'CDVD plugin cannot be found'. I know that CLI loading is now working PCSX2, but I can't seem to find the right arguments to get it to work from Advanced Launcher.

I've Googled all over the place & searched through this thread a few times & spotted something about altering the launcher.xml & something about changing some of the parameters in the .ini files withing PCSX2, but i'm confused as to which I need to do & which actually works. I don't want to mess around with my files unless i'm sure it's definitely going to work.

I am using the latest versions of XBMC, Advanced Launcher & PCSX2.

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.

Thanks in advance Smile


- fr500 - 2011-02-01

Does it work with PCSX2 standalone (ie started from windows explorer)?

If it does make a shortcut to PCSX2, make sure the working directory is where PCSX2 is located on the shortcut and point ALA to that shortcut, then try again


- Binary77 - 2011-02-01

fr500 Wrote:Does it work with PCSX2 standalone (ie started from windows explorer)?

If it does make a shortcut to PCSX2, make sure the working directory is where PCSX2 is located on the shortcut and point ALA to that shortcut, then try again

Yeah, it can run ISOs if I open up PCSX2 normally from Windows & I can even get it to auto run the game if I create a shortcut to PCSX2 & use quote marks & add the ISOs directory into the 'target' field in the shortcut's properties, but I just can't get it to work within Advanced Launcher.

I shall try, as you said, and create a shortcut to PCSX2 & then try to add that as the desired File Launcher instead of the main executable itself - if that's what you mean?

I can't see how that'd make a difference, but i'll try it in a couple of hours when I get home from work.

Cheers for the response anyway though!! Smile


- fr500 - 2011-02-01

It can make a difference as it makes sure the programs starts in the correct path so all plugins and config is available.


- Angelscry - 2011-02-02

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


- Angelscry - 2011-02-02

Here is the explained script. If you want to use it with your system you will have the change the paths before compile it.
Code:
[color=red]; We call the "Misc." integrated functions of AutoIt to call next the _MouseTrap function[/color]
#include <Misc.au3>

[color=red]; When the ESC key will be pressed we will start the "Terminate" Function.[/color]
HotKeySet("{ESC}", "Terminate")

[color=red]; If we have 1 argument into this script command line then...[/color]
If $CmdLine[0] == 1 Then
    [color=red]; We move the mouse cursor on the bottom right screen corner to hide it.[/color]
    _MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight)
    [color=red]; We close XBMC[/color]
    ProcessClose ( "XBMC.exe" )
    [color=red]; We Run pcsx2 with no GUI and the rompath as arguments. We indicate that the pcsx2 directory will be the working directory.[/color]
    Run ( '"C:\Program Files (x86)\PCSX2 0.9.7\pcsx2-r3878.exe" --nogui "' & $CmdLine[1] & '"', "C:\Program Files (x86)\PCSX2 0.9.7\" )
    [color=red]; We start an infinite loop waiting something happen ("ESC" key pressed).[/color]
    While 1
        Sleep(100)
    WEnd
EndIf

[color=red]; Here is the "Terminate" function[/color]
Func Terminate()
    [color=red]; We close the PCSX2 process[/color]
    ProcessClose ( "pcsx2-r3878.exe" )
    [color=red]; We start XBMC[/color]
    Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe"' )
    [color=red]; We close this script[/color]
    Exit 0
EndFunc



- Binary77 - 2011-02-02

Woah, nice work Angelscry!! Thanks for that.

I'd tried fr500's suggestion of using a shortcut, which has the working directory the same as the emulator's, but unfortunately I can't seem to add a shortcut as a File Launcher in Advanced Launcher. Is it even possible to use an .lnk file as a File Launcher?

I've not had chance to try out your script yet, but i will give it a try later when i'm back from work.

Just something i spotted though - in the latest version of PCSX2, there is an option in the 'speedhacks' section that kills PCSX2 when you press the escape key, so that part of your AutoIT script may be unecessary. I suspect the reason why PCSX2 is still running when you were testing it is is because you may have been using the --nogui argument & so when you pressed 'escape' it took you out of the game, but didn't provide you with the GUI to close the emulator down with (although it was still running in the background). So therefore XBMC wouldn't pop back up again.

The main problem for me was just the fact that XBMC cannot seem to pass on the argument commands to auto run an .ISO within PCSX2, which it seems is related to XBMC not opening PCSX2 within it's working directory, as both you & fr500 have mentioned. But if this script fixes this problem, then i'd be delighted with that.

Cheers again for your help Smile


- Angelscry - 2011-02-02

Binary77 Wrote:Is it even possible to use an .lnk file as a File Launcher?
Yes it is possible, but you will have to modify the .lnk file to indicate the PCSX2 arguments (no GUI, rompath) inside it (for each .lnk file). You could also indicate here the working directory. But, if you have a lot of PS2 games, it will not be a useful option.

Binary77 Wrote:Just something i spotted though - in the latest version of PCSX2, there is an option in the 'speedhacks' section that kills PCSX2 when you press the escape key, so that part of your AutoIT script may be unecessary. I suspect the reason why PCSX2 is still running when you were testing it is is because you may have been using the --nogui argument & so when you pressed 'escape' it took you out of the game, but didn't provide you with the GUI to close the emulator down with (although it was still running in the background). So therefore XBMC wouldn't pop back up again.
Ho... thank you. I did not thought to look into the 'speedhacks' section. I thought that it was natural to close entirely PCSX2 when you started with no GUI when you stop it. The PCSX2 process still running, but you did not have any way to control it. I did not thought that there is an "hack" option to close it properly. Wink


- Binary77 - 2011-02-02

Angelscry Wrote:Yes it is possible, but you will have to modify the .lnk file to indicate the PCSX2 arguments (no GUI, rompath) inside it (for each .lnk file). You could also indicate here the working directory. But, if you have a lot of PS2 games, it will not be a useful option.

Ho... thank you. I did not thought to look into the 'speedhacks' section. I thought that it was natural to close entirely PCSX2 when you started with no GUI when you stop it. The PCSX2 process still running, but you did not have any way to control it. I did not thought that there is an "hack" option to close it properly. Wink

No probs mate!

How exactly (just for future knowledge) do you add an .lnk file as a File Launcher though? I made a shortcut to PCSX2 with the appropriate arguments inside it, but when I go to select the desired file launching program within Advanced Launcher, the shortcut is not visible in the file list. Is this something that I will need to do manually within the launcher.xml file?

Apologies if i've made some silly mistake & missed something obvious out.

Thanks Smile


- Angelscry - 2011-02-02

Binary77 Wrote:How exactly (just for future knowledge) do you add an .lnk file as a File Launcher though? I made a shortcut to PCSX2 with the appropriate arguments inside it, but when I go to select the desired file launching program within Advanced Launcher, the shortcut is not visible in the file list. Is this something that I will need to do manually within the launcher.xml file?
You just need to indicate the .lnk extension file for rom extensions when you create the File launcher Wink
Code:
<romext>iso</romext>



- Binary77 - 2011-02-02

Angelscry Wrote:You just need to indicate the .lnk extension file for rom extensions when you create the File launcher Wink
Code:
<romext>iso</romext>

Ah okay, i'll try that then. I thought that the rom extension field was just to set the format that the individual game rom files were supposed to be & told Advanced Launcher what kind of files to look for. I didn't realise that this field also affected what format the emulator 'file launcher' program could be.

Will this stop me from being able to select my .iso PS2 games from my list of roms though? As i do not wish for my PCSX2 games to be in .lnk format - i still want them to be .iso files & for Advanced Launcher to recognise them as such.