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


- joelones - 2011-01-18

Angelscry Wrote:I'm not sure it is related to the manner you mount your partition, but if so, here is how I mount my smb server on my system :
Code:
mount.cifs //192.168.2.10/Volume_1/public /media/HDNetwork/ -o nolock,user=angelscry,password=mypassword,domain=MYHOME,gid=1000,uid=1000,noauto,nounix,iocharset=utf8,file_mode=0777,dir_mode=07777
I will continue to investigate on the shutil.copy2 python command with SMB share.

EDIT : One thing you can try is to edit the launcher_plugin.py file and replace any shutil.copy2() functions by shutil.copy().

Thanks Angelscry, mounting the Thumbnails share like that seems to clear up the addon.py script from failing.

Although, I'm stick stuck with the zsnes failing while trying to play a rom issue. I can't seem to find any log file so I'm not sure why zsnes fails while opening a rom. I've tried a local rom and it's fine.

zsnes doesn't seem to like the share for some reason.

EDIT: Tried to open a rom on the command line

Quote:zsnes -m -s -v 22 roms/snes/Castlevania.smc
ERROR: Failed to load plugin /usr/lib/ao/plugins-4/libesd.so => dlopen() failed
ZSNES v1.51, © 1997-2007, ZSNES Team
Be sure to check http://www.zsnes.com/ for the latest version.

ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.

Use ZSNES -? for command line definitions.

Starting Mouse detection.
Unable to poll /dev/input/event6. Make sure you have read permissions to it.
Unable to poll /dev/input/event5. Make sure you have read permissions to it.
Unable to poll /dev/input/event4. Make sure you have read permissions to it.
Unable to poll /dev/input/event3. Make sure you have read permissions to it.
Unable to poll /dev/input/event2. Make sure you have read permissions to it.
Unable to poll /dev/input/event1. Make sure you have read permissions to it.
Unable to poll /dev/input/event0. Make sure you have read permissions to it.
ManyMouse: 0 mice detected.
Error opening file!

While using the gui, I noticed that zsnes is unable to detect nor see the dir with the roms
Quote:drwxrwxrwx 1 xbmc xbmc 0 2011-01-17 19:45 roms



- rflores2323 - 2011-01-18

any news on getting boxee launching?


- Angelscry - 2011-01-18

joelones Wrote:Thanks Angelscry, mounting the Thumbnails share like that seems to clear up the addon.py script from failing.

Although, I'm stick stuck with the zsnes failing while trying to play a rom issue. I can't seem to find any log file so I'm not sure why zsnes fails while opening a rom. I've tried a local rom and it's fine.

zsnes doesn't seem to like the share for some reason.

EDIT: Tried to open a rom on the command line
While using the gui, I noticed that zsnes is unable to detect nor see the dir with the roms
The path in your command line seems not well defined.
Code:
zsnes -m -s -v 22 roms/snes/Castlevania.smc
If your roms directory is in the root directory of your system, your command line must be :
Code:
zsnes -m -s -v 22 [b]"/[/b]roms/snes/Castlevania.smc[b]"[/b]



- Angelscry - 2011-01-18

rflores2323 Wrote:any news on getting boxee launching?
Not really... When starting Boxee with the actual version of the Advanced Launcher, Boxee return me this error :
Code:
/opt/boxee/run-boxee-desktop: line 35: /usr/share/xbmc/Boxee: No file or directory if this type
So I have modified the way the Advanced Launcher start the application to indicate a current working directory (same as application directory). Unfortunately nothing happen :
  • no error message appear
  • no error message into the XBMC and Boxee log files
  • and Boxee did not start at all.
With no error message... It will be hard to found what really happen. Confused
So I have tried using the bash script:
Code:
#!/bin/sh
killall -9 xbmc.bin
cd /opt/boxee/
/opt/boxee/run-boxee-desktop
When starting this script from XBMC it close xbmc and nothing else.
When manually starting this script it open Boxee without any problem. Confused
If I replace /opt/boxee/run-boxee-desktop by /usr/bin/firefox for example all is working perfectly. And the more strange is that is I start XBMC and Boxee separately they can run at the same time...
I don't know why it does not working... even with the .sh script.


- moviebuff - 2011-01-18

It seems when I click on one of my roms in advanced launcher it launches the required emulator but doesnt load the rom?


- Angelscry - 2011-01-18

moviebuff Wrote:It seems when I click on one of my roms in advanced launcher it launches the required emulator but doesnt load the rom?
Could you be more explicit please : Which rom? Which emulator? Which argument have you used? Have you visit the wiki page about the configuration of the emulators/ala/xbmc?
http://www.gwenael.org/xbmc/index.php?title=Main_Page


- moviebuff - 2011-01-18

virtualnes and didnt use an argument and any rom ive tried. They work fine in the launcher program but within advanced it just doesnt load.


- Angelscry - 2011-01-18

rflores2323 Wrote:any news on getting boxee launching?
Ok... it seems related to an user privilege access. This script is working: Laugh
Code:
#!/bin/sh

killall -9 xbmc.bin
cd /opt/boxee/
sudo /opt/boxee/run-boxee-desktop

xbmc
Would be better is we do not need to use the sudo command line. Nod


- Angelscry - 2011-01-18

