Having a rather simple problem. I use advanced launcher in xbmc to launch ps2 games through pcsx2. Basically it just sends a launch command using command line switches. Pretty simple stuff. The problem I'm having is one of my switches aren't working.
So every game has it's own config file and memory card, which are both always named the same thing. I auto generate the config files for each game so that they always contain the correct pointers to the memory card.
Advanced launcher %rompath% to the path of the iso and %rom% to the path and filename of the iso.
The problem I'm having is that PCSX2 is using the default config file rather than the specified config file. Anyone know what I'm doing wrong?
Well, PCSX2 0.97 (r3878) had a single pcsx2.ini for which --cfg worked. However, 0.98 (r4600) has two main ini files: pcsx_vm.ini and pcsx_ui.ini . I'm not sure --cfg can be used properly with 2 ini files instead of one (haven't tested it though, it might work somehow or might be broken).
You can, however, use --cfgpath="path\to\inis\folder" which might work better, and will probably make the plugins to use that folder as well (for their ini files).
However, it might behave slightly different in portable mode vs installed mode. My suggestion would be to use portable mode, and use absolute paths within the ini files themselves.
Let us know how it worked out eventually.
E:\PS2\Emulator\PCSX2\pcsx2-r4600.exe --cfgpath="E:\PS2\Games\The Nightmare Tower of Druaga\files" --nogui --fullscreen "E:\PS2\Games\The Nightmare Tower of Druaga\The Nightmare Tower of Druaga.iso"
The behavior exhibited by r4600 was to ignore the config files and use the ones found in its "inis" directory, creating them if they weren't there.
For now I am going to make a small launcher script to move files around during launch, it'll fix my issue but hardly an ideal solution.
Also, try taking the "quotes" off the path to the inis.
Last I knew, it wouldn't take it with "quotes".
In the switches? That's not going to work, anything with a space or a dash will break it (and I just tested and found that to be true).
I've just finished up writing and testing my script now. Works a treat but won't function too well if pcsx2 crashes (or if the script itself does but not much room for that to happen).
Other than following Rezard's recommendation, I'd also try (at least for the sake of this test) to use a path without spaces (and without using the quotes). Also, how exactly is it "just seems to completely ignore the config file"? care to post your config files as well?
The inis folder path can't be in "quotes".
This will load the specified inis folder as desired.
If I add quotes to the ini folder path (i.e. if any folder(s) in that path have spaces), then it will not work.
E:\PS2\Emulator\PCSX2\pcsx2-r4600.exe --cfgpath=E:\PS2\Games\Baroque\files --nogui --fullscreen "E:\PS2\Games\Baroque\Baroque.iso"
Hmm I think I covered everything, just tell me if you have any ideas or need more information.
Earlier I tried to use --cfgpath=full\path\to\inis (no spaces) and it seemed to work for me (just watched a single config value change, didn't look at memcards).
Also, you didn't write if you used portable mode (--portable or put portable.ini file at the same folder as pcsx2.exe), it might affect how/where the values are read.
And finally, yes, the command line arguments might be buggy. If you get to any conclusions beyond the notes which Rezard linked to, please post them here. Thanks.
E:\PS2\Emulator\PCSX2\pcsx2-r4600.exe --cfgpath="E:\PS2\Games\Persona 3 FES\files" --nogui --fullscreen "E:\PS2\Games\Persona 3 FES\Persona 3 FES.iso"