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


- smithr99 - 2010-11-21

one thing to note is that when doing an auto-scan that eventually works, the info message stays on "importing info from allgame.com".
When you do an auto-scan that ends up failing, the info message cycles through each game as if it were adding them in. When it fails, you get an error in py script message and no games are added at all


EDIT: There are also some spelling mistakes. "Entertainement" should say "Entertainment" ie "Super Nintendo Entertainment System". And also in the setting menu, the "Scaning" should say "Scanning"

Just thought I'd help Smile


- Angelscry - 2010-11-21

Rob Loach Wrote:I uploaded a patch for this Wink
Thank you very much Rob Loach for this patch. I have tested it, and, honestly approved it. It will be included in the next version. I hope this option will guide users to configure their emulators launches. I could seem a little resistant in my previous reply, it was because it has not a unique way to launch an emulator. Sorry. For example in your patch, for epsxe you use the arguments :
Code:
-nogui -loadbin
Personally, on my system, I'm using the arguments :
Code:
-nogui -loadiso
Both ways are correct depending if you are using .BIN or .ISO images of the games. But, honestly, I do not know which arguments are or will be the most used. I think we have to wait and see. Thank you


- Angelscry - 2010-11-21

smithr99 Wrote:my launchers.xml ...

http://pastebin.com/dg723QXQ

I've not finished adding in other emus yet - just my GBA and tried to add GB. Fails on both GBC and GB.
I think I have found your problem. For each GBA roms the game system indicated into your launchers.xml file is Game Boy Advanced. It must be Game Boy Advance. The scrappers use this value when searching game (using the gamesys file of the launcher). If the game system is wrong, the scrappers will not found any corresponding results. But I do not knows why you have Game Boy Advanced instead of Game Boy Advance. This value is normally fixed by the launcher.

smithr99 Wrote:By the way, in my addon settings, the options for auto download of fanart and thumbs are both greyed out. Any ideas ?
They are not active yet. Just planned. Prior to activate them I have to be sure that the manual way to scrap thumbnails and fanarts are stable.


- Angelscry - 2010-11-21

smithr99 Wrote:one thing to note is that when doing an auto-scan that eventually works, the info message stays on "importing info from allgame.com".
When you do an auto-scan that ends up failing, the info message cycles through each game as if it were adding them in. When it fails, you get an error in py script message and no games are added at all
Scan failing are most of the time due to a mistake when scrapping one game info. I will play with your launchers.xml file and try to see what is wrong.

smithr99 Wrote:EDIT: There are also some spelling mistakes. "Entertainement" should say "Entertainment" ie "Super Nintendo Entertainment System". And also in the setting menu, the "Scaning" should say "Scanning"
English is not my natural tongue so I make spelling mistakes sometime. Thank you for your feedback on this. It will be fixed in the next version.


- jpreville - 2010-11-21

looks like its picking the wrong number to system. i chose Sega Genesis and this the error i get..

15:45:53 T:139974675883792 M:3499741184 NOTICE: Launcher: found 1 launchers
15:45:55 T:139974675883792 M:3499827200 ERROR: Error Type: exceptions.KeyError
15:45:55 T:139974675883792 M:3499827200 ERROR: Error Contents: studio
15:45:55 T:139974675883792 M:3499827200 ERROR: Traceback (most recent call last):
File "/home/john/.xbmc/addons/plugin.program.advanced.launcher/addon.py", line 20, in ?
plugin.Main()
File "/home/john/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 159, in __init__
self._import_roms(launcher)
File "/home/john/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 876, in _import_roms
romdata["studio"] = gamedata["studio"]
KeyError: studio

John


- Angelscry - 2010-11-21

jpreville Wrote:looks like its picking the wrong number to system. i chose Sega Genesis and this the error i get..

