Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

If neither of those of work for you, you can donate any amount by clicking here.

Recommended Posts

Posted
  On 10/11/2012 at 8:50 PM, nullPointer said:

3. I looking at your batch scripts, I caught myself in an oversight. I got a bit carried away with the pseudo code in my previous message. You may need to provide the [WORKINGPATH], and [ROMFILE] variables as parameters (or arguments if you feel like being syntactically correct) which are fed into the batch file. It’s not terribly difficult to do, but it’s not necessarily intuitive either. For example to run your Launch Before batch script you would do something like this in GameEx:


LaunchBefore.bat “[WORKINGPATH]” “[ROMFILE]”

Then inside your .bat it would look like this:


"<directory>\SwitchDisc.exe" -w "%~1" -f "%~2"

Where <directory> is an actual full directory path, and where %~1 and %~2 represent the contents of the inbound arguments in the order specified.

Here is the new gameEx info:

Launch before command:

  Reveal hidden contents

E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\Switchdisc (GameEx launch before).bat “[WORKINGPATH]” “[ROMFILE]”

Switchdisc (GameEx launch before).bat:

  Reveal hidden contents

Launch aftter command:

  Reveal hidden contents

E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\Switchdisc (GameEx launch after).bat

GameEx is still not passing my launch before command. I don't see why? It should launch it just like it does with the other emulators. I could convert it to an exe and see if changes aything....Nope.

Posted
  On 10/12/2012 at 2:04 AM, Adultery said:

Shouldnt need much really.... depends more on what command lines your exe takes. I'll tinker around and see what I can come up with... TBH I was waiting to see the documentation so I know what I'm getting myself into. :)

I'll try to keep up with ya though! Does SwitchDisc write the install path to the reg?

Basic command line usage can be found in the readme, but yeah full documentation is forthcoming in the form of a compiled help manual (chm). It's getting there, but I haven't had much time to devote to it. I don't want to half-ass it so hang tight everyone! :D

The comments I've received so far have given me an idea that should (hopefully) make setup considerably easier. That idea is going to take a backseat to the documentation though, as I feel that's the most important component to complete right now.

SwitchDisc doesn't write any settings to the reg. Technically the app itself is completely portable, but naturally once you start setting up directory paths via the config it becomes localized to the machine it's running on by virtue of that fact.

@ Felix: Those settings look better to me, but I haven't had a chance to test that config myself. I'm still not too sure about those goto lines in your batch file (seems like that part might be unnecessary), but if it ain't broken I suppose we won't worry about trying to fix it! ;)

Posted
  On 10/12/2012 at 2:27 AM, nullPointer said:

@ Felix: Those settings look better to me, but I haven't had a chance to test that config myself. I'm still not too sure about those goto lines in your batch file (seems like that part might be unnecessary), but if it ain't broken I suppose we won't worry about trying to fix it! ;)

They are unneccessary. I just use them as a best practic so I can keep the code strait. I'm new to script writing and have learned more in the last two days from you than I had prieviously. I can remove them if you think they are interfering, but they shouldn't be.

Here is my analytical mind passing gas:

1) We changed the *.ini file so GameEx knows to watch ePSXe not ePSXecutor.

2) We are using a *.bat file in GameEx's launch before and after command line.

Do we know that 1 does not interfere with 2? Do we know that 2 is possable? And do we of anything else that would cause 2 not to occur, so we can rule it out?

Posted

If I try to run the switchdisc.exe it now gives me this error, "Second path fragment must not be a drive or UNC name. Paramter name: path2".

I told switchdisk to look for *.lnk files for each disk. That must not be a Universal Naming Convention (UNC) name? So perhaps *.lnk file types are being blocked by the library, either within switchdisc, if aplicable, or by win7?

Edit: I tried chanhing the *.lnk at the end of switchdisc's disc file location to *.LNK. No change (I didn't thik it would.)

LOG

  Reveal hidden contents

10/12/2012 9:46:57 AM SwitchDisc logging initialized

10/12/2012 9:46:57 AM Processing SwitchDisc command options...

10/12/2012 9:46:57 AM Command options parsed successfully:

10/12/2012 9:46:57 AM DiscID =

10/12/2012 9:46:57 AM DiscFile =

10/12/2012 9:46:57 AM EmulatorID =

10/12/2012 9:46:57 AM WorkingPath =

10/12/2012 9:46:57 AM FullScreen = False

10/12/2012 9:46:57 AM NoGUI = False

10/12/2012 9:46:57 AM Exit = False

10/12/2012 9:46:57 AM Parsing SwitchDisc configuration from file

10/12/2012 9:46:57 AM Registering SwitchDisc HotKey

10/12/2012 9:46:57 AM Registering SwitchDisc Interface Keys

10/12/2012 9:46:57 AM Options do not match the existing configuration. SwitchDisc will attempt to load entire configuration

10/12/2012 9:46:57 AM Program Terminated Unexpectedly

10/12/2012 9:46:57 AM Error:Second path fragment must not be a drive or UNC name.

Parameter name: path2

Posted

Sorry for the issues you're experiencing Felix. I think I may have just noticed the cause of your problem. Sorry it took my a while to pick up on it. You have your Disc file names set like this:


<FileName>E:\<ommitted>\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\Game Shortcuts\Final Fantasy VII (Disc 3).lnk</FileName>

That's not right. Being that this this field is intended to only contain the file name of the Disc image (or whatever), your fields should be adjusted to look like this:


<FileName>Final Fantasy VII (Disc 3).lnk</FileName>

