Kodi Community Forum

Full Version: [CLOSED] Advanced Launcher - Applications Launcher Addon for XBMC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 Wrote:No... Advanced Launcher add-on is only a launcher not a roms of file manager. So Advanced Launcher will NEVER rename any rom files. If you need an add-on to manage your roms use Rom Collection Browser add-on.

Sorry, I think there is a misunderstanding. I was trying to give daviduco some info on why his roms could be importing without thumbs or fanart after being scraped. I'm just saying that some of my roms were named incorrectly and I manually changed the file names so they could be identified and loaded correctly with fanart and thumbs.
Ryoga79 Wrote:What i'd like to do is create a subcategory for PC games that scrapes automatically. Since i have games installed in various places across various distros (steam, gfw live, GOG, etc), i found the easiest way to consolidate launching them was to create a single directory with batch files that point to the game executables. That way, all the "launchers" are in one place. Given that there's no "emulator" to launch the batchfiles, is there a way i can create a subcategory for PC games? Right now the way they show up in my list is as individual, single-executable launchers, so i have a list of 25 or so PC games, with "NES" in the middle of it that leads to a submenu for NES games. Is there a way i can group the PC games like the NES games are?

Ryoga79 Wrote:In addition to that, is there a way i can create a "dummy" emulator for the PC games, to recognize *.BAT as "roms"? That way i can set it up to auto-scrape my batchfiles directory to catch any new PC games that i add.
You just have to create a script or a BAT file that will start your other .BAT file. You will found more details here.
htpc guy Wrote:Sorry, I think there is a misunderstanding. I was trying to give daviduco some info on why his roms could be importing without thumbs or fanart after being scraped. I'm just saying that some of my roms were named incorrectly and I manually changed the file names so they could be identified and loaded correctly with fanart and thumbs.
Arffff... I'm doing several things at the same time... and I have effectively misunderstanding your comments. Sorry htpc. Wink
daviduco Wrote:I've added a game and it doesn't have thumb nor name, it's empty :Huh?

When downloading a thumb manually:

21:37:43 T:4848 M:4294967295 DEBUG: ------ Window Deinit (C:\Program Files (x86)\XBMC\addons\skin.confluence\720p\DialogSelect.xml) ------
21:37:43 T:4848 M:4294967295 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\David\AppData\Roaming\XBMC\userdata\
21:37:45 T:4672 M:4294967295 INFO: -->Python script returned the following error<--
21:37:45 T:4672 M:4294967295 ERROR: Error Type: exceptions.OSError
21:37:45 T:4672 M:4294967295 ERROR: Error Contents: (0, 'Error', "E:\\Program Files\\Steam\\steamapps\\common\\tom clancy's splinter cell conviction\\src\\system\\conviction_game.exeTom Clancy's Splinter Cell: Conviction_thumb.jpg")
21:37:45 T:4672 M:4294967295 ERROR: Traceback (most recent call last):
File "C:\Users\David\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\addon.py", line 20, in ?
plugin.Main()
File "C:\Users\David\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 130, in __init__
self._edit_launcher(launcher)
File "C:\Users\David\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 548, in _edit_launcher
self._scrap_thumb_launcher(launcherName)
File "C:\Users\David\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 340, in _scrap_thumb_launcher
_update_cache(img_url,file_path)
File "C:\Users\David\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 1525, in _update_cache
shutil.copy2( file_path , cached_thumb )
File "special://xbmc/system/python/Lib\shutil.py", line 93, in copy2
copystat(src, dst)
File "special://xbmc/system/python/Lib\shutil.py", line 65, in copystat
st = os.stat(src)
OSError: (0, 'Error', "E:\\Program Files\\Steam\\steamapps\\common\\tom clancy's splinter cell conviction\\src\\system\\conviction_game.exeTom Clancy's Splinter Cell: Conviction_thumb.jpg")
21:37:45 T:4672 M:4294967295 INFO: -->End of Python script error report<--
21:37:45 T:4672 M:4294967295 INFO: Python script stopped
I will try to fix this. But I'm pretty sure that there is a problem with this image file : conviction_game.exeTom Clancy's Splinter Cell: Conviction_thumb.jpg. Could you post here your launcher.xml file ?
Angelscry Wrote:Arffff... I'm doing several things at the same time... and I have effectively misunderstanding your comments. Sorry htpc. Wink

