Maddoc1007 Posted June 26, 2015 Author Share Posted June 26, 2015 When you use Pcsx2 as a Playstation 2 emulator through Launchbox you import all your games into it, but they all run with the same configuration, that means with some games that you either have to use software plugins or harware plugins. What if you want your games working with a different configuration for each game? what then? I struggled with this and googled for an answer there was one but this meant you had to create shortcuts to the pcsx2 emulator and set properties in that shortcut for your games to work via that shortcut. This worked for some games through a frontend but not all, as some games complain that they cannot find the plugins, it depended on the length of the names ie:- where the games were stored etc. I looked around for an easier way but couldnt find one, so i decided to try and create an Autohotkey script that would work for each individual game and once you had it written for one game it would be easy to apply for all the other playstation 2 games you would have. But not only that, as you know when Esc key is pressed on pcsx2 when a game is running this only closed down the game emulation but does not close down the pcsx2 emulator or its background running process's and you have to manually with the mouse, click on System then scroll down to exit and click on Exit, which is far from ideal. Here is a copy of the script i made and have working for me, the game is running on software plugin and wont render graphics with a harware plugin which is why it needs a different configuration to a game that runs on Hardware graphics plugin:- Run C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\pcsx2-1.2-r5875.exe "C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\isos\Indiana Jones and the Emperor's Tomb\Indiana Jones and the Emperor's Tomb.iso" --cfgpath="C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\isos\Indiana Jones and the Emperor's Tomb\Indiana Jones inis" Esc:: Send, {ALTDOWN}{ENTER}{ALTUP} WinWait, PCSX2 1.2.1, IfWinNotActive, PCSX2 1.2.1, , WinActivate, PCSX2 1.2.1, WinWaitActive, PCSX2 1.2.1, MouseClick, left, 31, 34 MouseClick, left, 59, 353 ExitAPP return I will now try and explain the script to make it a bit easier to understand then i will tell you how to apply it on a per game basis. Run C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\pcsx2-r5875.exe This part of the script tells the emulator to open and where it is placed, as you can see its in LaunchBox in the documents folder and the full name of the emulator to open. "C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\isos\Indiana Jones and the Emperor's Tomb\Indiana Jones and the Emperor's Tomb.iso" This part of the script tells the emulator where your game iso is, whats its full name is and the folder it is in (make sure each game has its own folder in a folder called isos (your folder might be games or something different, in that case instead \isos\ it would be \games\ or what ever your game folder is called). --cfgpath= The configuration path "C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\isos\Indiana Jones and the Emperor's Tomb\Indiana Jones inis" This part of the script tells what folder the games ini file is, its in a folder called Indiana Jones inis which is inside the game folder(Indiana Jones and the Emperor's Tomb) inside the game folder(isos). Esc:: This tells the script that when you press escape on the keyboard Send, {ALTDOWN}{ENTER}{ALTUP} WinWait, PCSX2 1.2.1, IfWinNotActive, PCSX2 1.2.1, , WinActivate, PCSX2 1.2.1, WinWaitActive, PCSX2 1.2.1, MouseClick, left, 31, 34 MouseClick, left, 59, 353 This part of the script tells the emulator after the Esc button is pressed which automatically closes the game to wait and then click on System on the Pcsx2 emulator and then move mouse down and click on Exit (which will close down Pcsx2 and its running processes) MouseClick, left, 31, 34 is the mouse co-ordinates of where System tab is. MouseClick, left, 59, 353 is the mouse co-ordinates of where Exit is. ExitAPP return This part of script tells the script to exit and stop running. Well thats the script explained as best i can, now to show you how to put it in practice for each Playstation 2 game:- Make sure you have Autohotkey installed, i would also advise you to install a program called AutoScriptWriter (Google is your friend here). The first thing you need to do is open up the pcsx2 emulator, then click on CDVD and then Click on Iso Selector and then choose a game iso. Now configure that game plugins, gamepad etc to the way you want for that game. When you have the game set up the way you like it launch the game for a few seconds till it boots up, and then you can exit the game and emulator (but make sure you do not launch any other game or make any more changes) Now go to the inis folder and double click on PCSX2_ui.ini, go down to line DefaultToFullscreen=disabled and change it to DefaultToFullscreen=enabled and save and exit and close out of inis folder, Now copy the inis folder (this is important because it holds all the information for the game you have just set up). Make sure each game has its own folder and now paste the inis folder inside the game folder you just did the configuration for. Rename the inis folder to the Name of the Game inis (as my example script shows Indiana Jones inis). Now right click inside the folder and down to new and create a text document save it as the name of the game and add the text Run C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\pcsx2-1.2-1r5875.exe "C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\isos\Indiana Jones and the Emperor's Tomb\Indiana Jones and the Emperor's Tomb.iso" --cfgpath="C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\isos\Indiana Jones and the Emperor's Tomb\Indiana Jones inis" (all this part of the script is together except on where i tell you to put a space, see below) Esc:: Send, {ALTDOWN}{ENTER}{ALTUP} WinWait, PCSX2 1.2.1, IfWinNotActive, PCSX2 1.2.1, , WinActivate, PCSX2 1.2.1, WinWaitActive, PCSX2 1.2.1, MouseClick, left, 31, 34 MouseClick, left, 59, 353 ExitAPP return Run C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\pcsx2-r5875.exe= full path to your pcsx2 emulator, then press space and "C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\isos\Indiana Jones and the Emperor's Tomb\Indiana Jones and the Emperor's Tomb.iso" =where you game iso is the inverted comma's must be included, then a space --cfgpath =configuration Path "C:\Users\PC\Documents\LaunchBox\Emulators\pcsx2-1.2.1-r5875-binaries\isos\Indiana Jones and the Emperor's Tomb\Indiana Jones inis" this tells where your specific game ini is. Esc:: Send, {ALTDOWN}{ENTER}{ALTUP} WinWait, PCSX2 1.2.1, IfWinNotActive, PCSX2 1.2.1, , WinActivate, PCSX2 1.2.1, WinWaitActive, PCSX2 1.2.1, MouseClick, left, 31, 34 MouseClick, left, 59, 353 ExitAPP return can be copied as it is here. Now the reason i said to download an app called AutoScriptWriter is it can record mouse click's and their co-ordinates for you just in case your mouse co-ordinates for System and Exit are different to mine, as mine is a 4:3 screen. To do this open up AutoScriptWriter by clicking it's exe. It will stay in front of any window you open, now open Pcsx2 emulator and before you do anything else click on the record button on AutoScriptWriter it will shrink and go up into the left hand corner of your screen, now click on Sytem on your emulator and then click on Exit. When that is done click on Stop on AutoScriptWriter and it will maximise again and show you the co-ordinates of System and Exit and just change those mouse Click co-ordinates in script and then save the text. Now we change the .txt to .ahk (an autohotkey script). which will be the name of your game. Now all we need to do is open LaunchBox, go to the game you created the script for, right click go edit and point now where game is to the ahk instead of the iso, we also must under the emulator tab uncheck use emulator and then click on Ok, LaunchBox will say this game needs an emulator just click on No. You must do the above steps exactly for each Playstation 2 game (no shortcuts copying the ahx from one game folder to another to speed things up so you only need change paths of where emulator game etc is as script wont work for that game trust me i tried). So new text document for each game inside each game folder then all the code then change to ahk. I know this may seem a bit long winded but i wanted to make it as easy for you to understand as possible, and once you have one script done you'll be amazed how quickly you will do the rest. Quote Link to comment Share on other sites More sharing options...
ps4isthefuture Posted June 26, 2015 Share Posted June 26, 2015 Strange, my PCSX2 has always exited straight out for me on the esc key. versoin = pcsx2-r5875 --nogui --fullscreen --fullboot Quote Link to comment Share on other sites More sharing options...
Maddoc1007 Posted June 26, 2015 Author Share Posted June 26, 2015 @ps4isthefuture thank you for that ps4 no wonder mine didnt close out pcsx2 fully didnt have the --nogui, but saying that still leaves you with a default configuration for all games, thats why did a script to make each game have their own configuration, however that make the --nogui --fullscreen --fullboot not work as you point to the ahk and dont specify an emulator for the game the script does that. If any one knows a different way or easier way of doing be much obliged if they,d let us know. Quote Link to comment Share on other sites More sharing options...
bd00 Posted June 29, 2015 Share Posted June 29, 2015 I can make this work for you. I will do it later tonight/tomorrow. Quote Link to comment Share on other sites More sharing options...
ZedSpot Posted July 6, 2015 Share Posted July 6, 2015 Is there a way to handle pointing to the unique Config file in Launchbox? I found this instructional stating that this command line sample: "C:\Games\Playstation 2\PCSX2\pcsx2-r4600.exe" "C:\Games\Playstation 2\Final Fantasy X.iso" --cfgpath="C:\Games\PCSX2 configs\FFX-inis" could be used to launch the game with the unique configuration. Now currently any values Launchbox adds to the command line come before the .iso call, and this tutorial says it needs to be after the call to the .iso. So is there any way this might be able to work? ALSO, is there any way to have it launch with unique memory cards as well? I have hundreds of PS2 games, so I'm trying to streamline it as much as possible. Quote Link to comment Share on other sites More sharing options...
Maddoc1007 Posted July 6, 2015 Author Share Posted July 6, 2015 @ZedSpot tried the above method you described but unfortunately it wouldnt work for me as it wouldnt allow the full command line to be put into the properties target of the shortcut (if you notice in the example it gives, the paths to the emulator, games and inis as fairly short, however my paths to emulator, game and inis were longer and windows 7 wouldnt allow my longer path names to fully go into the properties target in the shortcut). That is why i did the above script in order to get my individual games to work and each have their own configuration. So afraid i dont know any other way, as for the unique memory cards i dont know either, hopefully someone else here on the forum might be able to help as my game saves save to the individual inis in each of the games folders. Quote Link to comment Share on other sites More sharing options...
bd00 Posted July 13, 2015 Share Posted July 13, 2015 Forgot about this. I will get round to it this week, I promise. Quote Link to comment Share on other sites More sharing options...
smokeyb Posted August 16, 2015 Share Posted August 16, 2015 Did you ever get round to it? Quote Link to comment Share on other sites More sharing options...
orac31 Posted August 22, 2015 Share Posted August 22, 2015 what I have done is downloaded pcsx2bounes from the pcsx2 site its a front end that lets you make custom configs. moved the config folder to for example shadow hearts 2 (which you need software to play) and used the line zed spot said to use in custom config. --cfgpath="F:\Launchbox\Games\Sony Playstation 2\Shadow Hearts - Covenant [Disc1of2]" --nogui --fullscreen --fullboot works well for me Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.