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


- frellAn - 2010-12-24

The only thing that's missing with this plugin is the ability to browse by genre, studio or year in my opinion. What's you thoughts about that?


- Angelscry - 2010-12-25

frellAn Wrote:The only thing that's missing with this plugin is the ability to browse by genre, studio or year in my opinion. What's you thoughts about that?
Will be maybe implemanted when I will foundtime to work on the advanced search options.


- BORIStheBLADE - 2010-12-25

Angelscry Wrote:Go to Launcher context menu, select "Edit Launcher" option, then select "Change Thumbnails Image", finally choose "Select a Local Image" and select the image you want to be used for your MAME launcher.


Thank you!!


- HeWhoWas - 2010-12-25

Another bug :-)

Code:
11:50:40 T:2611026800 M:3554881536  NOTICE: -->Python Interpreter Initialized<--
11:50:40 T:2611026800 M:3554881536  NOTICE: Mode AddOn ON
11:50:40 T:2611026800 M:3554881536  NOTICE: /home/tv/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
11:50:40 T:2611026800 M:3554881536  NOTICE: -1
11:50:40 T:2611026800 M:3551379456  NOTICE: Launcher: found 4 launchers
11:50:50 T:2611026800 M:3553701888  NOTICE: /media/Apps/Games/ROMS/Wii/thumbs/toyStoryl.jpg
11:50:50 T:2611026800 M:3553701888  NOTICE: http://image.com.com/gamespot/images/2003/all/boxshots2/945066_166343.jpg
11:50:50 T:3021707136 M:3553701888   ERROR: Texture manager unable to load file: /media/Apps/Games/ROMS/Wii/thumbs/toyStoryl.jpg
11:50:53 T:2611026800 M:3553607680   ERROR: Previous line repeats 2 times.
11:50:53 T:2611026800 M:3553607680  NOTICE: 6
11:50:53 T:2611026800 M:3553607680  NOTICE: 1
11:50:53 T:3021707136 M:3553607680   ERROR: ClearBlock: Trying to clear non existent block /home/tv/.xbmc/userdata/
11:50:55 T:2611026800 M:3554197504   ERROR: Error Type: exceptions.IOError
11:50:55 T:2611026800 M:3554197504   ERROR: Error Contents: [Errno 2] No such file or directory: ''
11:50:55 T:2611026800 M:3554197504   ERROR: Traceback (most recent call last):
                                              File "/home/tv/.xbmc/addons/plugin.program.advanced.launcher/addon.py", line 20, in ?
                                                plugin.Main()
                                              File "/home/tv/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 132, in __init__
                                                self._edit_rom(os.path.dirname(launcher), os.path.basename(launcher))
                                              File "/home/tv/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 247, in _edit_rom
                                                self._scrap_thumb_rom(launcher,rom)
                                              File "/home/tv/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 310, in _scrap_thumb_rom
                                                h = urllib.urlretrieve(img_url,file_path)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 89, in urlretrieve
                                                return _urlopener.retrieve(url, filename, reporthook, data)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 222, in retrieve
                                                fp = self.open(url, data)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 190, in open
                                                return getattr(self, name)(url)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 426, in open_file
                                                return self.open_local_file(url)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 440, in open_local_file
                                                raise IOError(e.errno, e.strerror, e.filename)
                                            IOError: [Errno 2] No such file or directory: ''
11:50:58 T:3021707136 M:3554226176   ERROR: GLX: Same window as before, refreshing context

I was trying to import a thumbnail from GameFAQs manually. On another note, none of my roms have fanart at all. I see the files in the fanart folder but the picture isn't displayed - just a fade to white colour splash.


- frellAn - 2010-12-25

HeWhoWas Wrote:On another note, none of my roms have fanart at all. I see the files in the fanart folder but the picture isn't displayed - just a fade to white colour splash.

That's probably skin dependent.


- frellAn - 2010-12-25

Angelscry Wrote:Will be maybe implemanted when I will foundtime to work on the advanced search options.

Great, take your time and thanks for an amazing job on improving Launcher, you made it exactly like I hoped someone would when Dharma got stable Smile


- malte - 2010-12-25

Angelscry Wrote:With this 3 "new" variables I think we will be able to cover all the emulators command line possibilities. It will not be so difficult to add this 3 variables which will be all automatically deducted from the <filename></filename> tags. The only change will be into the <args></args> tags of the emulator where the %rom%, %romfile% and %romname% will be necessary.
Angelscry Wrote:In parallel, of those improvements, I think I will also start to write wiki pages concerning the configuration of the emulators and Advanced Launcher in collaboration with malte the creator of the Rom Collection Browser.

I think I will join this route (adding %romfile% and %romname%, %rom% is already available in RCB). This will also ease up writing a common wiki page for both addons. Maybe quakes will also jump on so we can combine input of three user bases there.