When SwitchDisc goes hunting for your Discs it does a directory join on Your ROM path (set at the emulator level), and the file name of your discs image(s). That means that your disc images must either be in the same directory defined by the emulator ROM path, or a sub-directory of that path (in this case you'll want to specify that your ROMs are in sub-directories under the Emulator settings). In effect, what's happening right now is SwitchDisc is trying to locate a disc image file at:

E:\<ommitted>\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\Game Shortcuts\E:\<ommitted>\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\Game Shortcuts\Final Fantasy VII (Disc 3).lnk

... and predictably choking on the results (I'm pretty sure that's what the error message is on about when it's refers to "path2" since there are in fact two full directory paths there).

I think that should get you past this particular hurdle.

Posted

So, instead of pointing the disc file location at the ePSXecutor shortcut, I should set it to the physical location of the *.bin or *.img file? And in order for it to allow this, since they're not in the same directory as the Rom path or working path, I have to select Roms in sub directories option to yes. Or do I need to move all my roms to a sub folder that is within the Game shortcuts folder (since it is the rompath and workingpath)? If so it would be easier to move the shortcuts to within the ISO folder (where my images are) and tell switchdisc that's the new working and rom path.

Sorry, scratch that. You're saying that the disc file is appended to the rompath so it's unnecessary to re-enter the filepath up to the *.lnk? Meaning under disc file I would just enter "Final Fantasy IX(disc 1).lnk". Then switchdisc will add this to E:\<ommitted>\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\Game Shortcuts.

Does it automatically add the backslash? Or should I enter "\Final Fantasy IX (Disc 1).lnk". [answered my own question, yes it does.]

Edit: I have successfully entered the GUI! Yayyyy. Ok, more testing...

Posted

You shouldn't need to move anything (at least as far as I can tell). The ROM path for your emulator should be set to the directory housing whatever it is that the emulator is going to be running directly. ePSXecutor directly runs your shortcuts, so your emulator ROM directory should be set to the directory housing those shortcuts.

So this part looks correct to me (assuming this directory contains your shortcuts):


<RomPath>E:\<ommitted>\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\Game Shortcuts</RomPath>

Once that component is in place, your disc file names should look like this (assuming the following file exists in the above directory or a sub directory thereof)


<FileName>Final Fantasy VII (Disc 3).lnk</FileName>

Remember that working path doesn't really play a significant role here, and there is not an implied correlation between working path and ROM path. To summarize:

  • The Disc File Name field (on the Disc screen) must contain only the file name of the disc image (or .lnk, or .anyOldExtension)

  • The Disc File must exist in the ROM directory or a sub-directory thereof (if it's a sub-directory, you need to adjust the "ROMs in Sub-Directories" field on the Emulator screen)

Does that help to clarify at all?

Posted

Yep.

Here is the log:

  Reveal hidden contents

10/12/2012 11:27:42 AM SwitchDisc logging initialized

10/12/2012 11:27:42 AM Processing SwitchDisc command options...

10/12/2012 11:27:42 AM Command options parsed successfully:

10/12/2012 11:27:42 AM DiscID =

10/12/2012 11:27:42 AM DiscFile =

10/12/2012 11:27:42 AM EmulatorID =

10/12/2012 11:27:42 AM WorkingPath =

10/12/2012 11:27:42 AM FullScreen = False

10/12/2012 11:27:42 AM NoGUI = False

10/12/2012 11:27:42 AM Exit = False

10/12/2012 11:27:42 AM Parsing SwitchDisc configuration from file

10/12/2012 11:27:42 AM Registering SwitchDisc HotKey

10/12/2012 11:27:42 AM Registering SwitchDisc Interface Keys

10/12/2012 11:27:42 AM Options do not match the existing configuration. SwitchDisc will attempt to load entire configuration

10/12/2012 11:27:42 AM Could not determine currently loaded disc

10/12/2012 11:27:42 AM Overriding NoGUI settings. Initializing to FALSE

10/12/2012 11:27:51 AM Initializing SwitchDisc GUI

10/12/2012 11:27:51 AM Invoking Send Keys Before GUI

10/12/2012 11:27:51 AM SwitchDisc GUI: Initializing default artwork path: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\SwitchDisc-1.0.0\images\

10/12/2012 11:27:51 AM SwitchDisc GUI: Initializing Sony Playstation artwork path: E:\Michael\GAMES\My Games\All Games (Files)\PSone\Artwork

10/12/2012 11:27:51 AM SwitchDisc GUI: Initializing currently loaded disc

10/12/2012 11:27:51 AM SwitchDisc GUI: Currently loaded disc not found. Initializing loaded disc to position 0

10/12/2012 11:27:52 AM SwitchDisc GUI initialized sucessfully

10/12/2012 11:28:05 AM Invoking SwitchDisc

10/12/2012 11:28:05 AM Copy Next Disc File Name to Clipboard: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\Game Shortcuts\Final Fantasy IX (Disc 1).LNK

10/12/2012 11:28:05 AM Setting target window as foreground window:

10/12/2012 11:28:05 AM Invoking Send Keys Before Disc Switch

10/12/2012 11:28:05 AM Invoking native SwitchDisc command: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\Disc Switch Command.bat

10/12/2012 11:28:05 AM Invoking Send Keys After Disc Switch

10/12/2012 11:28:05 AM SwitchDisc GUI: Closing GUI

10/12/2012 11:30:44 AM Exiting SwitchDisc ... Bye

I will see if GameEx will launch it now...Nope. So we still need to figure that out. With the ePSXe window running I manually ran switchdisc and attempted to switch to the second disc. Nothing. I then closed switchdisc and here is the log.

  Reveal hidden contents

10/12/2012 11:35:44 AM SwitchDisc logging initialized

10/12/2012 11:35:44 AM Processing SwitchDisc command options...

10/12/2012 11:35:44 AM Command options parsed successfully:

10/12/2012 11:35:44 AM DiscID =

10/12/2012 11:35:44 AM DiscFile =

10/12/2012 11:35:44 AM EmulatorID =

10/12/2012 11:35:44 AM WorkingPath =

10/12/2012 11:35:44 AM FullScreen = False

10/12/2012 11:35:44 AM NoGUI = False

10/12/2012 11:35:44 AM Exit = False

10/12/2012 11:35:44 AM Parsing SwitchDisc configuration from file

10/12/2012 11:35:44 AM Registering SwitchDisc HotKey

10/12/2012 11:35:44 AM Registering SwitchDisc Interface Keys

10/12/2012 11:35:44 AM Options do not match the existing configuration. SwitchDisc will attempt to load entire configuration

10/12/2012 11:35:44 AM Could not determine currently loaded disc

10/12/2012 11:35:44 AM Overriding NoGUI settings. Initializing to FALSE

10/12/2012 11:36:21 AM Initializing SwitchDisc GUI

10/12/2012 11:36:21 AM Initializing SwitchDisc Target Window: ePSXe - Enhanced PSX emulator

10/12/2012 11:36:21 AM Invoking Send Keys Before GUI

10/12/2012 11:36:21 AM Initializing SwitchDisc Target Window: ePSXe - Enhanced PSX emulator

10/12/2012 11:36:21 AM SwitchDisc GUI: Initializing default artwork path: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\SwitchDisc-1.0.0\images\

10/12/2012 11:36:21 AM SwitchDisc GUI: Initializing Sony Playstation artwork path: E:\Michael\GAMES\My Games\All Games (Files)\PSone\Artwork

10/12/2012 11:36:21 AM SwitchDisc GUI: Initializing currently loaded disc

10/12/2012 11:36:21 AM SwitchDisc GUI: Currently loaded disc not found. Initializing loaded disc to position 0

10/12/2012 11:36:21 AM SwitchDisc GUI initialized sucessfully

10/12/2012 11:36:54 AM Invoking SwitchDisc

10/12/2012 11:36:54 AM Copy Next Disc File Name to Clipboard: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\Game Shortcuts\Final Fantasy IX (Disc 2).LNK

10/12/2012 11:36:54 AM Setting target window as foreground window: ePSXe - Enhanced PSX emulator

10/12/2012 11:36:54 AM Invoking Send Keys Before Disc Switch

10/12/2012 11:36:54 AM Invoking native SwitchDisc command: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\Disc Switch Command.bat

10/12/2012 11:36:54 AM Invoking Send Keys After Disc Switch

10/12/2012 11:36:54 AM SwitchDisc GUI: Closing GUI

10/12/2012 11:37:20 AM Exiting SwitchDisc ... Bye

BUG REPORT:

The [...] box next to disc file should have worked in this case and would have made the above misunderstanding dissappear. When I tried to use it, it displayed my *.lnk files corectly, I chose the appropriate file and it give this error message: "The directory path for the disc file must be in the same directory as the rom path for the emulator." We found this is the case, and yet it still gives the error. And when I manually input the exact same filename.lnk I tried to choose before, it works just fine. As I mentioned before a link file has a target paht different than the rompath, thus the error. So Switchdisc needs a way to recognize .lnk files themselves and not their target. = bug.

Posted
  On 10/12/2012 at 6:32 PM, RIP-Felix said:

BUG REPORT:

The [...] box next to disc file should have worked in this case and would have made the above misunderstanding dissappear. When I tried to use it, it displayed my *.lnk files corectly, I chose the appropriate file and it give this error message: "The directory path for the disc file must be in the same directory as the rom path for the emulator." We found this is the case, and yet it still gives the error. And when I manually input the exact same filename.lnk I tried to choose before, it works just fine. As I mentioned before a link file has a target paht different than the rompath, thus the error. So Switchdisc needs a way to recognize .lnk files themselves and not their target. = bug.

Thanks for reporting this. I imagine this should be a fairly easy fix. I'll keep you posted.

  On 10/12/2012 at 6:32 PM, RIP-Felix said:

Yep.

Here is the log:

  Reveal hidden contents

10/12/2012 11:27:42 AM SwitchDisc logging initialized

10/12/2012 11:27:42 AM Processing SwitchDisc command options...

10/12/2012 11:27:42 AM Command options parsed successfully:

10/12/2012 11:27:42 AM DiscID =

10/12/2012 11:27:42 AM DiscFile =

10/12/2012 11:27:42 AM EmulatorID =

10/12/2012 11:27:42 AM WorkingPath =

10/12/2012 11:27:42 AM FullScreen = False

10/12/2012 11:27:42 AM NoGUI = False

10/12/2012 11:27:42 AM Exit = False

10/12/2012 11:27:42 AM Parsing SwitchDisc configuration from file

10/12/2012 11:27:42 AM Registering SwitchDisc HotKey

10/12/2012 11:27:42 AM Registering SwitchDisc Interface Keys

10/12/2012 11:27:42 AM Options do not match the existing configuration. SwitchDisc will attempt to load entire configuration

10/12/2012 11:27:42 AM Could not determine currently loaded disc

10/12/2012 11:27:42 AM Overriding NoGUI settings. Initializing to FALSE

10/12/2012 11:27:51 AM Initializing SwitchDisc GUI

10/12/2012 11:27:51 AM Invoking Send Keys Before GUI

10/12/2012 11:27:51 AM SwitchDisc GUI: Initializing default artwork path: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\SwitchDisc-1.0.0\images\

10/12/2012 11:27:51 AM SwitchDisc GUI: Initializing Sony Playstation artwork path: E:\Michael\GAMES\My Games\All Games (Files)\PSone\Artwork

10/12/2012 11:27:51 AM SwitchDisc GUI: Initializing currently loaded disc

10/12/2012 11:27:51 AM SwitchDisc GUI: Currently loaded disc not found. Initializing loaded disc to position 0

10/12/2012 11:27:52 AM SwitchDisc GUI initialized sucessfully

10/12/2012 11:28:05 AM Invoking SwitchDisc

10/12/2012 11:28:05 AM Copy Next Disc File Name to Clipboard: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\Game Shortcuts\Final Fantasy IX (Disc 1).LNK

10/12/2012 11:28:05 AM Setting target window as foreground window:

10/12/2012 11:28:05 AM Invoking Send Keys Before Disc Switch

10/12/2012 11:28:05 AM Invoking native SwitchDisc command: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\Disc Switch Command.bat

10/12/2012 11:28:05 AM Invoking Send Keys After Disc Switch

10/12/2012 11:28:05 AM SwitchDisc GUI: Closing GUI

10/12/2012 11:30:44 AM Exiting SwitchDisc ... Bye

I will see if GameEx will launch it now...Nope. So we still need to figure that out. With the ePSXe window running I manually ran switchdisc and attempted to switch to the second disc. Nothing. I then closed switchdisc and here is the log.

  Reveal hidden contents

10/12/2012 11:35:44 AM SwitchDisc logging initialized

10/12/2012 11:35:44 AM Processing SwitchDisc command options...

10/12/2012 11:35:44 AM Command options parsed successfully:

10/12/2012 11:35:44 AM DiscID =

10/12/2012 11:35:44 AM DiscFile =

10/12/2012 11:35:44 AM EmulatorID =

10/12/2012 11:35:44 AM WorkingPath =

10/12/2012 11:35:44 AM FullScreen = False

10/12/2012 11:35:44 AM NoGUI = False

10/12/2012 11:35:44 AM Exit = False

10/12/2012 11:35:44 AM Parsing SwitchDisc configuration from file

10/12/2012 11:35:44 AM Registering SwitchDisc HotKey

10/12/2012 11:35:44 AM Registering SwitchDisc Interface Keys

10/12/2012 11:35:44 AM Options do not match the existing configuration. SwitchDisc will attempt to load entire configuration

10/12/2012 11:35:44 AM Could not determine currently loaded disc

10/12/2012 11:35:44 AM Overriding NoGUI settings. Initializing to FALSE

10/12/2012 11:36:21 AM Initializing SwitchDisc GUI

10/12/2012 11:36:21 AM Initializing SwitchDisc Target Window: ePSXe - Enhanced PSX emulator

10/12/2012 11:36:21 AM Invoking Send Keys Before GUI

10/12/2012 11:36:21 AM Initializing SwitchDisc Target Window: ePSXe - Enhanced PSX emulator

10/12/2012 11:36:21 AM SwitchDisc GUI: Initializing default artwork path: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\SwitchDisc-1.0.0\images\

10/12/2012 11:36:21 AM SwitchDisc GUI: Initializing Sony Playstation artwork path: E:\Michael\GAMES\My Games\All Games (Files)\PSone\Artwork

10/12/2012 11:36:21 AM SwitchDisc GUI: Initializing currently loaded disc

10/12/2012 11:36:21 AM SwitchDisc GUI: Currently loaded disc not found. Initializing loaded disc to position 0

10/12/2012 11:36:21 AM SwitchDisc GUI initialized sucessfully

10/12/2012 11:36:54 AM Invoking SwitchDisc

10/12/2012 11:36:54 AM Copy Next Disc File Name to Clipboard: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\Game Shortcuts\Final Fantasy IX (Disc 2).LNK

10/12/2012 11:36:54 AM Setting target window as foreground window: ePSXe - Enhanced PSX emulator

10/12/2012 11:36:54 AM Invoking Send Keys Before Disc Switch

10/12/2012 11:36:54 AM Invoking native SwitchDisc command: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\Disc Switch Command.bat

10/12/2012 11:36:54 AM Invoking Send Keys After Disc Switch

10/12/2012 11:36:54 AM SwitchDisc GUI: Closing GUI

10/12/2012 11:37:20 AM Exiting SwitchDisc ... Bye

I think you need to be passing parameters to both your Launch Before batch script in GameEx, and to your SwithcDisc command in SwitchDisc. Batch scripts are a bit of a special case for both GameEx and SwitchDisc in terms of the ‘placeholder’ strings (i.e. [ROMFILE], [WORKINGPATH], ETC). These placeholders will be parsed correctly if they appear in a simple command but they will not be parsed when they appear in a batch script. In other words the only time the placeholders will be parsed is within the single command as written. So the following would parse correctly in GameEx:

(Good) Run Command:


“[ROMPATH]\[ROMFILE]”

But the same line appearing in a batch script would not

(Fine) Run Command:


start “” “your_batch.bat”

Where the contents of your_batch.bat are

(Not Good) your_batch.bat:


“[ROMPATH]\[ROMFILE]”

This will be true of both GameEx and SwitchDisc. Ultimately you’ll want to pass the placeholder strings into the batch script so that they are parsed correctly prior to running the batch. Check here for a quick refresher on how to do that (I’m pretty sure that info is correct)

Now after having spent a lot of words confirming that fact, you may already be doing that (well at least for GameEx, your SwitchDisc log shows that you’ll still want to address the issue in your SwitchDisc config). Ultimately there are two items to verify here:

  • GameEx correctly parses and runs your batch script (this can be determined by looking at your GameEx runitgame.bat)

  • SwitchDisc correctly parses and runs your batch script (this can be determined with your SwitchDisc log)

If the above items are happening but things are still not running as expected, then there may be an issue with the batch scripts you’re running. Let’s verify the above first, and cross the next bridge when we get there.

Thanks for your patience Felix!

Posted

Can you PM me the readme Null? I'll get started on trying to make this easier (ie removing the bat dependencies). I may have some questions too if you don't mind. :)

Posted

New "Switchdisc (GameEx launch before).bat"

when ran from windows it completes successfully.

  Reveal hidden contents

New GameEX "Launch before" Command:

  Reveal hidden contents

New "Disc Switch Command.bat"

  Reveal hidden contents

Same "Switchdisc command"

  Reveal hidden contents

I will try these and see if GameEx sends the "launch before" command...Nope, not yet. Though I'm not sure I understood all of your last post. I wonder what Adultery comes up with, I can see this tool becoming an integral part of GameEx. Hopefully he can iron out the kinks, from GameEx's end. I'm now a big fan of his Xpadder plugin, what a piece of cake that potential nightmare was! Thank you Adultery!

Here is the "runitlgame.bat"

  Reveal hidden contents

Interesting, GameEx is running the Switchdisc (GameEx launch after).bat, but not the launch before command. The only difference between the two is that the launch before command has the "[WORKINGPATH]\[ROMFILE]” following the *.bat. This must be preventing the command from being sent. I'll try removing it and see if I can get Switch disc to run... No that didn't help. So for some reason GameEx is willfully choosing not execute my batch file. It still needs a valid entry in the "Launch before" command line because I tried adding quotation marks and it failed to load the game altogether. So it's not ignoring it altogether. The command in the batch file is valid as it launces correctly manually. So yeah. I'm stumped again.

Here is the latest emulator config:

  Reveal hidden contents

Posted

Try using the "also launch" instead.

Posted

That worked.

Switchdisc log:

  Reveal hidden contents

10/12/2012 9:58:21 PM SwitchDisc logging initialized

10/12/2012 9:58:21 PM Processing SwitchDisc command options...

10/12/2012 9:58:21 PM Command options parsed successfully:

10/12/2012 9:58:21 PM DiscID =

10/12/2012 9:58:21 PM DiscFile = Games\All

10/12/2012 9:58:21 PM EmulatorID =

10/12/2012 9:58:21 PM WorkingPath = “E:\Michael\GAMES\My

10/12/2012 9:58:21 PM FullScreen = False

10/12/2012 9:58:21 PM NoGUI = False

10/12/2012 9:58:21 PM Exit = False

10/12/2012 9:58:21 PM Parsing SwitchDisc configuration from file

10/12/2012 9:58:21 PM Registering SwitchDisc HotKey

10/12/2012 9:58:21 PM Registering SwitchDisc Interface Keys

10/12/2012 9:58:21 PM Cannot locate emulator matching these parameters (ItemID = WorkingPath = “E:\Michael\GAMES\My)

10/12/2012 9:58:21 PM Options do not match the existing configuration. SwitchDisc will attempt to load entire configuration

10/12/2012 9:58:21 PM Could not determine currently loaded disc

10/12/2012 9:58:21 PM Overriding NoGUI settings. Initializing to FALSE

10/12/2012 9:59:02 PM Initializing SwitchDisc GUI

10/12/2012 9:59:02 PM Initializing SwitchDisc Target Window: ePSXe - Enhanced PSX emulator

10/12/2012 9:59:02 PM Invoking Send Keys Before GUI

10/12/2012 9:59:02 PM Initializing SwitchDisc Target Window: ePSXe - Enhanced PSX emulator

10/12/2012 9:59:02 PM SwitchDisc GUI: Initializing default artwork path: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\SwitchDisc-1.0.0\images\

10/12/2012 9:59:02 PM SwitchDisc GUI: Initializing Sony Playstation artwork path: E:\Michael\GAMES\My Games\All Games (Files)\PSone\Artwork

10/12/2012 9:59:02 PM SwitchDisc GUI: Initializing currently loaded disc

10/12/2012 9:59:02 PM SwitchDisc GUI: Currently loaded disc not found. Initializing loaded disc to position 0

10/12/2012 9:59:03 PM SwitchDisc GUI initialized sucessfully

10/12/2012 9:59:23 PM Invoking SwitchDisc

10/12/2012 9:59:23 PM Copy Next Disc File Name to Clipboard: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\Game Shortcuts\Final Fantasy IX (Disc 2).LNK

10/12/2012 9:59:23 PM Setting target window as foreground window: ePSXe - Enhanced PSX emulator

10/12/2012 9:59:23 PM Invoking Send Keys Before Disc Switch

10/12/2012 9:59:23 PM Invoking native SwitchDisc command: E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.0\Disc Switch Command.bat

10/12/2012 9:59:23 PM Invoking Send Keys After Disc Switch

10/12/2012 9:59:23 PM SwitchDisc GUI: Closing GUI

10/12/2012 9:59:53 PM Exiting SwitchDisc ... Bye

Issues:

1) My autohotkey must run before the ePSXe instance to enable my motionjoy profile. Not a big deal as long as the run before command will run it. It should, just like the the other emulators, but it doesn't. I removed the refrence to it the *.bat so that now it just launches switch disc. Which it does now that it's in the also launch command.

2) Switchdisc trys to go fullscreen but does not appear on top of the fullscreen ePSXe window untill I click the mouse on the screen.

