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


- fr500 - 2011-01-25

Angelscry Wrote:It is not possible to use it. Sad

Aw too bad. Well hopefully you can make it selectable.

I tried rom files with commas and still not working, the rom name is being truncated exactly at the ,

I refreshed all my roms just to test. I used bsnes 0.73 QT


- Angelscry - 2011-01-25

fr500 Wrote:Aw too bad. Well hopefully you can make it selectable.

I tried rom files with commas and still not working, the rom name is being truncated exactly at the ,

I refreshed all my roms just to test. I used bsnes 0.73 QT
Sorry... I mean... it is not possible to use the internal option of XBMC but I can add the option for Advanced Launcher. For the commas problem I will try to fix it.


- Thrasher666 - 2011-01-25

Hi, i have a small problem, hope its not that big :-) After adding onother Launcher *.exe i quitted the startup so there is no Name for the Launcher; he has the name "" and now when i try to delete it comes pyton error. I tried to find the Lib where all the Launchers are stored...


- Angelscry - 2011-01-25

Thrasher666 Wrote:Hi, i have a small problem, hope its not that big :-) After adding onother Launcher *.exe i quitted the startup so there is no Name for the Launcher; he has the name "" and now when i try to delete it comes pyton error. I tried to find the Lib where all the Launchers are stored...
Ho... ok. Launcher infos are stored into launchers.xml file. This file is stored into :
  • /home/username/.xbmc/userdata/addon_data/plugin.program.advanced.launcher folder for linux
  • Users\username\AppData\Roaming\XBMC\userdata\addon_data\plugin.program.advanced.launcher folder for windows
You can edit the launchers.xml file using a text editor and add the launcher name where it is missing. Structure of launcher are like this :
Code:
...
<launcher>
    <name>[b]launcher name[/b]</name>
    <application>[b]application[/b]</application>
    <args>[b]arguments[/b]</args>
    ....
I will fix this error for the next version. Thank you for your feedback.


- Thrasher666 - 2011-01-25

Oh man, thx...

Do you want some screenshots as a gesture what other´s do with your addon?


- Angelscry - 2011-01-25

Thrasher666 Wrote:Do you want some screenshots as a gesture what other´s do with your addon?
Yes, of course. Feel free to share here, with all people, anything related to the Advancer Launcher. It could generate, ideas, suggestions, question, etc... Nod


- TheHazel3yes - 2011-01-25

Angelscry Wrote:I hope it will be what you are expecting.... Wink

Now that's interesting! You put the "-conf" argument into the launchers part and the conf file into the rom part and it's working. I put the "-conf" to the rom part (in front of the configfile path of course) and it doesn't work. Strange. I thought it would make no difference...
Problem is: I only have seven games in my DOS launcher and six of them are using the same conf and mapper file (as the are Commander Keen I - VI). So with your method I'd have to create a conf for every game. Instead I want it to use like this:
Code:
<launcher>
    <name>DOS</name>
    <application>/usr/bin/dosbox</application>
    <args>"%rom%" -exit</args>
    <rompath>/home/xbmc/Games/DOS/Roms/</rompath>
    <thumbpath>/home/xbmc/Games/DOS/Artwork/Thumbs/</thumbpath>
    <fanartpath>/home/xbmc/Games/DOS/Artwork/Fanart/</fanartpath>
    <romext>exe</romext>
    <platform>IBM PC Compatible</platform>
    <thumb>/home/xbmc/Games/DOS/thumb.jpg</thumb>
    <fanart>/home/xbmc/Games/DOS/fanart.jpg</fanart>
    <genre></genre>
    <release>1981</release>
    <publisher></publisher>
    <launcherplot>...</launcherplot>
    <wait>true</wait>
    <minimize>true</minimize>
    <lnk></lnk>
    <roms>
        <rom>
            <name>Commander Keen Episode VI: Aliens Ate My Babysitter!</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 6/KEEN6.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 6.jpg</fanart>
            <genre>Action</genre>
            <release>1991</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>Commander Keen Episode I: Marooned on Mars</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 1/KEEN1.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 1.jpg</fanart>
            <genre>Action</genre>
            <release>1990</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>Commander Keen Episode III: Keen Must Die</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 3/KEEN3.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 3.jpg</fanart>
            <genre>Action</genre>
            <release>1991</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>Commander Keen Episode IV: Secret of the Oracle</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 4/KEEN4E.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 4.jpg</fanart>
            <genre>Action</genre>
            <release>1991</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>Commander Keen Episode II: The Earth Explodes</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 2/KEEN2.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 2.jpg</fanart>
            <genre>Action</genre>
            <release>1991</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>The Need for Speed Special Edition</name>
            <filename>-conf /home/xbmc/.dosbox/dosbox-nfsse.conf</filename>
            <platform>IBM PC Compatible</platform>
            <thumb>/home/xbmc/Games/DOS/Artwork/Thumbs/The Need For Speed Special Edition.jpg</thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/The Need For Speed Special Edition.jpg</fanart>
            <genre>Racing</genre>
            <release>1995</release>
            <publisher>Electronic Arts</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>Commander Keen Episode V: The Armageddon Machine</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 5/KEEN5E.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 5.jpg</fanart>
            <genre>Action</genre>
            <release>1991</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
    </roms>
