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 - Oxize - 2012-12-29

(2012-12-25, 01:02)harSon Wrote:
Code:
nircmd win min process XBMC.exe
pssuspend XBMC.exe
pskill EventGhost.exe
cd "C:\Program Files (x86)\EventGhost\"
start EventGhost.exe Netflix.xml
cd "C:\Program Files (x86)\XBMC\Advanced Launcher\"
snetflix.exe %1
pssuspend -r XBMC.exe
pskill EventGhost.exe
cd "C:\Program Files (x86)\EventGhost\"
start EventGhost.exe XBMC.xml
nircmd win max process XBMC.exe
Was looking at your code, and this was quite usefull to me. Especially the pssuspend/pskill (pstools) and nircmd commands. Some roms can be pretty heavy, and with XBMC running in the background still eating resources it wont get better. With the suspend command i was able to run all roms now at full speed!

I changed all my scripts and working all great now.

Thanks! Rofl




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - dinzy - 2012-12-29

I am using the latest nightly of frodo on Win8. I followed the tutorial for iexplorer but it fails. Error script failed addon.py.




RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Raphael Barros - 2012-12-30

Anyone knows if the Snes9x-gtk works in Advanced Launcher? Which arguments I must use?


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

(2012-12-29, 23:25)dinzy Wrote: I am using the latest nightly of frodo on Win8. I followed the tutorial for iexplorer but it fails. Error script failed addon.py.
We must see your xbmc.log file to see what is the exactly cause of your error message. You can use a service like pastebin to post the content of the xbmc.log file here.


(2012-12-30, 01:15)Raphael Barros Wrote: Anyone knows if the Snes9x-gtk works in Advanced Launcher? Which arguments I must use?
Advanced launcher is able to start all kind of application supporting command line (or not). I do not know exactly the command line for Snes9x-gtk (do not have actually time to install it on my system to found them) but Snes9x-gtk is a linux port of Snes9x, so the command line must be similar than the windows version : http://www.gwenael.org/xbmc/index.php?title=Snes9X

If not you just have to type into a terminal :

Code:
snes9x-gtk -h

or

Code:
man snes9x-gtk

to have/read the detail of the command line support and then use it with Advanced Launcher.



RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Raphael Barros - 2012-12-30