3) The navigation keys work fine but when I select the next game, Switchdisc dissappears, and nothing else happens. Except that the ePSXe window is shown with only a portion of the game visable (probably dut to my fullscreen settings).

4) after I hit escape the launch after comand is supposed to close switchdisc and the command prompt. It doesn't.

So I guess that GameEx refuses to initiate both the launch before and launch after commands? I used the .exe command that I use successfully in the rest of my emulators to run my autohotkey. So, that proves it. The only difference between this emulator and the working ones is that ePSXecutor.ini config file.

Posted

A new build is available in the first post of the thread. This release includes the following changes:

SwitchDisc 1.0.1

  • SwitchDisc Configurator: Allow Disc File names to reference a shortcut (.lnk)
  • SwitchDisc Configurator Send Keys Builder: Addition of automated Open File Dialog operation
  • SwitchDisc GUI: Improved handling of custom default artwork

Thanks for all the feedback and the bug reporting!

@Felix: I'm glad to see SwitchDisc starting up for you via GameEx! I'm noticing something a bit off though. When you have a moment would you mind reposting the command you're currently using to start SwitchDisc (I believe this is your current Launch Before command)? Thank you my good man!

  On 10/13/2012 at 5:26 AM, RIP-Felix said:

2) Switchdisc trys to go fullscreen but does not appear on top of the fullscreen ePSXe window untill I click the mouse on the screen.

