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 - 2012-08-29

(2012-08-29, 20:23)myghalloween Wrote: Hi,
I do not have to run bsnes v0.91 and I can not find the solution, despite hours on google.
could you give me the config?
My roms are in a folder other than bsnes

Windows 7 + XBMC Eden

Please help me
So... what do you run?




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - myghalloween - 2012-08-29

PHP Code:
<launcher>
        <
id>3b412baf89e98a0ce8de8239330e0110</id>
        <
name>bsneslauncher</name>
        <
application>D:\Bsnes\bsneslauncher.bat</application>
        <
args>"%rom%"</args>
        <
rompath>N:\04.GamesLibrary\ROM Sets Nintendo SNES\</rompath>
        <
thumbpath>N:\04.GamesLibrary\ROM Sets Nintendo SNES\</thumbpath>
        <
fanartpath>N:\04.GamesLibrary\ROM Sets Nintendo SNES\</fanartpath>
        <
custompath>N:\04.GamesLibrary\ROM Sets Nintendo SNES\</custompath>
        <
romext>zip|smc|sfc</romext>
        <
platform>Super Nintendo Entertainment System</platform>
        <
thumb></thumb>
        <
fanart></fanart>
        <
genre></genre>
        <
release></release>
        <
publisher></publisher>
        <
launcherplot></launcherplot>
        <
finished>false</finished>
        <
minimize>true</minimize>
        <
lnk>true</lnk>
        <
roms>
        </