</launcher>
The six Keen games are using standard conf and are loaded directly through the exe - dosbox automatically sets the right path then.
Only Need for Speed uses another conf and mapps and loads its needed drives and programs.


- TheHazel3yes - 2011-01-25

Angelscry Wrote:Yes, of course. Feel free to share here, with all people, anything related to the Advancer Launcher. It could generate, ideas, suggestions, question, etc... Nod

Oh, btw: feel free to use my screenshots too if you want. The last two are the better ones as the first two can't show plot atm, however this will be fixed by the skin creator the next days.


- MOmo42 - 2011-01-25

I am curious where I can find the xml data for a launcher shortcut I created in Aeon mq2 using Advanced Launcher? The link is bad and I can not edit it from inside of XBMC. Every time I try I get this error: "SCRIPT FAILED: ADDON.PY" This happens no matter what action I try and take with the link. Thanks in advance for any help. Great MOD, it is really rounding out my media center nicely.


- Angelscry - 2011-01-25

TheHazel3yes Wrote:Now that's interesting! You put the "-conf" argument into the launchers part and the conf file into the rom part and it's working. I put the "-conf" to the rom part (in front of the configfile path of course) and it doesn't work. Strange. I thought it would make no difference...
Problem is: I only have seven games in my DOS launcher and six of them are using the same conf and mapper file (as the are Commander Keen I - VI). So with your method I'd have to create a conf for every game. Instead I want it to use like this:
Code:
<launcher>
    <name>DOS</name>
    <application>/usr/bin/dosbox</application>
    <args>"%rom%" -exit</args>
    <rompath>/home/xbmc/Games/DOS/Roms/</rompath>
    <thumbpath>/home/xbmc/Games/DOS/Artwork/Thumbs/</thumbpath>
    <fanartpath>/home/xbmc/Games/DOS/Artwork/Fanart/</fanartpath>
    <romext>exe</romext>
    <platform>IBM PC Compatible</platform>
    <thumb>/home/xbmc/Games/DOS/thumb.jpg</thumb>
    <fanart>/home/xbmc/Games/DOS/fanart.jpg</fanart>
    <genre></genre>
    <release>1981</release>
    <publisher></publisher>
    <launcherplot>...</launcherplot>
    <wait>true</wait>
    <minimize>true</minimize>
    <lnk></lnk>
    <roms>
        <rom>
            <name>Commander Keen Episode VI: Aliens Ate My Babysitter!</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 6/KEEN6.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 6.jpg</fanart>
            <genre>Action</genre>
            <release>1991</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>Commander Keen Episode I: Marooned on Mars</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 1/KEEN1.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 1.jpg</fanart>
            <genre>Action</genre>
            <release>1990</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>Commander Keen Episode III: Keen Must Die</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 3/KEEN3.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 3.jpg</fanart>
            <genre>Action</genre>
            <release>1991</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>Commander Keen Episode IV: Secret of the Oracle</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 4/KEEN4E.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 4.jpg</fanart>
            <genre>Action</genre>
            <release>1991</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>Commander Keen Episode II: The Earth Explodes</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 2/KEEN2.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 2.jpg</fanart>
            <genre>Action</genre>
            <release>1991</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>The Need for Speed Special Edition</name>
            <filename>-conf /home/xbmc/.dosbox/dosbox-nfsse.conf</filename>
            <platform>IBM PC Compatible</platform>
            <thumb>/home/xbmc/Games/DOS/Artwork/Thumbs/The Need For Speed Special Edition.jpg</thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/The Need For Speed Special Edition.jpg</fanart>
            <genre>Racing</genre>
            <release>1995</release>
            <publisher>Electronic Arts</publisher>
            <gameplot>...</gameplot>
        </rom>
        <rom>
            <name>Commander Keen Episode V: The Armageddon Machine</name>
            <filename>/home/xbmc/Games/DOS/Roms/Commander Keen 5/KEEN5E.EXE</filename>
            <platform>IBM PC Compatible</platform>
            <thumb></thumb>
            <fanart>/home/xbmc/Games/DOS/Artwork/Fanart/Commander Keen 5.jpg</fanart>
            <genre>Action</genre>
            <release>1991</release>
            <publisher>id Software</publisher>
            <gameplot>...</gameplot>
        </rom>
    </roms>