Unfortunately this can and will happen when two applications are both requesting to be top most. I'm afraid there's no way to fully address it since there's no way to notify Windows that this or that app really really needs to be topmost (since the next thing you know 2 applications are both asking to be really really topmost at which point you need really really really topmost, etc.). One workaround, (at least as far as SwitchDisc goes) is to set Alt+Enter as keys to send before SwitchDisc. This will send the emulator to windowed mode which will make it considerably easier to seize the topmost spot from the emulator. If this becomes necessary you need to resend Alt+Enter as keys to send after SwitchDisc. This last component shouldn't be necessary in your case.

You may also want to consider some judicious use of Pause values (via the Send Key Builder). It may be that SwitchDisc is attempting to run commands too quickly (i.e. before other operations have completed). Pause values are set in milliseconds. 1000 milliseconds = 1 second (probably already knew that but just as a reminder).

  On 10/13/2012 at 5:26 AM, RIP-Felix said:

3) The navigation keys work fine but when I select the next game, Switchdisc dissappears, and nothing else happens. Except that the ePSXe window is shown with only a portion of the game visable (probably dut to my fullscreen settings).

I believe the above step may also help with this issue.

  On 10/13/2012 at 5:26 AM, RIP-Felix said:

4) after I hit escape the launch after comand is supposed to close switchdisc and the command prompt. It doesn't.

