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


- jolid - 2010-11-20

Robert de Clair Wrote:Jolid

well i think a problem could be similiar to my problem Smile
http://forum.xbmc.org/showpost.php?p=642332&postcount=940

there was a few ideas to solve
http://forum.xbmc.org/showpost.php?p=645193&postcount=973

but for me reason and solution was simpliest
http://forum.xbmc.org/showpost.php?p=646896&postcount=990

Thank you for your responce, one step closer to a solution i think.

I havent got an optical drive on my htpc so thats not the problem. Maybe i have something mounted? but in that case it´s kinda strange that it would show the D:/livetv folder. This folder is only used by my capture card for recorded movies or tv-shows.

I´m gonna read through the second link you gave me and make another try tonight. If someone else have a solution feel freeSmile


- Angelscry - 2010-11-20

Robert de Clair Wrote:compiled autoit script launched by ALA just run winuae and doesnt load uss or uae file so may there is missing or too much " ' or other signs whos meaning i dont understand :>
additionally after launch autoit script ALA take back XBMC to foreground :/ (in background are still staying winaue)
It was more an idea to follow than the ultimate solution. Wink

Maybe your problems are related to command paths. I do not remember if WinUAE used relative or absolute paths. As you wrote here, the command line with relative paths should works :
Code:
winuae.exe -f "romname.uae" -statefile="Savestates\romname.uss"
But a command line with absolute paths may also works and in maybe in most of the case :
Code:
c:\program files\winuae\winuae.exe -f "c:\program files\winuae\roms\romname.uae" -statefile="c:\program files\winuae\Savestates\romname.uss"

The Run command as a show_flag to control the way you want to start the application (minimized, hidden or maximized) : http://www.autoitscript.com/autoit3/docs/functions/Run.htm


- Angelscry - 2010-11-20

jolid Wrote:I´m gonna read through the second link you gave me and make another try tonight. If someone else have a solution feel freeSmile
The cause of this bug are really unclear for me. For me it only occurs under Windows operating system. I will try the RC1 of Dharma today to see if the bug still here.


- jolid - 2010-11-20

Angelscry Wrote:The cause of this bug are really unclear for me. For me it only occurs under Windows operating system. I will try the RC1 of Dharma today to see if the bug still here.

Thank you, for what it´s worth im on RC1. I guess a workaround is to put shortcuts to the emulators in the only folder i can choose or maybe edit the xml file?


- Robert de Clair - 2010-11-20

Angelscry i found a solution to launch with your autoit script (at now from commandline)
- a winuae folder must be in root
so your autiot script works when emu is in D:\WinUAE\ but doesnot work properly when is in D:\Emulators\WinUAE\ or other more nested folder

its strange, because winuae is runned in both cases, but uss/uae files are loaded only when Winuae is in root of disc (its no matter D:\ or E:\ F:\ or other)


edit:
where is a mistake in this line?

