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


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-12

(2012-06-12, 09:23)goldsac Wrote: Ok, I've tried this on my own enough to realize I'm not going to be able to solve my issue myself, so I've come to you all for help.

The issue: I'm running XBMC Eden in Win7 64, with a dual display setup such that my HDTV is a secondary monitor. I want to set up Advanced Launcher (AL) to work with my many emulators on my TV. For emulators that include a display toggle (primary vs secondary), this is not a problem at all. There are others, though, that insist on latching onto the primary display (ie my monitor) exclusively for fullscreen mode (e.g., Kega Fusion, though there are others).

To get around this, I've been trying to set up an Ultramon shortcut that ought to trigger my display settings to switch, such that my HDTV becomes primary (and auto-switches back upon closing the emu program). This is not working with AL though. I can confirm that the Ultramon shortcut(s) I've created work properly when launched via Windows Explorer - but if I set the same shortcut as the application pathway in AL, it ignores the shortcut and just launches the emu as it always has: on my regular monitor. My Ultramon shortcut is being ignored completely, as the HDTV doesn't adopt primary monitor status upon launch from AL.

I can't really find any loose ends with what I'm trying, but maybe someone here can shed some light on this for me. I feel like I'm *this* close to getting this to work out, and it's driving me nuts. I'm also open to suggestions for alternate approaches. From what I've read, it seems as though a batch file might be able to help in this situation. I understand completely what a batch file is, but, unfortunately haven't a clue as to how to go about creating one from scratch (even modifying one can be a challenge, though I'm up to it if I can get a kick-start). It'd be cool someone here has either run into this exact situation, or some variation, and has a solution ready-made - that said, I'll take whatever help I can get!
I this case I think the best way is to create small .bat or autoit scripts that will be started instead of the emulator. These script will change the active display before starting the emulator or force the emulator to start on a specific display. For this it exist a small application under windows that work with command line : Display Changer

For example the command line :

Code:
dccmd.exe -monitor="\\.\DISPLAY1" -width=1024 -height=768

Will specify to operate on the first monitor with a screen resolution of 1024x768px. So you could create small launchers like this one :

Code:
dccmd.exe -monitor="\\.\DISPLAY2" -width=1024 -height=768
C:\Program Files\snes9x\snes9x.exe -fullscreen "$1"
dccmd.exe -monitor="\\.\DISPLAY1" -width=1024 -height=768

This script, for example, will start Snes9X on second monitor. When Snes9X will be closed focus will be forced to first monitor (where XBMC may be running). You will surely need to adapt this script to work on your system (modify display name or resolution), but the idea is here. You will found more example on Display Changer web page.



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - goldsac - 2012-06-13

Thanks for responding. I managed to get it working properly with the following batch sequence:

Start /w HdtvPrimary.vbs
Start /w emulator.exe
Start CPUprimary.vbs

(where the vbs scripts are ultramon profiles, which make my hdtv and computer monitor the primary monitor, respectively).

Thanks though! Appreciate the thought & effort.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - bakito - 2012-06-14

xbmc keep crashing now when I play an windows game...
http://pastebin.com/6aeTwr0b

any ideas?


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-14

(2012-06-14, 17:09)bakito Wrote: xbmc keep crashing now when I play an windows game...
http://pastebin.com/6aeTwr0b

any ideas?
I have count 82 XBMC error lines into your log file, but none related to Advanced Launcher. Normally on a stable XBMC install you may have no errors. I strongly suggest you to remove bugged add-ons and skin or make a clean install of XBMC.




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - bakito - 2012-06-15

Will do!
Thanks!
Cheers!


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-16

Version 1.8.9 : This new version of Advanced Launcher fix errors occurring during scraping due to Internet connection or files access problems (timed out errors). Thank to [email protected] for report and patches.

Changelog :


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - goldsac - 2012-06-16

I like the way it sorts items, ignoring articles "the" and "a". Is there anywhere in the code that we could modify this to add to the list of ignored words?

This has come up with SNES games. There are too many games that are prefixed with the word "super". I like to keep the prefix in the title but have, for example, Super Castlevania IV show up in the C section.

It'd be cool if a setting could be made in this regard, but i'd certainly settle for adjusting a few lines of code if that would be easy enough - just need to know where to tweak it.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-17