15:45:53 T:139974675883792 M:3499741184 NOTICE: Launcher: found 1 launchers
15:45:55 T:139974675883792 M:3499827200 ERROR: Error Type: exceptions.KeyError
15:45:55 T:139974675883792 M:3499827200 ERROR: Error Contents: studio
15:45:55 T:139974675883792 M:3499827200 ERROR: Traceback (most recent call last):
File "/home/john/.xbmc/addons/plugin.program.advanced.launcher/addon.py", line 20, in ?
plugin.Main()
File "/home/john/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 159, in __init__
self._import_roms(launcher)
File "/home/john/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 876, in _import_roms
romdata["studio"] = gamedata["studio"]
KeyError: studio
Thank you for your feedback. This error occured when a game did not have studio information on the corresponding allgame page. I just found this bug after smithr99 report. It is normally fixed by the version 0.6.4 of the launcher that I have just released. Tell me if this last version as solved your problem. Thank you.


- smithr99 - 2010-11-22

Angelscry Wrote:English is not my natural tongue so I make spelling mistakes sometime. Thank you for your feedback on this. It will be fixed in the next version.

i assumed not as you're from Montreal! My French is terrible! Thanks very much for this updated launcher though - it rocks!


Beep Boop Bap! - Rob Loach - 2010-11-22

Angelscry Wrote:Personally, on my system, I'm using the arguments :
Code:
-nogui -loadiso
Both ways are correct depending if you are using .BIN or .ISO images of the games. But, honestly, I do not know which arguments are or will be the most used. I think we have to wait and see. Thank you

I'd trust your judgment on this more than mine. So feel free to change it to -loadiso. Thanks!... Also, if anyone else knows any we could add in there (WinUAE maybe?), we could add it.


smithr99 Wrote:i assumed not as you're from Montreal! My French is terrible! Thanks very much for this updated launcher though - it rocks!
Yay Canada! Cool


Angelscry Wrote:I'm not really sure that it will be possible. Actually how the XBMC/launcher add-on works is that when you start an application, XBMC go directly into background and it is the application which take the control (and also the keys control). It must be like this because we do not want to control the application and XBMC at the same time with the same keys. When the application is closed (by itself), XBMC take the control back. It may be possible to use a third-party script to check if key are pressed or not... but I'm not sure it will works directly form XBMC or from the launcher add-on. I will think about this.
I was wondering about the same thing too. There would have to be a background process to check if the button is pressed. Using Popen() might be the way around it, but I honestly done much with Python yet.


- jpreville - 2010-11-22

Hey AngelsCry,

Solved my issue on Sega Genesis Games!!

Thank You

John


- xmurrx - 2010-11-22

can someone make a guide on how to set this up? I really want to use this but I am at a loss.


- Jurai - 2010-11-22

Just wanted to say this plugin is definitely looking like the go-to choice for launching emulators within xbmc, cannot wait for an option to download all the artwork at once!


- Jurai - 2010-11-22

on another note, I'm having trouble launching NES roms via Mednafen which contain a comma in the filename, has anyone else encountered this? I am not super familiar with mednafen so it could be unrelated to the plugin


- Pinhead - 2010-11-22

First, I want to say that this add-on is fantastic! Keep up the good work! I thought I'd give some feedback and pose some questions here.

Firstly, I'm using the default Confluence skin. I tried adding a custom 'Games' button to the main menu, but when I try to select which add-on to tie the button to AL doesn't show up as an option (other add-ons do). It would be great if I could make a 'Games' button and go straight to the AL launcher menu.

Secondly, I assume this has something to do with the Confluence skin, but right now I can only set my view settings to Thumbnail, List or Big List. In other words, there's no way to view year, studio, genre, or any other text-based information the add-on gets from allgames.com, other than the game name itself. Judging from the screens in the thread, there's more to the add-on than just viewing thumbnails. Do I have to edit the skin on my own, or is there some trick to this?


- smithr99 - 2010-11-22

found a rather critical error. When adding a game in manually, if it fails, the plugin seems to wipe most of your launchers.xml file out
eg I have 7 or 8 emus in my launchers list. I just tried adding a game manually by pressing C when Gameboy was highlighted, choose Manually Add File, then scroll for the game and select. A message appears saying "the file has been added sucessfully..." but then I get an Error in PY and when you reload the plugin, almost all the emus have now dissapeared

