Posts: 10
Threads: 1
Joined: Nov 2011
Reputation:
0
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.
Firstly I will just go through the way my games folder structure to makes things easy:
Game\game.iso
Game\files\PCSX2_ui.ini
Game\files\memCard.ps2
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.
Now that all that is out of the way I can go to my exact problem, the following is my launch command:
--cfg="%rompath%\files\PCSX2_ui.ini" --nogui --fullscreen "%rom%"
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?
Posts: 1.909
Threads: 28
Joined: Jun 2010
Reputation:
75
11-04-2011, 02:58 PM
(This post was last modified: 11-04-2011, 03:07 PM by avih.)
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.
Posts: 10
Threads: 1
Joined: Nov 2011
Reputation:
0
Still can't get it to go. Did all your suggestions and double checked that the config files were all pointing to the correct spots but cpsx2 (r4600) just seems to completely ignore the config file. The following is the exact command I was putting into the command line:
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.
Posts: 10
Threads: 1
Joined: Nov 2011
Reputation:
0
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).
Posts: 1.909
Threads: 28
Joined: Jun 2010
Reputation:
75
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?
Posts: 10
Threads: 1
Joined: Nov 2011
Reputation:
0
dang it! Those were originally disabled but while testing I used altered a freshly generated ini by PCSX2 to try eliminate errors. It's working now (in portable mode). The following 2 commands worked:
E:\PS2\Emulator\PCSX2\pcsx2-r4600.exe "E:\PS2\Games\Baroque\Baroque.iso" --cfgpath=E:\PS2\Games\Baroque\files --nogui --fullscreen
E:\PS2\Emulator\PCSX2\pcsx2-r4600.exe "E:\PS2\Games\Persona 3 FES\Persona 3 FES.iso" --cfgpath="E:\PS2\Games\Persona 3 FES\files" --nogui --fullscreen
(just note that I added quotes in the second command)
The following doesn't (which is what I was originally using):
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"
Thanks a lot for your help.