Would you mind reposting your Launch After command again just to make sure I'm looking at the current information? I've got an idea, but want to make sure I'm not feeding you red herring.

Thanks again Felix! You rock.

  • Like 1
Posted

Yeah, here is the current info you asked for:

Launch before command (in GameEx):

  Reveal hidden contents

E:\Michael\Projects\Code writing, GUI, and batch to exe\PS3 DS3 Tool Enabler (GameEX Launchbefore).exe

Also launch Comand (in GameEx):

  Reveal hidden contents

E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.1\Switchdisc (GameEx launch before).bat “[WORKINGPATH]\[ROMFILE]”

Switchdisc (GameEx launch before).bat:

  Reveal hidden contents

launch after comand (in GameEx):

  Reveal hidden contents

E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.1\Switchdisc (GameEx launch after).bat

Switchdisc (GameEx launch before).bat:

  Reveal hidden contents

***Edit***

I just wanted to certify that the run before and after *.bat files do still launch and exit switchdisc. Now if the... -w "%~1" -f "%~2"... part is working I'm not sure.

BUG REPORT: Ver 1.0.0 & Ver 1.0.1

I just dowloaded a bunch of box art and disc art. I wanted to test the artwork feature, so I tested with just 1 picture, named the same as the game, then told switchdisc where to find the artwork folder for the emulator. Worked fine! So I downloaded the rest and renamed all the pics to match the filename of the coresponding image. When I went into switchdisc and told it to look at a new folder (one that containd disc art), it found and recognized them just fine. However, the original pics that switchdisc found (from the box art folder) did not refresh to the new picture in the new folder (disc art). And when I tell switchdisc to look at the box art folder, now that it has already assigned a pic to each filename, it won't refresh. It saved the first picture it found in the artwork folder and refuses to use the new ones the artwork field is telling it to. (I have 2 folders. One for box art and one for disc art. both contain pictures with the exact same filename. If that helps) ***edit, I just downloaded switchdisc 1.0.1 and although it displayed the old info to begin with it did refresh the image (I had to navigate quickly to the otherside of the screen real fast then back! It just laged behind the instantaneous refresh upon loading I was expecting. It may be that as I held down the navigate button it moved so fast that it couldn't display the images fast enough and had to look up the file location in order to display it. In which case it's still a bug. Or it just take awhile to refresh, like a shutdown cycle. IDK, I didn't try restarting my computer.*** =BUG

