2013-06-09, 11:32
(2011-02-02, 05:16)Angelscry Wrote:Binary77 Wrote:I hope someone can help me, or at least share with me how they've managed to get PCSX2 working within Advanced Launcher. Apologies if anyone feels like i'm asking a question that I could figure out myself, but i've searched for a solution quite a bit and genuinely need a bit of help with this.Ok... I have played this evening with the last version of PCSX2 (0.9.7), XBMC and advanced launcher to try to make them work together. This is what I have obtained and concluded using all of them on my Windows 7 system:So, my conclusion is that we cannot use XBMC/Advanced launcher to start directly PCSX2. We need to use and intermediate script to try to solve all of these problems.
- We need to use the last version 0.9.7 of PCSX2 if we want a good support of the command line. No lower version !!!
- PCSX2 is not able to hide the mouse cursor when started into fullscreen.
- The working directory need to be the directory where is located the PCSX2 executable file if we want it to found configuration files, ini files, bios files, etc...
- When exiting PCSX2 using the ESC key the PCSX2 process still active!!!! That's could explain why after exiting PCSX2, XBMC still minimized and sometime freezes.
I have wrote this following small script using Autoit :
Then I have compiled it into an executable file using Autoit, named the executable file as pcsx2-launcher.exe and saved it into the directory of PCSX2.Code:#include <Misc.au3>
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
_MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight)
ProcessClose ( "XBMC.exe" )
Run ( '"C:\Program Files (x86)\PCSX2 0.9.7\pcsx2-r3878.exe" --nogui "' & $CmdLine[1] & '"', "C:\Program Files (x86)\PCSX2 0.9.7\" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "pcsx2-r3878.exe" )
Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe"' )
Exit 0
EndFunc
Here is the part of my launchers.xml XML file corresponding to the PCSX2/Playstation 2 :And it's working...Code:<launcher>
<name>Playstation 2 (pcsx2)</name>
<application>C:\Program Files (x86)\PCSX2 0.9.7\pcsx2-launcher.exe</application>
<args>"%rom%"</args>
<rompath>E:\playstation2\roms\</rompath>
<thumbpath>E:\playstation2\covers\</thumbpath>
<fanartpath>E:\playstation2\fanarts\</fanartpath>
<extrafanartpath>E:\playstation2\fanarts\</extrafanartpath>
<romext>iso</romext>
<platform>Playstation 2</platform>
<thumb></thumb>
<fanart></fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<launcherplot></launcherplot>
<wait>true</wait>
<minimize>true</minimize>
<lnk>true</lnk>
<roms>
<rom>
<name>Suikoden III</name>
<filename>E:\playstation2\roms\suikoden III.iso</filename>
<platform>Playstation 2</platform>
<thumb>E:\playstation2\covers\suikoden III.JPG</thumb>
<fanart>E:\playstation2\fanarts\suikoden III.jpg</fanart>
<extrafanart>E:\playstation2\fanarts\</extrafanart>
<genre>Role-Playing</genre>
<release>2002</release>
<publisher>Konami Computer Entertainment Tokyo (KCET)</publisher>
<gameplot>The Suikoden series debuted in the early days of the original PlayStation. Six years after the first game and three years since the second‚ Konami brings the series back with Suikoden III for th$
</rom>
</roms>
</launcher>
Hey Angelscry. First of all I just wanted to say thank you for such a great application. It really works wonders! As far as my problem goes, I'm trying to get PCSX2 working correctly via the method you described above. I was having the same issue where when I launch PCSX2 it worked fine, but closing the application was the problem. So I went ahead and created the script you have above, compiled it to EXE, and all the other necessary steps. However when I go to launch a game, what it actually does now is it launches like it should but then the "focus" of my Windows goes to "Show Desktop" as if I have my mouse hovering over the "Show Desktop".
I noticed that post is a bit dated, so is this still the correct method of doing things? Or is there a new way since these applications have seen updates?
I'm running 32bit Windows 7, PCSX2 version pcsx2_1.0.0_r5350, XBMC version 12.1 Frodo, and Advanced Launcher 2.0.10. Here is a snippet of my script:
Code:
#include <Misc.au3>
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
_MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight)
ProcessClose ( "XBMC.exe" )
Run ( '"C:\Program Files\PCSX2\pcsx2-r3878.exe" --nogui "' & $CmdLine[1] & '"', "C:\Program Files\PCSX2\" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "pcsx2-r3878.exe" )
Run ( '"C:\Program Files\XBMC\XBMC.exe"' )
Exit 0
EndFunc
Thanks so much!