roms
nothing run =(


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-08-29

(2012-08-29, 20:42)myghalloween Wrote:
PHP Code:
<launcher>
        <
id>3b412baf89e98a0ce8de8239330e0110</id>
        <
name>bsneslauncher</name>
        <
application>D:\Bsnes\bsneslauncher.bat</application>
        <
args>"%rom%"</args>
        <
rompath>N:\04.GamesLibrary\ROM Sets Nintendo SNES\</rompath>
        <
thumbpath>N:\04.GamesLibrary\ROM Sets Nintendo SNES\</thumbpath>
        <
fanartpath>N:\04.GamesLibrary\ROM Sets Nintendo SNES\</fanartpath>
        <
custompath>N:\04.GamesLibrary\ROM Sets Nintendo SNES\</custompath>
        <
romext>zip|smc|sfc</romext>
        <
platform>Super Nintendo Entertainment System</platform>
        <
thumb></thumb>
        <
fanart></fanart>
        <
genre></genre>
        <
release></release>
        <
publisher></publisher>
        <
launcherplot></launcherplot>
        <
finished>false</finished>
        <
minimize>true</minimize>
        <
lnk>true</lnk>
        <
roms>
        </
roms
nothing run =(
Follow this guide : http://www.gwenael.org/forum/viewtopic.php?pid=1214#p1214




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - myghalloween - 2012-08-29

ok, I try... Can you give me your xml file in order to verify mine ?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-08-29

(2012-08-29, 20:56)myghalloween Wrote: ok, I try... Can you give me your xml file in order to verify mine ?
Sorry, but I do not use BSNES. I do not even use Windows system.




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - myghalloween - 2012-08-29

So difficult to understand for frenchy.... =(
It seem to be the same with nestopia... Emulator don't launche
When I creat a simple launcher, the emulator launch


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-08-29

(2012-08-29, 21:13)myghalloween Wrote: So difficult to understand for frenchy.... =(
It seem to be the same with nestopia... Emulator don't launche
When I creat a simple launcher, the emulator launch
Pour Nestopia cela devrait fonctionner, poste ton fichier launchers.xml ici et je te dirait ce qui ne fonctionne pas.




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - myghalloween - 2012-08-29

<launcher>
<id>d8c1c67f8368362ed1f1ca2d5aa1347d</id>
<name>NestopiaLauncher</name>
<application>D:\Nestopia\nestopia.exe</application>
<args>"%rom%"</args>
<rompath>N:\04.GamesLibrary\ROM Sets Nintendo NES\</rompath>
<thumbpath>N:\04.GamesLibrary\ROM Sets Nintendo NES\</thumbpath>
<fanartpath>N:\04.GamesLibrary\ROM Sets Nintendo NES\</fanartpath>
<custompath>N:\04.GamesLibrary\ROM Sets Nintendo NES\</custompath>
<romext>nes|zip</romext>
<platform>Nintendo Entertainment System</platform>
<thumb></thumb>
<fanart></fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<launcherplot></launcherplot>
<finished>false</finished>
<minimize>true</minimize>
<lnk>true</lnk>
<roms>
</roms>
</launcher>


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-08-29

(2012-08-29, 21:27)myghalloween Wrote: <launcher>
<id>d8c1c67f8368362ed1f1ca2d5aa1347d</id>
<name>NestopiaLauncher</name>
<application>D:\Nestopia\nestopia.exe</application>
<args>"%rom%"</args>
<rompath>N:\04.GamesLibrary\ROM Sets Nintendo NES\</rompath>
<thumbpath>N:\04.GamesLibrary\ROM Sets Nintendo NES\</thumbpath>
<fanartpath>N:\04.GamesLibrary\ROM Sets Nintendo NES\</fanartpath>
<custompath>N:\04.GamesLibrary\ROM Sets Nintendo NES\</custompath>
<romext>nes|zip</romext>
<platform>Nintendo Entertainment System</platform>
<thumb></thumb>
<fanart></fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<launcherplot></launcherplot>
<finished>false</finished>
<minimize>true</minimize>
<lnk>true</lnk>
<roms>
</roms>
</launcher>
Ton lanceur ne contient aucune rom. Une fois le lanceur créé il faut que tu lances un scan pour ajouter les roms : http://www.youtube.com/watch?v=9Pl-3yEDgUY
Également : http://www.gwenael.org/forum/viewtopic.php?pid=4#p4

Quote:Important : After the files launcher creation, you need to go to the "Add items" menu option of the launcher (using "C" key) to add items to the launcher (using manual or automatic method).



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - myghalloween - 2012-08-29

J'essaye de scanner
OK, apres le scan ça fonctionne.... J'avance enfin... a suivre =)



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - myghalloween - 2012-08-30

OK pour nestopia.
Pour bsnes c'est une autre histoire... je suis obligé de 7zippe et je n'arrive pas lancer une rom en suivant le tuto...
une idee ?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - rpg_poser - 2012-08-31

myghalloween,
One minor thing I noticed... It makes things much easier if you don't have reserved/special characters (like periods) or spaces in your folder paths.

Example: N:\04.GamesLibrary\ROM Sets Nintendo NES\
Could be: N:\Games\Nintendo\NES
or
N:\04_GamesLibrary\Nintendo_NES_ROMS

Sorry, I don't speak French.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - simonnz - 2012-08-31

Hi Guys,

I've just started (re)setting up Advanced Launcher so that all game fanart/thumbnails are store on my new FreeNAS server but have struck a "Script Failed! addon.py" issue when loading new thumbnails/fanart.

A copy of my xbmc.log file can be access on http://pastebin.com/hEwHtDgH

The one line that sticks out to me is this: IOError: (22, "invalid mode ('wb') or filename", 'smb://NAS1/Media/XBMCData/Games/Thumbnails/bf3.exe_thumb.jpg' however this file is definitely created after the import process runs and fails with the error above.

If you could point me in the right direction for troubleshooting, that would be most appreciated!


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-08-31

(2012-08-31, 11:30)simonnz Wrote: Hi Guys,

I've just started (re)setting up Advanced Launcher so that all game fanart/thumbnails are store on my new FreeNAS server but have struck a "Script Failed! addon.py" issue when loading new thumbnails/fanart.

A copy of my xbmc.log file can be access on http://pastebin.com/hEwHtDgH

The one line that sticks out to me is this: IOError: (22, "invalid mode ('wb') or filename", 'smb://NAS1/Media/XBMCData/Games/Thumbnails/bf3.exe_thumb.jpg' however this file is definitely created after the import process runs and fails with the error above.

If you could point me in the right direction for troubleshooting, that would be most appreciated!
Advanced Launcher do not support samba paths (because most of emulators do not support then into their command line). So, to solve this, you just have to locally mount your NAS : http://www.7tutorials.com/how-map-drives-windows-7




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - fr500 - 2012-08-31

Hey, I updated my steam script so it no longer kills steam, now it closes it gracefully, also now it timeouts if it can start an app without pausing XBMC, here are my scripts

These scripts pause XBMC so it's not consuming any resources while games are running. First my steam script:

All you need to do is point Advanced launcher to the script and use the Steam Id of the game you want to launch, you can find the ID by creating a steam desktop icon and checking it's properties. for it to function you need to have steam community in-game enabled as it will track for gameoverlayui.exe. Some steam IDs here.

Code:
@echo off

REM *****************************************************************************************************
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 *****************************************************************************************************

REM setup variables
set limit=120
set iteration=0

echo STARTING GAME
echo *******************************************************
start "GAME" "steam://rungameid/"%1
set process_1=gameoverlayui.exe
set process_2=steam.exe
set ignore_result=INFO:

timeout 30

echo CHECK IF STEAM HAS STARTED
echo *******************************************************
:0

set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %process_2%"`) do if not %%A==%ignore_result% set var=running
echo steam %var% after %iteration% seconds
timeout 1

set /a iteration=iteration+1
if %iteration% == %limit% goto :3

if %var% == notrunning goto :0

set iteration=0

echo STEAM RUNNING CHECK IF GAME HAS STARTED
echo *******************************************************
:1

set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %process_1%"`) do if not %%A==%ignore_result% set var=running
echo game %var% after %iteration% seconds
timeout 1

set /a iteration=iteration+1
if %iteration% == %limit% goto :5

if %var% == notrunning goto :1

echo GAME STARTED PAUSE XBMC
echo *******************************************************
pssuspend XBMC.exe


echo GAME STARTED CHECK IF GAME IS STILL RUNNING
echo *******************************************************
:2

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

echo GAME STOPPED RESUME XBMC AND SHUTDOWN STEAM
echo *******************************************************
pssuspend -r XBMC.exe
start C:\Games\steam\steam.exe -shutdown

set limit=600
set iteration=0

echo CHECK IF STEAM IS STILL RUNNING
echo *******************************************************
:3

set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %process_2%"`) do if not %%A==%ignore_result% set var=running
echo steam still %var%
timeout 1
set /a iteration=iteration+1
if %iteration% == %limit% goto :4
if %var% == running goto :3
exit

:4
echo STEAM DIDN'T SHUTDOWN AFTER %limit% SECONDS, KILLING IT
echo *******************************************************
taskkill /IM steam.exe /f
exit

:5
echo GAME %1 DIDN'T START OR PROCESS %2 COULDNT' BE FOUND
echo *******************************************************
echo GAME %1 DIDN'T START OR PROCESS %2 COULDNT' BE FOUND > c:\launcherlog.txt
echo SHUTDOWN STEAM
echo *******************************************************
start C:\Games\steam\steam.exe -shutdown
echo CHECK IF STEAM IS STILL RUNNING
echo *******************************************************
goto :3

The second one, a generic .lnk launcher, it will launch the game.lnk file you specify (no need to add .lnk to arguments) and will track any specific process you want it to track, remember to set the path to your launchers in the batch file itself on this line:

set launcher_path=C:\path\to\your\shortcuts\

Code:
@echo off

REM *****************************************************************************************************
REM Usage:
REM call launcher_regular with 2 arguments, first argument is the game shortcutname, second argument
REM is the name of the process that must be tracked
REM ex: launcher_regular supermeatboy supermeatboy.exe
REM *****************************************************************************************************

REM setup variables
set limit=120
set iteration=0
set launcher_path=C:\path\to\your\shortcuts\


echo STARTING GAME
echo *******************************************************
start "GAME" %launcher_path%\%1.lnk
set process_1=%2
set ignore_result=INFO:

timeout 10

echo CHECK IF GAME HAS STARTED
echo *******************************************************
:1

set var=notrunning
for /f "usebackq" %%A in (`tasklist /nh /fi "imagename eq %process_1%"`) do if not %%A==%ignore_result% set var=running
echo game %var% after %iteration% seconds
timeout 1

set /a iteration=iteration+1
if %iteration% == %limit% goto :3

if %var% == notrunning goto :1

echo GAME STARTED PAUSE XBMC
echo *******************************************************
pssuspend XBMC.exe


echo GAME STARTED CHECK IF GAME IS STILL RUNNING
echo *******************************************************
:2

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

echo GAME STOPPED RESUME XBMC
echo *******************************************************
pssuspend -r XBMC.exe

exit

:3
echo GAME %1 DIDN'T START OR PROCESS %2 COULDNT' BE FOUND
echo *******************************************************
echo GAME %1 DIDN'T START OR PROCESS %2 COULDNT' BE FOUND > c:\launcherlog.txt
exit

Both scripts will log to c:\launcherlog.txt in case of an error, hope these are helpful