</launcher>
The six Keen games are using standard conf and are loaded directly through the exe - dosbox automatically sets the right path then.
Only Need for Speed uses another conf and mapps and loads its needed drives and programs.
If you put the -conf argument into the filename tag, like for the Need for Speed game, the command line will be like this:
Code:
/usr/bin/dosbox "-conf /home/xbmc/.dosbox/dosbox-nfsse.conf" -exit
So, It will not working. The -conf argument must not have to be between double quotes:
Code:
/usr/bin/dosbox -conf "/home/xbmc/.dosbox/dosbox-nfsse.conf" -exit
The only way I see, for you to use both filename formats (.conf and .EXE) at the same time with the same launcher is to remove the double quotes from the arg tag and use filenames and paths without any white space.
Code:
...
<name>DOS</name>
<application>/usr/bin/dosbox</application>
<args>[b]%rom% -exit[/b]</args>
...
Code:
...
<name>Commander Keen Episode VI: Aliens Ate My Babysitter!</name>
<filename>[b]/home/xbmc/Games/DOS/Roms/CommanderKeen6/KEEN6.EXE[/b]</filename>
<platform>IBM PC Compatible</platform>
...
Code:
...
<name>The Need for Speed Special Edition</name>
<filename>[b]-conf /home/xbmc/.dosbox/dosbox-nfsse.conf[/b]</filename>
<platform>IBM PC Compatible</platform>
...
By definition a file launcher will launch application file with the same manner for all the files. So, like in your case, if you want to start file using different manner with the same launcher, you will reach a compromise (use individual conf files for all games or use path and filename without white spaces).


- Angelscry - 2011-01-25

MOmo42 Wrote:I am curious where I can find the xml data for a launcher shortcut I created in Aeon mq2 using Advanced Launcher? The link is bad and I can not edit it from inside of XBMC. Every time I try I get this error: "SCRIPT FAILED: ADDON.PY" This happens no matter what action I try and take with the link. Thanks in advance for any help. Great MOD, it is really rounding out my media center nicely.
The favourite/shortcut links are located into the favourites.xml file into /home/username/.xbmc/userdata/ (linux) or \Users\username\AppData\Roaming\XBMC\userdata\ (windows). The use of this shortcut by Aeon is located into the guisettings.xml file into /home/username/.xbmc/userdata/ (linux) or \Users\username\AppData\Roaming\XBMC\userdata\ (windows). Wink


- TheHazel3yes - 2011-01-25

Thanks! That brings me to the next idea(s):
1st: I could try adding the quotes to the rom filenames so I can still use spaces.
2nd: The DOSBox wiki says I can use quotes (especially when there are spaces), that's why I was wondering it didn't work. However I still had -exit outside these quotes, so maybe that's been the cause. I'll give it a try. Wink


- Riffmaker - 2011-01-25

Angelscry Wrote:Ok... I was able to start dosbox, using conf files from the advanced launcher. This is my launchers.xml file configuration for the launcher :
And for the rom part :
Code:
...
<name>doom</name>
<filename>[b]/media/emulation/dosbox/roms/doom.conf[/b]</filename>
...
Now this is the last line of my doom.conf file. The most important here is to mount the folder where is located your games. In my case games are into /media/emulation/dosbox/roms folder and each game is into separate directory (e.g. doom game is into /media/emulation/dosbox/roms/doom)
Code:
...
[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
[b]mount c /media/emulation/dosbox/roms[/b]
c:
cd doom
DOOM.EXE
exit
I hope it will be what you are expecting.... Wink
I think this method is better than using .bat file. Thankv you to make me discover it !!!!

omg! You're my hero! Thanks for finding this out. This is the perfect dosbox solution


- fr500 - 2011-01-25

Hey angelscry, could I ask for one favor, could you list the attributes you expose to XBMC on the listitems?

I know a few like

ListItem.label
ListItem.genre
ListItem.studio
ListItem.plot

Are there anymore for fanart paths, etc?


- MOmo42 - 2011-01-25

Angelscry Wrote:The favourite/shortcut links are located into the favourites.xml file into /home/username/.xbmc/userdata/ (linux) or \Users\username\AppData\Roaming\XBMC\userdata\ (windows). The use of this shortcut by Aeon is located into the guisettings.xml file into /home/username/.xbmc/userdata/ (linux) or \Users\username\AppData\Roaming\XBMC\userdata\ (windows). Wink

Thanks for the quick response. Nod
I actually found the link data in a different location than you suggested.

AppData\Roaming\XBMC\userdata\addon_data\plugin.program.advanced.launcher\launchers.xml