Posted
  On 10/13/2012 at 1:06 PM, RIP-Felix said:

BUG REPORT: Ver 1.0.0

I just dowloaded a bunch of box art and disc art. I wanted to test the artwork feature, so I tested with just 1 picture, named the same as the game, then told switchdisc where to find the artwork folder for the emulator. Worked fine! So I downloaded the rest and renamed all the pics to match the filename of the coresponding image. When I went into switchdisc and told it to look at a new folder (one that containd disc art), it found and recognized them just fine. However, the original pics that switchdisc found (from the box art folder) did not refresh to the new picture in the new folder (disc art). And when I tell switchdisc to look at the box art folder, now that it has already assigned a pic to each filename, it won't refresh. It saved the first picture it found in the artwork folder and refuses to use the new ones the artwork field is telling it to. (I have 2 folders. One for box art and one for disc art. both contain pictures with the exact same filename. If that helps) =BUG

Just something to doublecheck, as I'm not sure I fully understand the nature of this report. SwitchDisc doesn't save any information regarding the actual images. It only saves the artwork path. OTOH it won't refresh images if you change artwork paths while SwitchDisc is running. If that's the case it's not really a bug, SwitchDisc is just working as designed. SwitchDisc won't re-parse your config while it's running. In short you'll want to make sure you exit SwitchDisc before making any changes to the config. If you're still pretty sure that what I described here does not describe the issue as reported, feel free to elaborate a bit.

