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 donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

I'm trying to get Xpadder to work and I'm finding myself having trouble trying to get multiple controller profiles to load in GameEx at the same time.

So now, my problem is, I have no idea how to code the .bat file. I know how to create a blank one in the text program but I do not know anything else from there.

Any help with this would be appreciated.

Posted

What exactly are you trying to accomplish with this batch file? Where are the location of the files you're needing to run? Details! Details! ;)

Posted

Here's an example of a batch file I use to launch player 1 and player 2 Xpadder controller profiles for Nestopia.

:: @echo off

:: SYNTAX: start "" "Xpadder.exe" "Profile 1" "Profile 2" "Profile 3" /M

:: "Xpadder.exe" - Full Path to Xpadder executable

:: "Profile 1" - Full Path to first Xpadder profile (Might need to play with the order of profiles to insure the correct P1 / P2 config)

:: "Profile 2" - Full path to second Xpadder profile (Might need to play with the order of profiles to insure the correct P1 / P2 config)

:: "Profile 3" - etc. . . Not sure what the limit on number of profiles is.

:: /M - Starts the program minimized

::

:: See http://spaceinvaders...opic.php?t=1326 for specific details

start "" "C:\Emulation\Utilities\Xpadder\Xpadder.exe" "C:\Emulation\Utilities\Xpadder\profiles\Rumblepad2_P2[Nestopia].xpadderprofile" "C:\Emulation\Utilities\Xpadder\profiles\Rumblepad2_P1[Nestopia].xpadderprofile" /M

The comments in the above file explain the details of the command parameters. Also note that this command wouldn't necessarily need to be in a batch file; it could also simply be specified as a 'Launch Before' parameter in your emulator config (excluding all the comments obviously).

Posted

Well, I am trying to run multiple Xpadder profiles at the same time. I have 3 controllers plugged in so id have to run the profiles for all 3 controllers.

My directory for Xpadder and profiles

C:\Documents and settings\administrator\desktop\XPADDER

Posted

In that case your command would look something like this:

start "" "C:\Documents and settings\administrator\desktop\XPADDER.exe" "C:\Full Path to First Profile" "C:\Full Path to Second Profile" "C:\Full Path to Third Profile" /M

As I note above, the order of the profiles to load may require a bit of tweaking if your care about which profile gets assigned to which controller / control panel. (In my case I care because I have a preferred P1 controller that I like to use, so I like to make sure it winds up being assigned to the P1 profile ;))

Posted

So, basically where you say "profile 1" I would replace the words profile 1 with the name of the profile I want to load in the first controller slot?

And where you have the discriptions, I would just put in the directory?

so should it look like this?

start "" "C:\Documents and settings\administrator\desktop\XPADDER\Xpadder.exe" "C:\Documents and settings\administrator\desktop\XPADDER\blank logitek.xpadderprofile" "C:\Documents and settings\administrator\desktop\XPADDER\notetris joy1.xpadderprofile" "C:\Documents and settings\administrator\desktop\XPADDER\notetris joy2.xpadderprofile" /M

EDIT: So I have run into a problem, the .bat file works outside of GameEx. But when I set it to "launch before" it doesnt do anything.

Posted

there are the three options in the setup wizard in the emulator setup

"also launch"

"launch before"

"launch after"

under "also launch" when i direct it to my .bat file, the profile will load with the game

if i set a bat file to the other options of "launch before" or "launch after," simply, nothing happens.

I hope that explains it

So I found a solution. Just type the same line into the "launch before" and "launch after" that i typed into the .bat file instead of directing those items to the .bat files.

Posted

Glad you got it working. Honestly that's the solution I'd recommend. Batch files are only really necessary if you need to run multiple commands as part of the Launch Before / Launch After routine.

To get a little bit preemptive, here's the command you'll eventually want to use to exit Xpadder (typically used as a Launch After command)

"C:\Documents and settings\administrator\desktop\XPADDER\Xpadder.exe" /C

In this case the /C parameter signals Xpadder to close.

Guest
This topic is now closed to further replies.
×
×
  • Create New...