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-06-01

(2012-06-01, 18:58)Sgt.Stedenko Wrote: Hi there,

This question must be asked before but is there a way to save the metadata .nfo as .xml?

I tried converting but it doesnt work.

Thanks in advance.
Metadata are saved in 2 place :
  • into the launcher.xml file. This file contain all the items information, images path, and launcher configuration. All into one same file.
  • into separate .nfo files. This files must be created from Advanced Launcher. One .nfo file per item. This .nfo files only contain item information (no image paths or launcher configuration).
Why do you need specifically a .xml file?




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Sgt.Stedenko - 2012-06-01

(2012-06-01, 20:20)Angelscry Wrote:
(2012-06-01, 18:58)Sgt.Stedenko Wrote: Hi there,

This question must be asked before but is there a way to save the metadata .nfo as .xml?

I tried converting but it doesnt work.

Thanks in advance.
Metadata are saved in 2 place :
  • into the launcher.xml file. This file contain all the items information, images path, and launcher configuration. All into one same file.
  • into separate .nfo files. This files must be created from Advanced Launcher. One .nfo file per item. This .nfo files only contain item information (no image paths or launcher configuration).
Why do you need specifically a .xml file?

You gonne shoot me now but im using mediabrowser/gamebrowser and it only reads xml files.
I need separate xml files, but I see its not gonne work.

Thanks for the reply!



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-02

(2012-06-01, 21:17)Sgt.Stedenko Wrote: You gonne shoot me now but im using mediabrowser/gamebrowser and it only reads xml files.
I need separate xml files, but I see its not gonne work.
No effectively it will not work. Even if it were xml files, they will need to have exactly the same fields and the same structure, to be compatible. Sorry.




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Sgt.Stedenko - 2012-06-02

Thanks, that was the answer i was looking for !


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - g.scholtens - 2012-06-02

(2012-06-01, 16:55)Angelscry Wrote:
(2012-06-01, 16:48)g.scholtens Wrote:
(2012-05-30, 21:08)Angelscry Wrote: If the game need a specific command line to start into full screen it must be included into the .lnk shortcut.

Do'nt know if the games need a specif command. But i can try if you tell me what to fill in and where i can fill this in.
That will depend of the game you want to start. And because I will surely not have the same games as you, I will not be able to tell you exactly what it the command line to use.

The way you start an application with a command line is dependant of the application (game, browser, emulator, etc...), of your operating system (Windows, Linux, OSX) and of what you want to do with it (start into full-screen, open a specific file, start with a specific configuration, etc...). Advanced Launcher it just used to execute form XBMC the command line.

It's a game called Street Figher x Tekken (pc version) and i want it to start in fullscreen. That's all i need.


Version 1.8.3 - Angelscry - 2012-06-02

Version 1.8.3 : This new version of Advanced Launcher bring several minor improvement for multi-disc items. First it add the new argument parameter named %rombasename% that could be used into the launcher configuration. For example if you have several items named :

Code:
Resident Evil 2 - cd1.iso
Resident Evil 2 - cd2.iso
Gran Turismo 2 [Arcade] - cd1.cue
Gran Turismo 2 [Simulation] - cd2.cue
Etc...

The %rombasename% argument will return :

Code:
Resident Evil 2
Resident Evil 2
Gran Turismo 2
Gran Turismo 2
Etc...

when the usual %romname% argument will return :

Code:
Resident Evil 2 - cd1
Resident Evil 2 - cd2
Gran Turismo 2 [Arcade] - cd1
Gran Turismo 2 [Simulation] - cd2
Etc...

This new version of Advanced Launcher also brings the possibility to display alternative disc titles for multi-disc items. To do that the alternative title must be included (between brackets characters) into the item filename. For example items named :

Code:
Resident Evil 2 - cd1.iso
Resident Evil 2 - cd2.iso
Gran Turismo 2 [Arcade] - cd1.cue
Gran Turismo 2 [Simulation] - cd2.cue

Will return the following disc item selection for Resident Evil :

Code:
Disc 1
Disc 2

But will return this following disc items selection for Gran Turismo 2 :

Code:
Arcade Disc
Simulation Disc

Image Image

Finally this version of Advanced Launcher bring several minor bug fixes : %romfile% and %romname% arguments for muti-disc items, nfo save bug under linux and translations corrections.