Only time for a quick post this morning, but you might take a second look at the commands you posted. Among other things you've got the command to exit SwitchDisc listed as the Launch Before. Pretty sure it's just a typo, but it's worth checking out.

Thanks Felix!

Posted

No, the first thing I tried was to exit switchdisc from the taskbar and restart it. It wasent untill I ran v 1.0.1 that it refreshed the image. I added a little more to that post as well that describes it better. Try changing your artwork folder to see what I mean. I'll try agin too... No, it still wont update them. It will display the default image when it can't find a filename match, but doesn't refresh the others, no matter what I do (luckily it's stuck on the image I want, but that won't always be the case).

Also, I noticed that the pictures appear grainy/blurry compaired to the JPG viewed from other programs, even if reduced to the same size on screen. Seeing as how nowadays HD is standard, I think it would add to the professional look of the program. Image is everything baby!

Questions:

1) Does switchdisc prefer a certain file type?

2) Can you increase the picture display resolution?

3) Is there a way to make the white corners around the disc transparent (and for that matter, the hole in the middle), so switchdisc only displays a circular disc?

Posted

+1 on that. I think I will try to set up a regular ePSXe emulator and see if I can get Switchdisc to run corectly. I still can't figure out why GameEx won't run before/after with this config, but that is beyound my experiance level.

GameEx Config:

  Reveal hidden contents

Posted

Thanks again for the feedback guys. Sorry I hadn't had a chance to chime in for a couple of days; I had a bunch of family in town over the weekend. Thanks for reporting the image caching issue Felix. It turns out you were absolutely right in that there is an issue with the way images are being cached persistently between SwitchDisc sessions. I'll be hopping on the resolution to that little issue very soon.

Felix just noticed something that may be causing you a problem with your Launch Before settings. You've got the Launch Before exe sitting in a directory with quite a few spaces, but it doesn't appear to have been enclosed in double quotes.


E:\Michael\Projects\Code writing, GUI, and batch to exe\PS3 DS3 Tool Enabler (GameEX Launchbefore).exe

whereas elsewhere in your config it appears like this:


[QUOTE]E:\Michael\Projects\Code writing, GUI, and batch to exe\PS3 DS3 Tool Enabler (GameEX Launchbefore).exe[QUOTE]

Don't know if that's causing you any issues, but may be worth investigation. Regarding SwitchDisc, you'll likely want to send two separate parameters, rather than one string parameter. So this:


E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.1\Switchdisc (GameEx launch before).bat “[WORKINGPATH]\[ROMFILE]”

becomes this:


start "" "E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXecutor frontend\SwitchDisc-1.0.1\Switchdisc (GameEx launch before).bat" “[WORKINGPATH]" "[ROMFILE]”

I included the start directive in the command, as I seem to remember that this seems to help in the execution of batch files. Essentially this will allow the batch script to run asynchronously, in that the command window won't hang around waiting for the batch operation to complete (i.e. as long as the application is running). That may also be worth having a look at.

I'll make a good faith effort at getting a SwitchDisc config for ePSXecutor put together. I probably haven't done an outstanding job communicating the config plan I have in mind for ePSXecutor. I'll probably be able to bang out a config a lot quicker than I'll be able to describe how to do so. As much as I like ePSXecutor, I only tested SwitchDisc against vanilla ePSXe during the development of the app (although the omission certainly wasn't intentional, honestly I just didn't think to test it in that way). Having said that, I'm more concerned with addressing bug reports (currently the image caching thing), since they have bigger potential impact to the overall usability of the application.

Thanks again everyone.

Posted

Well, I think I’ve made progress. I’ve had to retreat a little to do it, though.

I’m taking a minimalistic approach to this. I decided to move and rename the run before/after commands. They are in the GameEx directory now and are without spaces, so I don’t have to worry about quotes anymore!

SwitchdiscBefore1.bat

  Reveal hidden contents

SwitchdiscBefore2.bat

  Reveal hidden contents

SwitchdiscAfter.bat

  Reveal hidden contents

I had 2 trains of thought:

1) Set the also launch to SwitchdiscBefore2.bat, launch before to my DS3ToolEnabler.exe, and launch after to SwitchdiscAfter.bat.

  Reveal hidden contents

chcp 65001

E:

CD "E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\EPSXE 1.5.2"

C:\GameEx\CONFIG\Switchdisc\DS3ToolEnabler.exe

"E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\EPSXE 1.5.2\ePSXeCutor.exe" "Final Fantasy IX (Disc 1)"

C:\GameEx\CONFIG\Switchdisc\SwitchdiscAfter.bat

2) Leave the also launch blank, set launch before to SwitchdiscBefore1.bat, and launch after to SwitchdiscAfter.bat.

  Reveal hidden contents

chcp 65001

E:

CD "E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\EPSXE 1.5.2"

C:\GameEx\CONFIG\Switchdisc\SwitchdiscBefore1.bat

"E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\EPSXE 1.5.2\ePSXeCutor.exe" "Final Fantasy IX (Disc 1)"

C:\GameEx\CONFIG\Switchdisc\SwitchdiscAfter.bat

#2 above looks right to me. Even the behavior of the emulator seems correct. Let me explain. When FF9 is launched from within GameEx my DS3ToolEnable.exe runs first, then SwitchDisc runs in the taskbar, and there is no open command prompt. That means SwitchdiscBefore1.bat completed and closed. Nothing else happens until SwitchDisc exits, and then GameEx comes back. When I enter the SwitchDisc GUI the name of the game I was trying to run, “Final Fantasy IX (Disc 1)”, has replaced the name I gave the disc, “FF9 (Disc 1)”. What that tells me is that GameEx has completed the launch before command correctly and that it is now up to SwitcDisc to accept the “rompath/romfile” form GameEx and launch the game. SwitchDisc sees the game GameEx tried to load and is displaying its real name, as if it’s running, but failed to execute the “Final Fantasy IX (Disc 1).lnk” shortcut to run the game. I still haven’t got that right yet but I think we are on the right track.