(2012-06-16, 23:59)goldsac Wrote: I like the way it sorts items, ignoring articles "the" and "a". Is there anywhere in the code that we could modify this to add to the list of ignored words?
Articles are moved (or not) at the end by the title_format function (lines 2412 to 2426 from launcher_plugin.py file)

(2012-06-16, 23:59)goldsac Wrote: This has come up with SNES games. There are too many games that are prefixed with the word "super". I like to keep the prefix in the title but have, for example, Super Castlevania IV show up in the C section.
Code:
def title_format(self,title):
    if ( self.settings[ "clean_title" ] ):
       title = re.sub('\[.*?\]', '', title)
       title = re.sub('\(.*?\)', '', title)
       title = re.sub('\{.*?\}', '', title)
    new_title = title.rstrip()
    if ( self.settings[ "title_formating" ] ):
        if (title.startswith("The ")): new_title = title.replace("The ","",1)+", The"
        if (title.startswith("A ")): new_title = title.replace("A ","",1)+", A"
        if (title.startswith("An ")): new_title = title.replace("An ","",1)+", An"
        if (title.startswith("Super ")): new_title = title.replace("Super ","",1)+", Super"
    else:
        if (title.endswith(", The")): new_title = "The "+"".join(title.rsplit(", The",1))
        if (title.endswith(", A")): new_title = "A "+"".join(title.rsplit(", A",1))
        if (title.endswith(", An")): new_title = "An "+"".join(title.rsplit(", An",1))
        if (title.endswith(", Super")): new_title = "Super "+"".join(title.rsplit(", Super",1))
    return new_title

It may do the job (but not tested).


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - goldsac - 2012-06-17

(2012-06-17, 03:25)Angelscry Wrote:
(2012-06-16, 23:59)goldsac Wrote: I like the way it sorts items, ignoring articles "the" and "a". Is there anywhere in the code that we could modify this to add to the list of ignored words?
Articles are moved (or not) at the end by the title_format function (lines 2412 to 2426 from launcher_plugin.py file)

(2012-06-16, 23:59)goldsac Wrote: This has come up with SNES games. There are too many games that are prefixed with the word "super". I like to keep the prefix in the title but have, for example, Super Castlevania IV show up in the C section.
Code:
def title_format(self,title):
    if ( self.settings[ "clean_title" ] ):
       title = re.sub('\[.*?\]', '', title)
       title = re.sub('\(.*?\)', '', title)
       title = re.sub('\{.*?\}', '', title)
    new_title = title.rstrip()
    if ( self.settings[ "title_formating" ] ):
        if (title.startswith("The ")): new_title = title.replace("The ","",1)+", The"
        if (title.startswith("A ")): new_title = title.replace("A ","",1)+", A"
        if (title.startswith("An ")): new_title = title.replace("An ","",1)+", An"
        if (title.startswith("Super ")): new_title = title.replace("Super ","",1)+", Super"
    else:
        if (title.endswith(", The")): new_title = "The "+"".join(title.rsplit(", The",1))
        if (title.endswith(", A")): new_title = "A "+"".join(title.rsplit(", A",1))
        if (title.endswith(", An")): new_title = "An "+"".join(title.rsplit(", An",1))
        if (title.endswith(", Super")): new_title = "Super "+"".join(title.rsplit(", Super",1))
    return new_title

It may do the job (but not tested).

Thanks for checking, appreciate it.

I gave that a shot, but unfortunately it just produces a script error upon launch of the add-on when implemented.



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-17

(2012-06-17, 05:51)goldsac Wrote:
(2012-06-17, 03:25)Angelscry Wrote:
(2012-06-16, 23:59)goldsac Wrote: I like the way it sorts items, ignoring articles "the" and "a". Is there anywhere in the code that we could modify this to add to the list of ignored words?
Articles are moved (or not) at the end by the title_format function (lines 2412 to 2426 from launcher_plugin.py file)

