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


- nekoarashi - 2010-12-22

Works great so far, two small additions if possible. 1. Is it at all possible to have numerous sources for a particular romset as in like 40gb on C:// and 300gb on F:// ? Also, when it comes to existing games in my catalog, can there be an option to autoscrape my existing library without having to add each one individually? if so that's awesome, if not still 9.5/10 ^^


- Angelscry - 2010-12-22

nekoarashi Wrote:Works great so far, two small additions if possible. 1. Is it at all possible to have numerous sources for a particular romset as in like 40gb on C:// and 300gb on F:// ?
There is actually no possibilities to scan different or multiple directories for a same launcher. But, one thing you can do, for example, if you have 2 different directories (roms1 and roms2) on different hard drive.
  • 1. create a launcher with directory roms1 as rompath
  • 2. make a scan
  • 3. manually edit the launchers.xml file and change the rompath to directory roms2
  • 4. Then make a new scan
So you will have the content a both directories into the same launcher. Now if you add roms to roms1 or roms2 directories you will have to change the rompath each time before perform a scan. By thinking about it... I think is will add an option to modify the rompath from the advanced launcher. So you will not have to edit the launchers.xml file and so you will be able to use multiple or different directories for a same launcher.

nekoarashi Wrote:Also, when it comes to existing games in my catalog, can there be an option to autoscrape my existing library without having to add each one individually? if so that's awesome, if not still 9.5/10 ^^
I'm not sure that I understand you. If you add some roms into your directory, you just have to do another scan for new roms and so additional roms will the added automatically. It is what you mean?? Eek


- fr500 - 2010-12-22

Hey! the plugin is looking great I just updated and it's awesome

I modded SHADE to make the whole thing work better for me, here is a screenie
Image

I can't figure out how to convert this to a new viewtype, will post to SHADE subforum looking for info on that, I will implement this and wall view then. Right now my mod replaces the stock SHADE apps viewtype

If anyone wants this quick dirty mod it's here http://dl.dropbox.com/u/149537/ViewsFileMode.xml

The only problem I have is launching steam games, I'm using steam://launchapp:34995 or whatever and it works, games are launched but XBMC doesn't go into wait state so some games run slow for that reason.

Thanks for this Angelscry


- htpc guy - 2010-12-22

[linux 10.4 w/ Gnome]

Okay, I just got PCSXR working (PlayStation emulator) but I'm having problems with the arguments. If I don't provide any then the gui pops up and I have to manually load the roms (.bin files, at least for the ones I have).

I have tried the following arguments:
Code:
-nogui -loadbin
and
Code:
-nogui -loadiso

Either argument will minimize XBMC and then immediately go to a black screen. I have to ctrl+alt+f1 and do a sudo reboot in order to get my system back.

I've tried google searches for the exact arguments but I'm not finding it. You guys are the best ones to ask so here I am asking.

Also, I installed it from here
http://pcsxr.codeplex.com/releases/view/50048


- nekoarashi - 2010-12-22

Angelscry Wrote:There is actually no possibilities to scan different or multiple directories for a same launcher. But, one thing you can do, for example, if you have 2 different directories (roms1 and roms2) on different hard drive.
  • 1. create a launcher with directory roms1 as rompath
  • 2. make a scan
  • 3. manually edit the launchers.xml file and change the rompath to directory roms2
  • 4. Then make a new scan
So you will have the content a both directories into the same launcher. Now if you add roms to roms1 or roms2 directories you will have to change the rompath each time before perform a scan. By thinking about it... I think is will add an option to modify the rompath from the advanced launcher. So you will not have to edit the launchers.xml file and so you will be able to use multiple or different directories for a same launcher.

I'm not sure that I understand you. If you add some roms into your directory, you just have to do another scan for new roms and so additional roms will the added automatically. It is what you mean?? Eek

I mean for roms that I chose to not autoscrape the first time I added them, is it possible toautoscrape them by running a scraper once they have been already added? Later on I mean, as when I batch scrape ALL my roms it tends to fail for some reason.


- nekoarashi - 2010-12-22

Also, as of the8.7 update the addon.py script failed error has reappeared when batch adding roms, anyone else having that issue?


- TheHazel3yes - 2010-12-22

htpc guy Wrote:I have tried the following arguments:
Code:
-nogui -loadbin
and
Code:
-nogui -loadiso

