• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Controllers v
« Previous 1 ... 236 237 238 239 240 ... 319 Next »

Auto-load profile/switch in-game [solved-ish]
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Auto-load profile/switch in-game [solved-ish]
12-28-2012, 12:23 PM (This post was last modified: 12-30-2012, 05:54 AM by chinagreenelvis.)
#1
chinagreenelvis Offline
Junior Member
**
Posts: 27
Threads: 6
Joined: Aug 2011
Probably been asked a million times before, but the forum doesn't have much of an advanced "search" feature...

Is there any way to auto-load a controller profile at game launch? Whether through a command-line operation or otherwise...

And also, is there a way to map a controller button to switch profiles mid-game? Through X-padder or a keyscript or anything, or at the very least some way to emulate a Wiimote being held sideways, vertically, or pointed at the screen? Games like Metroid Other M require the controller to be held in different positions for different functions, and right now it seems the profiles can only achieve this through a checkbox, which destroys any chance of emulating the position switch.

Edit: I've created a way to auto-load profiles for different games. Still no way to switch them mid-game yet, though.
Find
Reply
12-28-2012, 12:34 PM
#2
ExtremeDude2 Offline
Gotta post fast
*******
Posts: 9,306
Threads: 273
Joined: Dec 2010
(12-28-2012, 12:23 PM)chinagreenelvis Wrote: the forum doesn't have much of an advanced "search" feature...
http://forums.dolphin-emu.org/search.php
Check out my videos (dead)
[Image: sig-22354.png]
Website Find
Reply
12-28-2012, 12:38 PM (This post was last modified: 12-28-2012, 12:38 PM by chinagreenelvis.)
#3
chinagreenelvis Offline
Junior Member
**
Posts: 27
Threads: 6
Joined: Aug 2011
Cool. The only result for "load profile" in title searches was this post. And now I have to wait another thirty seconds to try something else. I guess I may as well leave the question open...
Find
Reply
12-30-2012, 12:56 AM
#4
RachelB Offline
Developer
*******
Moderators
Posts: 1,003
Threads: 1
Joined: Dec 2011
I looked at this recently, and the profile code is designed specifically to only be possible from the gui. I would not expect this to happen any time soon, unfortunately.
Find
Reply
12-30-2012, 05:40 AM (This post was last modified: 12-30-2012, 05:57 AM by chinagreenelvis.)
#5
chinagreenelvis Offline
Junior Member
**
Posts: 27
Threads: 6
Joined: Aug 2011
I found a workaround - a rather complex one - in which you have to create duplicates of your SYSCONF and Dolphin.ini files and name the duplicates for the files you're trying to load. Then you run a batch file and pass an argument to it which temporarily renames your defaults, renames the custom settings to the defaults, loads Dolphin with the file you choose from a preset directory, and then renames them all back after the program closes. Put the batch folder in your main directory.

Code:
rename "User\Config\Dolphin.ini" "Dolphin.DEFAULT.ini"
rename "User\Config\Dolphin.%~1.ini" "Dolphin.ini"
rename "User\Wii\shared2\sys\SYSCONF" "SYSCONF.DEFAULT"
rename "User\Wii\shared2\sys\%~1.SYSCONF" "SYSCONF"
Dolphin.exe /e "C:\PATH\TO\ROMS\%~1"
rename "User\Config\Dolphin.ini" "Dolphin.%~1.ini"
rename "User\Config\Dolphin.DEFAULT.ini" "Dolphin.ini"
rename "User\Wii\shared2\sys\SYSCONF" "%~1.SYSCONF"
rename "User\Wii\shared2\sys\SYSCONF.DEFAULT" "SYSCONF"

So, if you're loading "C:\PATH\TO\ROMS\007GoldenEye.iso", you create the two following files:

User\Config\Dolphin.007Goldeneye.iso.ini
User\Wii\shared2\sys\007Goldeneye.iso.SYSCONF


Then, you'd run the command (or create a shortcut with the command):

Dolphin.bat "007GoldenEye.iso"

You'd have to exit out of the game and set your settings the way you want them for that game (or change the settings before you make the duplicate files), and the next time you run it from the batch file, those settings will be automatically loaded.

And, if you don't like batch windows, you can create an additional .vbs which loads the .bat in a windowless environment.

Code:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run Chr(34) & "Dolphin.bat" & Chr(34) & Chr(34) & WScript.Arguments(0) & Chr(34), 0
Set WshShell = Nothing

Instead, you run:

Dolphin.vbs "007Goldeneye.iso"

Make sure to use the quotes, just in case you have files with spaces in the names. The only real drawback is having to make the duplicate settings files for every game, and if you suddenly lose power in the middle of a game, you'll have to manually rename them back since the batch file won't have the chance. But if Dolphin were to suddenly crash, they should still be fine since the batch file would continue to run.

Also, you'll have to create more than one set of batch/vbs files if you keep your games in different directories.
Find
Reply
01-09-2013, 10:24 AM
#6
RachelB Offline
Developer
*******
Moderators
Posts: 1,003
Threads: 1
Joined: Dec 2011
http://code.google.com/p/dolphin-emu/source/detail?r=b8691df723ab635b3db41e86c9324b3adb952abe

Wasn't as hard as i thought.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode