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: - n1md4 - 2013-05-13

(2011-10-12, 22:43)Angelscry Wrote: ScummVM use game short names for it command line (http://www.scummvm.org/compatibility/). You need to put all your games into the same folder and then indicate this folder path into ScummVM setup. On the other part, Advanced Launcher is only able to use filenames or game titles as command line arguments. So, to make Advanced Launcher works with ScummVM, you need to create some kind of "fake" files with game short names filenames. These "fake" files must have the same extension (like 1c) to be recognized by Advanced Launcher when you will perform a scan (http://www.gwenael.org/xbmc/index.php?title=ScummVM)

I'm looking at getting this to work today, and despite reading all the relevant posts in this thread and wiki page, I can not get this right.

I have launched ScummVM from a terminal and the games launch fine. From there I also added my game collection. So to take one known working game as an example, here is what I've tried to do to get Full Throttle working:
  • * $ touch ~/games/scum/rom/ft/ft.1c
    * Add item using ALA
    * Attempts to scrape the fake file "ft" doesn't bring up the correct game title (obviously)
    * Attempts to launch the game, bring up a blank screen.

I think this is an ALA issue, as I know this does work; as mentioned above.


RE: - Angelscry - 2013-05-13

(2013-05-13, 00:05)n1md4 Wrote:
(2011-10-12, 22:43)Angelscry Wrote: ScummVM use game short names for it command line (http://www.scummvm.org/compatibility/). You need to put all your games into the same folder and then indicate this folder path into ScummVM setup. On the other part, Advanced Launcher is only able to use filenames or game titles as command line arguments. So, to make Advanced Launcher works with ScummVM, you need to create some kind of "fake" files with game short names filenames. These "fake" files must have the same extension (like 1c) to be recognized by Advanced Launcher when you will perform a scan (http://www.gwenael.org/xbmc/index.php?title=ScummVM)

I'm looking at getting this to work today, and despite reading all the relevant posts in this thread and wiki page, I can not get this right.

I have launched ScummVM from a terminal and the games launch fine. From there I also added my game collection. So to take one known working game as an example, here is what I've tried to do to get Full Throttle working:
  • * $ touch ~/games/scum/rom/ft/ft.1c
    * Add item using ALA
    * Attempts to scrape the fake file "ft" doesn't bring up the correct game title (obviously)
    * Attempts to launch the game, bring up a blank screen.

I think this is an ALA issue, as I know this does work; as mentioned above.
Please post here (using pastebin service) the content of your launchers.xml file. This file contain the information concerning your launcher configuration. It will help to quickly identify your problem with your ScummVM launcher.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - teeedubb - 2013-05-13

Ive mucking around with using a batch file to close xbmc, launch a standalone pc game then restart xbmc once the game is closed in Windows. Thanks to fr500 and Johnny4D Ive got a batch file that works very well.

Two VB scripts are needed:

Sleep.vbs
Code:
On error resume next
Wscript.Sleep(wscript.arguments(0)*1000)

LaunchXBMC.vbs
Code:
WScript.Sleep(1500)
On Error Resume Next
XBMCPath="""" & wscript.arguments(0) & """"
XBMCParams=wscript.arguments(1)

Dim objShell
Set objShell = WScript.CreateObject ("WScript.shell")
objShell.run XBMCPath & " " & XBMCParams

And the batch files. Lines 3 to 9 need to be edited to suit, Lines 8 + 9 point to the VB scripts and once changed can be left as. These are the two batch files I have used and tested so far.

Dark Souls.bat
Code:
@echo off

set XBMCLaunchCmd="C:\Program Files (x86)\XBMC\XBMC.exe"
set GAMEWorkingDir="e:\games\Dark Souls"
set GAMELaunchCmd="DARKSOULS.exe"
set GAMEProcess="DARKSOULS.exe"
set XBMCPreLaunchCmd=""
set VBSSleep="%appdata%\XBMC\userdata\addon_data\script.games.rom.collection.browser\scriptfiles\Sleep.vbs"
set VBSLaunch="%appdata%\XBMC\userdata\addon_data\script.games.rom.collection.browser\scriptfiles\LaunchXBMC.vbs"
set ignore_result=INFO:

echo Stopping XBMC...
echo.

taskkill /f /IM xbmc.exe>nul 2>nul

REM Give it a second to quit
cscript //B //Nologo %VBSSleep% 1

echo Starting %GAMELaunchCmd%...
echo.

cd /d %GAMEWorkingDir%
%GAMELaunchCmd%

:1
set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %GAMEProcess%"`) do if not %%A==%ignore_result% set var=running
echo variable %var%
timeout 1
if %var% == notrunning goto :1

:2
set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %GAMEProcess%"`) do if not %%A==%ignore_result% set var=running
echo variable %var%
timeout 1
if %var% == running goto :2

%XBMCPreLaunchCmd%

REM Restart XBMC
echo Restarting XBMC...
cscript //B //Nologo %VBSLaunch% %XBMCLaunchCmd%

Syndicate.bat
Code:
@echo off

set XBMCLaunchCmd="C:\Program Files (x86)\XBMC\XBMC.exe"
set GAMEWorkingDir="e:\games\origin-games\Syndicate\System\Win32_x86_Release"
set GAMELaunchCmd="Syndicate.exe"
set GAMEProcess="Syndicate.exe"
set XBMCPreLaunchCmd="C:\Windows\System32\taskkill.exe" /F /IM Origin.exe 2>nul
set VBSSleep="%appdata%\XBMC\userdata\addon_data\script.games.rom.collection.browser\scriptfiles\Sleep.vbs"
set VBSLaunch="%appdata%\XBMC\userdata\addon_data\script.games.rom.collection.browser\scriptfiles\LaunchXBMC.vbs"
set ignore_result=INFO:

echo Stopping XBMC...
echo.

taskkill /f /IM xbmc.exe>nul 2>nul

REM Give it a second to quit
cscript //B //Nologo %VBSSleep% 1

echo Starting %GAMELaunchCmd%...
echo.

cd /d %GAMEWorkingDir%
%GAMELaunchCmd%

:1
set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %GAMEProcess%"`) do if not %%A==%ignore_result% set var=running
echo variable %var%
timeout 1
if %var% == notrunning goto :1

:2
set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %GAMEProcess%"`) do if not %%A==%ignore_result% set var=running
echo variable %var%
timeout 1
if %var% == running goto :2

%XBMCPreLaunchCmd%

REM Restart XBMC
echo Restarting XBMC...
cscript //B //Nologo %VBSLaunch% %XBMCLaunchCmd%



RE: - n1md4 - 2013-05-13

(2013-05-13, 12:35)Angelscry Wrote:
(2013-05-13, 00:05)n1md4 Wrote: I'm looking at getting this to work today, and despite reading all the relevant posts in this thread and wiki page, I can not get this right.

I have launched ScummVM from a terminal and the games launch fine. From there I also added my game collection. So to take one known working game as an example, here is what I've tried to do to get Full Throttle working:
  • * $ touch ~/games/scum/rom/ft/ft.1c
    * Add item using ALA
    * Attempts to scrape the fake file "ft" doesn't bring up the correct game title (obviously)
    * Attempts to launch the game, bring up a blank screen.

I think this is an ALA issue, as I know this does work; as mentioned above.
Please post here (using pastebin service) the content of your launchers.xml file. This file contain the information concerning your launcher configuration. It will help to quickly identify your problem with your ScummVM launcher.

Here is an extract:

launchers.xml


RE: - Angelscry - 2013-05-13

(2013-05-13, 17:18)n1md4 Wrote:
(2013-05-13, 12:35)Angelscry Wrote:
(2013-05-13, 00:05)n1md4 Wrote: I'm looking at getting this to work today, and despite reading all the relevant posts in this thread and wiki page, I can not get this right.

I have launched ScummVM from a terminal and the games launch fine. From there I also added my game collection. So to take one known working game as an example, here is what I've tried to do to get Full Throttle working:
  • * $ touch ~/games/scum/rom/ft/ft.1c
    * Add item using ALA
    * Attempts to scrape the fake file "ft" doesn't bring up the correct game title (obviously)
    * Attempts to launch the game, bring up a blank screen.

I think this is an ALA issue, as I know this does work; as mentioned above.
Please post here (using pastebin service) the content of your launchers.xml file. This file contain the information concerning your launcher configuration. It will help to quickly identify your problem with your ScummVM launcher.

Here is an extract:

launchers.xml
Huuumm... strange. And could you confirm me that if in a terminal you enter :

Code:
/usr/games/scummvm -f ft

The game is starting correctly?


Re: RE: - n1md4 - 2013-05-13

(2013-05-13, 17:27)Angelscry Wrote:
(2013-05-13, 17:18)n1md4 Wrote: Here is an extract:

launchers.xml
Huuumm... strange. And could you confirm me that if in a terminal you enter :

Code:
/usr/games/scummvm -f ft

The game is starting correctly?

Yes, the game loads.


RE: - Angelscry - 2013-05-13

(2013-05-13, 20:27)n1md4 Wrote:
(2013-05-13, 17:27)Angelscry Wrote:
(2013-05-13, 17:18)n1md4 Wrote: Here is an extract:

launchers.xml
Huuumm... strange. And could you confirm me that if in a terminal you enter :

Code:
/usr/games/scummvm -f ft

The game is starting correctly?

Yes, the game loads.
Ok... So... The only thing that is different is the argument value. Try to replace :

Code:
-f "%romname%"

by

Code:
-f %romname%

I hope it will solve your problem.


RE: - n1md4 - 2013-05-13

(2013-05-13, 20:59)Angelscry Wrote: ]Ok... So... The only thing that is different is the argument value. Try to replace :

Code:
-f "%romname%"

by

Code:
-f %romname%

I hope it will solve your problem.

It did solve the problem. Thank you very much! Smile


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

Version 2.0.6 : This new version of Advanced Launcher is a minor version fixing the audio sound loop occuring when starting an application.

Changelog :
  • Fix audio sound loop when starting an application



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - n1md4 - 2013-05-14

Hi. I have ALA launching Steam games without having to load the game client, you might like to add this to your wiki. The game I tested was unplayable, but it was also unplayable launching form the Steam client, so not an ALA issue.

Here is the relevant launcher.xml section http://xbmclogs.com/show.php?id=18823

You can get the game ID either from the online store, select the game then check the ID in the URL or the appmanifest file. This works in the same way as ScummVM's fake file for adding items.

This page is also useful https://developer.valvesoftware.com/wiki/Steam_browser_protocol you may be able to do something smarter Wink


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - sagaopc - 2013-05-14

Angels HELP MEEEEE!!!! When i try to Edit launcher, now happens: falha no script addon.py

i go verify the problem and my advanced launcher don't have more my launchers (emulator - Games PC and software... i don't know whats happening...


Re: RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - n1md4 - 2013-05-14

(2013-05-14, 05:19)sagaopc Wrote: Angels HELP MEEEEE!!!! When i try to Edit launcher, now happens: falha no script addon.py

i go verify the problem and my advanced launcher don't have more my launchers (emulator - Games PC and software... i don't know whats happening...

This happened to me to. I spent the last part of the evening rebuilding everything
There may be another way, but it is not one I know of. I now backup launcher.xml after editing.


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

(2013-05-14, 05:19)sagaopc Wrote: Angels HELP MEEEEE!!!! When i try to Edit launcher, now happens: falha no script addon.py

i go verify the problem and my advanced launcher don't have more my launchers (emulator - Games PC and software. i don't know whats happening...

(2013-05-14, 10:15)n1md4 Wrote:
(2013-05-14, 05:19)sagaopc Wrote: Angels HELP MEEEEE!!!! When i try to Edit launcher, now happens: falha no script addon.p

i go verify the problem and my advanced launcher don't have more my launchers (emulator - Games PC and software... i don't know whats happening...

This happened to me to. I spent the last part of the evening rebuilding everything
There may be another way, but it is not one I know of. I now backup launcher.xml after editing.
This Advanced Launcher problem randomly occurs since Frodo release. It looks like if something was randomly deleteting the categories/launchers/items list from the memory. Most on the time it is not a big problem, because XBMC reload automatically this list each time you make an action. The only moment when it cause a real problem is when you are editing the categories/launchers/items list, becasue each time you edit something into Advanced Launcher, it was automatically saved into the launchers.xml file. So if the list was cleared when you save the launchers.xml file, you lost partially or completely the content of your launchers.xml file.

I have tried to found what was the cause of this problem... but I was not able to found it. Because it happen randomly (do not happen since more than one month on my system actually) and do not generate any entries into xbmc.log file. So it is really difficult to reproduce and diagnose.

BTW, since version 1.12.0, Advanced Launcher include auto-backup option, that AUTOMATICALLY make a backup of your launchers.xml file each time you edit it (http://www.gwenael.org/forum/viewtopic.php?id=469). So if the problem occurs again, you do not have to rebuilt all your list launcher by launcher, just go into Advanced Launcher settings > Advanced > Backup options > Import XML file (restore backup) > Then select the file corresponding to you last modification. Files naming convention is : YYYYMMDD-HHMMSS-MILLISEC-launchers.xml. Then your categories/launchers/items list will be automatically restored.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - n1md4 - 2013-05-14

(2013-05-14, 12:35)Angelscry Wrote: BTW, since version 1.12.0, Advanced Launcher include auto-backup option, that AUTOMATICALLY make a backup of your launchers.xml file each time you edit it (http://www.gwenael.org/forum/viewtopic.php?id=469). So if the problem occurs again, you do not have to rebuilt all your list launcher by launcher, just go into Advanced Launcher settings > Advanced > Backup options > Import XML file (restore backup) > Then select the file corresponding to you last modification. Files naming convention is : YYYYMMDD-HHMMSS-MILLISEC-launchers.xml. Then your categories/launchers/items list will be automatically restored.

That is really handy to know, thanks Smile

Additionally, I'm getting some strangeness with scraping art and game data. Is there a way to clear caches or any DB, so I can scrape again and know everything is clear.


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

(2013-05-14, 13:34)n1md4 Wrote: That is really handy to know, thanks Smile

Additionally, I'm getting some strangeness with scraping art and game data. Is there a way to clear caches or any DB, so I can scrape again and know everything is clear.
That's XBMC itself which manage the thumbs and fanart images cache used by Advanced Launcher. Strangeness generally appears when you start copy/delete/replace images out of XBMC or Advanced Launcher. In that case, XBMC cache is not been updated and the cached images do not correspond to the images present on your hard drives. You generally have to wait a couple of days to have the XBMC cache automatically refreshed.

As far as I know, there is no option into XBMC to force to refresh the cache.

To avoid these cache problems, I strongly suggest you to manage your images only from Advanced Launcher and copy/delete/replace images on your hard drive only when they are not used anymore by XBMC or Advanced Launcher.