(2012-06-16, 23:59)goldsac Wrote: This has come up with SNES games. There are too many games that are prefixed with the word "super". I like to keep the prefix in the title but have, for example, Super Castlevania IV show up in the C section.
Code:
def title_format(self,title):
    if ( self.settings[ "clean_title" ] ):
       title = re.sub('\[.*?\]', '', title)
       title = re.sub('\(.*?\)', '', title)
       title = re.sub('\{.*?\}', '', title)
    new_title = title.rstrip()
    if ( self.settings[ "title_formating" ] ):
        if (title.startswith("The ")): new_title = title.replace("The ","",1)+", The"
        if (title.startswith("A ")): new_title = title.replace("A ","",1)+", A"
        if (title.startswith("An ")): new_title = title.replace("An ","",1)+", An"
        if (title.startswith("Super ")): new_title = title.replace("Super ","",1)+", Super"
    else:
        if (title.endswith(", The")): new_title = "The "+"".join(title.rsplit(", The",1))
        if (title.endswith(", A")): new_title = "A "+"".join(title.rsplit(", A",1))
        if (title.endswith(", An")): new_title = "An "+"".join(title.rsplit(", An",1))
        if (title.endswith(", Super")): new_title = "Super "+"".join(title.rsplit(", Super",1))
    return new_title

It may do the job (but not tested).

Thanks for checking, appreciate it.

I gave that a shot, but unfortunately it just produces a script error upon launch of the add-on when implemented.
You have to take care of spaces vs. tabulations in the python code indentation.




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - ali2k1 - 2012-06-17

Hi angelscry im having problem with demul i followed the setup from gwaeneal. It works great and exits fine but i select a different game it loads the first game i loaded.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-17

(2012-06-17, 15:52)ali2k1 Wrote: Hi angelscry im having problem with demul i followed the setup from gwaeneal. It works great and exits fine but i select a different game it loads the first game i loaded.
Demul command line is bugged. You can mount manually GDRom images from Demul, but cannot do it from the command line. They have also removed the gdrDemul.dll plugin that previously allows to start mounted GDRom images (with DaemonTools for example). Results... it is actually not possible to mount GDRom images from Demul using command line. When you try to do it Demul always start the last manually mounted image.

Best move is actually to use nullDC instead of Demul.




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-17

(2012-06-17, 20:17)Angelscry Wrote:
(2012-06-17, 15:52)ali2k1 Wrote: Hi angelscry im having problem with demul i followed the setup from gwaeneal. It works great and exits fine but i select a different game it loads the first game i loaded.
Demul command line is bugged. You can mount manually GDRom images from Demul, but cannot do it from the command line. They have also removed the gdrDemul.dll plugin that previously allows to start mounted GDRom images (with DaemonTools for example). Results... it is actually not possible to mount GDRom images from Demul using command line. When you try to do it Demul always start the last manually mounted image.
I think I have found a way to bypass this... I'm working on it....Wink




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Angelscry - 2012-06-17

(2012-06-17, 15:52)ali2k1 Wrote: Hi angelscry im having problem with demul i followed the setup from gwaeneal. It works great and exits fine but i select a different game it loads the first game i loaded.
Could you confirm me that this new DEmul launcher autoit script is working on your system :

Code:
Opt("WinTitleMatchMode", 1)
Opt("MouseCoordMode", 0)
HotKeySet("{ESC}", "Terminate")

$app = "C:\Program Files (x86)\demul\demul.exe"
$ini = "C:\Program Files (x86)\demul\gdrImage.ini"

If $CmdLine[0] == 1 Then
    FileDelete ( $ini )
    Local $file = FileOpen($ini, 1)
    If $file = -1 Then
            Exit 0
    EndIf
    FileWriteLine($file, "[main]")
    FileWriteLine($file, "imageFileName = " & $CmdLine[1])
    FileWriteLine($file, "openDialog = false")
    FileClose($file)
    Run($app)
    WinWaitActive ( "Demul" )
    MouseMove ( 17, 33, 0)
    MouseClick("left")
    Send ("{DOWN}")
    Send ("{ENTER}")
    WinWaitActive ( "gpu" )
    Send("!{ENTER}")
    While 1
        Sleep(100)
    WEnd
EndIf

Func Terminate()
    ProcessClose ( "demul.exe" )
    Exit 0
EndFunc

To use this script, you have to be sure that the gdrImage GD-ROM plugin is activated and that you are using the last version (0.5.7) of DEmul . You can also now simply close DEmul by pressing the ESC key. Wink


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - ali2k1 - 2012-06-18

Il try this out soon as im home, thank you il let you know if it works.