Jump to content

ePSXe with Hyperlaunch in Hyperspin


mrsausagefairy

Recommended Posts

Posted

Hi,

I am trying to get ePSXe work in hyperspin with hyperlaunch...but every time i try to run a game in the PSX-wheel of hyperspin, nothing happens - the Emulator doesn't start up.

All Bios files are installed. The Emulator PSXfin works in Hyperspin with Hyperlaunch, but I think ePSXe is far better. I have problems to get my Gamepad run correctly under PSXfin - and there are more options in the configurations. However..

Tried it with different games and different versions of ePSXe - nothing worked. Deamon Tools is set up correctly in hyperlaunch.

Hope you can help me with my Problem.

Posted

Thanks for your reply.

I tried to get ePSXe to run with the points in your guide which i haven't tried before (putting all files of one game in an folder named after the game and setting up the plugin)...but it still doesn't work -.- When i whant to start a game, nothing happens!

Perhaps it has something to do with the file endings, you have to set up in hyperlaunch for the emulator?! I don't know.

Posted

Ok, i followed the steps in the description..here is the result:

03:34:45:258 | HL |     INFO  | +N/A   | Main - HyperLaunch v3.0.1.1c
03:34:45:363 | HL |     INFO  | +94    | Main - System Specs:
				HyperLaunch Dir: C:\Hyperspin\HyperLaunch
				OS: Microsoft Windows 7 Professional 
				SKU: Professional
				Total Memory: 4015.32 MB
				Free Memory: 2527.36 MB
				Used Memory: 1487.969 MB
				SystemType: x64-based PC
				Physical Processors: 1
				Logical Processors: 2
				GPU 1 Name: AMD Radeon HD 5450
				GPU 1 RAM: 1024.00 MB
				GPU 1 Driver Version: 13.251.0.0
				Sound 1 Device: AMD High Definition Audio Device
				Sound 1 Status: Enabled
				Sound 2 Device: High Definition Audio-Gerät
				Sound 2 Status: Enabled
				OS Language: German_Standard
				OS Admin Status: No
				Monitor #1 (\\.\DISPLAY1): 1280x1024 (1280x984 work)
				AutoHotkey Path: C:\Program Files\AutoHotkey\AutoHotkey.exe
				AHK Version: 1.1.09.04
				Unicode: No