moviebuff Wrote:virtualnes and didnt use an argument and any rom ive tried. They work fine in the launcher program but within advanced it just doesnt load.
It is because Advanced Launcher add-on is not working like the Launcher add-on. You need to indicated "%rom%" into the argument field to pass the rom path to the emulator. Nod
http://code.google.com/p/xbmc-advanced-launcher/wiki/LaunchersCreation#File_Launchers


- moviebuff - 2011-01-18

that worked thank you very much for the help and the wonderful new launcher ) great job


- fr500 - 2011-01-18

Angelscry Wrote:Ok... it seems related to an user privilege access. This script is working: Laugh
Code:
#!/bin/sh

killall -9 xbmc.bin
cd /opt/boxee/
sudo /opt/boxee/run-boxee-desktop

xbmc
Would be better is we do not need to use the sudo command line. Nod

Have the same issue in Windows. I think it might be related to the fact that BOXEE is forked from XBMC. I don't think it's permissions but more like that XBMC is already running. When you launch with sudo you're effectively launching as another user (root) so it can't detect it is already running.

You could try my theory by using something like sudo -u user2 boxee (where user2 is a valid regular user who has boxee of course) it should work too without being root.

Even then...all this does not give us a fix :confused2:


- Angelscry - 2011-01-18

fr500 Wrote:You could try my theory by using something like sudo -u user2 boxee (where user2 is a valid regular user who has boxee of course) it should work too without being root.
Yes, effectively, it is working perfectly by using this command. Thank you.

fr500 Wrote:Even then...all this does not give us a fix :confused2:
Why do you need a fix? Now we know how to launch Boxee from XBMC!!!! Cool

Image

Option 1. XBMC and Boxee running at the same time:
Code:
<launcher>
    <name>Boxee</name>
    <application>/usr/bin/sudo</application>
    <args>-u angelscry /opt/boxee/run-boxee-desktop</args>
    <rompath></rompath>
    <thumbpath>/home/angelscry/Téléchargements/</thumbpath>
    <fanartpath>/home/angelscry/Téléchargements/</fanartpath>
    <romext></romext>
    <platform>IBM PC Compatible</platform>
    <thumb>/home/angelscry/Téléchargements/Boxee_thumb.jpg</thumb>
    <fanart>/home/angelscry/Téléchargements/Boxee_fanart.jpg</fanart>
    <genre></genre>
    <release></release>
    <publisher></publisher>
    <launcherplot>Boxee (officially trademarked as BOXEE) is a cross-platform freeware HTPC (Home Theater PC) software application with a 10-foot user interface and social networking features designed for the living-room TV. Boxee was originally a fork of the free and open source XBMC media center software which Boxee now uses as an application framework for its GUI and media player core platform, together with some custom and proprietary additions. Marketed as the first ever "Social Media Center," Boxee enables its users to view, rate and recommend content to their friends through many social network services and interactive media related features. One notable feature missing in Boxee is the ability to watch and record live TV received via over-the-air TV, cable or satellite signals.</launcherplot>
    <wait></wait>
    <minimize>false</minimize>
    <lnk></lnk>
    <roms>
    </roms>
</launcher>

Option 2. XBMC and Boxee NOT running at the same time:
Code:
<launcher>
    <name>Boxee</name>
    <application>/home/angelscry/start_boxee.sh</application>
    <args></args>
    <rompath></rompath>
    <thumbpath>/home/angelscry/Téléchargements/</thumbpath>
    <fanartpath>/home/angelscry/Téléchargements/</fanartpath>
    <romext></romext>
    <platform>IBM PC Compatible</platform>
    <thumb>/home/angelscry/Téléchargements/Boxee_thumb.jpg</thumb>
    <fanart>/home/angelscry/Téléchargements/Boxee_fanart.jpg</fanart>
    <genre></genre>
    <release></release>
    <publisher></publisher>
    <launcherplot>Boxee (officially trademarked as BOXEE) is a cross-platform freeware HTPC (Home Theater PC) software application with a 10-foot user interface and social networking features designed for the living-room TV. Boxee was originally a fork of the free and open source XBMC media center software which Boxee now uses as an application framework for its GUI and media player core platform, together with some custom and proprietary additions. Marketed as the first ever "Social Media Center," Boxee enables its users to view, rate and recommend content to their friends through many social network services and interactive media related features. One notable feature missing in Boxee is the ability to watch and record live TV received via over-the-air TV, cable or satellite signals.</launcherplot>
    <wait></wait>
    <minimize>false</minimize>
    <lnk></lnk>
    <roms>
    </roms>
</launcher>
and the corresponding start_boxee.sh file:
Code:
#!/bin/sh

killall -9 xbmc.bin
cd /opt/boxee/
sudo -u angelscry /opt/boxee/run-boxee-desktop

xbmc



- tungmeister - 2011-01-18

The add-on has an issue with games with ":" in the title. the issue arises when trying to set fan art or a thumb which causes the script to fail, I presume this is due to it trying to use ":" when naming the jpegs. I overcame this by manually editing the game title.


- Angelscry - 2011-01-18

tungmeister Wrote:The add-on has an issue with games with ":" in the title. the issue arises when trying to set fan art or a thumb which causes the script to fails, I presume this is due to it trying to use ":" when naming the jpegs. I overcame this by manually editing the game title.
Thank you very much for your feedback. I will try to see if I can fix this for the next version.


- pinkybreak - 2011-01-18

Hello Angelscry, great looking mod Nod

Would you consider adding support for trailers in a future release?
ie being able to see gameplay and/or game trailers would be a nice supplementary feature to your addon