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


- woo73 - 2011-02-10

Ah ... ok.

Here is the link:
http://pastebin.com/0KYVPL7V

woo73


- fr500 - 2011-02-11

therealjoeblow Wrote:I tested with "," commas, it fails with that too. We could argue opinion on whether "." belongs, you will find hundreds of thousands of people the world over (if not millions) who regularly use "." in their filenames, and as far as at least windows based systems goes, here are the "official" rules:

Code:
Legal characters in NTFS include the following:

    [ ] . ; = ( ) and most other punctuation except those noted below

The period (.) cannot be the first or only character in the filename

Illegal Characters:
The following characters are not permitted in Windows file or directory names:

     / \ : * ? " < > |

Could we just agree that the script should work properly with *all* legal filenaming schemes, including all legal punctuation? Applications really shouldn't be starting new character-based filename constraints that aren't imposed by the OS. That will surely confuse users and lead to problems.

Cheers
The REAL Joe


The big problem with commas is that you use them to separate fields, attributes, etc when programming.

I think this is due to windows implementation of spaces in filenames you have to use quotes when there are spaces, so the commas in between get somehow lost.


- therealjoeblow - 2011-02-11

fr500 Wrote:The big problem with commas is that you use them to separate fields, attributes, etc when programming.

I think this is due to windows implementation of spaces in filenames you have to use quotes when there are spaces, so the commas in between get somehow lost.

Well, I'm no programming guru (limited VB6 experience), but it appears that there's a fundamental problem in this script.

XBMC itself has successfully scraped (with IMDB, TVDB, MovieDB and Allmusic scrapers) over 2000 of my movies, 3500 TV show episodes and 15,000 songs that use all manner of spaces and punctuation in their filenames, and it has never stumbled on one yet.

All I suggest/ask is that this script/addon at least be compatible with the full range of legal filename characters that XBMC itself and all other Windows and Linux based programs are...

Cheers
The REAL Joe


- srsobieraj - 2011-02-11

therealjoeblow Wrote:Well, I'm no programming guru (limited VB6 experience), but it appears that there's a fundamental problem in this script.

XBMC itself has successfully scraped (with IMDB, TVDB, MovieDB and Allmusic scrapers) over 2000 of my movies, 3500 TV show episodes and 15,000 songs that use all manner of spaces and punctuation in their filenames, and it has never stumbled on one yet.

All I suggest/ask is that this script/addon at least be compatible with the full range of legal filename characters that XBMC itself and all other Windows and Linux based programs are...

Cheers
The REAL Joe

RealJoe is correct. I've never understoon why ALA has such a hard time with special characters and punctuation. Can't we hand-roll a "convertFilepathToXml" function for ALA? I should be able to have a file named "This.is.a.game.name.xyz" and ALA should be able to understand that "xyz" is the extension and not "is".


- fr500 - 2011-02-11

The problem is not scraping, it scrapes just fine no matter spaces or whatnot. Al least for me. The problem is running the apps in my case


- Angelscry - 2011-02-11

therealjoeblow Wrote:Well, I'm no programming guru (limited VB6 experience), but it appears that there's a fundamental problem in this script.

XBMC itself has successfully scraped (with IMDB, TVDB, MovieDB and Allmusic scrapers) over 2000 of my movies, 3500 TV show episodes and 15,000 songs that use all manner of spaces and punctuation in their filenames, and it has never stumbled on one yet.

All I suggest/ask is that this script/addon at least be compatible with the full range of legal filename characters that XBMC itself and all other Windows and Linux based programs are...

Cheers
The REAL Joe

srsobieraj Wrote:RealJoe is correct. I've never understoon why ALA has such a hard time with special characters and punctuation. Can't we hand-roll a "convertFilepathToXml" function for ALA? I should be able to have a file named "This.is.a.game.name.xyz" and ALA should be able to understand that "xyz" is the extension and not "is".