03:34:45:363 | HL |     INFO  | +0     | Main - HyperSpin.exe coordinates are x0 y0 w1280 h1024
03:34:45:363 | HL |     INFO  | +0     | CheckFile - Checking if C:\Hyperspin\HyperLaunch\HyperLaunch.exe exists
03:34:45:364 | HL |     INFO  | +0     | Main - HyperLaunch received "Sony PlayStation" and "Ape Escape [sCUS-94423]"
03:34:45:367 | HL |     INFO  | +16    | Main - Ape Escape [sCUS-94423] is using the default emulator: ePSXe
03:34:45:367 | HL |     INFO  | +0     | Main - Checking for a [ePSXe] section in C:\Hyperspin\HyperLaunch\Settings\Sony PlayStation\Emulators.ini
03:34:45:367 | HL |     INFO  | +0     | Main - Checking for a [ePSXe] section in C:\Hyperspin\HyperLaunch\Settings\Global Emulators.ini
03:34:45:368 | HL |     INFO  | +0     | Main - Found [ePSXe] in C:\Hyperspin\HyperLaunch\Settings\Global Emulators.ini
03:34:45:368 | HL |     INFO  | +0     | CheckFile - Checking if C:\Hyperspin\HyperLaunch\Modules\ePSXe\ePSXe.ahk exists
03:34:45:371 | HL |     INFO  | +0     | Main - CRC Check - CRC matches, this is an official unedited module.
03:34:45:371 | HL |     INFO  | +0     | Main - Ape Escape [sCUS-94423] will use module: C:\Hyperspin\HyperLaunch\Modules\ePSXe\ePSXe.ahk
03:34:45:378 | HL |     INFO  | +0     | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks.
03:34:45:378 | HL |     INFO  | +0     | Main - INI Keys read
03:34:45:378 | HL |     INFO  | +0     | CheckFile - Checking if C:\Hyperspin\HyperLaunch\Module Extensions\7z.exe exists
03:34:45:381 | HL |     INFO  | +15    | CheckFile - Checking if C:\Hyperspin\HyperLaunch\Module Extensions\7z.dll exists
03:34:45:381 | HL |     INFO  | +0     | CheckPaths - Started
03:34:45:381 | HL |     INFO  | +0     | CheckPaths - Found rom: C:\Hyperspin\Roms\Sony Playstation Roms\Ape Escape [sCUS-94423].cue
03:34:45:381 | HL |     INFO  | +0     | CheckFile - Checking if C:\Hyperspin\Emulators\ePSXe180\ePSXe.exe exists
03:34:45:381 | HL |     INFO  | +0     | CheckPaths - Ended
03:34:45:381 | HL |     INFO  | +0     | BuildScript - User Variables:
				;----------------------------------------------------------------------------
				; INJECTED VARIABLES
				;----------------------------------------------------------------------------

				#NoTrayIcon
				#InstallKeybdHook
				DetectHiddenWindows, ON
				SetTitleMatchMode, 2
				SendMode, Event
				0 = 2
				hlMode = 
				frontendPID = 1872
				frontendPath = C:\Hyperspin
				frontendExe = HyperSpin.exe
				frontendExt = exe
				frontendName = HyperSpin
				frontendDrive = C:
				exitEmulatorKey = ~Esc|~1 & ~5
				exitEmulatorKeyWait = 0
				forceHoldKey = ~1
				restoreFE = false
				exitScriptKey = ~q & ~s
				toggleCursorKey = ~e & ~t
				emuFullPath = C:\Hyperspin\Emulators\ePSXe180\ePSXe.exe
				emuPath = C:\Hyperspin\Emulators\ePSXe180
				emuName = ePSXe
				emuExt = exe
				romPath = C:\Hyperspin\Roms\Sony Playstation Roms
				romPathFromIni = C:\Hyperspin\Roms\Sony Playstation Roms
				romExtension = .cue
				romExtensionOrig = .cue
				romExtensions = 7z|zip|cue|bin|ccd|NRG|iso
				executable = ePSXe.exe
				systemName = Sony PlayStation
				dbName = Ape Escape [sCUS-94423]
				romName = Ape Escape [sCUS-94423]
				romMapPath = 
				romMappingEnabled = false
				romMappingLaunchMenuEnabled = false
				romMappingFirstMatchingExt = false
				romMappingShowAllRomsInArchive = true
				romMappingNumberOfWheelsByScreen = 7
				romMappingMenuWidth = 300
				romMappingMenuMargin = 50
				romMappingTextFont = Bebas Neue
				romMappingTextOptions = cFFFFFFFF r4 s40 Bold
				romMappingDisabledTextColor = ff888888
				romMappingTextSizeDifference = 5
				romMappingTextMargin = 10
				romMappingTitleTextFont = Bebas Neue
				romMappingTitleTextOptions = cFFFFFFFF r4 s60 Bold
				romMappingTitle2TextFont = Bebas Neue
				romMappingTitle2TextOptions = cFFFFFFFF r4 s15 Bold
				romMappingGameInfoTextFont = Bebas Neue
				romMappingGameInfoTextOptions = cFFFFFFFF r4 s15 Regular
				romMappingBackgroundBrush = aa000000
				romMappingColumnBrush = 33000000
				romMappingButtonBrush1 = 6f000000
				romMappingButtonBrush2 = 33000000
				romMappingBackgroundAlign = Stretch and Lose Aspect
				romMappingMenuFlagWidth = 40
				romMappingMenuFlagSeparation = 5
				romMappingDefaultMenuList = FullList
				romMappingSingleFilteredRomAutomaticLaunch = false
				skipchecks = false
				romMatchExt = true
				blockInputTime = 0
				blockInputFile = 
				errorLevelReporting = false
				logFile = C:\Hyperspin\HyperLaunch\HyperLaunch.log
				logLabel := ["    INFO"," WARNING","   ERROR","  DEBUG1","  DEBUG2"]
				logLevel = 3
				logIncludeModule = true
				logIncludeFileProperties = true
				logShowCommandWindow = false
				logCommandWindow = false
				sysLang = German_Standard
				navUpKey = Up
				navDownKey = Down
				navLeftKey = Left
				navRightKey = Right
				navSelectKey = Enter
				navP2UpKey = Numpad8
				navP2DownKey = Numpad2
				navP2LeftKey = Numpad4
				navP2RightKey = Numpad6
				navP2SelectKey = NumpadEnter
				originalWidth = 1280
				originalHeight = 1024
				dtEnabled = true
				dtPath = C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe
				dtUseSCSI = true
				dtAddDrive = true
				emuIdleShutdown = 0
				hideCursor = false
				hideEmu = false
				hideFE = false
				fadeIn = false
				fadeInDuration = 500
				fadeInTransitionAnimation = DefaultAnimateFadeIn
				fadeInDelay = 0
				fadeInExitDelay = 0
				fadeOutExitDelay = 0
				fadeOut = false
				fadeOutExtraScreen = false
				fadeOutDuration = 500
				fadeOutTransitionAnimation = DefaultAnimateFadeOut
				fadeOutDelay = 0
				fadeLyrInterpolation = 7
				fadeLyr1Color = FF000000
				fadeLyr1AlignImage = Align to Top Left
				fadeLyr2Pos = Bottom Right Corner
				fadeLyr2X = 300
				fadeLyr2Y = 300
				fadeLyr2Adjust = 1
				fadeLyr2PicPad = 0
				fadeLyr3Pos = Center
				fadeLyr3X = 300
				fadeLyr3Y = 300
				fadeLyr3Adjust = 0.75
				fadeLyr3Speed = 750
				fadeLyr3Animation = DefaultFadeAnimation
				fadeLyr37zAnimation = DefaultFadeAnimation
				fadeLyr3Type = imageandbar
				fadeLyr3ImgFollow7zProgress = true
				fadeLyr3Repeat = 1
				fadeLyr3PicPad = 0
				fadeLyr4Adjust = 0.75
				fadeLyr4X = 100
				fadeLyr4Y = 100
				fadeLyr4Pos = Above Layer 3 - Left
				fadeLyr4FPS = 10
				fadeLyr4PicPad = 0
				fadeTranspGifColor = FFFFFF
				fadeBarWindow = false
				fadeBarWindowX = 
				fadeBarWindowY = 
				fadeBarWindowW = 600
				fadeBarWindowH = 120
				fadeBarWindowR = 20
				fadeBarWindowM = 20
				fadeBarWindowHatchStyle = 8
				fadeBarBack = true
				fadeBarBackColor = FF555555
				fadeBarH = 20
				fadeBarR = 5
				fadeBarColor = DD00BFFF
				fadeBarHatchStyle = 3
				fadeBarPercentageText = true
				fadeBarInfoText = true
				fadeBarXOffset = 0
				fadeBarYOffset = 100
				fadeRomInfoDescription = text
				fadeRomInfoSystemName = text
				fadeRomInfoYear = text
				fadeRomInfoManufacturer = text
				fadeRomInfoGenre = text
				fadeRomInfoRating = text
				fadeRomInfoOrder = Description|SystemName|Year|Manufacturer|Genre|Rating
				fadeRomInfoTextPlacement = topRight
				fadeRomInfoTextMargin = 5
				fadeRomInfoText1Options = cFF555555 r4 s20 Bold
				fadeRomInfoText2Options = cFF555555 r4 s20 Bold
				fadeRomInfoText3Options = cFF555555 r4 s20 Bold
				fadeRomInfoText4Options = cFF555555 r4 s20 Bold
				fadeRomInfoText5Options = cFF555555 r4 s20 Bold
				fadeRomInfoText6Options = cFF555555 r4 s20 Bold
				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 = topLeft
				fadeStatsInfoTextMargin = 5
				fadeStatsInfoText1Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText2Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText3Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText4Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText5Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText6Options = cFF555555 r4 s20 Bold
				fadeText1X = 0
				fadeText1Y = 0
				fadeText1Options = cFFFFFFFF r4 s20 Right Bold
				fadeText1 = Loading Game
				fadeText2X = 0
				fadeText2Y = 0
				fadeText2Options = cFFFFFFFF r4 s20 Right Bold
				fadeText2 = Extraction Complete
				fadeFont = Arial
				fadeSystemAndRomLayersOnly = false
				fadeInterruptKey = 
				detectFadeErrorEnabled = true
				fadeImgPath = C:\Hyperspin\HyperLaunch\Media\Fade
				HLDataPath = C:\Hyperspin\HyperLaunch\Data
				HLMediaPath = C:\Hyperspin\HyperLaunch\Media
				HLErrSoundPath = C:\Hyperspin\HyperLaunch\Media\Sounds\Error
				modulesPath = C:\Hyperspin\HyperLaunch\Modules
				moduleFullName = C:\Hyperspin\HyperLaunch\Modules\ePSXe\ePSXe.ahk
				moduleName = ePSXe
				modulePath = C:\Hyperspin\HyperLaunch\Modules\ePSXe
				moduleExtension = ahk
				moduleExtensionsPath = C:\Hyperspin\HyperLaunch\Module Extensions
				libPath = C:\Hyperspin\HyperLaunch\Lib
				7zEnabled = false
				7zPath = C:\Hyperspin\HyperLaunch\Module Extensions\7z.exe
				7zDllPath = C:\Hyperspin\HyperLaunch\Module Extensions\7z.dll
				7zExtractPath = C:\Users\Arcade\AppData\Local\Temp\HS
				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
				mgYOffset = 500
				mgImageAdjust = 0
				mgFont = Arial
				mgText1Options = x10p y30p w80p Center cBBFFFFFF r4 s100 BoldItalic
				mgText1Text = Please select a game
				mgText2Options = w96p cFFFFFFFF r4 s50 Center BoldItalic
				mgText2Offset = 70
				mgUseSound = true
				mgSoundfreq = 300
				mgExitEffect = none
				mgSelectedEffect = rotate
				mgUseGameArt = false
				mgArtworkDir = Artwork1
				hpEnabled = false
				hpKey = ~NumpadAdd
				hpBackToMenuBarKey = X
				hpZoomInKey = C
				hpZoomOutKey = V
				hpScreenshotKey = ~PrintScreen
				hpHiToTextPath = C:\Hyperspin\HyperLaunch\Module Extensions\HiToText.exe
				hpSaveStateKeyCodes = {F1 down}{F1 up}
				hpLoadStateKeyCodes = {F3 down}{F3 up}
				keymapperEnabled = false
				keymapperAHKMethod = false
				keymapper = 
				xpadderFullPath = C:\Hyperspin\Utilities\Xpadder\xpadder.exe
				joyToKeyFullPath = C:\Hyperspin\Utilities\JoyToKey\JoyToKey.exe
				keymapperProfilePath = C:\Hyperspin\HyperLaunch\Profiles\
				keymapperFrontEndProfileName = HyperSpin
				keymapperFrontEndProfile = false
				keymapperHyperLaunchProfileEnabled = false
				JoyIDsEnabled = false
				JoyIDsPreferredControllersSystem = use_global
				JoyIDsPreferredControllersGlobal = use_global
				CustomJoyNamesEnabled = false
				CustomJoyNames = 
				FEProfile = C:\Hyperspin\HyperLaunch\Profiles\\HyperSpin
				defaultProfile = C:\Hyperspin\HyperLaunch\Profiles\\_Default
				systemProfile = C:\Hyperspin\HyperLaunch\Profiles\\Sony PlayStation
				xPadderSystemProfile = C:\Hyperspin\HyperLaunch\Profiles\\Sony PlayStation\_Default
				emuProfile = C:\Hyperspin\HyperLaunch\Profiles\\Sony PlayStation\ePSXe
				romProfile = C:\Hyperspin\HyperLaunch\Profiles\\Sony PlayStation\Ape Escape [sCUS-94423]
				HyperLaunchProfile = C:\Hyperspin\HyperLaunch\Profiles\\HyperLaunch
				blankProfile = C:\Hyperspin\HyperLaunch\Profiles\\blank
				ahkFEProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\HyperSpin
				ahkDefaultProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\_Default
				ahkSystemProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\Sony PlayStation
				ahkEmuProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\Sony PlayStation\ePSXe
				ahkRomProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\Sony PlayStation\Ape Escape [sCUS-94423]
				ahkHyperLaunchProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\HyperLaunch
				bezelEnabled = false
				statisticsEnabled = true