You did start pcsxr with GUI first, right? Because in the GUI you have to set some things (like the BIOS you have downloaded etc.). When you're done setup up things you load a game to see if everything is working.
After that you add
Code:
-nogui -cdfile
I also have to remind you that there are some games that don't run properly on this emulator. Some won't even start, so this could cause your black screen as well.
Another thing is the way you downloaded the iso/bin/whatever. Some I've seen were ecm'd (unecm them), some were CloneCD images... All my attempts to bring them into iso format didn't work. BUT: pcsxr can handle img and bin just fine, no need to convert to iso.


- MrBump - 2010-12-22

0.8.6 and 0.8.7 have both given me addon.py script failed errors whilst trying to add images to the roms.

what logs do you need and where can i find them?

im running xbmc 10, on a live install.


- nekoarashi - 2010-12-22

Now none of the scrapers work at all =( even after rolling back to 8.6. . any ideas?


- Robert de Clair - 2010-12-22

@MrBump
I think you shuld put there as code XBMC.LOG python section.
additionally settings.xml and launchers.xml should help too.
try in kind of this style http://forum.xbmc.org/showpost.php?p=664260&postcount=396

Feature request
Remove Rom shouldnt restore it when im trying to rescan launcher for new files. So remove rom from launcher actually should make rom invisible in rom list, but this rom should be still in database for prevent adding unwanted roms.
And there are connected feature - list of unwanted roms who can be restored to launcher.


- Angelscry - 2010-12-22

fr500 Wrote:Hey! the plugin is looking great I just updated and it's awesome

I modded SHADE to make the whole thing work better for me, here is a screenie
Image

I can't figure out how to convert this to a new viewtype, will post to SHADE subforum looking for info on that, I will implement this and wall view then. Right now my mod replaces the stock SHADE apps viewtype

If anyone wants this quick dirty mod it's here http://dl.dropbox.com/u/149537/ViewsFileMode.xml

The only problem I have is launching steam games, I'm using steam://launchapp:34995 or whatever and it works, games are launched but XBMC doesn't go into wait state so some games run slow for that reason.

Thanks for this Angelscry
Woaaa... Great view !!!! Shocked I think the SHADE skin may works as the other skins and because I have modded the Alaska.Revisited skin I could give you some tips to add an additionnal view.

First, you have to change the name of the ViewsFileMode.xml file to a unique one (like NewViewsFileMode.xml) Then you have to choose him an unique name (New_View_File_Mode for example), an unique control panel ID (over 500) and a unique label (like 40000) like this for your NewViewsFileMode.xml file.
Code:
<includes>
    <include name="New_View_File_Mode">  <---- HERE
        <!-- Browser -->
        <control type="panel" id="500">   <---- HERE
            <viewtype label="40000">icon</viewtype>  <---- HERE
            ...
You also have to change the all control panel ID references into your NewViewsFileMode.xml file. When it is done you have to edit the Includes.xml file and include your view file into the include list.:
Code:
    ...
    <include file="Viewtype_List.xml" />
    <include file="Viewtype_Banner.xml" />
    <include file="NewViewsFileMode.xml" /> <---- HERE
    <include file="Viewtype_Landscape.xml" />
    ...
Then you have to edit the MyPrograms.xml file to add view ID and the view name like this :
Code:
    <views>55,58,54,59,500</views> <---- HERE
    <defaultcontrol>55</defaultcontrol>
    <allowoverlay>yes</allowoverlay>
    <controls>
        <include>Global_Filter</include>
        <include>Viewtype_Files</include>
        <include>New_View_File_Mode</include> <---- HERE
        <include>Viewtype_List</include>
        ...
Finally you have to edit the strings.xml file to add the label of your view :
Code:
    ...
    <string id="40000">NEW VIEW MODE</string>  <---- HERE

    ...
You have to do all of this and be sure the the label, id, name and filename of you view is UNIQUE. If one of them is already used you view will not display of you will have problems.


- MrBump - 2010-12-22

Problem Solved, obviously a permissions problem. Just changed the directory where the roms are located to write permissions, and all is working fine.

Thanks

MrBump Wrote:0.8.6 and 0.8.7 have both given me addon.py script failed errors whilst trying to add images to the roms.

what logs do you need and where can i find them?

im running xbmc 10, on a live install.

Heres the logs that hopefully help fix my problems.

Thanks in advance guys.

XBMC.log
Code:
20:23:10 T:3016125296 M:1424461824  NOTICE: -->Python Interpreter Initialized<--
20:23:11 T:3016125296 M:1422798848  NOTICE: Mode AddOn ON
20:23:11 T:3016125296 M:1422798848  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
20:23:11 T:3016125296 M:1422798848  NOTICE: 0
20:23:11 T:3016125296 M:1422036992  NOTICE: Launcher: found 2 launchers
20:23:13 T:3016125296 M:1421795328  NOTICE: -->Python Interpreter Initialized<--
20:23:13 T:3016125296 M:1421160448  NOTICE: Mode AddOn ON
20:23:13 T:3016125296 M:1421160448  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
20:23:13 T:3016125296 M:1421160448  NOTICE: 0
20:23:13 T:3016125296 M:1420525568  NOTICE: Launcher: found 2 launchers
20:23:14 T:3016125296 M:1421160448  NOTICE: Launcher: Nintendo 64 : found 291 roms
20:23:19 T:3016125296 M:1420795904  NOTICE: -->Python Interpreter Initialized<--
20:23:20 T:3016125296 M:1420288000  NOTICE: Mode AddOn ON
20:23:20 T:3016125296 M:1420288000  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
20:23:20 T:3016125296 M:1420288000  NOTICE: -1
20:23:20 T:3016125296 M:1419264000  NOTICE: Launcher: found 2 launchers
20:23:30 T:3016125296 M:1418002432  NOTICE: http://image.com.com/gamespot/images/2003/all/boxshots2/196500_14032.jpg
20:23:30 T:3016125296 M:1418002432  NOTICE: http://image.com.com/gamespot/images/2003/all/boxshots2/196500_41633.jpg
20:23:30 T:3016125296 M:1418002432  NOTICE: http://image.com.com/gamespot/images/2003/all/boxshots2/196500_14097.jpg
20:23:30 T:3016125296 M:1417875456  NOTICE: http://image.com.com/gamespot/images/2003/all/boxshots2/196500_93850.jpg
20:23:30 T:3016125296 M:1417875456  NOTICE: http://image.com.com/gamespot/images/2003/all/boxshots2/196500_98199.jpg
20:23:35 T:3016125296 M:1417637888  NOTICE: 6
20:23:35 T:3016125296 M:1417637888  NOTICE: 2
20:23:35 T:3078760336 M:1417764864   ERROR: ClearBlock: Trying to clear non existent block /home/xbmc/.xbmc/userdata/
20:23:36 T:3016125296 M:1417764864   ERROR: Error Type: exceptions.IOError
20:23:36 T:3016125296 M:1417764864   ERROR: Error Contents: (13, 'Permission denied', '/home/xbmc/roms/n64/1080 Snowboarding (JU) [!]_thumb.jpg')
20:23:36 T:3016125296 M:1417764864   ERROR: Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/plugin.program.advanced.launcher/addon.py", line 20, in ?
                                                plugin.Main()
                                              File "/home/xbmc/.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/xbmc/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 247, in _edit_rom
                                                self._scrap_thumb_rom(launcher,rom)
                                              File "/home/xbmc/.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 225, in retrieve
                                                tfp = open(filename, 'wb')
                                            IOError: (13, 'Permission denied', '/home/xbmc/roms/n64/1080 Snowboarding (JU) [!]_thumb.jpg')

Settings.xml
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <settings>
- <!-- games scrapers
  -->
- <category label="30126">
  <setting label="30121" type="fileenum" id="datas_scraper" default="AllGame" mask="/" values="/resources/scrapers/datas/" />
  <setting label="30128" type="bool" id="clean_title" default="true" />
  <setting label="30120" type="bool" id="scrap_info" default="true" />
  <setting label="30129" type="bool" id="ignore_bios" default="true" />
  </category>
- <category label="30122">
  <setting label="30121" type="fileenum" id="thumbs_scraper" default="GameFAQs" mask="/" values="/resources/scrapers/thumbs/" />
  <setting label="30134" type="enum" id="game_region" lvalues="30136|30144|30145|30146" default="0" visible="eq(-1,GameFAQs) | eq(-1,MobyGames)" />
  <setting label="30135" type="enum" id="thumb_image_size" lvalues="30136|30137|30138|30139|30140|30141|30142|30143" default="0" visible="eq(-2,Google)" />
  <setting label="30120" type="bool" id="scrap_thumbs" default="false" />
  </category>
- <category label="30123">
  <setting label="30121" type="fileenum" id="fanarts_scraper" default="GameFAQs" mask="/" values="/resources/scrapers/fanarts/" />
  <setting label="30135" type="enum" id="fanart_image_size" lvalues="30136|30137|30138|30139|30140|30141|30142|30143" default="0" visible="eq(-1,Google)" />
  <setting label="30120" type="bool" id="scrap_fanarts" default="false" />
  </category>
  </settings>

Launchers.xml
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <launchers>
- <launcher>
  <name>Zsnes</name>
  <application>/usr/bin/zsnes</application>
  <args>-m -s -v 15</args>
  <rompath>/home/xbmc/roms/snes/</rompath>
  <romext>smc</romext>
  <thumb />
  <wait>true</wait>
  <roms />
  </launcher>
- <launcher>
  <name>Nintendo 64</name>
  <application>/usr/games/mupen64plus</application>
  <args>--fullscreen --nogui --noask</args>
  <rompath>/home/xbmc/roms/n64/</rompath>
  <romext>zip</romext>
  <thumb>/home/xbmc/roms/n64.png</thumb>
  <wait>true</wait>
  <roms />
  </launcher>
  </launchers>

Hopefully this can help. I can already see some error's in the log, but, not sure how to interprete them.

Thanks guys.


- htpc guy - 2010-12-22

TheHazel3yes Wrote:You did start pcsxr with GUI first, right? Because in the GUI you have to set some things (like the BIOS you have downloaded etc.). When you're done setup up things you load a game to see if everything is working.
After that you add
Code:
-nogui -cdfile
I also have to remind you that there are some games that don't run properly on this emulator. Some won't even start, so this could cause your black screen as well.
Another thing is the way you downloaded the iso/bin/whatever. Some I've seen were ecm'd (unecm them), some were CloneCD images... All my attempts to bring them into iso format didn't work. BUT: pcsxr can handle img and bin just fine, no need to convert to iso.


I got the emulator working fine on its own (bios installed and everything). Through the gui I can run FF7 by opening the .bin files and it works great. I just need to figure out how to get XBMC to run them without me having to manually point to the rom. I'll try your suggestion for loadcd and see if that helps. It will have to wait until I get home fro work though.


- Angelscry - 2010-12-22

htpc guy Wrote:Okay, I just got PCSXR working (PlayStation emulator) but I'm having problems with the arguments. If I don't provide any then the gui pops up and I have to manually load the roms (.bin files, at least for the ones I have).

I have tried the following arguments:
Code:
-nogui -loadbin
and
Code:
-nogui -loadiso

Either argument will minimize XBMC and then immediately go to a black screen. I have to ctrl+alt+f1 and do a sudo reboot in order to get my system back.

I've tried google searches for the exact arguments but I'm not finding it. You guys are the best ones to ask so here I am asking.

Also, I installed it from here
http://pcsxr.codeplex.com/releases/view/50048
I have never try to use PCSXR with the Advanced Launcher yet... so I cannot help you now. But I have planned to work on the improvement of the emulators integration during next weeks (yesss... winter vacation !!!!) and I will put a look on PCSXR.

Have you try to run the command lines :
Code:
pcsxr -h
or
Code:
pcsxr -help
or
Code:
man pcsxr
to have more information about the command line support of pcsxr? Eek


- Angelscry - 2010-12-22

nekoarashi Wrote:I mean for roms that I chose to not autoscrape the first time I added them, is it possible toautoscrape them by running a scraper once they have been already added? Later on I mean, as when I batch scrape ALL my roms it tends to fail for some reason.

Robert de Clair Wrote:Feature request
Remove Rom shouldnt restore it when im trying to rescan launcher for new files. So remove rom from launcher actually should make rom invisible in rom list, but this rom should be still in database for prevent adding unwanted roms.
And there are connected feature - list of unwanted roms who can be restored to launcher.
As I have already write several times, the Advanced Launcher is a launcher and will never be a roms manager. It is the charge of the users to configure the emulators and manage the roms they want to use with the Advanced Launcher (like for Movies and Music under XBMC). Putting only the roms you want to use into a directory is quite simple.

What you ask me here, is to add a functionality to manage roms that you do not want to use. If you do not want to use those roms you can just try 2 simple things :
  • remove them from the romspath directory
  • or rename them with an extension different for those used by the launcher
With those 2 simple actions the roms will be not detected or used by the Advanced launcher anymore. Then if you want them to be detected, put them into the directory or rename them with the right extension.

Why you do not want to launch/use/detect some roms ?