Jump to content

latest dolphin 4.0-9103 and Hyper Launch 1.0.1.0


majorspawn

Recommended Posts

Posted

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 games
HideMouse := IniReadCheck(settingsFile, "Settings", "HideMouse","true",,1)                    ; hides mouse cursor in the emu options
PairKey := IniReadCheck(settingsFile, "Settings", "PairKey","f12",,1)                            ; hotkey to "Pair Up" Wiimotes, delete the key to disable it
RefreshKey := IniReadCheck(settingsFile, "Settings", "RefreshKey","f11",,1)                        ; hotkey to "Refresh" Wiimotes, delete the key to disable it
Timeout := IniReadCheck(settingsFile, "Settings", "Timeout","5",,1)                            ; amount in seconds we should wait for the above hotkeys to timeout

dolphinINI := 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 launching
If 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()

 

Posted

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...