Assuming the above steps are correct:

1) What are the commands that switchdisc needs to receive from GameEx’s launch before command line? “[WORKINGPATH]" "[ROMFILE]”, “[WORKINGPATH]\[ROMFILE]”, etc.

2) What are the necessary commands within Switchdisc to handle the incoming command from GameEx and to launch ePSXecutor shortcuts?

3) Am I right that SwitchDisc takes the place as the launcher for GameEx? If so I think we almost have it.

Posted

Hi Felix,

Sounds like your really getting there. I'll just pop in to address your questions.

  On 10/17/2012 at 1:07 AM, RIP-Felix said:

1) What are the commands that switchdisc needs to receive from GameEx’s launch before command line? “[WORKINGPATH]" "[ROMFILE]”, “[WORKINGPATH]\[ROMFILE]”, etc.

Honestly, the easiest way starting out will probably be to send no additional parameters to SwitchDisc. This will mimic what happens when you double click the application icon to start it (i.e. your entire configuration is loaded into memory). The only purpose the parameters serve is to help SwitchDisc narrow down the specific game you're playing. The [WORKINGPATH] parameter identifies the emulator, and the [ROMFILE] identifies the loaded disc (and the multi-disc set by association). Under ideal circumstances these parameters will enable SwitchDisc to selectively load only the multi-disc set related to the disc you're playing at any given time. Ultimately neither of these parameters are necessary though, and in this case let's just get it running before handling any additional parameters. So the command will look like this:


SwitchDisc.exe

  On 10/17/2012 at 1:07 AM, RIP-Felix said:

2) What are the necessary commands within Switchdisc to handle the incoming command from GameEx and to launch ePSXecutor shortcuts?

  On 10/17/2012 at 1:07 AM, RIP-Felix said:

3) Am I right that SwitchDisc takes the place as the launcher for GameEx? If so I think we almost have it.

These two questions are related, so I'll answer them in tandem. SwitchDisc is neither a launcher nor a wrapper in the sense that it implies launching emulators from a 'cold start'. It is capable of launching games, but the implicit assumption SwitchDisc makes is that the emulator is already running at the time a disc swap operation occurs. So in this model, GameEx is still the launcher (since it launches the emulator from a cold start), and SwitchDisc is launched as a supporting application. SwitchDisc doesn't even verify that any given emulator is running during a disc swap operation, meaning the disc swap is performed 'blindly'.

Regarding ePSXecutor the SwitchDisc operation will need to take place as a batch operation in the SwithcDisc command since there are multiple commands that need to be run.

SwitchDisc Command


DiscSwap.bat "[DISCPATH]" "[DISCFILE]"

DiscSwap.bat


taskkill /im ePSXe.exe
"%~1\%~2"

That should be pretty close to the final SwitchDisc command/batch. Due to the complexity of this particular setup, I'm working on enhancements to simplify situations like this. Ideally I'd like batch scripts to be a last resort in terms of the SwitchDisc command, as it adds a substantial layer of complexity.

Posted

Runitgame: Successful game launch.

(No before/after/also)

  Reveal hidden contents

chcp 65001

E:

CD "E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXe.1.6.0"

"E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXe.1.6.0\ePSXeCutor.exe" "Chrono Cross (Disc 1)"

Runitgame: Successful game & DS3Tool launch.

(DS3ToolEnabler.bat = run before, no after/also)

chcp 65001

  Reveal hidden contents

E:

CD "E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXe.1.6.0"

C:\GameEx\CONFIG\Switchdisc\DS3ToolEnabler.exe

"E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXe.1.6.0\ePSXeCutor.exe" "Chrono Cross (Disc 1)"

Runitgame: Successful game, DS3Tool, & Switchdisc launch.

(DS3ToolEnabler.bat = run before, SwitchdiscAlso.bat = run also, no run after)

  Reveal hidden contents

chcp 65001

E:

CD "E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXe.1.6.0"

C:\GameEx\CONFIG\Switchdisc\DS3ToolEnabler.exe

"E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXe.1.6.0\ePSXeCutor.exe" "Chrono Cross (Disc 1)"

Runitgame: Successful game launch & DS3Tool Launch. Unseccessful Switchdisc launch; I believe it started and closed immediately, not waiting for ePSXe to be exited first. I assume that the launch after command was sent right after the also, starting and closing switchdisk immediately.

(DS3ToolEnabler.bat = run before, SwitchdiscAlso.bat = run also, SwitchdiscAfter.bat = run after)

  Reveal hidden contents

chcp 65001

E:

CD "E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXe.1.6.0"

C:\GameEx\CONFIG\Switchdisc\DS3ToolEnabler.exe

"E:\Michael\GAMES\My Games\All Games (Files)\PSone\ePSXe Emulator\ePSXe.1.6.0\ePSXeCutor.exe" "Chrono Cross (Disc 1)"

C:\GameEx\CONFIG\Switchdisc\SwitchdiscAfter.bat

I think I will just wait for your documentation and enhancements at this point. I think I am just spining my wheels here. I need to see the settings for a working example. I kinda jumped into an advanced setup, but this will be the most convionient way to properly emulate Playstation games; well, once it's setup correctly.

Null, maybe it would be best if you attempt to get SwitchDisc working with your ePSXecutor shortcuts, and make a section devoted to this in the documentation with a typical example. Then you can debug the issus imediatly, without this back and forth. I suspect there's an issue with the GameEx config we haven't identified yet, but I wipe my Inept hands of it. Good luck, and God speed! I'll be eagerly awaiting the results. Nice job so far!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...