I have take a look last evening at this "." related problem. I have done the text on my Akira comics (under cbr format). I have put all the .cbr files into the same directory. I have put the corresponding thumb and fanart images also into this directory using the _thumb and _fanart filename extension. Here is the directory content :
Code:
-rw------- 1 gwenael gwenael 39505658  6 oct  2007 akira.t01.l.autoroute.cbr
-rw------- 1 gwenael gwenael    53912 10 fév 23:37 akira.t01.l.autoroute_fanart.jpg
-rw------- 1 gwenael gwenael   113160  6 oct  2007 akira.t01.l.autoroute_thumb.jpg
-rw------- 1 gwenael gwenael 41607215  6 oct  2007 akira.t02.cycle.wars.cbr
-rw------- 1 gwenael gwenael    86875 10 fév 23:37 akira.t02.cycle.wars_fanart.jpg
-rw------- 1 gwenael gwenael   106938  6 oct  2007 akira.t02.cycle.wars_thumb.jpg
-rw------- 1 gwenael gwenael 38784218  6 oct  2007 akira.t03.les.chasseurs.cbr
-rw------- 1 gwenael gwenael   130565 10 fév 23:37 akira.t03.les.chasseurs_fanart.jpg
-rw------- 1 gwenael gwenael    96013  6 oct  2007 akira.t03.les.chasseurs_thumb.jpg
-rw------- 1 gwenael gwenael 42220698  6 oct  2007 akira.t04.le.réveil.cbr
-rw------- 1 gwenael gwenael    50825 10 fév 23:37 akira.t04.le.réveil_fanart.jpg
-rw------- 1 gwenael gwenael   126088  6 oct  2007 akira.t04.le.réveil_thumb.jpg
-rw------- 1 gwenael gwenael 42309727  6 oct  2007 akira.t05.désespoir.cbr
-rw------- 1 gwenael gwenael    86720 10 fév 23:38 akira.t05.désespoir_fanart.jpg
-rw------- 1 gwenael gwenael   106295  6 oct  2007 akira.t05.désespoir_thumb.jpg
-rw------- 1 gwenael gwenael 43294220  6 oct  2007 akira.t06.chaos.cbr
-rw------- 1 gwenael gwenael   104404 10 fév 23:39 akira.t06.chaos_fanart.jpg
-rw------- 1 gwenael gwenael   105776  6 oct  2007 akira.t06.chaos_thumb.jpg
-rw------- 1 gwenael gwenael 42267069  6 oct  2007 akira.t07.révélations.cbr
-rw------- 1 gwenael gwenael    24090 10 fév 23:39 akira.t07.révélations_fanart.jpg
-rw------- 1 gwenael gwenael   100222  6 oct  2007 akira.t07.révélations_thumb.jpg
-rw------- 1 gwenael gwenael 41546353  6 oct  2007 akira.t08.déluge.cbr
-rw------- 1 gwenael gwenael    40088 10 fév 23:39 akira.t08.déluge_fanart.jpg
-rw------- 1 gwenael gwenael    94348  6 oct  2007 akira.t08.déluge_thumb.jpg
-rw------- 1 gwenael gwenael 44414962  6 oct  2007 akira.t09.visions.cbr
-rw------- 1 gwenael gwenael    65816 10 fév 23:40 akira.t09.visions_fanart.jpg
-rw------- 1 gwenael gwenael   126437  6 oct  2007 akira.t09.visions_thumb.jpg
-rw------- 1 gwenael gwenael 42736435  6 oct  2007 akira.t10.revanche.cbr
-rw------- 1 gwenael gwenael   199094 10 fév 23:40 akira.t10.revanche_fanart.jpg
-rw------- 1 gwenael gwenael   124970  6 oct  2007 akira.t10.revanche_thumb.jpg
-rw------- 1 gwenael gwenael 37220099  6 oct  2007 akira.t11.chocs.cbr
-rw------- 1 gwenael gwenael    35043 10 fév 23:42 akira.t11.chocs_fanart.jpg
-rw------- 1 gwenael gwenael   122120  6 oct  2007 akira.t11.chocs_thumb.jpg
-rw------- 1 gwenael gwenael 32982955  6 oct  2007 akira.t12.lumières.cbr
-rw------- 1 gwenael gwenael   247464 10 fév 23:42 akira.t12.lumières_fanart.jpg
-rw------- 1 gwenael gwenael   107339  6 oct  2007 akira.t12.lumières_thumb.jpg
-rw------- 1 gwenael gwenael 23989031  6 oct  2007 akira.t13.feux.cbr
-rw------- 1 gwenael gwenael    57903 10 fév 23:43 akira.t13.feux_fanart.jpg
-rw------- 1 gwenael gwenael   104303  6 oct  2007 akira.t13.feux_thumb.jpg
-rw------- 1 gwenael gwenael 26222999  6 oct  2007 akira.t14.consécration.cbr
-rw------- 1 gwenael gwenael    38592 10 fév 23:43 akira.t14.consécration_fanart.jpg
-rw------- 1 gwenael gwenael    84010 13 mar  2002 akira.t14.consécration_thumb.jpg
I have created a new launcher, selected the application, indicated the arguments, the items, thumbs and fanarts paths, like this :
Code:
    <launcher>
        <name>Akira</name>
        <application>/usr/bin/qcomicbook</application>
        <args>"%rom%"</args>
        <rompath>/home/gwenael/Desktop/BD/Akira/</rompath>
        <thumbpath>/home/gwenael/Desktop/BD/Akira/</thumbpath>
        <fanartpath>/home/gwenael/Desktop/BD/Akira/</fanartpath>
        <extrafanartpath>/home/gwenael/Desktop/BD/Akira/</extrafanartpath>
        <romext>cbr|cbz</romext>
        <platform>IBM PC Compatible</platform>
        <thumb>/home/gwenael/Desktop/BD/Akira/akira.t01.l.autoroute_thumb.jpg</thumb>
        <fanart>/home/gwenael/Desktop/BD/Akira/akira.t01.l.autoroute_fanart.jpg</fanart>
        <genre>Science-Fiction</genre>
        <release>1982</release>
        <publisher>Katsuhiro Otomo</publisher>
        <launcherplot>Tokyo est détruite par une mystérieuse explosion en décembre 1982 (1992 dans la version occidentale) et cela déclenche la Troisième Guerre mondiale, avec la destruction de nombreuses cités par des armes nucléaires.En 2019 (2030 selon les versions colorisées américaine et française), Neo-Tokyo est une mégalopole corrompue et sillonnée par des bandes de jeunes motards désœuvrés et drogués. Une nuit, l’un d'eux, Tetsuo, a un accident de moto en essayant d'éviter un étrange garçon qui se trouve sur son chemin. Blessé, Tetsuo est capturé par l’armée japonaise. Il est l’objet de nombreux tests dans le cadre d’un projet militaire ultra secret visant à repérer et former des êtres possédant des prédispositions à des pouvoirs psychiques (télépathie, téléportation, télékinésie, etc.). Les amis de Tetsuo, dont leur chef Kaneda, veulent savoir ce qui lui est arrivé, car quand il s’évade et se retrouve en liberté, il n’est plus le même… Tetsuo teste ses nouveaux pouvoirs et veut s’imposer comme un leader parmi les junkies, ce qui ne plaît pas à tout le monde, en particulier à Kaneda.En parallèle se nouent des intrigues politiques : l’armée essaye par tous les moyens de continuer le projet en espérant percer le secret de la puissance d’Akira, un enfant doté de pouvoirs psychiques extraordinaires (et de la maîtriser pour s'en servir par la suite), tandis que les politiques ne voient pas l’intérêt de continuer à allouer de l’argent à un projet de plus de 30 ans qui n'a jamais rien rapporté. Le phénomène Akira suscite également l’intérêt d’un mouvement révolutionnaire qui veut se l’approprier à des fins religieuses (Akira serait considéré comme un « sauveur » par ses fidèles). Kaneda va se retrouver malgré lui au centre d’une lutte entre les révolutionnaires et le pouvoir en place.</launcherplot>
        <minimize>true</minimize>
        <lnk></lnk>
        <roms>
        </roms>
    </launcher>

Then I have desactivated all the scrapers (data/thumbs and fanart) from the launcher context menu and started a scan. All the thumbs and fanarts images have been found correctly

Image

Here is the generated launchers.xml file : http://pastebin.com/PQyfwTwj

I have done this under my Linux and Windows 7 system, and in both cases the thumbs and fanarts images have been added correctly. So... I think there is something wrong on your system, but I do not know why Eek.

fr500 Wrote:The problem is not scraping, it scrapes just fine no matter spaces or whatnot. Al least for me. The problem is running the apps in my case
I'm actually working actively on it...


- Angelscry - 2011-02-11

@therealjoeblow
Angelscry Wrote:I have done this under my Linux and Windows 7 system, and in both cases the thumbs and fanarts images have been added correctly. So... I think there is something wrong on your system, but I do not know why Eek.
Maybe... it is the presence of white spaces into your paths that generate your thumbs and fanarts problem.Shocked... It will also check this. But... it still strange.... The more strange is that Advanced Launcher is able to found the thumbs and the fanarts for your first pdf file and not for the other. Advanced Launcher if using a For loop. If it works for the first pdf file it MUST works for the others. I'm still on it Wink


- Vrok - 2011-02-11

fr500 Wrote:Here is a little tutorial for those who have steam and launch and depend on it for your gaming needs.

If you just change these 2 lines and use this as a Launcher for steam .url files everything works without having to make additional batch files per game Smile

Code:
@echo off
%1
timeout 60

rem set the next variable to the game imagename
rem (found on task manager while the game is runnimg
set process_1="GameOverlayUI.exe"



- therealjoeblow - 2011-02-11

Angelscry Wrote:@therealjoeblow
Maybe... it is the presence of white spaces into your paths that generate your thumbs and fanarts problem.Shocked... It will also check this. But... it still strange.... The more strange is that Advanced Launcher is able to found the thumbs and the fanarts for your first pdf file and not for the other. Advanced Launcher if using a For loop. If it works for the first pdf file it MUST works for the others. I'm still on it Wink

Thanks. I'm using Win7 on my laptop just as a test for now, but plan to implement this on my HTPC at home this weekend which runs WinXP (x86).

As I said before, I have all manner of folders and movie/tv/music files successfully cataloged and scraped with the built-in routines of XBMC, and they have all kinds of spaces, punctuation and *really* long filenames with no issues whatsoever. If the OS can create the path and filename, XBMC can index it.

I appreciate the effort! This will be a *GREAT* solution for those wanting to catalog their eMags and eBooks when it's finished!

Cheers
The REAL Joe


- fr500 - 2011-02-12

Vrok Wrote:If you just change these 2 lines and use this as a Launcher for steam .url files everything works without having to make additional batch files per game Smile

Code:
@echo off
%1
timeout 60

rem set the next variable to the game imagename
rem (found on task manager while the game is runnimg
set process_1="GameOverlayUI.exe"

Hehe nice Big Grin thing is I don't use in game interface on my htpc as it bothers me (you get messages on a huge TV where anyone can see them)

Anyway I will post a new revision with no timeouts so closing programs should be quicker and will tolerate any startup time, now if the game takes longer than 60s it will abort. Haven't got around to make it tidy and understandable.

I'm so glad the script is useful


- Vrok - 2011-02-12

fr500 Wrote:you get messages on a huge TV where anyone can see them

I think (not too sure going to try it) that you only get sound on new messages and have to shift-tab to see the actual message ingame


- mbbransc - 2011-02-12

angelscry -

When I open Adv Launcher, I can only see my DVD drive. It's a laptop so it's not convenient to unplug it. Do you have any suggestions?

thx


- espengaasemyr - 2011-02-12

mbbransc Wrote:angelscry -

When I open Adv Launcher, I can only see my DVD drive. It's a laptop so it's not convenient to unplug it. Do you have any suggestions?

thx

Add the games sources in file managerSmile


- fr500 - 2011-02-12

Vrok Wrote:I think (not too sure going to try it) that you only get sound on new messages and have to shift-tab to see the actual message ingame

Oh yes you're right only a toaster popup and I think it can be disabled too thanks


Version 1.2.0 - Angelscry - 2011-02-12

This new version of advanced launcher is mostly dedicated to the improvement on the command line support.

Change Log
  • Fix local thumbs and fanart images search method: Fix the bug reported by therealjoeblow about the automatic import of local thumbs and fanart images.
  • Fix launcher advanced menu error on windows system: The menu was not accessible. It s now fixed.
  • Add new way to start application for windows system: This new way to start application allows finally to have a 100% compatible windows command line support for Advanced Launcher. For example, it fix the bug with romnames that was containing comas.
  • Remove Wait/state option for windows system: This option was the cause of the non 100% compatible windows command line support. So I have simply removed it. Users that will want now to pause XBMC will need to use an external script (.bat or .sh) to do it.
  • Auto-hide launched .bat file window: Due to the remove of the Wait/state option, the use of external scripts (.bat or .sh) will be increasingly necessary. With this new feature, any .bat files windows started as launcher will been automatically hidden.
  • Add %rompath% and %apppath% command line parameters: This 2 news argument parameters will allows user to have a more flexible command line (for the use of specific configuration or savestate files). %apppath% is corresponding to the path of the started application and %rompath% is corresponding to the path of the roms folder.
  • Stop playing media before launch any application: If a media (audio or video) is playing on XBMC, it will be automatically stopped to avoid any possible sound conflict between XBMC and the started applications.
  • Fix progress display when all scrapers are deactivated: Hide the "Not Found" message displayed when scanning items with deactivated scrapers.