Code:
10:16:43 T:3056039808 M:1675681792 WARNING: Trying to add unsupported control type 3
10:16:44 T:2347043696 M:1675313152 WARNING: Previous line repeats 17 times.
10:16:44 T:2347043696 M:1675313152  NOTICE: -->Python Interpreter Initialized<--
10:16:44 T:2347043696 M:1675051008  NOTICE: Mode AddOn ON
10:16:44 T:2347043696 M:1675051008  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
10:16:44 T:2347043696 M:1675051008  NOTICE: 0
10:16:44 T:2347043696 M:1675051008  NOTICE: Launcher: found 8 launchers
10:17:10 T:2347043696 M:1682460672  NOTICE: -->Python Interpreter Initialized<--
10:17:10 T:2347043696 M:1681563648  NOTICE: Mode AddOn ON
10:17:10 T:2347043696 M:1681563648  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
10:17:10 T:2347043696 M:1681563648  NOTICE: -1
10:17:10 T:2347043696 M:1681563648  NOTICE: Launcher: found 8 launchers
10:17:47 T:3056039808 M:1678548992 WARNING: Trying to add unsupported control type 3
10:17:47 T:2368609136 M:1678422016 WARNING: Previous line repeats 15 times.
10:17:47 T:2368609136 M:1678422016  NOTICE: -->Python Interpreter Initialized<--
10:17:48 T:2368609136 M:1678307328  NOTICE: Mode AddOn ON
10:17:48 T:2368609136 M:1678307328  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
10:17:48 T:2368609136 M:1678307328  NOTICE: 0
10:17:48 T:2368609136 M:1678307328  NOTICE: Launcher: found 8 launchers
10:17:53 T:2368609136 M:1678311424  NOTICE: -->Python Interpreter Initialized<--
10:17:54 T:2368609136 M:1678311424  NOTICE: Mode AddOn ON
10:17:54 T:2368609136 M:1678311424  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
10:17:54 T:2368609136 M:1678311424  NOTICE: -1
10:17:54 T:2368609136 M:1678311424  NOTICE: Launcher: found 8 launchers
10:18:21 T:2368609136 M:1677586432 WARNING: Trying to add unsupported control type 3
10:18:51 T:2300685168 M:1675751424 WARNING: Previous line repeats 19 times.
10:18:51 T:2300685168 M:1675751424  NOTICE: -->Python Interpreter Initialized<--
10:18:52 T:2300685168 M:1675640832  NOTICE: Mode AddOn ON
10:18:52 T:2300685168 M:1675640832  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
10:18:52 T:2300685168 M:1675640832  NOTICE: 0
10:18:52 T:2300685168 M:1675640832  NOTICE: Launcher: found 8 launchers
10:19:04 T:2300685168 M:1675407360  NOTICE: -->Python Interpreter Initialized<--
10:19:05 T:2300685168 M:1673494528  NOTICE: Mode AddOn ON
10:19:05 T:2300685168 M:1673494528  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
10:19:05 T:2300685168 M:1673494528  NOTICE: -1
10:19:05 T:2300685168 M:1673494528  NOTICE: Launcher: found 8 launchers
10:19:05 T:2300685168 M:1673494528 WARNING: Trying to add unsupported control type 3
10:19:42 T:2300685168 M:1672368128 WARNING: Previous line repeats 1 times.
10:19:42 T:2300685168 M:1672368128   ERROR: Error Type: exceptions.KeyError
10:19:42 T:2300685168 M:1672368128   ERROR: Error Contents: thumb
10:19:42 T:2300685168 M:1672368128   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 157, in __init__
                                                self._add_new_rom(launcher)
                                              File "/home/xbmc/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 1014, in _add_new_rom
                                                self._save_launchers()
                                              File "/home/xbmc/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 586, in _save_launchers
                                                usock.write("\t\t\t\t<thumb>"+romdata["thumb"]+"</thumb>\n")
                                            KeyError: thumb