Thanks for the help Angelcry, but since the snes9x is an executable file and don't need to install these commands doesn't work. And I'm still not able to acess your forum don't know why =(


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - rtwolfe - 2012-12-30

Toshiba bluetooth and Wiimotes - reconnection script for use with Advanced Launcher in XBMC.

First, many thanks to Angelscry for Advanced Launcher (and his patient support) and to all the other users who placed documentation on this and other forums. I have been working to get my Nintendo games to run in XBMC with advanced launcher and my standard wiimotes. Just over christmas, I have put enough pieces in place so that I have Confluence Lite Main Menu of Games with submenus of Wii, Nintendo 64 and NES games. All these games will run using our old standard Wii remotes running Toshiba bluetooth.

I plan to post how I got the NES part to work, in another post. THAT was tricky and thanks again to Angelscry for explaining how to set up Shortcut Lnk files in a launcher. That was key to getting NES running. He put up a great YouTube video that explained how to do it, well.
http://www.youtube.com/watch?v=JyfRa7gygEc

One of the early challenges involved keeping the wiimotes connected and paired with my XBMC pc. Eventually, I gave up trying to set up some automated function that would monitor and re-pair my wiimotes. So, as a next best thing, I found a way to use the Autoit scripting tool, to easily re-pair my wiimotes if they somehow got unb-paired or ran out of battery power. Below is how I did it.


My equipment and software

Wii Motes - standard. I do not have motion plus remotes
Replacement Sensor bar and a plug in AC adapter. I used an old iphone AC adapter that I had laying around the house.
Rechargeable batteries and stand - I use the one below. Nice price but amazon has odd message about it not being shipped correctly, so is not available
Windows 7 professional 64 bit
Generic bluetooth dongle - Mine 'looks' like this one. Is an old one I had laying around the house for years.
Toshiba bluetooth stack driver version 8.00.03 - need to get the non-trial version.
Auto it scripting tool - select the AutoIt Full Installation version, the first one, on the download page
Auto it editor - full version - the installer above contains a stripped down editor (missing help files and some helpful plug ins). Download and install the 2nd item on the download page, the AutoIt Script Editor.(Customised version of SciTE with lots of additional coding tools for AutoIt)
Dolphin - wii emulator - I use version 3.0-845 - for it's bluetooth refreshing capability - You can find this version in the archives. Perhaps a newer version will work too but this version worked for me.


Set up the hardware

Plug in the generic bluetooth dongle. Windows 7 will install the generic windows (widcomm) drivers. Then unzip the toshiba bluetooth driver install files. open and read the readme.txt file. Follow the install instructions. I installed v80003T_20101215_x64.exe and copied the other included file to the directory noted in the readme file. Reboot your PC so the Toshiba drivers are used. Double click on Start - Toshiba - Bluetooth - Bluetooth Settings and you should see the Toshiba bluetooth application.

Next you need to connect your wii motes. Click Bluetooth - New Connection and add new connection Wizard appears. Just keep pressing next and follow the instructions to pair your wii motes. Remember you need to Press your wiimotes 1 and 2 buttons at the same time so your PC can discover them. All the LED lights should begin to blink. If the PC finds and pairs the wii mote, an device with a name like Nintento RVL-CNT-01 appears in the Bluetooth Settings application window. If not, repeat the steps again. Follow this same procedure for up to 4 wii motes.

To use my script below, you must rename your wii mote device names in the Toshiba Bluetooth Settings application. Right click on the current wii mote name, select Rename and enter a new name. Be sure to put a sticker with the new wiimote name on the wiimote, so you know the name you assigned to each of your individual wiimotes. The upcoming script makes use of the new unique names you assign. You need each name to begin with a unique number or letter. You could call them 1-wiimote, 2-wiimote, etc. I elected to use the last 2 characters of the Bluetooth Device Address that you can see by selecting View - Details and checking the Bluetooth Device Address column. This is a unique number assigned at manufacturing time. For my 4 wiimotes, these gave me a way to assign unique names (6A-REMOTE, 89-REMOTE, etc). Again, this naming comes in handy, since whenever I reboot my PC, the active pairing is gone, but with specific names for each wii mote, I can use the autoit script below to quickly reactivate the correct pairing.

Set up the sensor bar.
Basically, I put this new sensor bar in the same position as my wii sensor bar. Luckily, I had an electric outlet nearby the big tv. Note the 'sensor' bar is just IR LEDs that the Wii Remote uses to triangulate. The bar has zero intelligence so the replacement does not need to be plugging into the wii console. It just needs power to turn on the two IR lights in the sensor bar.

set up the software

Install the Dolphin software you downloaded from link above. I basically just watched this video to learn how to do it.

Also, check the dolphin FAQs if dolphin fails to launch for you.
- Note, I DID need to install the VCOMP100.DLL and, I think, the directx runtime too. See FAQ page

Then, install Autoit scripting tool and the full editor. I did most my work by running the editor. You can test your scripts by saving your file and pressing F5 in the Full Editor to launch your script. If errors happen, you'll see a message in the bottom window of the editor. If I make changes to a script, I find I need to save and close and reload the changed script in the full editor to run a script again. Also, when you have your script working as desired, you can press F7 and the editor will launch the Autoit Compiler which will make an EXE file of your script, that you can link into XBMC as a Stand Alone Launcher
http://www.gwenael.org/forum/viewtopic.php?id=3

Here's my autoit script that handles the semi-automated process of reconnecting my 4 wii motes.
You will need to change several entries in the script that reflect my wii mote names and also the file paths that I have set up on my XBMC pc. You will need to make my script match how your system and files are configured.

OK - my post got too long with my code included. I will post my script in a post that should follow quickly after this one.

Once you have changed my script to fit your configuration, file paths etc and have successfully run your script by pressing F5 in the Autoit full editor, create an exe version by pressing F7 and place the exe file in a folder that will not be changed. Follow the Advanced Launcher steps to create a Standalone launcher for your compiled exe file and put that advanced launcher in your favorites and then, perhaps, add the stand alone launcher to a submenu or main menu for easy access.

You should be good to go!






Toshiba bluetooth and Wiimotes - reconnection script for use with Advanced Launcher in XBMC. (part 2)

Here's my Auto-IT script that is mentioned in my post earlier. It is non-optimized. Someone with better understanding of variables and looping could have done this much more efficiently.

Run("C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\ECCenter1.exe", "", @SW_MAXIMIZE)
WinWaitActive("Bluetooth Settings")

; Prompt the user to run the script - use a Yes/No/Cancel prompt (3 - see help file)
$answer = MsgBox(3, "Does remote 6A need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")
; Check the user's answer to the prompt (see the help file for MsgBox return values)
; If "Cancel" was clicked (2) then exit the script
If $answer = 2 Then
SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf

; Check the user's answer to the prompt (see the help file for MsgBox return values)
; If "Yes" was clicked (6) then reconnect
If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{6}") ;click to move to your 6A-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 6A remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf

; Prompt the user to run the script - use a Yes/No/Cancel prompt (3 - see help file)
$answer = MsgBox(3, "Does remote 32 need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")
If $answer = 2 Then

Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell, then hit spacebar, then have 3 seconds to kepress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app

SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf

If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{3}") ;click to move to your 32-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 32 remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf


$answer = MsgBox(3, "Does remote 89 need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")
If $answer = 2 Then

Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell, then hit spacebar, then have 3 seconds to kepress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app

SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf

If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{8}") ;click to move to your 89-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 89 remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf


$answer = MsgBox(3, "Does remote 96 need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")

If $answer = 2 Then

Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell, then hit spacebar, then have 3 seconds to kepress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app

SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf

If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{9}") ;click to move to your 6A-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 96 remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf


Send("!{F4}") ;close Toshiba bluetooth app

Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell,
; then hit spacebar, then have 3 seconds to keypress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app
Exit ; to exit the script




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

Thank you rtwolfe for this tutorial and this script.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - rtwolfe - 2012-12-31

How to get NES games to run in XBMC with Advanced Launcher

Many thanks to Anglescry and all the other's who have posted useful information in this forum. I wanted to give back, by sharing how I got my NES games to run under XBMC using advanced launcher. Also, you might need to check out my earlier post on - toshiba bluetooth - reconnectiong script for XBMC, too.

Overview:

To run NES games, it took several things to make it work. I used Nestopia emulator. Installed it an made sure I could run NES ROM files correctly using my keyboard. Then I made sure my wiimotes were properly connected with bluetooth to my XBMC PC. Next, I used Glovepie to configure the keystrokes that I would be sending from the 2 wiimotes I use to play NES gamess. Then I had to configure Nestopia inputs for gamepad1 and gamepad2 so it matches the keystrokes I was sending via glovepie. Then I used Autoit to activate and deactivate all the above in a script and then create a compiled EXE. That all went pretty well but when I tried to run the compiled exe with glovepie and nestopia stuff inside, I ran into the windows 7 UAC dialog window, that would only allow my exe to run if I clicked OK. I did not want to bypass security. I found a very complex routine that I could follow to manually set up a scheduled task with admin privs so I could click a shortcut to run the EXE. I was dreading that work, and then I found the UAC PASS utility program that did all the shortcut creation work for me. Lastly, I needed to set up a Advanced Launcher launcher for a shortcut! Angelscry saved the day again with a wonderful YouTUbe tutorial that showed me how to do it.

Hopefully, you can leverage my process to make your NES run in XBMC

Software used:

windows 7 professional 64 bit

Nestopia - 1.40
Download here.

GlovePIE - I used 0.43 without Emotiv support - click the "I already have 100% Green power, I'm ready to download GlovePIE." link to get to the download page

Auto it scripting tool - select the AutoIt Full Installation version, the first one, on the download page

Auto it editor - full version - the installer above contains a stripped down editor (missing help files and some helpful plug ins). Download and install the 2nd item on the download page, the AutoIt Script Editor.(Customised version of SciTE with lots of additional coding tools for AutoIt)

UAC PASS - Ver 1.7a - Download from here.

How to Do it:
Glovepie configuration:


With glovepie downloaded and unzipped, the package included a glovepie configuration file in the WiimoteScripts folder called 4PlayerNESClassic.PIE. Somehow for me, it did not work correctly so I cut it down and simplified it to handle 2 wiimotes without nunchuks (I may write a separate config file in the future so I can play Pac-man with a nunchuk as a joystick). Below is the config file I use. I called it 2PlayerNESClassic-RTW.PIE

2PlayerNESClassic-RTW.PIE


// 2 PLayer (since most games are two player) NES Script for Wiimote Only

//Player 1
// NES | Left | Up | Right | Down | Select | Start | B | A | B Turbo | A Turbo |
// WII | Up | Right | Down | Left | - | + | wii 1 | wii 2 | wii B | wii A | press wii-home to exit game

Wiimote1.Led1 = true
// Change orientation since Wiimote is on it's side
Key.Left = Wiimote.Up
Key.Up = Wiimote.Right
Key.Right = Wiimote.Down
Key.Down = Wiimote.Left

Key.Space = Wiimote.Minus // NES Select
Key.Enter = Wiimote.Plus // NES Start

Key.B = Wiimote.One // NES B
Key.A = Wiimote.Two // NES A
Key.Q = Wiimote.B // NES Turbo B
Key.W = Wiimote.A // NES Turbo A
Key.Alt+Key.X = Wiimote.Home // Have changed the nestopia.xml file so that Alt-X has replaced ESC to exit nestopia. Map to Wii home key, so we can exit


//Player 2
// NES | Left | Up | Right | Down | Select | Start | B | A | B Turbo | A Turbo |
// WII | Up | Right | Down | Left | - | + | wii 1 | wii 2 | wii B | wii A |

Wiimote2.Led2 = true
// Change key mapping and do not overlap between remotes

Key.L = Wiimote2.Up
Key.U = Wiimote2.Right
Key.R = Wiimote2.Down
Key.D = Wiimote2.Left

Key.1 = Wiimote2.Minus // NES Select
Key.2 = Wiimote2.Plus // NES Start

Key.3 = Wiimote2.One // NES B
Key.4 = Wiimote2.Two // NES A
Key.5 = Wiimote2.B // NES Turbo B
Key.6 = Wiimote2.A // NES Turbo A
Key.Alt+Key.X = Wiimote.Home // Have changed the nestopia.xml file so that Alt-X has replaced ESC to exit nestopia. Map to Wii home key, so we can exit
// End of PIE file

Nestopia configuration:

After installing Nestopia, there are some great instructions on Nestopia setup on this page - scroll about 2/3rds down on the page

Under Nestopia preferences, Be sure to click Switch to full screen on start and unclick Confirm Exit.

Then you need to set up how Nestopia responds to your wiimote keys. These will be Nestopia Gamepad1 and Gamepad2. When I set this up, I ran the glovepie config PIE file above and then used my two wiimotes to set up Nestopia.

The Hyperspin webpage shows how to do this. "From the Nestopia window, select Options>Input. ... You can change the input device and specific key mappings ... Select the key you want to change in the Mapping menu and click Set (highlighted in yellow) to set. Nestopia will wait 5 seconds for you to enter a new key. You can also click on Set All (next to Set) to set the entire mapping for that player's controls."

But, perhaps a better way to set up Nestopia is just to edit the nestopia.xml file directly. That file should be found in the same folder and nestopia.exe. Angelscry talks about this stuff here. (Note tho' we'll link up the games using shortcuts at the end). If you open the nestopia.xlm file in notepad, I first changed the Nestopia exit function to be triggered by Alt-X vs the escape key. I wanted to preserve the escape key to be what would exit everything and get me back to XBMC, if needed.

To do this, scan the nestopia.xml for this setting. Pick you own keystroke and again, I chose Alt X for mine.

<file>
<exit>Alt+X</exit>
<launcher>Alt+L</launcher>

Can edit file like this to automatically go to full screen

<run-background>no</run-background>
<start-fullscreen>yes</start-fullscreen>
<suppress-warnings>no</suppress-warnings>

You can manually set the gamepad1 and gamepad2 keystrokes by changing the nestopia.xml file like this, so it maps to what glovepie will be sending.

<pad-1>
<a>A</a>
<auto-fire-a>W</auto-fire-a>
<auto-fire-b>Q</auto-fire-b>
<b>B</b>
<down>Down</down>
<left>Left</left>
<mic>...</mic>
<right>Right</right>
<select>Space</select>
<start>Enter</start>
<up>Up</up>
</pad-1>
<pad-2>
<a>4</a>
<auto-fire-a>6</auto-fire-a>
<auto-fire-b>5</auto-fire-b>
<b>3</b>
<down>D</down>
<left>L</left>
<mic>...</mic>
<right>R</right>
<select>1</select>
<start>2</start>
<up>U</up>
</pad-2>
<pad-3>


Darn - too many words again. I will paste the 2nd part of this in my next post. Wish there was a way to get the limit temporarily raised.




How to get NES games to run in XBMC with Advanced Launcher - Part 2

See my post above for the 1st part of the steps needed to get this working.

Autoit Scripting:

The tricky part here is that you'll need to write an autoit script for each game you want to play. You'll create a compiled exe version of the game playing script. I put my autoit exe files in a NES games folder and then use UAC PASS to make a shortcut that does not need UAC ok to run. You can cut/paste that shortcut into your NES games folder that has the autoit compiled exe game files. Here's an example of one of my autoit game scripts. For your other ROMS, just edit the
Run('"E:\NES\NEStopia\nestopia.exe" "E:\NES\NEStopia\Games\Galaxian.zip"', "") line to your other ROMS' game file. Of course, change the paths to reflect your folder structure.

Galaxian.au3 starts below...


; Remember to copy the compiled executable exe file to the nestopia directory then use advanced launcher to link to the exe.
; this autoit script should launch glovepie and remap the 2 wiimotes to send new keypresses.

#requireadmin

Run('"E:\NES\GlovePIE\GlovePIE.exe" -"E:\NES\GlovePIE\WiimoteScripts\2PlayerNESClassic-RTW.PIE"',"")
;this is tricky. need to be able to pass ROM as arguement. Also, will use UAC PASS application, to create shortcut that bypasses UAC dialog
; then will add shortcut to this autoit compiled exe to advanced launcher.
Run('"E:\NES\NEStopia\nestopia.exe" "E:\NES\NEStopia\Games\Galaxian.zip"', "")
ProcessWaitClose("nestopia.exe")
ProcessClose("glovepie.exe")
; it seems like remotes go dead if glovepie closes, but running Dolphin wakes them up
Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wait for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell, then hit spacebar, then have 3 seconds to kepress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app
Exit ; to exit the script


Using UAC PASS:


This software is cool and simple to use. Download and install it. This link explains how to use it.

I just dragged each of my autoit EXE game launching files and dropped it on the bottom window in UAC PASS. I used the option to have UAC PASS create the UAC free shortcut on my desktop. I then cut and pasted each of the shortcuts from the desktop and put it into the same GAMES folder where I stored each of my NES game's Autoit scripts and exe's, so had all three (the .au3, .exe and .lnk) files all in the same folder

Adding NES games to Advanced Launcher:

Lastly, Angelscry has this great youtube showing how to add a set of shortcuts as an advanced launcher. In his example, he has shortcuts to various browsers/URLs in the same folder. He uses advanced launcher to add shortcuts as items under a files launcher. I followed that same process. Also, that's why you need to put all the UAC PASS NES game shortcuts in the same folder. Once you follow Angelscry's procedure to set up the launcher, you just add each shortcut as a file and then scan / manually add the thumbnail and fan art, and you're good to go.






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

@rtwolfe
Thank again for your tutorial but I do not understand why do you need to create an autoit script for EACH game you want to play? Why no create a file launcher that will start your script passing the argument parameters send by Advanced Launcher?

Code:
Run('"E:\NES\GlovePIE\GlovePIE.exe" -"E:\NES\GlovePIE\WiimoteScripts\2PlayerNESClassic-RTW.PIE"',"")
Run('"E:\NES\NEStopia\nestopia.exe" "' & $CmdLine[1] & '", "")
ProcessWaitClose("nestopia.exe")
ProcessClose("glovepie.exe")
Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE)
WinWaitActive("Dolphin 3.0-845-dirty")
Send("{F10}")
Send("{RIGHT 2}")
Send("{DOWN 5}")
Send("{ENTER}")
Sleep(1000)
Send("{ENTER}")
Send("!{F4}")
Exit

Then configure your launcher like this :

Application : path to your autoitscript
Argument : "%rom%"
File Extension : zip


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - rtwolfe - 2012-12-31

Hi Anglescry: Thanks for the quick feedback. It all gets pretty fuzzy. Was very tired this week trying to get this working.

I just tried using your code, with a small tweak. I think it needed a single tick just inside the last paren and Autoit seemed content.

Run('"E:\NES\NEStopia\nestopia.exe" "' & $CmdLine[1] & '", ""')


However, when I went thru the rest of my steps with your more generic script, ... making exe, making UAC free shortcut, and then linking that into Advanced launcher then add my zip ROMS, I got a Script failed - addon.PY error in XBMC when I tried to launch the game.

I remember running into this same issue while I was trying to get games to run in XBMC last week. I played around with bat files and tested different approaches. It looked like the error might be tied to the UAC issue? But I could make it work, did NOT get the addon.PY error, if I did NOT pass a parameter. So, not knowing a better alternative, I just put the zip game file name in each script and compiled each, yada yada.

So as Michaelangelo says to the Pope.. about 2:40 in the video. "It worked Mate....... "

Have a great week! Cheers


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Mudislander - 2012-12-31

I'm having a few problems with adding support into Hybrid do to lack of content. Thought I'd ask if anyone has a collection of fake nfo's, icons and fanart that I could use. Thanks in advance.


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - bigj8705 - 2012-12-31

Wow Just what I was trying to find... Sweet
Now to read how to on the setup...


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - DocMAX - 2012-12-31

How can i make ContextMenu work with Joystick Button 3? Doesn't work in Adv. Launcher but everywhere else...


RE: [RELEASE] Advanced Launcher - Applications Launcher Addon for XBMC - Elixxen - 2012-12-31

Hi there

I've been trying to figure out how this add-on works for quite some time now. What I've managed to do on my own is to get my emulator of choice working perfectly which means I finally can play all my Super Nintendo games on my TV again. Joy!

With that being set up I started looking into regular games like for instance Angry Birds, GTA Vice City and stuff like that. I managed to get the games to launch but the problem is that XBMC still sits on top after they launch. In other words, the launcher fails to bring the game to the front and therefore I have to use my mouse to bring the game to the front. Enabling the full screen option does nothing. Same thing happens except that XBMC goes into window mode when I launch something.

I should mention that I'm running OSX, not Windows. Any ideas of what I'm missing?


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

(2012-12-31, 08:15)rtwolfe Wrote: Hi Anglescry: Thanks for the quick feedback. It all gets pretty fuzzy. Was very tired this week trying to get this working.

I just tried using your code, with a small tweak. I think it needed a single tick just inside the last paren and Autoit seemed content.

Run('"E:\NES\NEStopia\nestopia.exe" "' & $CmdLine[1] & '", ""')
There is effectively an error into the script. Sorry, but the right synthax is not the one you have provided. The right one is :

Code:
...
Run('"E:\NES\NEStopia\nestopia.exe" "' & $CmdLine[1] & '"', "")
...

(2012-12-31, 08:15)rtwolfe Wrote: However, when I went thru the rest of my steps with your more generic script, ... making exe, making UAC free shortcut, and then linking that into Advanced launcher then add my zip ROMS, I got a Script failed - addon.PY error in XBMC when I tried to launch the game.

I remember running into this same issue while I was trying to get games to run in XBMC last week. I played around with bat files and tested different approaches. It looked like the error might be tied to the UAC issue? But I could make it work, did NOT get the addon.PY error, if I did NOT pass a parameter. So, not knowing a better alternative, I just put the zip game file name in each script and compiled each, yada yada.
No, the Script failed - addon.PY error message is an internal XBMC error message linked to Advanced Launcher and not at all related to what happen outside XBMC (.bat, script file or UAC). If the error message occurs again PLEASE post just after the content of your xbmc.log file, so I will be able to tell you what is going wrong, and if it is an Advanced Launcher bug, I will be able to fix it.

If your parameters are not passed correctly to your script, it could be only linked to 2 causes :
  • You do not have indicated the right arguments into Advanced Launcher (in this case, post the content or your launchers.xml file that contain launchers configuration),
  • Your script do not receive/use the arguements correctly and must be fixed/corrected (like I have just done for your script).

If you start several roms/items using the same emulator/application there is no need to create one script of each game... definitively not.


(2012-12-31, 11:28)Mudislander Wrote: I'm having a few problems with adding support into Hybrid do to lack of content. Thought I'd ask if anyone has a collection of fake nfo's, icons and fanart that I could use. Thanks in advance.
To be honest it will be more easy for you to create a launcher than trying to install fake information on your system. You just have create fake console game files (named for ex : mario bros.zip, zelda.zip) then create a file launcher pointing to a fake application (any executable you want), indicate the fake console game files directory. Then setup scrapers... then scan for new items. It take less than 5 min to do this. Look at this youtube tutorial : http://www.youtube.com/watch?v=vDjA68OY0wM