2013-02-04, 21:55
Hi! I'm having a little trouble with Advanced Launcher since upgrading to Frodo. Fceux, fusion, and pcsx2 now crash on startup if run from Advanced Launcher. Zsnes, desmume, and steam games load without sound. If I start it from anywhere else (using the same batch file I use to start it with advanced launcher) it works fine, even if I start it while xbmc is still running. If I disable sound within any given emulator that crashes, it works (albiet without sound). Here is what I hope is the relevant information you may need. I apologize in advance, my setup is a little convoluted, as I had no idea what I was doing when I started, and sort of created a Frankenstein as a result...
This is just a representative sample of launcher.xml. They're all set up pretty much the same way, though if you need more I can add the whole file. It's just fairly huge is all.
Here is the contents of the batch file I use to load the emulator. Note it has a few AutoIt scripts involved as well as the pssuspend tool, as it was the only way I could get it to work under Eden.
minimizexbmc.exe and maximizexbmc.exe are autoit scripts that do just that. Holdup.exe is an autoit script that just sleeps for 'x' milliseconds, 'x' being whatever number you put in as the argument. This helped on a previously used slower machine that needed time to get itself sorted before the emulator launched, but is not necessary on my new setup. I remarked it out. I also tried changing the fceux launcher to just directly launch fceux.exe and skip over my batch file just in case that was what's doing it, but the error still occurred. So, given that I can launch everything fine even with XBMC running as long as I don't use advanced launcher, my best guess is that it's a bug relating to advanced launcher playing nice with Frodo. And since everything works if I disable sound in the emulator or use directsound instead of wasapi in xbmc, I'm guessing it has to do wasapi exclusivity or something (I like pretending I know what I'm talking about, haha!). I'd be loathe to go to directsound, as the whole reason I went to Frodo was to bitstream HD audio.
I'd love any help if possible. Sorry for the wordy post... I'm not very good at this stuff so I'm trying to give all possible information. Speaking of which, I should probably mention platform and all that:
windows 7 64 bit
Frodo Final
Intel HDMI wasapi drivers (sound/graphics card is intel HD 4000)
Advanced Launcher version 1.10.19
EDIT: just occurred to me a debug log might help (derp) so I put one on pastebin here. Note it starts out on directsound (I forgot I had left it that way after testing) and it works fine, then I switch back to wasapi and try and load it again and it crashes.
This is just a representative sample of launcher.xml. They're all set up pretty much the same way, though if you need more I can add the whole file. It's just fairly huge is all.
PHP Code:
<launcher>
<id>834e3de14cc6f05e5507998f26a9fbde</id>
<name>Nintendo</name>
<application>C:\Users\David\Downloads\NES Emulator\Nintendo.bat</application>
<args>"%rom%"</args>
<rompath>C:\Users\David\Downloads\NES Emulator\ROMs\</rompath>
<thumbpath>C:\Users\David\Downloads\NES Emulator\ROMs\</thumbpath>
<fanartpath>C:\Users\David\Downloads\NES Emulator\ROMs\</fanartpath>
<custompath>C:\Users\David\Downloads\NES Emulator\ROMs\</custompath>
<romext>nes|zip</romext>
<platform>Nintendo Entertainment System</platform>
<thumb>C:\Users\David\Downloads\NES Emulator\ROMs\fceux.exe_thumb.jpg</thumb>
<fanart>C:\Users\David\Downloads\NES Emulator\ROMs\fceux.exe_fanart.jpg</fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<launcherplot></launcherplot>
<finished>false</finished>
<minimize>false</minimize>
<lnk>true</lnk>
Here is the contents of the batch file I use to load the emulator. Note it has a few AutoIt scripts involved as well as the pssuspend tool, as it was the only way I could get it to work under Eden.
PHP Code:
@echo off
REM pause XBMC and call for the game startup
minimizexbmc.exe
psSuspend XBMC.exe
rem start /wait holdup.exe 500
start /wait fceux.exe %1
REM resume XBMC
pssuspend -r xbmc.exe
maximizexbmc.exe
minimizexbmc.exe and maximizexbmc.exe are autoit scripts that do just that. Holdup.exe is an autoit script that just sleeps for 'x' milliseconds, 'x' being whatever number you put in as the argument. This helped on a previously used slower machine that needed time to get itself sorted before the emulator launched, but is not necessary on my new setup. I remarked it out. I also tried changing the fceux launcher to just directly launch fceux.exe and skip over my batch file just in case that was what's doing it, but the error still occurred. So, given that I can launch everything fine even with XBMC running as long as I don't use advanced launcher, my best guess is that it's a bug relating to advanced launcher playing nice with Frodo. And since everything works if I disable sound in the emulator or use directsound instead of wasapi in xbmc, I'm guessing it has to do wasapi exclusivity or something (I like pretending I know what I'm talking about, haha!). I'd be loathe to go to directsound, as the whole reason I went to Frodo was to bitstream HD audio.
I'd love any help if possible. Sorry for the wordy post... I'm not very good at this stuff so I'm trying to give all possible information. Speaking of which, I should probably mention platform and all that:
windows 7 64 bit
Frodo Final
Intel HDMI wasapi drivers (sound/graphics card is intel HD 4000)
Advanced Launcher version 1.10.19
EDIT: just occurred to me a debug log might help (derp) so I put one on pastebin here. Note it starts out on directsound (I forgot I had left it that way after testing) and it works fine, then I switch back to wasapi and try and load it again and it crashes.