no worries. Keep up the good work.
Angelscry Wrote:I will try to fix this. But I'm pretty sure that there is a problem with this image file : conviction_game.exeTom Clancy's Splinter Cell: Conviction_thumb.jpg. Could you post here your launcher.xml file ?
Ok... I think I have found it. It will be fixed in next release. Thnak you for your feedback.
Hello Angelscry, I deleted launchers.xml as suggested and now my error is:



14:02:46 T:2692 M:2162696192 NOTICE: Launcher: found 1 launchers
14:02:46 T:2692 M:2162593792 NOTICE: Launcher: Playstation 2 : found 0 roms
14:02:47 T:7156 M:2155446272 NOTICE: -->Python Interpreter Initialized<--
14:02:47 T:7156 M:2155331584 NOTICE: Mode AddOn ON
14:02:47 T:7156 M:2155331584 NOTICE: C:\Users\NekoAlly\AppData\Roaming\XBMC\userdata\addon_data\plugin.program.advanced.launcher
14:02:47 T:7156 M:2155331584 NOTICE: 1
14:02:47 T:7156 M:2155261952 NOTICE: Launcher: found 1 launchers
14:02:51 T:7040 M:2147196928 WARNING: Skin has invalid include: dialogeffect
14:02:57 T:5024 M:2166120448 NOTICE: -->Python Interpreter Initialized<--
14:02:57 T:5024 M:2165796864 NOTICE: Mode AddOn ON
14:02:57 T:5024 M:2165796864 NOTICE: C:\Users\NekoAlly\AppData\Roaming\XBMC\userdata\addon_data\plugin.program.advanced.launcher
14:02:57 T:5024 M:2165796864 NOTICE: 1
14:02:57 T:5024 M:2165727232 NOTICE: Launcher: found 1 launchers
14:03:00 T:5512 M:2165211136 NOTICE: -->Python Interpreter Initialized<--
14:03:01 T:5512 M:2164867072 NOTICE: Mode AddOn ON
14:03:01 T:5512 M:2164867072 NOTICE: C:\Users\NekoAlly\AppData\Roaming\XBMC\userdata\addon_data\plugin.program.advanced.launcher
14:03:01 T:5512 M:2164867072 NOTICE: -1
14:03:01 T:5512 M:2164797440 NOTICE: Launcher: found 1 launchers
14:03:02 T:5512 M:2164981760 ERROR: Error Type: exceptions.KeyError
14:03:02 T:5512 M:2164981760 ERROR: Error Contents: thumb
14:03:02 T:5512 M:2166337536 ERROR: Traceback (most recent call last):
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\addon.py", line 20, in ?
plugin.Main()
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 134, in __init__
self._add_roms(launcher)
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 455, in _add_roms
self._import_roms(launcher)
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 1181, in _import_roms
self._save_launchers()
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 807, in _save_launchers
usock.write("\t\t\t\t<thumb>"+romdata["thumb"]+"</thumb>\n")
KeyError: thumb


any ideas?
nekoarashi Wrote:Hello Angelscry, I deleted launchers.xml as suggested and now my error is:



14:02:46 T:2692 M:2162696192 NOTICE: Launcher: found 1 launchers
14:02:46 T:2692 M:2162593792 NOTICE: Launcher: Playstation 2 : found 0 roms
14:02:47 T:7156 M:2155446272 NOTICE: -->Python Interpreter Initialized<--
14:02:47 T:7156 M:2155331584 NOTICE: Mode AddOn ON
14:02:47 T:7156 M:2155331584 NOTICE: C:\Users\NekoAlly\AppData\Roaming\XBMC\userdata\addon_data\plugin.program.advanced.launcher
14:02:47 T:7156 M:2155331584 NOTICE: 1
14:02:47 T:7156 M:2155261952 NOTICE: Launcher: found 1 launchers
14:02:51 T:7040 M:2147196928 WARNING: Skin has invalid include: dialogeffect
14:02:57 T:5024 M:2166120448 NOTICE: -->Python Interpreter Initialized<--
14:02:57 T:5024 M:2165796864 NOTICE: Mode AddOn ON
14:02:57 T:5024 M:2165796864 NOTICE: C:\Users\NekoAlly\AppData\Roaming\XBMC\userdata\addon_data\plugin.program.advanced.launcher
14:02:57 T:5024 M:2165796864 NOTICE: 1
14:02:57 T:5024 M:2165727232 NOTICE: Launcher: found 1 launchers
14:03:00 T:5512 M:2165211136 NOTICE: -->Python Interpreter Initialized<--
14:03:01 T:5512 M:2164867072 NOTICE: Mode AddOn ON
14:03:01 T:5512 M:2164867072 NOTICE: C:\Users\NekoAlly\AppData\Roaming\XBMC\userdata\addon_data\plugin.program.advanced.launcher
14:03:01 T:5512 M:2164867072 NOTICE: -1
14:03:01 T:5512 M:2164797440 NOTICE: Launcher: found 1 launchers
14:03:02 T:5512 M:2164981760 ERROR: Error Type: exceptions.KeyError
14:03:02 T:5512 M:2164981760 ERROR: Error Contents: thumb
14:03:02 T:5512 M:2166337536 ERROR: Traceback (most recent call last):
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\addon.py", line 20, in ?
plugin.Main()
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 134, in __init__
self._add_roms(launcher)
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 455, in _add_roms
self._import_roms(launcher)
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 1181, in _import_roms
self._save_launchers()
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 807, in _save_launchers
usock.write("\t\t\t\t<thumb>"+romdata["thumb"]+"</thumb>\n")
KeyError: thumb