03:34:45:381 | HL |     INFO  | +0     | BuildScript - Loaded XHotkey Init.ahk scripts
03:34:45:381 | HL |     INFO  | +0     | BuildScript - Loaded Statistics Init.ahk scripts
03:34:45:381 | HL |     INFO  | +0     | BuildScript - Module:
				MEmu = ePSXe
				MEmuV =  v1.9.0
				MURL = [url]http://www.epsxe.com/[/url]
				MAuthor = djvj & Shateredsoul & brolly
				MVersion = 2.0.7
				MCRC = A47833DF
				iCRC = AFD664B0
				MID = 635038268888210842
				MSystem = "Sony PlayStation"
				;----------------------------------------------------------------------------
				; Notes:
				; epsxe can't deal with bin/cue dumps with more than one audio track if you load the cue file directly.
				; For these to work you must mount the cue on daemon tools and let epsxe boot the game from there.
				; You need to make sure you have a SCSI virtual drive on Daemon Tools, NOT a DT one.
				; On first time use, 2 default memory card files will be created called _default_001.mcr and _default_002.mcr in emuPath\memcards
				;
				; Extract all your BIOS files to the bios subfolder. Then goto Config->Bios and select the bios you wish to use.
				;
				; Go to Config->Video then choose a plugin. Pete's OpenGL line is preffered
				; Click Configure (under video plugin) and choose fullscreen and set your desired resolution. Video options/results will vary based on the plugin you choose.
				;
				; If you are using images with multiple tracks, set your extension to cue (make sure all your cues are correctly pointing to their tracks).
				; Go to Config->Cdrom->Configure button and select the drive letter associated with your daemon tools virtual drive.
				;
				; ePSXe will ONLY close via Escape, it will bug out with all other forms of closing a normal program. Do not edit CloseProcess!
				;
				; TurboButton will only work with DX7 video plugin. Turbo key by Hypnoziz
				;
				; Requires at least Libs\Shared.ahk v1.1.3
				;
				; epsxe stores its settings in the registry @ HKEY_CURRENT_USER\Software\epsxe\config
				; plugins store their settings in the registry @ HKEY_CURRENT_USER\Software\Vision Thing\PSEmu Pro
				;----------------------------------------------------------------------------
				StartModule()
				BezelGUI()
				FadeInStart()

				settingsFile := modulePath . "\" . moduleName . ".ini"
				Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
				turboButton := IniReadCheck(settingsFile, "Settings", "turboButton","F12",,1)		; Key mapping for turbo button assignment
				slowBoot := IniReadCheck(settingsFile, "Settings", "slowBoot","false",,1)			; If true, force emulator to show bios screen at boot
				enableAnalog := IniReadCheck(settingsFile, "Settings", "enableAnalog","true",,1)	; If true, enables analog controls at start of game for you, so you don't have to press F5
				hideEpsxeGUIs := IniReadCheck(settingsFile, "Settings", "HideePSXeGUIs","true",,1)
				MLanguage := IniReadCheck(settingsFile, "Settings", "MLanguage","English",,1)		; If English, dialog boxes look for the word "Open" and if Spanish/Portuguese, looks for "Abrir"
				perGameMemCards := IniReadCheck(settingsFile, "Settings", "PerGameMemoryCards","true",,1)
				disableMemoryCard1 := IniReadCheck(settingsFile, romName, "DisableMemoryCard1","false",,1)	; If true, disables memory card 1 for this game. Some games may not boot if both memory cards are inserted.
				disableMemoryCard2 := IniReadCheck(settingsFile, romName, "DisableMemoryCard2","false",,1)	; If true, disables memory card 2 for this game. Some games may not boot if both memory cards are inserted.

				mLang := Object("English","Open","Spanish/Portuguese","Abrir")
				winLang := mLang[MLanguage]	; search object for the MLanguage associated to the user's language
				If !winLang
					ScriptError("Your chosen language is: """ . MLanguage . """. It is not one of the known supported languages for this module: " . moduleName)

				BezelStart()

				If (Fullscreen = "true") {
					WriteReg("DWORD", "Vision Thing\PSEmu Pro\GPU\PeteOpenGL2", "WindowMode", 0)	; changes fullscreen setting for all 3 gpu plugins
					WriteReg("DWORD", "Vision Thing\PSEmu Pro\GPU\PeteTNT", "WindowMode", 0)
					WriteReg("DWORD", "Vision Thing\PSEmu Pro\GPU\DFXVideo", "WindowMode", 0)
				} Else {
					WriteReg("DWORD", "Vision Thing\PSEmu Pro\GPU\PeteOpenGL2", "WindowMode", 1)
					WriteReg("DWORD", "Vision Thing\PSEmu Pro\GPU\PeteTNT", "WindowMode", 1)
					WriteReg("DWORD", "Vision Thing\PSEmu Pro\GPU\DFXVideo", "WindowMode", 1)
					If (bezelEnabled = "true") {
						winSize := bezelScreenHeight * 65536 + bezelScreenWidth	; convert desired windowed resolution to Decimal
						WriteReg("DWORD", "Vision Thing\PSEmu Pro\GPU\PeteOpenGL2", "WinSize", winSize)
						WriteReg("DWORD", "Vision Thing\PSEmu Pro\GPU\PeteTNT", "WinSize", winSize)
						WriteReg("DWORD", "Vision Thing\PSEmu Pro\GPU\DFXVideo", "WinSize", winSize)
					}
				}

				; Memory Cards
				memCardPath := emuPath . "\memcards"
				defaultMemCard1 := memCardPath . "\_default_001.mcr"	; defining default blank memory card for slot 1
				defaultMemCard2 := memCardPath . "\_default_002.mcr"	; defining default blank memory card for slot 2
				romMemCard1 := memCardPath . "\" . romName . "_001.mcr"		; defining name for rom's memory card for slot 1
				romMemCard2 := memCardPath . "\" . romName . "_002.mcr"		; defining name for rom's memory card for slot 2
				memcardType := If perGameMemCards = "true" ? "rom" : "default"	; define the type of memory card we will create in the below loop
				IfNotExist, %memCardPath%
					FileCreateDir, %memCardPath%	; create memcard folder if it doesn't exist
				Loop 2
				{	IfNotExist, % %memcardType%MemCard%A_Index%
					{	FileAppend,, % %memcardType%MemCard%A_Index%		; create a new blank memory card if one does not exist
						Log("Module - Created a new blank memory card in Slot " . A_Index . ":" . %memcardType%MemCard%A_Index%)
					}
					WriteReg("SZ", "epsxe\config", "Memcard" . A_Index, %memcardType%MemCard%A_Index%)

					; Now disable a memory card if required for the game to boot properly
					memcard%A_Index%Enable := ReadReg("epsxe\config", "Memcard" . A_Index . "Enable")
					If (disableMemoryCard%A_Index% = "true")
						WriteReg("SZ", "epsxe\config", "Memcard" . A_Index . "Enable", 0)
					Else
						WriteReg("SZ", "epsxe\config", "Memcard" . A_Index . "Enable", 1)
				}

				7z(romPath, romName, romExtension, 7zExtractPath)

				epsxeExtension := InStr(".ccd|.cue|.img|.iso|.mdf",romExtension)	; the psx extensions supported by the emu

				SetKeyDelay, 50
				; turboButton := xHotKeyVarEdit(turboButton,"turboButton","~","Add")
				xHotKeywrapper(turboButton,"TurboProcess")
				turboEnabled = 0				; Initialize turbo state

				RomTableCheck()	; make sure romTable is created already so the next line can calculate correctly
				noGUI := If romTable.MaxIndex() ? "" : " -nogui" ; multidisc games will not use nogui because we need to select an option in epsxe's gui to swap discs
				slowBoot := If slowBoot = "true" ? " -slowboot" : ""

				If (noGUI = "" && hideEpsxeGUIs = "true") {	; for multi disc games only
					Log("Module - Starting the HideGUIWindow timer to prevent them from showing")
					SetTimer, HideGUIWindow, 10	; start watching for gui window so it can be completely hidden
				}

				; Mount the CD using DaemonTools
				If (epsxeExtension && dtEnabled = "true" ) {
					Log("Module - Daemon Tools is enabled and " . romExtension . " is a supported DT extension.")
					DaemonTools("mount",romPath . "\" . romName . romExtension)
					errorLvl := Run(executable . noGUI . slowBoot, emuPath)
					usedDT := 1
				} Else {
					Log("Module - Sending rom to emu directly as Daemon Tools is not enabled or " . romExtension . " is not a supported DT extension.")
					errorLvl := Run(executable . noGUI . slowBoot . " -loadiso """ . romPath . "\" . romName . romExtension . """", emuPath)
				}
				If errorLvl
					ScriptError("Error launching " . executable . "`, closing module.")

				epsxeLaunchType := If usedDT ? "CDROM" : "ISO"	; determines which command gets sent to epsxe

				If (noGUI = "") {	; for multi disc games only
					Log("Module - " . romName . " is a multi-disc game, so launching " . MEmu . " with GUI enabled so swapping can occur.")
					WinWait("ePSXe ahk_class EPSXGUI")
					If (epsxeLaunchType = "CDROM") {
						Log("Module - Telling ePSXe to run a CDROM")
						PostMessage, 0x111, 40001,,,ahk_class EPSXGUI	; Run CDROM
					} Else {
						Log("Module - Telling ePSXe to run an ISO")
						PostMessage, 0x111, 40003,,,ahk_class EPSXGUI	; Run ISO
					}
				} Else
					Log("Module - " . romName . " is not a multi-disc game, so launching " . MEmu . " with GUI disabled.")

				epsxeOpenWindow := winLang . " PSX ISO ahk_class #32770"
				If (!usedDT && noGUI = "") {		; for some reason, epsxe still shows an open psx iso box even though it was provided on the run command when we don't also send -nogui. This handles loading the rom.
					Log("Module - " . MEmu . " GUI and DT support are both disabled. Loading rom via the Open PSX ISO window.")
					WinWait(epsxeOpenWindow)
					Loop {
						ControlGetText, edit1Text, Edit1, %epsxeOpenWindow%
						If (edit1Text = romPath . "\" . romName . romExtension)
							Break
						Sleep, 100
						ControlSetText, Edit1, %romPath%\%romName%%romExtension%, %epsxeOpenWindow%
					}
					ControlSend, Button1, {Enter}, %epsxeOpenWindow% ; Select Open
				}	

				WinWait("ePSXe ahk_class EPSX")
				WinWaitActive("ePSXe ahk_class EPSX")

				If (noGUI = "" && hideEpsxeGUIs = "true") {	; for multi disc games only
					Log("Module - Stopping the HideGUIWindow timer")
					SetTimer, HideGUIWindow, Off
				}

				BezelDraw()
				FadeInExit()

				If enableAnalog = true
				{	Sleep, 1500	; necessary otherwise epsxe doesn't register the key
					Send, {F5 down}{F5 up}
				}

				Process("WaitClose", executable)

				If usedDT
					DaemonTools("unmount")

				7zCleanUp()
				BezelExit()
				FadeOutExit()
				ExitModule()


				ReadReg(var1, var2) {
					RegRead, regValue, HKEY_CURRENT_USER, Software\%var1%, %var2%
					Return %regValue%
				}

				WriteReg(type, var1, var2, var3) {
					RegWrite, REG_%type%, HKEY_CURRENT_USER, Software\%var1%, %var2%, %var3%
				}

				TurboProcess:
				    If (turboEnabled = 0) {
						Send, {Delete}{End}{End}{Delete}
						turboEnabled = 1
				    } Else {
						Send, {Delete}{End}{Delete}
						turboEnabled = 0
				    }
				Return

				HaltEmu:
					SetKeyDelay, 50
					If Fullscreen = true
					{	PostMessage, 0x111, 40001,,,ahk_class EPSXGUI	; Go fullscreen, same as alt+enter
						Sleep, 200
					}
				Return
				MultiGame:
					; msgbox % "selectedRom = " . selectedRom . "`nselected game = " . currentButton . "`nmgRomPath = " . mgRomPath . "`nmgRomExt = " . mgRomExt . "`nmgRomName = "  . mgRomName
					SetKeyDelay, 50
					If usedDT
					{	DaemonTools("unmount")	; Unmount the CD from DaemonTools
						Sleep, 500	; Required to prevent  DT from bugging
						DaemonTools("mount",selectedRom)	; Mount the CD using DaemonTools
					}
					ControlSend,, {ESC down}{ESC Up}, ahk_class EPSX	; this exits the game window and brings back ePSXe's gui menu window
					If hideEpsxeGUIs = true
					{	Log("Module - Starting the HideGUIWindow timer to prevent them from showing")
						SetTimer, HideGUIWindow, 10
					}

					If (epsxeLaunchType = "CDROM") {
						Log("Module - Telling ePSXe to swap to another CDROM")
						PostMessage, 0x111, 40005,,,ahk_class EPSXGUI	; Change Disc CDROM
					} Else {
						Log("Module - Telling ePSXe to swap to another ISO")
						PostMessage, 0x111, 40006,,,ahk_class EPSXGUI	; Change Disc ISO
					}

					If usedDT
					{	WinWait("Change Disc Option ahk_class #32770")
						ControlSend,Button1,{Enter},Change Disc Option ahk_class #32770
					} Else {
						WinWait(epsxeOpenWindow)
						Loop {
							ControlGetText, edit1Text, Edit1, %epsxeOpenWindow% 
							If (edit1Text = selectedRom)
								Break
							Sleep, 100
							ControlSetText, Edit1, %selectedRom%, %epsxeOpenWindow%
						}
						ControlSend, Button1, {Enter}, %epsxeOpenWindow% ; Select Open
					}	
					If hideEpsxeGUIs = true
					{	Log("Module - Stopping the HideGUIWindow timer")
						SetTimer, HideGUIWindow, off
					}
				Return
				RestoreEmu:
					SetKeyDelay, 50
					WinActivate, ahk_id  %emulatorID%
					If Fullscreen = true
						PostMessage, 0x111, 40001,,,ahk_class EPSXGUI	; Go fullscreen, same as alt+enter
				Return

				HideGUIWindow:
					WinSet, Transparent, On, ePSXe ahk_class EPSXGUI
					WinSet, Transparent, On, Open PSX ISO ahk_class #32770	; when not using DT
					WinSet, Transparent, On, Change Disc Option ahk_class #32770	; when using DT
				Return

				CloseProcess:
					FadeOutStart()
					SetWinDelay, 50
					Log("Module - Sending Escape to close emulator")
					; ControlSend,, {Esc down}{Esc up}, ePSXe ahk_class EPSX ; DO NOT CHANGE
					PostMessage, 0x111, 40007,,,ahk_class EPSX	; Go fullscreen, same as alt+enter
					If (noGUI = "") {	; for multi disc games only
						WinWait("ePSXe ahk_class EPSXGUI")
						WinClose("ePSXe ahk_class EPSXGUI")
					}
				Return

03:34:45:383 | HL |     INFO  | +0     | CheckFile - Checking if C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe exists
03:34:45:386 | HL |     INFO  | +0     | BuildScript - Loaded Statistics.ahk script
03:34:45:386 | HL |     INFO  | +0     | BuildScript - Finished injecting functions into module
03:34:45:386 | HL |     INFO  | +0     | Main - Module is built
03:34:45:386 | HL |     INFO  | +0     | CheckFile - Checking if C:\Hyperspin\HyperLaunch\AutoHotkey.dll exists
03:34:45:386 | HL |     INFO  | +0     | Main - Running module
03:34:45:450 | MD |     INFO  | +N/A   | Module initialized
03:34:45:450 | MD |     INFO  | +0     | StartModule - Started
03:34:45:450 | MD |     INFO  | +0     | StartModule - MEmu: ePSXe
				MEmuV: v1.9.0
				MURL: [url]http://www.epsxe.com/[/url]
				MAuthor: djvj & Shateredsoul & brolly
				MVersion: 2.0.7
				MCRC: A47833DF
				iCRC: AFD664B0
				MID: 
				MSystem: "Sony PlayStation"
03:34:45:450 | MD |     INFO  | +0     | StartModule - You have a supported System Name for this module: "Sony PlayStation"
03:34:45:450 | MD |     INFO  | +0     | StartModule - Ended
03:34:45:450 | MD |     INFO  | +0     | Module Setting - [settings] - Fullscreen: true
03:34:45:450 | MD |     INFO  | +0     | Module Setting - [settings] - turboButton: F12
03:34:45:450 | MD |     INFO  | +0     | Module Setting - [settings] - slowBoot: false
03:34:45:450 | MD |     INFO  | +0     | Module Setting - [settings] - enableAnalog: true
03:34:45:450 | MD |     INFO  | +0     | Module Setting - [settings] - HideePSXeGUIs: true
03:34:45:450 | MD |     INFO  | +0     | Module Setting - [settings] - MLanguage: English
03:34:45:450 | MD |     INFO  | +0     | Module Setting - [settings] - PerGameMemoryCards: true
03:34:45:450 | MD |     INFO  | +0     | Module Setting - [Ape Escape [sCUS-94423]] - DisableMemoryCard1: false
03:34:45:450 | MD |     INFO  | +0     | Module Setting - [Ape Escape [sCUS-94423]] - DisableMemoryCard2: false
03:34:45:453 | MD |     INFO  | +0     | Module - Created a new blank memory card in Slot 1:C:\Hyperspin\Emulators\ePSXe180\memcards\Ape Escape [sCUS-94423]_001.mcr
03:34:45:453 | MD |     INFO  | +0     | Module - Created a new blank memory card in Slot 2:C:\Hyperspin\Emulators\ePSXe180\memcards\Ape Escape [sCUS-94423]_002.mcr
03:34:45:453 | MD |     INFO  | +0     | RomTableCheck - Started
03:35:00:397 | MD |     INFO  | +14945 | Module - Sending Escape to close emulator
03:35:00:397 | MD |     INFO  | +0     | WinWait - Waiting for "ePSXe ahk_class EPSXGUI"
03:35:43:082 | MD |    ERROR  | +42681 | There was an error waiting for the window "ePSXe ahk_class EPSXGUI". 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.
03:35:43:082 | MD |     INFO  | +0     | ExitModule - Started
03:35:43:082 | MD |     INFO  | +0     | Starting Updating Statistics:
03:35:43:082 | MD |     INFO  | +0     | CreateRomTable - Started
03:35:43:082 | MD |     INFO  | +0     | CreateRomTable - Ended, 7 Loops to create table.
03:35:43:112 | MD |     INFO  | +32    | Game section statistics updated.
03:35:43:112 | MD |     INFO  | +0     | ExitModule - Ended
03:35:43:112 | MD |     INFO  | +0     | End of Module Logs

Posted

Heres your error message: There was an error waiting for the window "ePSXe ahk_class EPSXGUI". 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.

Are you pointing hyperlaunch to epsxe.exe or to a gui?

Walter:beerglass:

Archived

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

×
×
  • Create New...