Code:
Run ( 'winuae.exe -f "' & $romname & '" -statefile="Savestates\' & $savename & '"', @SW_MAXIMIZE)

i think i just add a
, @SW_MAXIMIZE
and script doesnt work. but imo i just add a parameter just like a tutorial shows

Code:
Run(@WindowsDir & "\Notepad.exe", "", @SW_MAXIMIZE)



- Angelscry - 2010-11-20

Quote:so your autiot script works when emu is in D:\WinUAE\ but doesnot work properly when is in D:\Emulators\WinUAE\ or other more nested folder
To avoid this you have to indicate in the script where is the winuae.exe : D:\Emulators\WinUAE\winuae.exe instead of only winuae.exe

Quote:where is a mistake in this line?
There is an empty parameter between the command line and the @SW_MAXIMIZE parameter. This script may be better works like this :
Code:
Run ( 'D:\Emulators\WinUAE\winuae.exe -f "' & $romname & '" -statefile="Savestates\' & $savename & '"', , @SW_MAXIMIZE)



- Robert de Clair - 2010-11-21

ctrl and 5 bugtracking window results

Code:
>C:\Program Files\AutoIt3\SciTE\..\au3check.exe "E:\Emulatory\WinUAE\wl.au3"
AutoIt3 Syntax Checker v1.54.8  Copyright (c) Tylo 2007

E:\Emulatory\WinUAE\wl.au3(5,106) : ERROR: syntax error
    Run ( 'E:\Emulatory\WinUAE\winuae.exe -f "' & $romname & '" -statefile="Savestates\' & $savename & '"', ,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\Emulatory\WinUAE\wl.au3 - 1 error(s), 0 warning(s)
>Exit code: 2    Time: 0.289

fullscript

Code:
if $CmdLine[0] = 1 Then
    $path = StringSplit($CmdLine[1], "\")
    $romname = $path[$path[0]]
    $savename = StringReplace($romname, ".uae", ".uss")
    Run ( 'E:\Emulatory\WinUAE\winuae.exe -f "' & $romname & '" -statefile="Savestates\' & $savename & '"', , @SW_MAXIMIZE)
EndIf

it looks like a bugtracking doesnt see @SW_MAXIMIZE switch

also

Run ( 'E:\Emulatory\WinUAE\winuae.exe -f "' & $romname & '" -statefile="Savestates\' & $savename & '"')

doesnt run uss uae if emu are not in root. so may there must be background prepared seems like a defined working folder or something.


- Angelscry - 2010-11-21

So try this....
Code:
Run ( 'E:\Emulatory\WinUAE\winuae.exe -f "' & $romname & '" -statefile="Savestates\' & $savename & '"', "", @SW_MAXIMIZE)



- Robert de Clair - 2010-11-21

ehh at now i have a launcher and every move must be confirmed with additionally enter key
i.e. im adding a new launcher:
im pressing C (context menu on existing launcher)
im selecting add a new launcher from context menu and im pressing enter
and theres nothing until i press enter second time (but this enter ofcourse has behavior on existing launcher so at now i have a screen with question about standalone or emulator launcher and additionally in background i have roms for previously created lunchers.
so there i must select i.e. emulator (enter key)
and theres again nothings happen until i press enter second time.

i hope you understand me.

next thing about autoit script
1 a uss should be as romname at now script works only if uae is as romname
2 when romname are with spaces script cannot run it (but everything works if im running it from commandline in kind like this:

wl.exe "lotus 3.uae"

wl is compiled exe name

but ofcourse best for me will be if wl works with uss.

i know im kind of struggler, but it could be helpful for every amiga user with ALA

there are no problem for me with changing emulator folder.

dharma rc1 and launcher 1.16.2 (portable)

another thing for ALA is changing of case sensitive Smile
so

Lotus III Ultimate Challenge

looks like a

Lotus iii ultimate challenge

Is there a reason for changing original case sensitivity of roms?


- Angelscry - 2010-11-21

Version 0.6.3
Ok, this is a new version of the launcher. There is not a lot of things new, but mostly cleaning and rearranging of the code and some bug fixes. It will also add some settings (see screens belows) that will starting to be available and activated on the next versions.

Image Image

ChangeLog:
  • Separated scrapers scripts from main launcher script
  • Added scraper selection and setttings option for gamedata, thumbs and fanarts (not active yet)
  • Fixed thumbs/fanarts error when searched game not exist
  • Removed automatic info save when exiting games list



- Angelscry - 2010-11-21

Robert de Clair Wrote:ehh at now i have a launcher and every move must be confirmed with additionally enter key
i.e. im adding a new launcher:
im pressing C (context menu on existing launcher)
im selecting add a new launcher from context menu and im pressing enter
and theres nothing until i press enter second time (but this enter ofcourse has behavior on existing launcher so at now i have a screen with question about standalone or emulator launcher and additionally in background i have roms for previously created lunchers.
so there i must select i.e. emulator (enter key)
and theres again nothings happen until i press enter second time.
What do you mean exactly bye "at Now"? Do you have changed something on your system? Because, it must not be related to the launcher. You are the first one to report me this error. Also, I have change nothing on the launcher code concerning the menu. So could not be related to my last updates. I have also tested the launcher this morning under Windows 7 with Dharma RC1 and I did not observed this.

Robert de Clair Wrote:next thing about autoit script
1 a uss should be as romname at now script works only if uae is as romname
2 when romname are with spaces script cannot run it (but everything works if im running it from commandline in kind like this:

wl.exe "lotus 3.uae"

wl is compiled exe name

but ofcourse best for me will be if wl works with uss.

i know im kind of struggler, but it could be helpful for every amiga user with ALA
Robert de Clair, I know that is is possible to solve your problem using autoit. Maybe you can ask additionnal help on the autoit forums (they are surely better than me to create autoit scripts) or to the winUAE community (they surely have encounter the same problem as you). It is a problem that is specific to winUAE, not to my launcher (or any other emulator frontend). I will try to look. Sorry. Just be patient.

Robert de Clair Wrote:another thing for ALA is changing of case sensitive Smile
so

Lotus III Ultimate Challenge

looks like a

Lotus iii ultimate challenge

Is there a reason for changing original case sensitivity of roms?
Hummm... I think the launcher was initially coded like that. But like you I did not see the reason. I did not noticed this because my skin only display capitalized title. I will try to fix this for the next version. Thank you for this feedback.


- smithr99 - 2010-11-21

seems to fail the script when you follow this process :
add new scraper
scan info for all new items
add new scraper
scan info for all new items

it doesn't seem to want to add new files into new scrapers once you've already got files in there ? unless im doing something wrong!

EDIT: never mind, seems to be the gameboy scraper thats not working - will look into it and let you know if any more info


Default arguments for emulators - Rob Loach - 2010-11-21

Rob Loach Wrote:

I uploaded a patch for this Wink


- Angelscry - 2010-11-21

smithr99 Wrote:seems to fail the script when you follow this process :
add new scraper
scan info for all new items
add new scraper
scan info for all new items

it doesn't seem to want to add new files into new scrapers once you've already got files in there ? unless im doing something wrong!

EDIT: never mind, seems to be the gameboy scraper thats not working - will look into it and let you know if any more info
If you post here your launchers.xml file I may be able to help you and see what is going wrong. It maybe still some exceptions bugs into my scraper.


- smithr99 - 2010-11-21

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.

By the way, in my addon settings, the options for auto download of fanart and thumbs are both greyed out. Any ideas ?

Many thanks for the great work on this plugin. I love it far more than RCB which to be honest is a pain in the ass to setup!