Changelog :
  • Add %rombasename% argument for multi-disc items.
  • Add multi-disc alternative titles display.
  • Fix %romfile% and %romname% arguments for muti-disc items.
  • Fix nfo files export unicode error under Linux.
  • Fix french translation.



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-02

(2012-05-31, 20:37)bzim Wrote: When you do have the time, please look at the second suggestion too (about local scraping images without the need for .cd1 extension). I also noticed that %romname% holds on to the .cd# extension. It would probably be better to strip that off. For example, I am trying to load a memory card using romname. If the .cd extension is kept, I'd have to have a separate memory card per disc in Final Fantasy 7, because it would try to load Final Fantasy 7.cd1.mcr for disc one, and Final Fantasy 7.cd2.mcr for disc two. Let me know if you need any more clarification

Your local scraping images without the need for .cd1 extension suggestion will not be added. Sorry. Into Advanced Launcher, images and NFO filenames are closely linked to their corresponding item filename. In the case of mutli-disc item they are linked to the corresponding first disc item filename. To solve this you just have to rename for example Fantasy 7.jpg as Fantasy 7.cd1.jpg or re-scrap them with Advanced Launcher. That's not a big deal.

Also the add of the alternative title support for mutli-disc items into the last Advanced Launcher version has dramatically complicated the things. For example, what will be the returned image and NFO filenames of this items ?

Code:
Resident Evil 2 [US] - cd1
Resident Evil 2 [JP] - cd1
Gran Turismo 2 [Arcade] - cd1

Theoretically :

Code:
Resident Evil 2 [US]
Resident Evil 2 [JP]
Gran Turismo 2

But decide when we will need to remove bracketed informations or not ?

That the same problem with the %romname% parameter. Name of the Final Fantasy 7.cd1.iso rom is Final Fantasy 7.cd1, not Final Fantasy 7. Final Fantasy 7.cd1 and Final Fantasy 7.cd2 are 2 different disks so 2 different roms. I have added a new parameter (%rombasename%) into the lase version of Advanced Launcher that will normally solve your problem.


RE: [RELEASE] Advanced Launcher - Application, Emulator and ROMs Launcher Addon for XBMC - Angelscry - 2012-06-02

(2012-06-02, 17:39)g.scholtens Wrote: It's a game called Street Figher x Tekken (pc version) and i want it to start in fullscreen. That's all i need.

Sorry g.scholtens. I do not have this game. I don't know how to start it directly into full-screen mode from command line. You will have to discover it by yourself or to found another person that was already able to do it. Confused



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - bzim - 2012-06-02

(2012-06-02, 18:51)Angelscry Wrote:
(2012-05-31, 20:37)bzim Wrote: When you do have the time, please look at the second suggestion too (about local scraping images without the need for .cd1 extension). I also noticed that %romname% holds on to the .cd# extension. It would probably be better to strip that off. For example, I am trying to load a memory card using romname. If the .cd extension is kept, I'd have to have a separate memory card per disc in Final Fantasy 7, because it would try to load Final Fantasy 7.cd1.mcr for disc one, and Final Fantasy 7.cd2.mcr for disc two. Let me know if you need any more clarification

Your local scraping images without the need for .cd1 extension suggestion will not be added. Sorry. Into Advanced Launcher, images and NFO filenames are closely linked to their corresponding item filename. In the case of mutli-disc item they are linked to the corresponding first disc item filename. To solve this you just have to rename for example Fantasy 7.jpg as Fantasy 7.cd1.jpg or re-scrap them with Advanced Launcher. That's not a big deal.

Also the add of the alternative title support for mutli-disc items into the last Advanced Launcher version has dramatically complicated the things. For example, what will be the returned image and NFO filenames of this items ?

Code:
Resident Evil 2 [US] - cd1
Resident Evil 2 [JP] - cd1
Gran Turismo 2 [Arcade] - cd1

Theoretically :

Code:
Resident Evil 2 [US]
Resident Evil 2 [JP]
Gran Turismo 2

But decide when we will need to remove bracketed informations or not ?

That the same problem with the %romname% parameter. Name of the Final Fantasy 7.cd1.iso rom is Final Fantasy 7.cd1, not Final Fantasy 7. Final Fantasy 7.cd1 and Final Fantasy 7.cd2 are 2 different disks so 2 different roms. I have added a new parameter (%rombasename%) into the lase version of Advanced Launcher that will normally solve your problem.

First, thank you for taking the time to fix the %romname% issue. Creating %rombasename% was a very elegant solution to the problem!

