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


- amducious - 2012-01-15

sorry it was 4am when I posted that so I guess I didnt phrase my question correctly. what I was trying to ask was. I already have launchers set up for snes and nes and they work perfect. I also have them link to the home page. what I now want to do is launch windows games (ex. skyrim, batman Arkam City, assassin's creen)

right now they are showing up like this

- Assassin's Creed
- Batman Arkam City
- NES
---Super Mario brothers
- Skyrim
-SNES
---Super Mario world

what I would like to do is to have them like this

- NES
--- Super Mario Brothers
- SNES
--- Super Mario World
- Windows games
--- Assassin's Creed
--- Batman Arkam City
--- Skyrim

how do I set up the launcher to group the windows games togeather. Im guessing I would have to create some kinde of "file launcher" but I dont know what I would put for the launching program (the place the emulators go)

im verry sorry if this still sounds a bit odd im going to 27 hours awake and just working on my media center to try to stay awake


- Angelscry - 2012-01-15

amducious Wrote:how do I set up the launcher to group the windows games togeather. Im guessing I would have to create some kinde of "file launcher" but I dont know what I would put for the launching program (the place the emulators go)

im verry sorry if this still sounds a bit odd im going to 27 hours awake and just working on my media center to try to stay awake
With Advanced Launcher under Windows you can use .lnk shortcuts and manage them as files (like for emulators) : http://www.gwenael.org/xbmc/index.php?title=File_shortcuts


Version 1.7.3 - Angelscry - 2012-01-15

Version 1.7.3 : This new version of Advanced launcher add a new option for launchers and items edition. The new "Import Infos, Thumbnail & Fanart " option allows to automatically re-scrap the datas and images of a launcher or an item. So users will not be forced anymore to manually modify infos, then thumbs, then fanart to enterly modify a launcher or an item. Manual modification options still present.

Image

This new menu option addition has conducted to a small reorganization of the launcher and item menus. Menus have been renamed, some entries have been renamed and others (like ) have been relocalized into the Advanced Option sub-menu.

Image

A new entries have also been added into item's Advanced Option submenu. This new option allows the change the file of an item. Also the "Extra fanarts" path have been renamed as "Custom" path. Because this path is not specifically dedicated for extra-fanart but can also be used by skinners for video files (trailers), or others.

Image

Finally this version add the finnish translation to Advanced Launcher. Thank you very much to Viljo for this translation. If other users are interested to contribute to Advanced Launcher by adding other languages (deutsh, spanish, etc...) do no hesitate to contact me.

Image

ChangeLog :
  • Add full import option for items.
  • Add full import option for launchers.
  • Add item filename modification option.
  • Reorganization of launchers context menu
  • Reorganization of items context menu
  • Replacement of "Extra fanarts" path by "Custom" paths.
  • Add Finnish translation (thanks to Viljo).



- crisdecuba - 2012-01-16

Hi everyone,

One thing that broke when I upgraded to Eden was my duplicate instances of Advanced Launcher.

So I deleted the plugin folder for the duplicate instances, which seemed to be from an older version, I copied the original into a new folder, renamed the directory in addon.xml, renamed the directory in a couple of instances within the launcher_plugin.py file within /resources/lib/

When I start up XBMC I see the second instance, but when I hit enter, XBMC says there is an error within addon.py

Any suggestions? I got it to work before, but I can't seem to get it to work again... :-(


- Angelscry - 2012-01-16

crisdecuba Wrote:Hi everyone,

One thing that broke when I upgraded to Eden was my duplicate instances of Advanced Launcher.

So I deleted the plugin folder for the duplicate instances, which seemed to be from an older version, I copied the original into a new folder, renamed the directory in addon.xml, renamed the directory in a couple of instances within the launcher_plugin.py file within /resources/lib/

When I start up XBMC I see the second instance, but when I hit enter, XBMC says there is an error within addon.py

Any suggestions? I got it to work before, but I can't seem to get it to work again... :-(
Could you post the content of the XBMC.log file when the addon.py error occurs. It could indicate to us what is exactly the problem.

In a more general case: If you want to reinstall a more recent version of Advanced Launcher as a duplicate launcher (duplicate versions cannot be updated automatically) :

  1. make a backup of the /xbmc/userdata/addon_data/plugin.program.advanced.launcher.old.duplicate/launchers.xml file (it's the more important file)
  2. delete the /xbmc/userdata/addon_data/plugin.program.advanced.launcher.old.duplicate directory (to avoid any version conflict)
  3. delete the /xbmc/addons/plugin.program.advanced.launcher.old.duplicate directory (to remove the old duplicate version)
  4. duplicate the /xbmc/addons/plugin.program.advanced.launcher as /xbmc/addons/plugin.program.advanced.launcher.new.duplicate as described into this tutorial : http://www.youtube.com/watch?v=_gMFJcxdcEg
  5. start XBMC and start new Advanced Launcher duplicate. It will ask you to create a new launcher. Create quickly a fake one. This will create /xbmc/userdata/addon_data/plugin.program.advanced.launcher.new.duplicate directory structure and content (settings.xml and launchers.xml files).
  6. finally replace the /xbmc/userdata/addon_data/plugin.program.advanced.launcher.new.duplicate/launchers.xml file by the one you have backed up in the first step.



- Energy2k8 - 2012-01-16

amducious Wrote:sorry it was 4am when I posted that so I guess I didnt phrase my question correctly. what I was trying to ask was. I already have launchers set up for snes and nes and they work perfect. I also have them link to the home page. what I now want to do is launch windows games (ex. skyrim, batman Arkam City, assassin's creen)

right now they are showing up like this

- Assassin's Creed
- Batman Arkam City
- NES
---Super Mario brothers
- Skyrim
-SNES
---Super Mario world

what I would like to do is to have them like this

- NES
--- Super Mario Brothers
- SNES
--- Super Mario World
- Windows games
--- Assassin's Creed
--- Batman Arkam City
--- Skyrim

how do I set up the launcher to group the windows games togeather. Im guessing I would have to create some kinde of "file launcher" but I dont know what I would put for the launching program (the place the emulators go)

im verry sorry if this still sounds a bit odd im going to 27 hours awake and just working on my media center to try to stay awake

Here is a post from JohnnyD2 who explains how to do it.

Create a file with "%*" (without the quotes) in it. Call it 'launchgame.bat' and save it on the C:\ drive.

In Advanced Launcher, at the folder level that holds the links, call up the context menu with 'c' and choose 'Edit Launcher'.
- Change the launching application, and point it to C:\launchgame.bat.
- Make sure 'Modify arguments' reads "%rom%".
- Make sure 'Modify Items extension' reads 'lnk' (LNK)

Then give it a whirl. You'll still have XBMC open so there may be issues with that, but this should get you up and running. You can improve the batch file later.


- JohnnyD2 - 2012-01-16

Angelscry Wrote:Version 1.7.3 : This new version of Advanced launcher add a new option for launchers and items edition. The new "Import Infos, Thumbnail & Fanart " option allows to automatically re-scrap the datas and images of a launcher or an item. So users will not be forced anymore to manually modify infos, then thumbs, then fanart to enterly modify a launcher or an item. Manual modification options still present.

Image

Wow! Thanks Angelscry! I'll update tonight and give it a go.

I really appreciate all your hard work.

Thanks again,

JD


- tria - 2012-01-16

Angelscry Wrote:It is the _run_rom function starting form line 1140 (def _run_rom(self, launcherID, romName):) of the launcher_plugin.py file : http://code.google.com/p/xbmc-advanced-launcher/source/browse/trunk/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py

Advanced Launcher is a program add-ons and it display is managed by skins. So, normally it is into the MyPrograms.xml file of the skin.

Thanks man. Yes I got the picture, and made some modifications to the XML and the way to add launchers. The only problem is that you updated your addon, and I lost all my modifications haha Smile

I should have worked on a separate copy, or at least backup the python file.

Edit:
Oh, thanks for the update. Now the arrangement is much better.


- Angelscry - 2012-01-16

Energy2k8 Wrote:Here is a post from JohnnyD2 who explains how to do it.

Create a file with "%*" (without the quotes) in it. Call it 'launchgame.bat' and save it on the C:\ drive.

In Advanced Launcher, at the folder level that holds the links, call up the context menu with 'c' and choose 'Edit Launcher'.
- Change the launching application, and point it to C:\launchgame.bat.
- Make sure 'Modify arguments' reads "%rom%".
- Make sure 'Modify Items extension' reads 'lnk' (LNK)

Then give it a whirl. You'll still have XBMC open so there may be issues with that, but this should get you up and running. You can improve the batch file later.
No, no and no. You do not need to use a .bat launcher file to use .lnk shortcuts file with Advanced Launcher. Windows shortcuts are internally supported by Advanced Launcher. Yes it works, but only because you have selected .LNK files as extension. JohnnyD2's launcher.bat file is not even launched. JohnnyD2's method will works only if you decide to desactivate the ".lnk support" into the launcher advanced options. To use .lnk shortcuts with Advanced Launcher : If this is not working on your system, that's mean you have something wrong (wrong launcher configuration). Please avoid posting incorrect explanation that will confuse other users.


- Angelscry - 2012-01-16

tria Wrote:Thanks man. Yes I got the picture, and made some modifications to the XML and the way to add launchers. The only problem is that you updated your addon, and I lost all my modifications haha Smile

I should have worked on a separate copy, or at least backup the python file.

Edit:
Oh, thanks for the update. Now the arrangement is much better.
It is always better to work on a duplicate version.


- orewagundam79 - 2012-01-16

Is there a way to use relative paths inside launchers.xml?
For example, I'd like to use:
<thumbpath>\userdata\addon_data\plugin.program.advanced.launcher\thumb\ps2\</thumbpath>

instead of

<thumbpath>C:\Users\myUser\AppData\Roaming\XBMC\userdata\addon_data\plugin.program.advanced.launcher\thumb\ps2\</thumbpath>

to make the whole xbmc configuration portable, but it doesn't seem to work.. (the python script fails when download thumbs)


- Angelscry - 2012-01-17

orewagundam79 Wrote:Is there a way to use relative paths inside launchers.xml?
For example, I'd like to use:
<thumbpath>\userdata\addon_data\plugin.program.advanced.launcher\thumb\ps2\</thumbpath>

instead of

<thumbpath>C:\Users\myUser\AppData\Roaming\XBMC\userdata\addon_data\plugin.program.advanced.launcher\thumb\ps2\</thumbpath>

to make the whole xbmc configuration portable, but it doesn't seem to work.. (the python script fails when download thumbs)
Unfortunately, no. There is no way to use relative paths. Advanced launcher use actually absolute paths. A possible solution to solve this will be for me to add an absolute to relative path conversion when the launchers.xml file is saved and to add a relative to absolute path conversion when the launchers.xml file is loaded. I think it may works. I will try to see if it is possible. If so, the functionnality will be availiable in the next release.


- ghostelement - 2012-01-17

Thanks for the updated version! I'm having some trouble getting it to auto pull thumbnails/fanart for the games automatically though. It seems to get the nfo for the games just fine when added, but I have to manually get the art.


- JohnnyD2 - 2012-01-17

Angelscry Wrote:No, no and no. You do not need to use a .bat launcher file to use .lnk shortcuts file with Advanced Launcher. Windows shortcuts are internally supported by Advanced Launcher. Yes it works, but only because you have selected .LNK files as extension. JohnnyD2's launcher.bat file is not even launched. JohnnyD2's method will works only if you decide to desactivate the ".lnk support" into the launcher advanced options. To use .lnk shortcuts with Advanced Launcher : If this is not working on your system, that's mean you have something wrong (wrong launcher configuration). Please avoid posting incorrect explanation that will confuse other users.

Angelscry is right - my method requires turning OFF .lnk file support and is not the preferred method for .lnk's. I forgot that step\disclaimer in the original instructions.

However I was confused with how to get Advanced Launcher to work with .lnk's and found the method I outlined worked well (Angelscry - is there a way of popping up a dialog to tell the user that they need to change the launching application to Explorer.exe if they're on Windows? I'm quite technical but I still didn't find it obvious.)

I'd suggest starting with Advanced Launcher's in-built functionality - not least since Angelscry put significant time and effort into coding it - and only using the method I suggested as a fall-back to avoid frustration.

Having said that, after I did understand the in-built method, I stuck with the .bat file because it also allows editing of the .bat file to add functionality such as killing XBMC, starting the game, then auto-restarting XBMC after the game has closed (Steam's another issue, but there are posts to get that working too).

I should also give proper credit at this point to Malte, the author of Rom Collection Browser who initially wrote the .bat file for his plugin.

Cheers,

JD


- orewagundam79 - 2012-01-17

Angelscry Wrote:Unfortunately, no. There is no way to use relative paths. Advanced launcher use actually absolute paths. A possible solution to solve this will be for me to add an absolute to relative path conversion when the launchers.xml file is saved and to add a relative to absolute path conversion when the launchers.xml file is loaded. I think it may works. I will try to see if it is possible. If so, the functionnality will be availiable in the next release.

Thanks, looking forward to the next version!Big Grin