any ideas?
Yes... I have already fixed it, but not have found time to release the fixed version. I will do it now. Laugh
Okay =) , I really hope it works. the idea is beautiful and brilliant and much <3 for it but I have spent so many hours trying to make it work lol ;(
Version 0.9.0
This new version of the Advanced Launcher change the way the arguments are passed to the emulator applications. The arguments will now use the %rom%, %romfile% or %romname% variables. The goal of this change is to improve the compatibilty between the Advanced Launcher and the emulator but also the homogenize the command line syntax between the emulator based XBMC add-ons (ALA, RCB and probably Emulatopia ).
  • %rom% will replace : /media/emulation/nes/roms/Metroid.zip
  • %romfile% will replace : Metroid.zip
  • and %romname% will replace : Metroid
When you will install this new version you will have to modify all the arguments of your emulators launchers. For example :
Code:
--opengl=MODE --fullscreen -f 15 --no-show-speed
will need to be changed to :
Code:
--opengl=MODE --fullscreen -f 15 --no-show-speed "%rom%"
--------------------------------------------------------------
Code:
-m -s -v 22
will need to be changed to :
Code:
-m -s -v 22 "%rom%"
--------------------------------------------------------------
Empty argument will need to be changed to
Code:
"%rom%"
--------------------------------------------------------------
In parallel a wiki page have just been created to help you to configure your emulators and the advanced launcher add-on to works both together. http://www.gwenael.org/xbmc/index.php
This wike page is not complete actually but I will work on it in the next days. You can also contribute to its completion by registering to the wiki page and write your proper guide, tips, help.

ChangeLog :
  • fix non automatic thumbs and fanart scrap error.
  • fix manual thumb and fanart scrap error for stand-alone launchers.
  • add %rom%, %romfile% and %romname% command line support.
  • add emulators file extension auto complementation.
Okay, so I need to make changes to the xml file for advanced launcher? I tried to scrape from google a fanart for pcsx2 and got this

14:38:20 T:5324 M:1914073088 NOTICE: 6
14:38:20 T:5324 M:1914068992 NOTICE: 1
14:38:20 T:5264 M:1914077184 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\NekoAlly\AppData\Roaming\XBMC\userdata\
14:38:20 T:5324 M:1914077184 ERROR: Error Type: exceptions.KeyError
14:38:20 T:5324 M:1914077184 ERROR: Error Contents: filename
14:38:20 T:5324 M:1913987072 ERROR: Traceback (most recent call last):
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\addon.py", line 20, in ?
plugin.Main()
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 131, in __init__
self._edit_launcher(launcher)
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 568, in _edit_launcher
self._scrap_fanart_launcher(launcherName)
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 402, in _scrap_fanart_launcher
filename = self.launchers[launcherName]["filename"]
KeyError: filename

This was using version 9.0 of your creation.
Hello again, this time it scraped half our collection but it stopped without warning and ultimately scraped nothing Sad


15:01:47 T:4624 M:1799131136 NOTICE: Launcher: found 1 launchers
15:02:22 T:4624 M:1798324224 ERROR: Error Type: exceptions.TypeError
15:02:22 T:4624 M:1798324224 ERROR: Error Contents: unsubscriptable object
15:02:22 T:4624 M:1798230016 ERROR: Traceback (most recent call last):
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\addon.py", line 20, in ?
plugin.Main()
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 135, in __init__
self._add_roms(launcher)
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 456, in _add_roms
self._import_roms(launcher)
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\lib\launcher_plugin.py", line 1167, in _import_roms
covers = self._get_fanarts_list(romdata["gamesys"],romdata["name"],self.settings[ "fanart_image_size" ])
File "C:\Users\NekoAlly\AppData\Roaming\XBMC\addons\plugin.program.advanced.launcher\resources\scrapers\fanarts\Google\fanarts_scraper.py", line 22, in _get_fanarts_list
results += json['responseData']['results']
TypeError: unsubscriptable object


No idea what that means


EDIT: Hmmm it seems that all the issues are directly related to using the google scraper; far less issue using gamefaqs only..
Sorry, I'm completely lost. Can anybody point me in the right direction? :/

I...

• installed zsnes via sudo install apt-get zsnes
• added Advanced-Launcher-Add-On

When I start the Advaned Launcher, I have to choose the "launcher type". After choosing "file launcher" I have to specify a folder. The only folders available are my two folders "Filme" and "Serien" (/media/).

I guess, I should point to zsnes, but how...?

I'm running Ubuntu 10.04.1 LTS - XBMCLive Dharma and have not the slightest idea...
fr500 Wrote:I think you should make it so that if can't find the default thumbnail name it starts on an specified folder when looking for thumbs, that way you won't need to browse to say D:\launchers\thumbs or whatever it will always start there, then the user will have to select the appropiate file.

After the newest update It always asks for a fanart directory/ thumbnail directory even if it's not a file launcher. This behavior is unnecesary for PC games because you're not really scraping many files at a time, Having a global folder to start searching for fanart/thumbs on PC games would be better Big Grin
Windows XP Media Center SP3 32-bit
Toshiba Satellite A105 S4084
Intel Pentium M T2050 1.6 GHz Dual Core
3GB PC5300 DDR2-SDRAM
XBMC 10.0 Dharma

Image

Screenshot kind of says it all. Virtual drives or none, why xbmc should be unable to browse elsewhere I haven't the foggiest.

I had a run with xbmc back in the xecutor days, but only a brief one. This being a pretty new (and beautiful) dashboard, I'm starting from square one as far as comprehension goes.

Any and all help greatly appreciated.

-newmy51
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