10:19:49 T:2300685168 M:1672527872   ERROR: Unable to find plugin
10:19:49 T:3056039808 M:1672527872   ERROR: GetDirectory - Error getting plugin://
10:19:49 T:3056039808 M:1672527872   ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed
10:19:51 T:2332154736 M:1672404992 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
10:19:52 T:2347043696 M:1671507968  NOTICE: -->Python Interpreter Initialized<--
10:19:53 T:2347043696 M:1671524352  NOTICE: Mode AddOn ON
10:19:53 T:2347043696 M:1671524352  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
10:19:53 T:2347043696 M:1671524352  NOTICE: 0
10:19:53 T:2347043696 M:1671524352  NOTICE: Launcher: found 4 launchers
10:22:37 T:2300685168 M:1669668864  NOTICE: -->Python Interpreter Initialized<--
10:22:37 T:2300685168 M:1669029888  NOTICE: Mode AddOn ON
10:22:37 T:2300685168 M:1669029888  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
10:22:37 T:2300685168 M:1669029888  NOTICE: -1
10:22:37 T:2300685168 M:1669029888  NOTICE: Launcher: found 4 launchers
10:22:37 T:2300685168 M:1669029888 WARNING: Trying to add unsupported control type 3
10:22:49 T:2300685168 M:1668218880 WARNING: Previous line repeats 1 times.
10:22:49 T:2300685168 M:1668218880   ERROR: Error Type: exceptions.KeyError
10:22:49 T:2300685168 M:1668218880   ERROR: Error Contents: thumb
10:22:49 T:2300685168 M:1668218880   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 157, in __init__
                                                self._add_new_rom(launcher)
                                              File "/home/xbmc/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 1014, in _add_new_rom
                                                self._save_launchers()
                                              File "/home/xbmc/.xbmc/addons/plugin.program.advanced.launcher/resources/lib/launcher_plugin.py", line 586, in _save_launchers
                                                usock.write("\t\t\t\t<thumb>"+romdata["thumb"]+"</thumb>\n")
                                            KeyError: thumb
10:22:54 T:2379098992 M:1668231168 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
10:22:56 T:2332154736 M:1668116480  NOTICE: -->Python Interpreter Initialized<--
10:22:57 T:2332154736 M:1667600384  NOTICE: Mode AddOn ON
10:22:57 T:2332154736 M:1667600384  NOTICE: /home/xbmc/.xbmc/userdata/addon_data/plugin.program.advanced.launcher
10:22:57 T:2332154736 M:1667600384  NOTICE: 0
10:22:57 T:2332154736 M:1667600384  NOTICE: Launcher: found 2 launchers


EDIT : I just figured it out. After manually adding a Rom, it doesnt close the launcher declaration ...

Code:
    <launcher>
        <name>SEGA Mega Drive</name>
        <application>/home/xbmc/launcher.sh</application>
        <args>/usr/bin/gens --quickexit</args>
        <rompath>/media/roms/SMD/Roms/</rompath>
        <thumbpath>/media/roms/SMD/Thumbnails/</thumbpath>
        <fanartpath>/media/roms/SMD/Fanart/</fanartpath>
        <romext>gen|smd</romext>
        <platform>Sega Genesis</platform>
        <thumb>/media/roms/icons/Sega MegaDrive II.png</thumb>
        <fanart>/media/roms/Fanart/smd.jpg</fanart>
        <genre></genre>
        <release></release>
        <publisher></publisher>
        <launcherplot></launcherplot>
        <wait>true</wait>
        <roms>
            <rom>
                <name>Soldiers of Fortune</name>
                <filename>/media/roms/SMD/Roms/Soldiers of Fortune (U) [c][!].gen</filename>
                <platform>Sega Genesis</platform>



- rausch101 - 2010-11-22

Angelscry - I've been getting running the batch scan/get info for entire roms folders and see that there's many games (maybe like 20-30%) that are not scraped, but are listed on the gamefaq website. I'm unsure what the most helpful way of reporting this is so I thought I'd ask first.

How would you like me to report the unfound games?