brainwashalain Posted February 3, 2022 Share Posted February 3, 2022 Hi everyone! Im using pcsx2 1.6 with hyperspin 1.5.1 and it load the game, its works behind the fade, but the fade dont go and tell me that message(WinWait - Waiting for "ahk_class wxWindowClassNR").closed everything and the game run behind? Ty in advance. [code] 19:44:55:084 | HL | INFO | +N/A | Main - HyperLaunch v3.1.0.5b BETA (www.hyperlaunch.net) 19:44:55:198 | HL | INFO | +125 | Main - System Specs: HyperLaunch Dir: L:\HyperSpin_1.5.1(1) HyperLaunch is: 32-bit OS: Microsoft Windows 10 Home SKU: Windows 8 Total Memory: 16221.32 MB Free Memory: 11678.96 MB Used Memory: 4542.363 MB SystemType: 64-bit Physical Processors: 1 Logical Processors: 16 GPU 1 Name: NVIDIA GeForce RTX 3070 GPU 1 RAM: -1.00 MB GPU 1 Driver Version: 30.0.15.1165 Sound 1 Device: Realtek High Definition Audio Sound 1 Status: Enabled Sound 2 Device: High Definition Audio Device Sound 2 Status: Enabled Sound 3 Device: NVIDIA Virtual Audio Device (Wave Extensible) (WDM) Sound 3 Status: Enabled Sound 4 Device: NVIDIA High Definition Audio Sound 4 Status: Enabled OS Language: English_United_States OS Admin Status: No Monitor #1 (\\.\DISPLAY6): 1280x720 (1280x720 work) Monitor #1 Orientation: Landscape Current AHK Desktop Width: 1280 Current AHK Desktop Height: 720 AutoHotkey Path: AHK Version: 1.1.09.04 Unicode: No 19:44:55:198 | HL | INFO | +0 | CheckFile - Checking if L:\HyperSpin_1.5.1(1)\HyperLaunch.exe exists 19:44:55:198 | HL | INFO | +0 | CheckFile - Checking if L:\HyperSpin_1.5.1(1)\Module Extensions\dxwnd\dxwnd.ini exists 19:44:55:198 | HL | INFO | +0 | CheckFile - Checking if L:\HyperSpin_1.5.1(1)\Module Extensions\dxwnd\dxwnd.exe exists 19:44:55:199 | HL | INFO | +0 | CheckFile - Checking if L:\HyperSpin_1.5.1(1)\Plugins\HyperSpin.plugin exists 19:44:55:199 | HL | INFO | +0 | Main - Loading Front End Plugin: "HyperSpin" 19:44:55:199 | HL | INFO | +0 | Main - HyperLaunch received "Sony PlayStation 2" and "187 - Ride or Die (USA)" 19:44:55:202 | HL | INFO | +0 | Main - 187 - Ride or Die (USA) is using the default emulator: PCSX2 19:44:55:202 | HL | INFO | +0 | Main - Checking for a [PCSX2] section in L:\HyperSpin_1.5.1(1)\Settings\Sony PlayStation 2\Emulators.ini 19:44:55:202 | HL | INFO | +0 | Main - Checking for a [PCSX2] section in L:\HyperSpin_1.5.1(1)\Settings\Global Emulators.ini 19:44:55:202 | HL | INFO | +0 | Main - Found [PCSX2] in L:\HyperSpin_1.5.1(1)\Settings\Global Emulators.ini 19:44:55:202 | HL | INFO | +0 | CheckFile - Checking if L:\HyperSpin_1.5.1(1)\Modules\PCSX2\PCSX2.ahk exists 19:44:55:205 | HL | INFO | +0 | Main - CRC Check - CRC matches, this is an official unedited module. 19:44:55:205 | HL | INFO | +0 | Main - 187 - Ride or Die (USA) will use module: L:\HyperSpin_1.5.1(1)\Modules\PCSX2\PCSX2.ahk 19:44:55:209 | HL | INFO | +0 | Main - Did not find a "L:\HyperSpin_1.5.1(1)\Settings\Sony PlayStation 2\Game Options.ini" file, skipping any game-specific options. 19:44:55:209 | HL | INFO | +0 | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks. 19:44:55:212 | HL | INFO | +15 | CheckFile - Checking if C:\Program Files (x86)\PCSX2\pcsx2.exe exists 19:44:55:213 | HL | INFO | +0 | Main - INI Keys read 19:44:55:213 | HL | INFO | +0 | CheckFile - Checking if L:\HyperSpin_1.5.1(1)\Module Extensions\7z.exe exists 19:44:55:213 | HL | INFO | +0 | CheckFile - Checking if L:\HyperSpin_1.5.1(1)\Module Extensions\7z.dll exists 19:44:55:213 | HL | INFO | +0 | CheckFile - Checking if L:\HyperSpin_1.5.1(1)\Module Extensions\FontReg.exe exists 19:44:55:318 | HL | INFO | +94 | Main - "187 - Ride or Die (USA)" does not qualify for MultiGame. Only roms with any of these strings in their name are acceptable: (Disc,(Disk,(Cart,(Tape,(Cassette,(Part,(Side 19:44:55:318 | HL | INFO | +0 | CheckPaths - Started 19:44:55:319 | HL | INFO | +0 | CheckPaths - Found rom: M:\Jeux\Playstation2\187 - Ride or Die (USA).iso 19:44:55:319 | HL | INFO | +0 | CheckPaths - Ended 19:44:55:319 | HL | INFO | +0 | BuildScript - User Variables: ;---------------------------------------------------------------------------- ; INJECTED VARIABLES ;---------------------------------------------------------------------------- #NoTrayIcon #InstallKeybdHook DetectHiddenWindows, ON SetTitleMatchMode, 2 SendMode, Event 0 = 10 pluginPath = L:\HyperSpin_1.5.1(1)\Plugins pluginName = HyperSpin pluginExt = .plugin contextOnExit = 1 hlMode = hlTitle = HyperLaunch hlVersion = 3.1.0.5b BETA hlAuthor = djvj hlURL = www.hyperlaunch.net langFile = L:\HyperSpin_1.5.1(1)\Data\Language\Localization.ini frontendPID = frontendPath = L:\HyperSpin_1.5.1(1) frontendExe = HyperSpin.exe frontendExt = exe frontendName = HyperSpin frontendDrive = L: exitEmulatorKey = ~Esc exitEmulatorKeyWait = 0 forceHoldKey = ~Esc restoreFE = false exitScriptKey = ~q & ~s toggleCursorKey = ~e & ~t emuFullPath = C:\Program Files (x86)\PCSX2\pcsx2.exe emuPath = C:\Program Files (x86)\PCSX2 emuName = PCSX2 emuExt = exe romPath = M:\Jeux\Playstation2 romPathFromIni = M:\Jeux\Playstation2|M:\Jeux\Playstation2\rename romExtension = .iso romExtensionOrig = .iso romExtensions = 7z|zip|cue|iso|bz2 executable = pcsx2.exe systemName = Sony PlayStation 2 dbPath = dbName = 187 - Ride or Die (USA) dbExt = romName = 187 - Ride or Die (USA) romMapPath = romMappingEnabled = false romMappingLaunchMenuEnabled = false romMappingFirstMatchingExt = false romMappingShowAllRomsInArchive = true romMappingNumberOfGamesByScreen = 7 romMappingMenuWidth = 400 romMappingMenuMargin = 65 romMappingTextFont = Bebas Neue romMappingTextOptions = cFFFFFFFF r4 s60 Bold romMappingDisabledTextColor = ff888888 romMappingTextSizeDifference = 7 romMappingTextMargin = 15 romMappingTitleTextFont = Bebas Neue romMappingTitleTextOptions = cFFFFFFFF r4 s90 Bold romMappingTitle2TextFont = Bebas Neue romMappingTitle2TextOptions = cFFFFFFFF r4 s22 Bold romMappingGameInfoTextFont = Bebas Neue romMappingGameInfoTextOptions = cFFFFFFFF r4 s22 Regular romMappingBackgroundBrush = aa000000 romMappingColumnBrush = 33000000 romMappingButtonBrush1 = 6f000000 romMappingButtonBrush2 = 33000000 romMappingBackgroundAlign = Stretch and Lose Aspect romMappingMenuFlagWidth = 55 romMappingMenuFlagSeparation = 7 romMappingDefaultMenuList = FullList romMappingSingleFilteredRomAutomaticLaunch = false altArchiveNameOnly = altRomNameOnly = altArchiveAndRomName = altArchiveAndManyRomNames = altRomNamesOnly = romMapScenario = skipchecks = false romMatchExt = false blockInputTime = 0 blockInputFile = L:\HyperSpin_1.5.1(1)\Module Extensions\BlockInput.exe errorLevelReporting = false lockLaunch = false lockLaunchGame = screenRotationAngle = 0 screenRotationAngleGame = logFile = L:\HyperSpin_1.5.1(1)\HyperLaunch.log logLabel := [" INFO"," WARNING"," ERROR"," DEBUG1"," DEBUG2"] logLevel = 3 logShowDebugConsole = false logIncludeModule = true logIncludeFileProperties = true logShowCommandWindow = false logCommandWindow = false hlDebugConsoleStdout = sysLang = English_United_States sysType = 64-bit navUpKey = Up navDownKey = Down navLeftKey = Left navRightKey = Right navSelectKey = Enter navP2UpKey = Numpad8 navP2DownKey = Numpad2 navP2LeftKey = Numpad4 navP2RightKey = Numpad6 navP2SelectKey = NumpadEnter originalWidth = 1280 originalHeight = 720 dtEnabled = false dtPath = dtUseSCSI = true dtAddDrive = true servoStikEnabled = false ledblinkyEnabled = false ledblinkyFullPath = ledblinkyProfilePath = L:\HyperSpin_1.5.1(1)\Profiles\LEDBlinky ledblinkyHLProfile = L:\HyperSpin_1.5.1(1)\Profiles\LEDBlinky\HyperLaunch emuIdleShutdown = 0 launchPasswordHash = UpUpDownDownLeftRightLeftRight hideCursor = false hideEmu = false hideFE = false fadeIn = true fadeInDuration = 500 fadeInTransitionAnimation = DefaultAnimateFadeIn fadeInDelay = 0 fadeInExitDelay = 0 fadeOutExitDelay = 0 fadeOut = true fadeOutExtraScreen = false fadeOutDuration = 500 fadeOutTransitionAnimation = DefaultAnimateFadeOut fadeOutDelay = 0 fadeLyrInterpolation = 7 fadeMuteEmulator = false fadeUseBackgrounds = false fadeWidthBaseRes = 1920 fadeHeightBaseRes = 1080 fadeLyr1Color = FF000000 fadeLyr1AlignImage = Stretch and Lose Aspect fadeLyr2Pos = Stretch and Lose Aspect fadeLyr2X = 0 fadeLyr2Y = 0 fadeLyr2W = fadeLyr2H = fadeLyr2Adjust = 1 fadeLyr2PicPad = 0 fadeLyr2Prefix = Extra Layer 1 - Console fadeLyr3Pos = Center fadeLyr3X = 450 fadeLyr3Y = 450 fadeLyr3W = fadeLyr3H = fadeLyr3Adjust = 1 fadeLyr3PicPad = 0 fadeLyr3Speed = 750 fadeLyr3Animation = DefaultFadeAnimation fadeLyr37zAnimation = DefaultFadeAnimation fadeLyr3Type = imageandbar fadeLyr3ImgFollow7zProgress = true fadeLyr3Repeat = 1 fadeLyr3BackImageTransparency = 30 fadeLyr3StaticPos = No Alignment fadeLyr3StaticX = 0 fadeLyr3StaticY = 870|1575 fadeLyr3StaticW = fadeLyr3StaticH = fadeLyr3StaticAdjust = 1 fadeLyr3StaticPicPad = 0 fadeLyr3StaticPrefix = Info Bar fadeLyr4Adjust = 1 fadeLyr4X = 1792|952 fadeLyr4Y = 891|1596 fadeLyr4W = 128 fadeLyr4H = fadeLyr4Pos = No Alignment fadeLyr4FPS = 50 fadeLyr4PicPad = 0 fadeTranspGifColor = FFFFFF fadeBarWindow = Image fadeBarWindowX = fadeBarWindowY = fadeBarWindowW = 900 fadeBarWindowH = fadeBarWindowR = 30 fadeBarWindowM = 30 fadeBarWindowHatchStyle = 8 fadeBar = 7zOnly fadeBarNon7zProgressTime = 0 fadeBarBack = true fadeBarBackColor = FF555555 fadeBarH = 30 fadeBarR = 10 fadeBarColor = DD00BFFF fadeBarHatchStyle = 8 fadeBarPercentageText = true fadeBarInfoText = true fadeBarXOffset = 0 fadeBarYOffset = 150 fadeRomInfoDescription = filtered text fadeRomInfoSystemName = image fadeRomInfoYear = text with label fadeRomInfoManufacturer = text with label fadeRomInfoGenre = disabled fadeRomInfoRating = image fadeRomInfoOrder = Description|SystemName|Year|Manufacturer|Genre|Rating fadeRomInfoTextPlacement = User Defined fadeRomInfoTextMargin = 7 fadeRomInfoText1Options = w1600|787 h90 x165 y870|1575 cFFE1E1E1 r4 s90 Left Regular fadeRomInfoText2Options = w400 x8 y15 cFF555555 r4 s60 Bold fadeRomInfoText3Options = w310 x165 y960|1665 cFFE1E1E1 r4 s66 Left Regular fadeRomInfoText4Options = w1305|492 h66 x460 y960|1665 cFFE1E1E1 r4 s66 Left Regular fadeRomInfoText5Options = cFF555555 r4 s42 Bold fadeRomInfoText6Options = h135 x15 y885|1590 cFFCFCFCA r4 s120 Regular fadeStats_Number_of_Times_Played = text with label fadeStats_Last_Time_Played = text with label fadeStats_Average_Time_Played = text with label fadeStats_Total_Time_Played = text with label fadeStats_System_Total_Played_Time = text with label fadeStats_Total_Global_Played_Time = text with label fadeStatsInfoOrder = Number_of_Times_Played|Last_Time_Played|Average_Time_Played|Total_Time_Played|System_Total_Played_Time|Total_Global_Played_Time fadeStatsInfoTextPlacement = topRight fadeStatsInfoTextMargin = 7 fadeStatsInfoText1Options = cFFB4B4B4 r4 s22 Bold fadeStatsInfoText2Options = cFFB4B4B4 r4 s22 Bold fadeStatsInfoText3Options = cFFB4B4B4 r4 s22 Bold fadeStatsInfoText4Options = cFFB4B4B4 r4 s22 Bold fadeStatsInfoText5Options = cFFB4B4B4 r4 s22 Bold fadeStatsInfoText6Options = cFFB4B4B4 r4 s22 Bold fadeText1X = 0 fadeText1Y = 0 fadeText1Options = cFFB4B4B4 r4 s30 Right Bold fadeText1 = Loading Game fadeText2X = 0 fadeText2Y = 0 fadeText2Options = cFFB4B4B4 r4 s30 Right Bold fadeText2 = Extraction Complete, Ready fadeText3 = Loading Game fadeText4 = Loading Complete fadeFont = Bebas Neue fadeSystemAndRomLayersOnly = false fadeExtractionTime = disabled fadeExtractionTimeTextX = 0 fadeExtractionTimeTextY = 0 fadeExtractionTimeTextOptions = cFF555555 r4 s20 Bold fadeInterruptKey = detectFadeErrorEnabled = true fadeImgPath = L:\HyperSpin_1.5.1(1)\Media\Fade HLDataPath = L:\HyperSpin_1.5.1(1)\Data HLMediaPath = L:\HyperSpin_1.5.1(1)\Media HLErrSoundPath = L:\HyperSpin_1.5.1(1)\Media\Sounds\Error modulesPath = L:\HyperSpin_1.5.1(1)\Modules moduleFullName = L:\HyperSpin_1.5.1(1)\Modules\PCSX2\PCSX2.ahk moduleName = PCSX2 modulePath = L:\HyperSpin_1.5.1(1)\Modules\PCSX2 moduleExtension = ahk moduleExtensionsPath = L:\HyperSpin_1.5.1(1)\Module Extensions libPath = L:\HyperSpin_1.5.1(1)\Lib 7zEnabled = true 7zPath = L:\HyperSpin_1.5.1(1)\Module Extensions\7z.exe 7zDllPath = L:\HyperSpin_1.5.1(1)\Module Extensions\7z.dll 7zExtractPath = C:\ExtrackHyperlaunch 7zExtractPathOrig = 7zAttachSystemName = false 7zDelTemp = true 7zSounds = true 7zFormats = .zip,.rar,.7z,.lzh,.gzip,.tar 7zFormatsNoP = zip,rar,7z,lzh,gzip,tar mgEnabled = false mgKey = ~NumpadSub mgBackgroundColor = FF000000 mgSidePadding = 0.2 mgWidthBaseRes = 1920 mgHeightBaseRes = 1080 mgYOffset = 500|800 mgFont = Arial mgText1Options = x10p y250|500 w80p Center cBBFFFFFF r4 s100 BoldItalic mgText1Text = Please select a game mgText2Options = w96p cFFFFFFFF r4 s50 Center BoldItalic mgText2Offset = 100 mgUseSound = true mgSoundfreq = 300 mgExitEffect = none mgSelectedEffect = rotate mgUseGameArt = false mgCandidate = mgValidTypes = (Disc,(Disk,(Cart,(Tape,(Cassette,(Part,(Side mgOnLaunch = false hpEnabled = false hpKey = ~NumpadAdd hpBackToMenuBarKey = X hpZoomInKey = C hpZoomOutKey = V hpScreenshotKey = ~PrintScreen hpHiToTextPath = L:\HyperSpin_1.5.1(1)\Module Extensions\HiToText.exe hpSaveStateKeyCodes = {F1 down}{F1 up} hpLoadStateKeyCodes = {F3 down}{F3 up} keymapperEnabled = false keymapperAHKMethod = false keymapper = joytokey xpadderFullPath = L:\Utilities\Xpadder\xpadder.exe joyToKeyFullPath = C:\Program Files (x86)\JoyToKey\JoyToKey.exe keymapperProfilePath = L:\HyperSpin_1.5.1(1)\Profiles\joytokey keymapperFrontEndProfileName = Hyperspin keymapperFrontEndProfile = joytokey keymapperHyperLaunchProfileEnabled = true JoyIDsEnabled = false JoyIDsPreferredControllersSystem = use_global JoyIDsPreferredControllersGlobal = CustomJoyNamesEnabled = true CustomJoyNames = rotateMethod = false FEProfile = L:\HyperSpin_1.5.1(1)\Profiles\joytokey\Hyperspin defaultProfile = L:\HyperSpin_1.5.1(1)\Profiles\joytokey\_Default systemProfile = L:\HyperSpin_1.5.1(1)\Profiles\joytokey\Sony PlayStation 2 xPadderSystemProfile = L:\HyperSpin_1.5.1(1)\Profiles\joytokey\Sony PlayStation 2\_Default emuProfile = L:\HyperSpin_1.5.1(1)\Profiles\joytokey\Sony PlayStation 2\PCSX2 romProfile = L:\HyperSpin_1.5.1(1)\Profiles\joytokey\Sony PlayStation 2\187 - Ride or Die (USA) HyperLaunchProfile = L:\HyperSpin_1.5.1(1)\Profiles\joytokey\HyperLaunch blankProfile = L:\HyperSpin_1.5.1(1)\Profiles\joytokey\blank ahkFEProfile = L:\HyperSpin_1.5.1(1)\Profiles\AHK\Hyperspin ahkDefaultProfile = L:\HyperSpin_1.5.1(1)\Profiles\AHK\_Default ahkSystemProfile = L:\HyperSpin_1.5.1(1)\Profiles\AHK\Sony PlayStation 2 ahkEmuProfile = L:\HyperSpin_1.5.1(1)\Profiles\AHK\Sony PlayStation 2\PCSX2 ahkRomProfile = L:\HyperSpin_1.5.1(1)\Profiles\AHK\Sony PlayStation 2\187 - Ride or Die (USA) ahkHyperLaunchProfile = L:\HyperSpin_1.5.1(1)\Profiles\AHK\HyperLaunch bezelEnabled = true bezelICEnabled = false statisticsEnabled = true pressDuration = -1 emuVolume = 1 dxwndIni = L:\HyperSpin_1.5.1(1)\Module Extensions\dxwnd\dxwnd.ini dxwndFullPath = L:\HyperSpin_1.5.1(1)\Module Extensions\dxwnd\dxwnd.exe mon1O = 0 pacDrivedllFile = L:\HyperSpin_1.5.1(1)\Module Extensions\PacDrive32.dll userFadeAnimIniFile = L:\HyperSpin_1.5.1(1)\Lib\User Fade Animations.ini 19:44:55:321 | HL | INFO | +16 | BuildScript - Loaded XHotkey Init.ahk scripts 19:44:55:321 | HL | INFO | +0 | BuildScript - Loaded Fade Init.ahk scripts 19:44:55:322 | HL | INFO | +0 | BuildScript - Loaded Statistics Init.ahk scripts 19:44:55:322 | HL | WARNING | +0 | BuildScript - "L:\HyperSpin_1.5.1(1)\Lib\User Functions Init.ahk" not found 19:44:55:322 | HL | INFO | +0 | BuildScript - Validating module 19:44:55:322 | HL | INFO | +0 | BuildScript - Validation complete 19:44:55:322 | HL | INFO | +0 | BuildScript - Module: MEmu = PCSX2 MEmuV = 1.1.0.r5695 MURL = http://pcsx2.net/ MAuthor = djvj MVersion = 2.1.1 MCRC = 9FC47775 iCRC = E6A9BAD3 MID = 635038268913291718 MSystem = "Sony PlayStation 2" ;---------------------------------------------------------------------------- ; Notes: ; This module has many settings that can be controlled via HyperLaunchHQ ; If you want to customize settings per game, add the game to the module's ini using HyperLaunchHQ ; If you use Daemon Tools, make sure you have a SCSI virtual drive setup. Not a DT one. ; Tested DT support with the cdvdGigaherz CDVD plugin. Make sure you set it to use your SCSI drive letter. ; Module will set the CdvdSource to Plugin or Iso depending on if you have Daemon Tools enabled or not. ; If you have any problems closing the emulator, make sure noGUI module setting in HLHQ is set to default or false. ; ; Per-game memory cards ; This module supports per-game memory cards to prevent them from ever becoming full ; To use this feature, set the PerGameMemoryCards to true in HLHQ ; You need to create a default blank memory card in the path you have defined in pcsx's ini found in section [Folders], key MemoryCards. ; Make sure one of the current memory cards are blank, then copy it in that folder and rename it to "default.ps2". The module will copy this file to a romName.ps2 for each game launched. ; The module will only insert memory cards into Slot 1. So save your games there. ; ; Linuz cdvd plugin stores its settings in the registry @ HKEY_CURRENT_USER\Software\PS2Eplugin\CDVD\CDVDiso ; ; Run pcsx2 with the --help option to see current CLI parameters ; ; Known CLI options not currently supported by this module: ; --console forces the program log/console to be visible ; --portable enables portable mode operation (requires admin/root access) ; --elf=<str> executes an ELF image ; --forcewiz forces PCSX2 to start the First-time Wizard ;---------------------------------------------------------------------------- StartModule() BezelGUI() FadeInStart() ; PCSX2_ui.ini = default ini that contains memory card info and general settings If FileExist(emuPath . "\portable.ini") { ; portable install Log("Module - PCSX2 is operating in a portable mode") pcsx2IniFile := CheckFile(emuPath . "\inis\PCSX2_ui.ini", "Could not find the default PCSX2_ui.ini file. Please manually run and configure PCSX2 first so this file is created with all your default settings.") } Else { ; default not portable install Log("Module - PCSX2 is operating in a standard installation mode") RegRead, pcsx2IniFolder, HKCU, Software\PCSX2, SettingsFolder pcsx2IniFile := CheckFile(pcsx2IniFolder . "\PCSX2_ui.ini", "Could not find the default PCSX2_ui.ini file. Please manually run and configure PCSX2 first so this file is created with all your default settings.") } settingsFile := modulePath . "\" . moduleName . ".ini" ; global settings Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1) noGUI := IniReadCheck(settingsFile, "Settings", "noGUI","false",,1) ; disables display of the gui while running games fullboot := IniReadCheck(settingsFile, "Settings", "fullboot","false",,1) ; disables the quick boot feature, forcing you to sit through the PS2 startup splash screens perGameMemCards := IniReadCheck(settingsFile, "Settings", "PerGameMemoryCards","true",,1) hideConsole := IniReadCheck(settingsFile, "Settings", "HideConsole","true",,1) ; Hides console window from view if it shows up cfgPath := IniReadCheck(settingsFile, "Settings", "cfgpath", emuPath . "\Game Configs",,1) ; specifies the config folder; applies to pcsx2 + plugins gs := IniReadCheck(settingsFile, "Settings|" . romName, "gs",,,1) ; override for the GS plugin pad := IniReadCheck(settingsFile, "Settings|" . romName, "pad",,,1) ; override for the PAD plugin spu2 := IniReadCheck(settingsFile, "Settings|" . romName, "spu2",,,1) ; override for the SPU2 plugin cdvd := IniReadCheck(settingsFile, romName, "cdvd",,,1) ; override for the CDVD plugin usb := IniReadCheck(settingsFile, "Settings|" . romName, "usb",,,1) ; override for the USB plugin fw := IniReadCheck(settingsFile, "Settings|" . romName, "fw",,,1) ; override for the FW plugin dev9 := IniReadCheck(settingsFile, "Settings|" . romName, "dev9",,,1) ; override for the DEV9 plugin dtOveride := IniReadCheck(settingsFile, romName, "DTOveride",,,1) nohacks := IniReadCheck(settingsFile, romName, "nohacks","false",,1) ; disables all speedhacks gamefixes := IniReadCheck(settingsFile, romName, "gamefixes",,,1) ; Enable specific gamefixes for this session. Use the specified comma or pipe-delimited list of gamefixes: VuAddSub,VuClipFlag,FpuCompare,FpuMul,FpuNeg,EETiming,SkipMpeg,OPHFlag,DMABusy,VIFFIFO,VI,FMVinSoftware cfgPath := GetFullName(cfgPath) IfNotExist % cfgPath FileCreateDir, %cfgPath% ; create the cfg folder if it does not exist BezelStart() Fullscreen := If Fullscreen = "true" ? " --fullscreen" : "" noGUI := If noGUI = "true" ? " --nogui" : "" If (noGUI != "") Log("Module - noGUI is set to true, THIS MAY PREVENT PCSX2 FROM CLOSING PROPERLY. If you have any issues, set it to false or default in HLHQ.",2) fullboot := If fullboot = "true" ? " --fullboot" : "" nohacks := If nohacks = "true" ? " --nohacks" : "" gamefixes := If gamefixes ? " --gamefixes=" . gamefixes : "" gs := If gs ? " --gs=""" . GetFullName(gs) . """" : "" pad := If pad ? " --pad=""" . GetFullName(pad) . """" : "" spu2 := If spu2 ? " --spu2=""" . GetFullName(spu2) . """" : "" usb := If usb ? " --usb=""" . GetFullName(usb) . """" : "" fw := If fw ? " --fw=""" . GetFullName(fw) . """" : "" dev9 := If dev9 ? " --dev9=""" . GetFullName(dev9) . """" : "" cfgRomPath := cfgPath . "\" . romName cfgPathCLI := If FileExist(cfgRomPath) ? " --cfgpath=""" . GetFullName(cfgRomPath) . """" : "" ; Specify what main ini PCSX2 should use If (cfgPathCLI && FileExist(cfgRomPath . "\PCSX2_ui.ini")) { ;We can't set both cfgpath and cfg CLI switches, so if only PCSX2_ui.ini file exists we use cfg otherwise we use cfgpath ;--cfg specifies a custom configuration file to use instead of PCSX2.ini (does not affect plugins) filecount := 0 Loop, %cfgRomPath%\*.ini filecount++ If (filecount == 1) { ;Only PCSX2_ui.ini found pcsx2IniFile := cfgRomPath . "\PCSX2_ui.ini" Log("Module - Found a game-specific PCSX2_ui.ini in the cfgPath. Telling PCSX2 to use this one instead: " . pcsx2IniFile) cfg := " --cfg=""" . pcsx2IniFile . """" cfgPathCLI := "" } } Log("Module - " . (If cfgPathCLI != "" ? "Setting PCSX2's config path to """ . cfgRomPath . """" : "Using PCSX2's default configuration folder: """ . emuPath . "\inis""")) ; Memory Cards If perGameMemCards = true { IniRead, currentMemCard1, %pcsx2IniFile%, MemoryCards, Slot1_Filename IniRead, memCardPath, %pcsx2IniFile%, Folders, MemoryCards ; folder where memory cards are stored StringLeft, memCardPathLeft, memCardPath, 3 memCardPathIsAbsolute := If (RegExMatch(memCardPathLeft, "[a-zA-Z]:\\") && (StrLen(memCardPath) >= 3)) ; this is 1 only when path looks like this "C:\" memCardPath := If memCardPathIsAbsolute ? memCardPath : emuPath . "\" . memCardPath ; if only a folder name is defined for the memory card path, tack on the emuPath to find the memory cards, otherwise leave the full path as is defaultMemCard := memCardPath . "\default.ps2" ; defining default blank memory card for slot 1 Log("Module - Default memory card for Slot 1 should be: " . defaultMemCard,4) romMemCard1 := memCardPath . "\" . romName . ".ps2" ; defining name for rom's memory card for slot 1 Log("Module - Rom memory card for Slot 1 should be: " . romMemCard1,4) Log("Module - Current memory card inserted in PCSX2's ini in Slot 1 is: " . currentMemCard1) If (currentMemCard1 != romName . ".ps2") { ; if current memory card in slot 1 does not match this romName, switch to one that does if exist or load a default one IfNotExist, %romMemCard1% ; first check if romName.ps2 memory card exists IfNotExist, %defaultMemCard% Log("Module - A default memory card for Slot 1 was not found in """ . memCardPath . """. Please create an empty memory card called ""default.ps2"" in this folder for per-game memory card support.",3) Else { FileCopy, %defaultMemCard%, %romMemCard1% ; create a new blank memory card for this game Log("Module - Creating a new blank memory card for this game in Slot 1: " . romMemCard1) } IniWrite, %romName%.ps2, %pcsx2IniFile%, MemoryCards, Slot1_Filename ; update the ini to use this rom's card Log("Module - Switched memory card in Slot 1 to: " . romMemCard1) } } hideEmuObj := Object("ahk_class wxWindowClassNR",1) ; Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later 7z(romPath, romName, romExtension, 7zExtractPath) pcsx2Ini := LoadProperties(pcsx2IniFile) ; load the config into memory dvdSource := ReadProperty(pcsx2Ini,"CdvdSource") ; read value ; Mount the CD using DaemonTools If dtOveride ; this allows per-game DT support because some games boot to black when DT is enabled dtEnabled := dtOveride If (dtEnabled = "true" && InStr(".mds|.mdx|.b5t|.b6t|.bwt|.ccd|.cue|.isz|.nrg|.cdi|.iso|.ape|.flac", romExtension)) { ; if DT enabled and using an image type DT can load If !cdvd { dtCDVDPlugin := IniReadCheck(settingsFile, "Settings", "DT_CDVD_Plugin",,,1) If dtCDVDPlugin cdvd := dtCDVDPlugin } cdvd := If cdvd ? " --cdvd=""" . GetFullName(cdvd) . """" : "" If dvdSource != Plugin { Log("Module - CdvdSource was not set to ""Plugin"", changing it so PCSX2 can read from Daemon Tools.") WriteProperty(pcsx2Ini,"CdvdSource","Plugin") ; write a new value to the pcsx2IniFile SaveProperties(pcsx2IniFile,pcsx2Ini) ; save pcsx2IniFile to disk } DaemonTools("mount",romPath . "\" . romName . romExtension) HideEmuStart() errLvl := Run(executable . " --usecd" . noGUI . Fullscreen . fullboot . nohacks . gamefixes . cfg . cfgPathCLI . gs . pad . spu2 . cdvd . usb . fw . dev9, emuPath, "UseErrorLevel") usedDT = 1 ; tell the rest of the script to use DT methods } Else If romExtension in .iso,.mdf,.nrg,.bin,.img ; the only formats PCSX2 supports loading directly { If !cdvd { imageCDVDPlugin := IniReadCheck(settingsFile, "Settings", "Image_CDVD_Plugin",,,1) If imageCDVDPlugin cdvd := imageCDVDPlugin } cdvd := If cdvd ? " --cdvd=""" . GetFullName(cdvd) . """" : "" If dvdSource != Iso { Log("Module - CdvdSource was not set to ""Iso"", changing it so PCSX2 can launch this " . romExtension . " image directly") WriteProperty(pcsx2Ini,"CdvdSource","Iso") ; write a new value to the pcsx2IniFile SaveProperties(pcsx2IniFile,pcsx2Ini) ; save pcsx2IniFile to disk } HideEmuStart() errLvl := Run(executable . " """ . romPath . "\" . romName . romExtension . """ " . noGUI . Fullscreen . fullboot . nohacks . gamefixes . cfg . cfgPathCLI . gs . pad . spu2 . cdvd . usb . fw . dev9, emuPath, "UseErrorLevel") } Else If romExtension in .bz2 ; special case format that requires plugin mode and pcsx2 loads it directly { If !cdvd { linuzCDVDPlugin := IniReadCheck(settingsFile, "Settings", "Linuz_CDVD_Plugin",,,1) If linuzCDVDPlugin cdvd := linuzCDVDPlugin } cdvd := If cdvd ? " --cdvd=""" . GetFullName(cdvd) . """" : "" If dvdSource != plugin { Log("Module - CdvdSource was not set to ""Plugin"", changing it so PCSX2 can launch this " . romExtension . " image directly") WriteProperty(pcsx2Ini,"CdvdSource","Plugin") ; write a new value to the pcsx2IniFile SaveProperties(pcsx2IniFile,pcsx2Ini) ; save pcsx2IniFile to disk } oldHex := ReadReg("IsoFile") ; read last used bz2 image newHex := StrToHex(romPath . "\" . romName . romExtension) ; convert new bz2 image path to hex i := 512 - StrLen(newHex) ; get total amount of 0's to add to end of hex to make it 512 bytes Loop, %i% newHex := newHex . "0" ; add required bytes to end If (oldHex != newHex) { Log("Module - Writing new bz2 path to registry",4) WriteReg("IsoFile", newHex) ; write new bz2 path to registry } HideEmuStart() errLvl := Run(executable . " """ . romPath . "\" . romName . romExtension . """ " . noGUI . Fullscreen . fullboot . nohacks . gamefixes . cfg . cfgPathCLI . gs . pad . spu2 . cdvd . usb . fw . dev9, emuPath, "UseErrorLevel") } Else ScriptError("You are trying to run a rom type of """ . romExtension . """ but PCSX2 only supports loading iso|mdf|nrg|bin|img directly. Please turn on Daemon Tools and/or 7z support or put ""cue"" last in your rom extensions for " . MEmu . " instead.") If errLvl ScriptError("Error launching emulator, closing script.") WinWait("ahk_class wxWindowClassNR",,, "PCSX2") WinWaitActive("ahk_class wxWindowClassNR",,, "PCSX2") BezelDraw() If hideConsole = true SetTimer, HideConsole, 10 SetTitleMatchMode 2 ;Wrong window might be detected in the next loop if we only use the class name for WinGetTitle so we will add fps to it Loop { ; looping until pcsx2 is done loading game ; tooltip, loop %A_Index%,0,0 Sleep, 200 WinGetTitle, winTitle, fps ahk_class wxWindowClassNR,, PCSX2 ; excluding the title of the GUI window so we can read the title of the game window instead Log("Detected Window Title is " . winTitle,4) StringSplit, winTextSplit, winTitle, |, %A_Space% If ( winTextSplit10 != "" ) ; 10th position in the array is empty until game actually starts break If A_Index > 150 ; after 30 seconds, error out ScriptError("There was an error detecting when PCSX2 finished loading your game. Please report this so the module can be fixed.") } HideEmuEnd() FadeInExit() Process("WaitClose", executable) If usedDT DaemonTools("unmount") 7zCleanUp() BezelExit() FadeOutExit() ExitModule() ReadReg(var1) { regValue := RegRead("HKEY_CURRENT_USER", "Software\PS2Eplugin\CDVD\CDVDiso", var1) Return %regValue% } WriteReg(var1, var2, ValueType="REG_BINARY") { RegWrite(ValueType, "HKEY_CURRENT_USER", "Software\PS2Eplugin\CDVD\CDVDiso", var1, var2) } StrToHex(S) { Return S="" ? "":Chr((*&S>>4)+48) Chr((x:=*&S&15)+48+(x>9)*7) StrToHex(SubStr(S,2)) } MultiGame: ; msgbox % "selectedRom = " . selectedRom . "`nselected game = " . currentButton . "`nmgRomPath = " . mgRomPath . "`nmgRomExt = " . mgRomExt . "`nmgRomName = " . mgRomName ; Unmount the CD from DaemonTools If usedDT DaemonTools("unmount") Sleep, 500 ; Required to prevent DT from bugging ; Mount the CD using DaemonTools If usedDT DaemonTools("mount",selectedRom) Return HideConsole: hideConsoleTimer++ IfWinExist, Booting ahk_class wxWindowClassNR { Log("Module - HideConsole - Console window found, hiding it out of view.") WinSet, Transparent, 0, Booting ahk_class wxWindowClassNR,,fps:,fps: ; hiding the console window WinSet, Transparent, 0, PCSX2 ahk_class wxWindowClassNR,,fps:,fps: ; hiding the GUI window with the menubar SetTimer, HideConsole, Off } Else If hideConsoleTimer >= 200 SetTimer, HideConsole, Off Return CloseProcess: FadeOutStart() WinMenuSelectItem, PCSX2 ahk_class wxWindowClassNR,, System, Pause WinClose("PCSX2 ahk_class wxWindowClassNR") ; sending command to the GUI window to properly close the entire emu Return 19:44:55:329 | HL | INFO | +0 | BuildScript - Loaded Multi-Player scripts 19:44:55:330 | HL | INFO | +0 | BuildScript - Loaded Statistics.ahk script 19:44:55:330 | HL | WARNING | +0 | BuildScript - "L:\HyperSpin_1.5.1(1)\Lib\User Functions.ahk" not found 19:44:55:330 | HL | INFO | +0 | BuildScript - Finished injecting functions into module 19:44:55:331 | HL | INFO | +0 | Main - Module is built 19:44:55:331 | HL | INFO | +0 | CheckFile - Checking if L:\HyperSpin_1.5.1(1)\AutoHotkey.dll exists 19:44:55:332 | HL | INFO | +0 | Main - Running module 19:44:55:430 | MD | INFO | +N/A | Module initialized 19:44:55:431 | MD | INFO | +0 | StartModule - Started 19:44:55:431 | MD | INFO | +0 | StartModule - MEmu: PCSX2 MEmuV: 1.1.0.r5695 MURL: http://pcsx2.net/ MAuthor: djvj MVersion: 2.1.1 MCRC: 9FC47775 iCRC: E6A9BAD3 MID: MSystem: "Sony PlayStation 2" 19:44:55:431 | MD | INFO | +0 | StartModule - You have a supported System Name for this module: "Sony PlayStation 2" 19:44:55:431 | MD | INFO | +0 | PluginInit - Started 19:44:55:431 | MD | INFO | +0 | CheckFile - Checking if L:\HyperSpin_1.5.1(1)\Databases\Sony PlayStation 2\Sony PlayStation 2.xml exists 19:44:55:439 | MD | INFO | +0 | PluginInit - Ended 19:44:55:439 | MD | INFO | +0 | StartModule - Ended 19:44:55:439 | MD | INFO | +0 | BezelGUI - Started 19:44:55:476 | MD | INFO | +31 | BezelGUI - Ended 19:44:55:476 | MD | INFO | +0 | GetFadePicFile - Randomized images and Fade will use L:\HyperSpin_1.5.1(1)\Media\Fade\_Default\Layer 1.png 19:44:55:525 | MD | INFO | +63 | DefaultAnimateFadeIn - Started 19:44:55:525 | MD | INFO | +0 | DefaultAnimateFadeIn - Drawing First FadeIn Image. 19:44:56:023 | MD | INFO | +500 | DefaultAnimateFadeIn - Ended 19:44:56:062 | MD | INFO | +31 | Module - PCSX2 is operating in a standard installation mode 19:44:56:062 | MD | INFO | +0 | CheckFile - Checking if C:\Users\Alain Lessard\Documents\PCSX2\inis\PCSX2_ui.ini exists 19:44:56:063 | MD | INFO | +0 | Module Setting - [Settings] - Fullscreen: true 19:44:56:063 | MD | INFO | +0 | Module Setting - [Settings] - noGUI: false 19:44:56:063 | MD | INFO | +0 | Module Setting - [Settings] - fullboot: false 19:44:56:063 | MD | INFO | +0 | Module Setting - [Settings] - PerGameMemoryCards: true 19:44:56:063 | MD | INFO | +0 | Module Setting - [Settings] - HideConsole: true 19:44:56:063 | MD | INFO | +0 | Module Setting - [Settings] - cfgpath: C:\Program Files (x86)\PCSX2\Game Configs 19:44:56:063 | MD | INFO | +0 | Module Setting - [Settings] - gs: 19:44:56:063 | MD | INFO | +0 | Module Setting - [187 - Ride or Die (USA)] - gs: 19:44:56:063 | MD | INFO | +0 | Module Setting - [Settings] - pad: 19:44:56:063 | MD | INFO | +0 | Module Setting - [187 - Ride or Die (USA)] - pad: 19:44:56:063 | MD | INFO | +0 | Module Setting - [Settings] - spu2: 19:44:56:063 | MD | INFO | +0 | Module Setting - [187 - Ride or Die (USA)] - spu2: 19:44:56:063 | MD | INFO | +0 | Module Setting - [187 - Ride or Die (USA)] - cdvd: 19:44:56:063 | MD | INFO | +0 | Module Setting - [Settings] - usb: 19:44:56:063 | MD | INFO | +0 | Module Setting - [187 - Ride or Die (USA)] - usb: 19:44:56:063 | MD | INFO | +0 | Module Setting - [Settings] - fw: 19:44:56:063 | MD | INFO | +0 | Module Setting - [187 - Ride or Die (USA)] - fw: 19:44:56:064 | MD | INFO | +0 | Module Setting - [Settings] - dev9: 19:44:56:064 | MD | INFO | +0 | Module Setting - [187 - Ride or Die (USA)] - dev9: 19:44:56:064 | MD | INFO | +0 | Module Setting - [187 - Ride or Die (USA)] - DTOveride: 19:44:56:064 | MD | INFO | +0 | Module Setting - [187 - Ride or Die (USA)] - nohacks: false 19:44:56:064 | MD | INFO | +0 | Module Setting - [187 - Ride or Die (USA)] - gamefixes: 19:44:56:064 | MD | INFO | +0 | BezelStart - Started 19:44:56:096 | MD | WARNING | +31 | Bezel - Bezels are enabled, however none of the Bezel files, with extensions png|gif|tif|bmp|jpg exist on the bezel folders. 19:44:56:096 | MD | INFO | +0 | Adding extra fullscreen fake bezel image 19:44:56:096 | MD | INFO | +0 | BezelStart - Ended 19:44:56:096 | MD | INFO | +0 | Module - Using PCSX2's default configuration folder: "C:\Program Files (x86)\PCSX2\inis" 19:44:56:096 | MD | INFO | +0 | Module - Current memory card inserted in PCSX2's ini in Slot 1 is: 187 - Ride or Die (USA).ps2 19:44:56:096 | MD | INFO | +0 | 7z - Started, received M:\Jeux\Playstation2\187 - Ride or Die (USA).iso. If rom is an archive, it will extract to C:\ExtrackHyperlaunch 19:44:56:096 | MD | INFO | +0 | 7z - This rom type does not need 7z: ".iso" 19:44:56:096 | MD | INFO | +0 | DefaultFadeAnimation - Started 19:44:56:096 | MD | INFO | +0 | GetFadePicFile - Randomized images and Fade will use L:\HyperSpin_1.5.1(1)\Media\Fade\_Default\Info Bar.png 19:44:56:117 | MD | INFO | +31 | GetFadePicFile - Randomized images and Fade will use L:\HyperSpin_1.5.1(1)\Media\Fade\_Default\Layer 3.png 19:44:56:128 | MD | INFO | +0 | 7z - Ended 19:44:56:128 | MD | INFO | +0 | Module Setting - [Settings] - Image_CDVD_Plugin: 19:44:56:128 | MD | INFO | +0 | Run - Running: C:\Program Files (x86)\PCSX2\pcsx2.exe "M:\Jeux\Playstation2\187 - Ride or Die (USA).iso" 19:44:56:165 | MD | INFO | +47 | WinWait - Waiting for "ahk_class wxWindowClassNR" 19:44:56:993 | MD | INFO | +828 | DefaultFadeAnimation - Ended 19:45:28:495 | MD | INFO | +31500 | 7zCleanUp - Started 19:45:28:495 | MD | INFO | +0 | 7zCleanUp - Ended 19:45:38:821 | MD | ERROR | +10329 | ScriptError - There was an error waiting for the window "ahk_class wxWindowClassNR". Please check you have the correct version emulator installed for this module, followed any notes in the module, and have this emulator working outside your Frontend first. Also turn off Fade to see if you are hiding your problem. 19:45:38:821 | MD | INFO | +0 | ExitModule - Started 19:45:38:821 | MD | INFO | +0 | Starting Updating Statistics: 19:45:38:862 | MD | INFO | +31 | Game section statistics updated. 19:45:38:862 | MD | INFO | +0 | ExitModule - Ended 19:45:38:862 | MD | INFO | +0 | End of Module Logs 19:45:38:930 | HL | INFO | +43609 | Main - Module ended, exiting HyperLaunch normally 19:45:38:930 | HL | INFO | +0 | ExitScript - Started 19:45:38:952 | HL | INFO | +16 | SystemCursor - Restoring mouse cursor 19:45:38:964 | HL | INFO | +15 | ExitScript - Ended [/code] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.