majorspawn Posted March 6, 2016 Posted March 6, 2016 Hi Guys, Using HL 1.0.1.0 and just updated to Dolphin 4.0-9103, from 3.5.x when I launch the game I get an error that ...User/Config/Dolphin.ini is missing, I understand that Dolphin 4.0+ doesnt use this file from my reaearch however the module / ahk is looking for it as below Dolphin (v3.0 r766 djvj 2.0) + Dolphin (v3.0 r766 djvj 2.0).ahk can someone please assist on a workaround or an updated module / ahk for the new version of Dolphin? ive looked on the forum but couldnt find a clear answer, this post here seems to have solution but its not clear to me.. google translate from French to English https://translate.google.com/translate?hl=en&sl=fr&tl=en&u=http%3A%2F%2Fwww.hyperspin-fe.com%2Ftopic%2F4500-dolphin%2F ;; Setting up custom Wiimote profiles:; First set UseCustomProfiles to true below; Download the example Settings.ini from my user dir on the ftp @ /Upload Here/djvj/Nintendo Wii/ and put it in the folder with this module; Launch dolphin and goto Options->Wiimote Settings and configure all your Wiimotes how you want your default setup to look like, this will be used for all games that you don't set a custom profile for. Save that profile, calling it Default.; Now create custom profiles for all the games you need non-default button layouts for, and name the profiles whatever you want.; Open the example Settings.ini and add each game from your xml like you see from my examples and set its profile to match the one you want that game to load.;; To Pair a Wiimote:; Press 1 + 2 on the wiimote; Immediately press your PairKey to start pairing and wait for the countdown to finish; When the countdown reaches 0, your wiimote should have linked to show what player it is; If it did not link, press your RefreshKey before the wiimote stops flashing;----------------------------------------------------------------------------StartModule()FadeInStart()settingsFile := modulePath . "\" . moduleName . ".ini"Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)UseCustomProfiles := IniReadCheck(settingsFile, "Settings", "UseCustomProfiles","false",,1) ; set to true if you want to setup custom Wiimote profiles for gamesHideMouse := IniReadCheck(settingsFile, "Settings", "HideMouse","true",,1) ; hides mouse cursor in the emu optionsPairKey := IniReadCheck(settingsFile, "Settings", "PairKey","f12",,1) ; hotkey to "Pair Up" Wiimotes, delete the key to disable itRefreshKey := IniReadCheck(settingsFile, "Settings", "RefreshKey","f11",,1) ; hotkey to "Refresh" Wiimotes, delete the key to disable itTimeout := IniReadCheck(settingsFile, "Settings", "Timeout","5",,1) ; amount in seconds we should wait for the above hotkeys to timeoutdolphinINI := CheckFile(emuPath . "\User\Config\Dolphin.ini")7z(romPath, romName, romExtension, 7zExtractPath)If romExtension in .zip,.7z,.rar ScriptError(MEmu . " does not support compressed roms. Please enable 7z support in HLHQ to use this module/emu.")If PairKey { PairKey := xHotKeyVarEdit(PairKey,"PairKey","~","Add") xHotKeywrapper(PairKey,"PairWiimote")}If RefreshKey { RefreshKey := xHotKeyVarEdit(RefreshKey,"RefreshKey","~","Add") xHotKeywrapper(RefreshKey,"RefreshWiimote")}Fullscreen := (If ( Fullscreen = "true" ) ? ("True") : ("False"))HideMouse := (If ( HideMouse = "true" ) ? ("True") : ("False"))iniLookup =( ltrim c Display, Fullscreen, %Fullscreen% Display, RenderToMain, False Interface, HideCursor, %HideMouse%)Loop, Parse, iniLookup, `n{ StringSplit, split, A_LoopField, `,, %A_Space%%A_Tab% IniRead, tempVar, %dolphinINI%, %split1%, %split2% If ( tempVar != split3 ) IniWrite, % split3, %dolphinINI%, %split1%, %split2%} ; Load default or user specified wiimote profile for launchingIf UseCustomProfiles = true{ profile := IniReadCheck(settingsFile, romName, "profile","default",,1) currentProfile = %emupath%\User\Config\WiimoteNew.ini newProfile = %emupath%\User\Config\Profiles\Wiimote\%profile%.ini defaultProfile = %emupath%\User\Config\Profiles\Wiimote\Default.ini IfNotExist, %newProfile% ScriptError(romName . " is set to load a custom Wiimote profile`, but it could not be found.`nPlease fix the profile's name or create a profile called " . profile) FileRead, cProfile, %currentProfile% FileRead, nProfile, %newProfile% If ( cProfile != nProfile ) { If profile != default ; loading custom profile FileCopy, %newProfile%, %currentProfile%, 1 Else ; loading default profile FileCopy, %defaultProfile%, %currentProfile%, 1 }}Run(executable . " /b /e """ . romPath . "\" . romName . romExtension . """", emuPath)WinWait("Dolphin ahk_class wxWindowNR")WinWaitActive("Dolphin ahk_class wxWindowNR")FadeInExit()Process("WaitClose", executable)7zCleanUp()FadeOutExit()ExitModule() My Arcade Projects: SNES PC Project Vewlix Cabinet LS-30 Rotary Joysticks
JoyStickKilla Posted March 6, 2016 Posted March 6, 2016 HL 1? Damn, that is like people still using Win 95
majorspawn Posted March 6, 2016 Author Posted March 6, 2016 thank you To change the path to the config file modify this: dolphinINI := CheckFile(emuPath . "\User\Config\Dolphin.ini") to this: dolphinINI := CheckFile(A_MyDocuments . "\Dolphin Emulator\Config\Dolphin.ini") the dolphin.ini now resides under Mydocuments? My Arcade Projects: SNES PC Project Vewlix Cabinet LS-30 Rotary Joysticks
JoyStickKilla Posted March 6, 2016 Posted March 6, 2016 Why don't you make your dolphin install portable with a portable.txt file then change the path to whatever it now is within that folder.
majorspawn Posted March 6, 2016 Author Posted March 6, 2016 t Why don't you make your dolphin install portable with a portable.txt file then change the path to whatever it now is within that folder. that sound like a good idea, excuse the question but how do you make it portable? My Arcade Projects: SNES PC Project Vewlix Cabinet LS-30 Rotary Joysticks
majorspawn Posted March 6, 2016 Author Posted March 6, 2016 Create a blank text file named "portable.txt" in your Dolphin folder. Then you won't have to edit the module at all. thank you that worked, however when i exit the game the emu drops back to main emulator screen leaving the emu open and then drops back to HS to focus, so it needs a double Alt+f4 to exit, is this configurable somewhere? My Arcade Projects: SNES PC Project Vewlix Cabinet LS-30 Rotary Joysticks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.