htpc_guy Wrote:Question on how ALA handles games with multiple discs, i.e. Final Fantasy VII or Metal Gear Solid for PSX
There are also some emus like uae that support launching multiple discs at one time "uae -0 file1.adf -1 file2.adf". In RCB I support this with this syntax: "uae {-%I %ROM%}". The code in the {} will be repeated per rom file and %I% will be replaced with the (zero-based) index of the current file. Just an idea as we started to share the launching syntaxSmile

htpc_guy Wrote:I downloaded the RCB addon and it comes with a script that works in Linux Windows or Mac. No modifications were needed for the script and it works flawlessly.
Happy th share (did not write it on my own): Windows, Linux, Mac. Code to launch (needs some rework): link.


- HeWhoWas - 2010-12-25

frellAn Wrote:That's probably skin dependent.

I'm using Alaska Revisited Mod - I actually thought this was the only skin that supported it :-P


- rbrohman - 2010-12-25

htpc guy Wrote:Quick note, [Linux]

I had issues with XBMC running in the background while playing Mupen64plus roms. The frame rate was terrible. I tried running the Launcher.sh script (discussed in the last launcher thread and several other threads, I'm sure you've seen it) and I never got it to work. I downloaded the RCB addon and it comes with a script that works in Linux Windows or Mac. No modifications were needed for the script and it works flawlessly. I use the RCB AppLauncher.sh script as the emulator and then use the emulator path and normal arguments to launch the rom. It kills xbmc, loads the emulator and then reopens xbmc after the emulator is closed. I highly suggest this method for more powerful emulators like mupen or pcsx. I can now run these games with system resources and I don't drop any frames.

malte Wrote:Happy th share (did not write it on my own): Windows, Linux, Mac. Code to launch (needs some rework): link.

htpc_guy,

I've been struggling to get N64 emulation going myself - poor performance when using ALA with M64+. Would you mind elaborating on exactly how you've set your system up? Which of the scripts that malte linked to are you using? perhaps you could post your launchers.xml entry for n64?

thanks


- HeWhoWas - 2010-12-25

rbrohman Wrote:htpc_guy,

I've been struggling to get N64 emulation going myself - poor performance when using ALA with M64+. Would you mind elaborating on exactly how you've set your system up? Which of the scripts that malte linked to are you using? perhaps you could post your launchers.xml entry for n64?

thanks

Having never looked at python in any depth, just from reading the source I'm assuming you'd call it like "applaunch.sh 'mupen64plus %ROM%'". You may have to play around with it.

Malte only posted 1 script (Win32 and Linux), and then he linked to a section of code in Rom Manager that is calling the scripts as an example.

ALL applaunch.sh does is close XBMC, blindly run whatever command it's given, and then when the app exits it restarts XBMC.

Edit - Just gave it a shot, works just as I thought. If you pass this through: sh applaunch.sh /usr/games/mupen64plus (Linux) or whatever the windows equivilant is (Shouldn't be too different.)

It closed down XBMC (Even though it wasn't called from it, which made my gf unimpressed) and started mupen with no rom loaded. Close mupen and XBMC pops back up.


- Angelscry - 2010-12-25

HeWhoWas Wrote:Another bug :-)

Code:
11:50:40 T:2611026800 M:3554881536  NOTICE: -->Python Interpreter Initialized<--
11:50:40 T:2611026800 M:3554881536  NOTICE: Mode AddOn ON
11:50:40 T:2611026800 M:3554881536  NOTICE: /home/tv/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
11:50:40 T:2611026800 M:3554881536  NOTICE: -1
11:50:40 T:2611026800 M:3551379456  NOTICE: Launcher: found 4 launchers
11:50:50 T:2611026800 M:3553701888  NOTICE: /media/Apps/Games/ROMS/Wii/thumbs/toyStoryl.jpg
11:50:50 T:2611026800 M:3553701888  NOTICE: http://image.com.com/gamespot/images/2003/all/boxshots2/945066_166343.jpg
11:50:50 T:3021707136 M:3553701888   ERROR: Texture manager unable to load file: /media/Apps/Games/ROMS/Wii/thumbs/toyStoryl.jpg
11:50:53 T:2611026800 M:3553607680   ERROR: Previous line repeats 2 times.
11:50:53 T:2611026800 M:3553607680  NOTICE: 6
11:50:53 T:2611026800 M:3553607680  NOTICE: 1
11:50:53 T:3021707136 M:3553607680   ERROR: ClearBlock: Trying to clear non existent block /home/tv/.xbmc/userdata/
11:50:55 T:2611026800 M:3554197504   ERROR: Error Type: exceptions.IOError
11:50:55 T:2611026800 M:3554197504   ERROR: Error Contents: [Errno 2] No such file or directory: ''
11:50:55 T:2611026800 M:3554197504   ERROR: Traceback (most recent call last):
                                              File "/home/tv/.xbmc/addons/plugin.program.advanced.launcher/addon.py", line 20, in ?
                                                plugin.Main()
                                              File "/home/tv/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 132, in __init__
                                                self._edit_rom(os.path.dirname(launcher), os.path.basename(launcher))
                                              File "/home/tv/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 247, in _edit_rom
                                                self._scrap_thumb_rom(launcher,rom)
                                              File "/home/tv/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 310, in _scrap_thumb_rom
                                                h = urllib.urlretrieve(img_url,file_path)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 89, in urlretrieve
                                                return _urlopener.retrieve(url, filename, reporthook, data)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 222, in retrieve
                                                fp = self.open(url, data)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 190, in open
                                                return getattr(self, name)(url)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 426, in open_file
                                                return self.open_local_file(url)
                                              File "/usr/lib/xbmc/system/python/python24.zip/urllib.py", line 440, in open_local_file
                                                raise IOError(e.errno, e.strerror, e.filename)
                                            IOError: [Errno 2] No such file or directory: ''
11:50:58 T:3021707136 M:3554226176   ERROR: GLX: Same window as before, refreshing context

I was trying to import a thumbnail from GameFAQs manually. On another note, none of my roms have fanart at all. I see the files in the fanart folder but the picture isn't displayed - just a fade to white colour splash.
Could you please give me the title and the game system of the game you try to manually import the thumbs? It will help me to reproduce the error and fix it. Thank you !!!!


- htpc guy - 2010-12-25

HeWhoWas Wrote:Having never looked at python in any depth, just from reading the source I'm assuming you'd call it like "applaunch.sh 'mupen64plus %ROM%'". You may have to play around with it.

Malte only posted 1 script (Win32 and Linux), and then he linked to a section of code in Rom Manager that is calling the scripts as an example.

ALL applaunch.sh does is close XBMC, blindly run whatever command it's given, and then when the app exits it restarts XBMC.

Edit - Just gave it a shot, works just as I thought. If you pass this through: sh applaunch.sh /usr/games/mupen64plus (Linux) or whatever the windows equivilant is (Shouldn't be too different.)

It closed down XBMC (Even though it wasn't called from it, which made my gf unimpressed) and started mupen with no rom loaded. Close mupen and XBMC pops back up.

First off, don't forget to make the .sh file excicutable. I'm running a full linux install w/ gui so I right clicked on the file and checked the box in the properties. For a live install there is a command you could run:

Code:
chmod +x applaunch.sh
(I'm almost certain that that should work. May have to be run as sudo.

Code:
<launcher>

    <name>Nintendo 64 (N64)</name>
        
    <application>/home/htpc/applaunch.sh</application>
        
    <args>/usr/games/mupen64plus --nogui --fullscreen --noask</args>
    <rompath>/home/htpc/Documents/N64_Roms</rompath

        <thumbpath>/home/htpc/Documents/N64_Roms</thumbpath>
    
        <fanartpath>/home/htpc/Documents/N64_Roms</fanartpath>
        
    <romext>z64|n64</romext>
        
    <platform>Nintendo 64</platform>
        
    <thumb>/home/htpc/Documents/647px-nintendo_64_logo.png</thumb>    
        
        <fanart>/home/htpc/Documents/N64_fanart.bmp</fanart>
        
    <genre>3D Console</genre>
        
    <release>1997</release>
        
    <publisher>Nintendo</publisher>
        
    <launcherplot></launcherplot>
        <rom></rom>
</launcher>

So if you take a look at the xml file you can see that ALA launches applaunch.sh
It in turn closes XBMC and then uses the arguments passed to it from ALA.
The arguments launch Mupen without a gui and fullscreen. When you close the emulator applaunch.sh will reopen XBMC.


- KiSUAN - 2010-12-25

Hi, I have one silly request if possible, to have the option to set a Fanart & Thumb Folder by Addon options and not to have to point every time I add something, that would spare me a lot of time. As I delete and later install again many games I place the Fanart & Thumb in a separate folder so I don't have to be careful to delete and search again for them also. And of course that automatic scan to search from that folder, dunno if it would work, think so as it saves the images with the application name, so I guess it search by specific name, not just fanart/thumb.jpg.

Thank you in advance and happy festivities.


- Angelscry - 2010-12-25

KiSUAN Wrote:Hi, I have one silly request if possible, to have the option to set a Fanart & Thumb Folder by Addon options and not to have to point every time I add something, that would spare me a lot of time. As I delete and later install again many games I place the Fanart & Thumb in a separate folder so I don't have to be careful to delete and search again for them also. And of course that automatic scan to search from that folder, dunno if it would work, think so as it saves the images with the application name, so I guess it search by specific name, not just fanart/thumb.jpg.

Thank you in advance and happy festivities.
Normally it is how it works... Huh When you create a launcher it ask you where the roms thumbs and fanarts images will be located. You can manually put the corresponding images into those directories or directly scrape them. Then when you delete a rom, the corresponding thumb and fanart images are not deleted. So next time you add the roms by scanning it will normally found the images. Do you have activated the thunbs and fanart automatic scrap option?


- TheHazel3yes - 2010-12-26

Angelscry Wrote:That's actually my reflexion about how we could improve the command line support of the Advanced Launcher. If you have any suggestion, idea comment concerning this future improvement, feel free to share it here.

I think that'll be a great addition to ALA - really looking forward to it! Nod