As far as the scraping suggestion, I understand the complexities, especially after adding the nice disc naming feature. I had actually already renamed my images/nfo files to include the .cd1 extension.

My only suggestion at this point would be to add a directive prefix (something like cd- or cd#-) to help you pick out the cd name better. Currently, I'm storing other disc information within brackets as well, so I have to make sure that the cd name comes first (not a big deal, really!). For example, currently I would need:
Code:
Works: Resident Evil 2 [Leon][SLUS-00748].cd1.bin
Broken: Resident Evil 2 [SLUS-00748][Leon].cd1.bin
in order for the cd name to get picked out correctly.


Code:
Something like:
Resident Evil 2 [SLUS-00748][cd-Leon].cd1.bin

Or even better:
Resident Evil 2 [SLUS-00748][cd1-Leon].bin
might alleviate some of the guesswork you have to do now with name selection (and allow it to be anywhere in the filename). Using a cd#- directive, could even eliminate the need for the .cd# suffix (though it's probably more work on your part than would be worth it in the end).

However, this is only a minor suggestion. Things seem to be working great. The improvements you've made to multi-disc support are awesome!

As a side note, filtering out things between brackets before checking for a multiple discs also fixed an issue I was having with having the SLUS id's attached to each disc. This was a great improvement!



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - bzim - 2012-06-03

After a little further testing, I noticed that %rombasename% only works for the first cd in a multi-disc game.

I've fixed this on my end by changing the base_filename method to the following:

Code:
def base_filename(filename):  
    filename = re.sub('(\[.*?\]|\(.*?\))', '', filename)
    filename = re.sub('(\.|-| |_)cd\d+$', '', filename)
    return filename.rstrip()

This fixes the issue of only working with the first disc, as well as filtering other directives from the filename, even if they are not part of a multi-disc game. It also avoids potential side affects of using clean_filename (replacing _ - . etc).


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-03

Version 1.8.4 : This version of Advanced Launcher only fix %rombasename% bug occurring when the selected multi-disc is not the first one.

Changelog :
  • Fix %rombasename$ bug for not 1st multi-disc



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - bzim - 2012-06-03

Hey Angelscry,

What are your thoughts on having %rombasename% filter info between brackets [], even if not part of a multi-disc selection? To me, it feels more consistent to have it filter regardless of whether it is single or multi-disc.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - g.scholtens - 2012-06-03

does soneone else know ho to open a .exe always in fullscreen?

I got a windows 7 machine, with local apps en games. But i can't figure out how to open them into fullscreen. When i start the apps or games local they just open into fullscreen. But when i start them from advanched launcher to always open in window moded. I check the option to open in full.

Is there something i must enter at the command line from the .exe.?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - bzim - 2012-06-03

g.sholtens,

It depends on the exe (it is application dependent). Which emulator are you trying to run?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - g.scholtens - 2012-06-03

(2012-06-03, 16:05)bzim Wrote: g.sholtens,

It depends on the exe (it is application dependent). Which emulator are you trying to run?

This's what i have done:

Stand Alone Launchers Creation

To create a stand alone launcher, from the XBMC home menu, go into Programs / Advanced Launcher. Then, go into the context menu and select the Create New Launcher option:

1.
Select the Standalone (normal PC executable) option.

2.
Browse and select the executable file of the application you want to start. ( for my example sonic.exe, latest sonic game for windows)

3.
Enter executable file arguments (i.e. command line parameters) if necessary. If your application do not have a command line support, let it blank. If your application have or need command line information, enter them here. (in my option blank)
4.
Indicate the title of the launcher. It will be under this title that will be displayed the launcher under XBMC. (sonic 4)

5.
Choose the platform. This parameter is used by metadata and image scrapers. If your application is not a game, this parameter is not important. In other cases, select the option corresponding to the platform of the game.
If the default launcher thumb and fanart paths have not been set : (IBM Pc compatible)

6.
Select the thumbnails path. This is the folder where will be stored the thumbnail image of the launcher. If there is already an image (jpeg, gif, png or bmp format) with the same name than the executable file or with the _thumb suffix, this image will be automatically attributed to the launcher.

7.
Select the fanarts path. This is the directory where will be stored the fanart image of the launcher. If there is already an image (jpeg, gif, png or bmp format) with the same name than the executable or with the _fanart suffix, this image will be automatically attributed to the launcher.