Jump to content
  • Announcement

    The HyperSpin 2 early access beta is here!

    We’re starting the first public testing phase with Platinum Members to keep the scope manageable while we test the current feature set and begin to add more. In the future, we’ll provide a version for basic members as well.  On behalf of the entire HyperSpin team, we look forward to another exciting adventure with our community.

Mednafen PSX just faling to work


mar00n

Recommended Posts

Posted

Please help guys, PSX is giving me a real headache and mednafen seems like the only way forward. It works on every other console I use it for but not the playstation. It gives me the silly ahk error.

18:16:18:575 | HL |     INFO  | +N/A   | Main - HyperLaunch v3.0.1.1c
18:16:18:621 | HL |     INFO  | +47    | Main - System Specs:
				HyperLaunch Dir: D:\Hyperspin\Hyperlaunch
				OS: Microsoft Windows 7 Ultimate 
				SKU: Ultimate
				Total Memory: 8077.19 MB
				Free Memory: 4028.43 MB
				Used Memory: 4048.762 MB
				SystemType: x64-based PC
				Physical Processors: 1
				Logical Processors: 8
				GPU 1 Name: Intel(R) HD Graphics 4000
				GPU 1 RAM: -1984.00 MB
				GPU 1 Driver Version: 9.17.10.2857
				GPU 2 Name: AMD Radeon HD 6900 Series
				GPU 2 RAM: -2048.00 MB
				GPU 2 Driver Version: 14.100.0.0
				Sound 1 Device: Intel(R) Display Audio
				Sound 1 Status: Enabled
				Sound 2 Device: AMD High Definition Audio Device
				Sound 2 Status: Enabled
				Sound 3 Device: Realtek High Definition Audio
				Sound 3 Status: Enabled
				OS Language: English_United_States
				OS Admin Status: Yes
				Monitor #1 (\\.\DISPLAY1): 1920x1080 (1920x1040 work)
				AutoHotkey Path: 
				AHK Version: 1.1.09.04
				Unicode: No
18:16:18:621 | HL |     INFO  | +0     | Main - HyperSpin.exe coordinates are x0 y0 w1920 h1080
18:16:18:621 | HL |     INFO  | +0     | CheckFile - Checking if D:\Hyperspin\Hyperlaunch\HyperLaunch.exe exists
18:16:18:621 | HL |     INFO  | +0     | Main - HyperLaunch received "Sony Playstation" and "Zoop - America's Largest Killer of Time! (USA)"
18:16:18:625 | HL |     INFO  | +15    | Main - Zoop - America's Largest Killer of Time! (USA) is using the default emulator: Mednafen
18:16:18:625 | HL |     INFO  | +0     | Main - Checking for a [Mednafen] section in D:\Hyperspin\Hyperlaunch\Settings\Sony Playstation\Emulators.ini
18:16:18:625 | HL |     INFO  | +0     | Main - Checking for a [Mednafen] section in D:\Hyperspin\Hyperlaunch\Settings\Global Emulators.ini
18:16:18:625 | HL |     INFO  | +0     | Main - Found [Mednafen] in D:\Hyperspin\Hyperlaunch\Settings\Global Emulators.ini
18:16:18:625 | HL |     INFO  | +0     | CheckFile - Checking if D:\Hyperspin\Hyperlaunch\Modules\Mednafen\Mednafen.ahk exists
18:16:18:628 | HL |     INFO  | +0     | Main - CRC Check - CRC matches, this is an official unedited module.
18:16:18:628 | HL |     INFO  | +0     | Main - Zoop - America's Largest Killer of Time! (USA) will use module: D:\Hyperspin\Hyperlaunch\Modules\Mednafen\Mednafen.ahk
18:16:18:634 | HL |     INFO  | +0     | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks.
18:16:18:635 | HL |     INFO  | +0     | Main - INI Keys read
18:16:18:636 | HL |     INFO  | +0     | CheckFile - Checking if D:\Hyperspin\Hyperlaunch\Module Extensions\7z.exe exists
18:16:18:636 | HL |     INFO  | +0     | CheckFile - Checking if D:\Hyperspin\Hyperlaunch\Module Extensions\7z.dll exists
18:16:18:636 | HL |     INFO  | +0     | CheckPaths - Started
18:16:18:636 | HL |     INFO  | +0     | CheckPaths - Found rom: F:\Roms\PSX (USA) 2013-03-23\Zoop - America's Largest Killer of Time! (USA).7z
18:16:18:636 | HL |     INFO  | +0     | CheckFile - Checking if D:\Hyperspin\Emulators\Mednafen\mednafen-0.9.26-wip-win32\mednafen.exe exists
18:16:18:637 | HL |     INFO  | +0     | CheckPaths - Ended
18:16:18:637 | HL |     INFO  | +0     | BuildScript - User Variables:
				;----------------------------------------------------------------------------
				; INJECTED VARIABLES
				;----------------------------------------------------------------------------

				#NoTrayIcon
				#InstallKeybdHook
				DetectHiddenWindows, ON
				SetTitleMatchMode, 2
				SendMode, Event
				0 = 2
				hlMode = 
				frontendPID = 7688
				frontendPath = D:\Hyperspin
				frontendExe = HyperSpin.exe
				frontendExt = exe
				frontendName = HyperSpin
				frontendDrive = D:
				exitEmulatorKey = 1joy10|Esc
				exitEmulatorKeyWait = 0
				forceHoldKey = ~Esc
				restoreFE = Restore and Click
				exitScriptKey = ~q & ~s
				toggleCursorKey = ~e & ~t
				emuFullPath = D:\Hyperspin\Emulators\Mednafen\mednafen-0.9.26-wip-win32\mednafen.exe
				emuPath = D:\Hyperspin\Emulators\Mednafen\mednafen-0.9.26-wip-win32
				emuName = Mednafen
				emuExt = exe
				romPath = F:\Roms\PSX (USA) 2013-03-23
				romPathFromIni = F:\Roms\PSX (USA) 2013-03-23
				romExtension = .7z
				romExtensionOrig = .7z
				romExtensions = 7z|zip|sfc|gb|gbc|gba|vb|sms|gg|md|lnx|nes|ngp|ngc|pce|wsc|cue|ccd
				executable = mednafen.exe
				systemName = Sony Playstation
				dbName = Zoop - America's Largest Killer of Time! (USA)
				romName = Zoop - America's Largest Killer of Time! (USA)
				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 = D:\Hyperspin\Hyperlaunch\HyperLaunch.log
				logLabel := ["    INFO"," WARNING","   ERROR","  DEBUG1","  DEBUG2"]
				logLevel = 3
				logIncludeModule = true
				logIncludeFileProperties = true
				logShowCommandWindow = false
				logCommandWindow = false
				sysLang = English_United_States
				navUpKey = Up
				navDownKey = Down
				navLeftKey = Left
				navRightKey = Right
				navSelectKey = Enter
				navP2UpKey = Numpad8
				navP2DownKey = Numpad2
				navP2LeftKey = Numpad4
				navP2RightKey = Numpad6
				navP2SelectKey = NumpadEnter
				originalWidth = 1920
				originalHeight = 1080
				dtEnabled = true
				dtPath = C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe
				dtUseSCSI = true
				dtAddDrive = true
				emuIdleShutdown = 0
				hideCursor = true
				hideEmu = false
				hideFE = false
				fadeIn = true
				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 = D:\Hyperspin\Hyperlaunch\Media\Fade
				HLDataPath = D:\Hyperspin\Hyperlaunch\Data
				HLMediaPath = D:\Hyperspin\Hyperlaunch\Media
				HLErrSoundPath = D:\Hyperspin\Hyperlaunch\Media\Sounds\Error
				modulesPath = D:\Hyperspin\Hyperlaunch\Modules
				moduleFullName = D:\Hyperspin\Hyperlaunch\Modules\Mednafen\Mednafen.ahk
				moduleName = Mednafen
				modulePath = D:\Hyperspin\Hyperlaunch\Modules\Mednafen
				moduleExtension = ahk
				moduleExtensionsPath = D:\Hyperspin\Hyperlaunch\Module Extensions
				libPath = D:\Hyperspin\Hyperlaunch\Lib
				7zEnabled = true
				7zPath = D:\Hyperspin\Hyperlaunch\Module Extensions\7z.exe
				7zDllPath = D:\Hyperspin\Hyperlaunch\Module Extensions\7z.dll
				7zExtractPath = D:\Hyperspin\Hyperlaunch\Module Extensions
				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 = D:\Hyperspin\Hyperlaunch\Module Extensions\HiToText.exe
				hpSaveStateKeyCodes = {1 down}{1 up}{F5 down}{F5 up}|{2 down}{2 up}{F5 down}{F5 up}|{3 down}{3 up}{F5 down}{F5 up}|{4 down}{4 up}{F5 down}{F5 up}|{5 down}{5 up}{F5 down}{F5 up}|{6 down}{6 up}{F5 down}{F5 up}|{7 down}{7 up}{F5 down}{F5 up}|{8 down}{8 up}{F5 down}{F5 up}|{9 down}{9 up}{F5 down}{F5 up}|{0 down}{0 up}{F5 down}{F5 up}
				hpLoadStateKeyCodes = {1 down}{1 up}{F7 down}{F7 up}|{2 down}{2 up}{F7 down}{F7 up}|{3 down}{3 up}{F7 down}{F7 up}|{4 down}{4 up}{F7 down}{F7 up}|{5 down}{5 up}{F7 down}{F7 up}|{6 down}{6 up}{F7 down}{F7 up}|{7 down}{7 up}{F7 down}{F7 up}|{8 down}{8 up}{F7 down}{F7 up}|{9 down}{9 up}{F7 down}{F7 up}|{0 down}{0 up}{F7 down}{F7 up}
				keymapperEnabled = false
				keymapperAHKMethod = false
				keymapper = 
				xpadderFullPath = D:\Hyperspin\Hyperlaunch\Hyperlaunch HQ\Xpadder.exe
				joyToKeyFullPath = D:\Hyperspin\Utilities\JoyToKey\JoyToKey.exe
				keymapperProfilePath = D:\Hyperspin\Hyperlaunch\Profiles\
				keymapperFrontEndProfileName = HyperSpin
				keymapperFrontEndProfile = false
				keymapperHyperLaunchProfileEnabled = false
				JoyIDsEnabled = false
				JoyIDsPreferredControllersSystem = use_global
				JoyIDsPreferredControllersGlobal = use_global
				CustomJoyNamesEnabled = false
				CustomJoyNames = 
				FEProfile = D:\Hyperspin\Hyperlaunch\Profiles\\HyperSpin
				defaultProfile = D:\Hyperspin\Hyperlaunch\Profiles\\_Default
				systemProfile = D:\Hyperspin\Hyperlaunch\Profiles\\Sony Playstation
				xPadderSystemProfile = D:\Hyperspin\Hyperlaunch\Profiles\\Sony Playstation\_Default
				emuProfile = D:\Hyperspin\Hyperlaunch\Profiles\\Sony Playstation\Mednafen
				romProfile = D:\Hyperspin\Hyperlaunch\Profiles\\Sony Playstation\Zoop - America's Largest Killer of Time! (USA)
				HyperLaunchProfile = D:\Hyperspin\Hyperlaunch\Profiles\\HyperLaunch
				blankProfile = D:\Hyperspin\Hyperlaunch\Profiles\\blank
				ahkFEProfile = D:\Hyperspin\Hyperlaunch\Profiles\AHK\HyperSpin
				ahkDefaultProfile = D:\Hyperspin\Hyperlaunch\Profiles\AHK\_Default
				ahkSystemProfile = D:\Hyperspin\Hyperlaunch\Profiles\AHK\Sony Playstation
				ahkEmuProfile = D:\Hyperspin\Hyperlaunch\Profiles\AHK\Sony Playstation\Mednafen
				ahkRomProfile = D:\Hyperspin\Hyperlaunch\Profiles\AHK\Sony Playstation\Zoop - America's Largest Killer of Time! (USA)
				ahkHyperLaunchProfile = D:\Hyperspin\Hyperlaunch\Profiles\AHK\HyperLaunch
				bezelEnabled = false
				statisticsEnabled = true

18:16:18:637 | HL |     INFO  | +0     | BuildScript - Loaded XHotkey Init.ahk scripts
18:16:18:637 | HL |     INFO  | +0     | BuildScript - Loaded Fade Init.ahk scripts
18:16:18:637 | HL |     INFO  | +0     | BuildScript - Loaded Statistics Init.ahk scripts
18:16:18:637 | HL |     INFO  | +0     | BuildScript - Loaded User Functions Init.ahk script
18:16:18:638 | HL |     INFO  | +0     | BuildScript - Module:
				MEmu = Mednafen
				MEmuV =  v0.9.31 WIP
				MURL = http://mednafen.sourceforge.net/
				MAuthor = djvj
				MVersion = 2.0.9
				MCRC = DAAB2BB2
				iCRC = 1ECCF5E8
				MID = 635038268903923913
				MSystem = "Atari Lynx","Bandai Wonderswan","Bandai Wonderswan Color","NEC PC Engine","NEC PC Engine-CD","NEC PC-FX","NEC SuperGrafx","NEC TurboGrafx-16","NEC TurboGrafx-CD","Nintendo Entertainment System","Nintendo Famicom","Nintendo Famicom Disk System","Nintendo Game Boy","Nintendo Game Boy Advance","Nintendo Game Boy Color","Nintendo Super Famicom","Nintendo Virtual Boy","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","SNK Neo Geo Pocket","SNK Neo Geo Pocket Color","Sony PlayStation","Super Nintendo Entertainment System"
				;----------------------------------------------------------------------------
				; Notes:
				; Below are some basic params you can change, there are many other params
				; located in the mednafen documentation that you can add If needed.
				;
				; Some people experience screen flickering and mednafen will not stay in 
				; fullscreen, you can changed vDriver below to -vdriver sdl and it will
				; possibly fix the issue.
				;
				; There is no error checking If mednafen fails, so If you try to launch
				; your game and nothing happens, then check the stdout.txt in your mednafen
				; installation directory to see what went wrong.
				;
				; To remap your keys, start a game then press alt + shift + 1 to enter
				; the key configuration.  Also see mednafen.cfg to change other keys such
				; as the exit key.
				;
				; Atari Lynx:
				; Create a folder called "firmware" in your mednafen folder and place lynxboot.img in there
				;
				; Nintendo Virtual Boy:
				; For Virtual Boy you might not be able to get in game and get stuck
				; on the intro screen, so open your cfg file and change these settings
				; to allow you to play. There are some extra options here to.
				; vb.anaglyph.lcolor 0xFF0000
				; vb.anaglyph.preset disabled
				; vb.anaglyph.rcolor 0x000000
				; vb.default_color 0xFFFFFF
				; vb.disable_parallax 0
				; vb.input.builtin.gamepad.a keyboard 109
				; vb.input.builtin.gamepad.b keyboard 110
				; vb.input.builtin.gamepad.down-l keyboard 100
				; vb.input.builtin.gamepad.down-r keyboard 107
				; vb.input.builtin.gamepad.left-l keyboard 115
				; vb.input.builtin.gamepad.left-r keyboard 106
				; vb.input.builtin.gamepad.lt keyboard 103
				; vb.input.builtin.gamepad.rapid_a keyboard 46
				; vb.input.builtin.gamepad.rapid_b keyboard 44
				; vb.input.builtin.gamepad.right-l keyboard 102
				; vb.input.builtin.gamepad.right-r keyboard 108
				; vb.input.builtin.gamepad.rt keyboard 104
				; vb.input.builtin.gamepad.select keyboard 118
				; vb.input.builtin.gamepad.start keyboard 13
				; vb.input.builtin.gamepad.up-l keyboard 101
				; vb.input.builtin.gamepad.up-r keyboard 105

				; Sony PlayStation Info:
				; Create a folder called "firmware" in your mednafen folder and place all your bios files (ex. scph5501.bin) in there. Set the options below so mednafen can find them
				; This module only supports Daemon Tools when mounting with a cue extension for psx.
				; Set your rom extension to cue
				; Multi-Disc games REQUIRES Daemon Tools, do not attempt to swap discs any other way as it is not supported by this module.
				;----------------------------------------------------------------------------
				StartModule()
				BezelGUI()
				FadeInStart()

				; The next 2 objects control how the module reacts to different systems. Mednafen can play a lot of systems, but changes itself slightly so this module has to adapt 
				mType1 := Object("Atari Lynx","lynx","Bandai Wonderswan","wswan","Bandai Wonderswan Color","wswan","NEC PC Engine","pce","NEC PC-FX","pcfx","NEC SuperGrafx","pce","NEC TurboGrafx-16","pce","Nintendo Entertainment System","nes","Nintendo Famicom","nes","Nintendo Famicom Disk System","nes","Nintendo Game Boy","gb","Nintendo Game Boy Advance","gba","Nintendo Game Boy Color","gb","Nintendo Super Famicom","snes","Nintendo Virtual Boy","vb","Samsung Gam Boy","sms","Sega Game Gear","gg","Sega Genesis","md","Sega Mega Drive","md","Sega Master System","sms","SNK Neo Geo Pocket","ngp","SNK Neo Geo Pocket Color","ngp","Super Nintendo Entertainment System","snes")
				mType2 := Object("NEC PC Engine-CD","pce","NEC TurboGrafx-CD","pce","Sony PlayStation","psx")	; these systems change Mednafen's window name, so it needs to be separate from the rest

				ident1 := mType1[systemName]	; search 1st array for the systemName identifier mednafen uses
				ident2 := mType2[systemName]	; search 2nd array for the systemName identifier mednafen uses
				ident := If (!ident1 && !ident2) ? ("") : (ident1 . ident2)
				If !ident
					ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for this Mednafen module: " . moduleName)

				settingsFile := modulePath . "\" . systemName . ".ini"
				IfNotExist, %settingsFile%
					settingsFile := modulePath . "\" . moduleName . ".ini"

				; Settings used for all systems
				Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
				Stretch := IniReadCheck(settingsFile, "Settings", "Stretch","aspect",,1)			; 0, aspect, or full
				vDriver := IniReadCheck(settingsFile, "Settings", "vDriver","opengl",,1)				; opengl or sdl
				xRes := IniReadCheck(settingsFile, "Settings", "xRes",0,,1)
				yRes := IniReadCheck(settingsFile, "Settings", "yRes",0,,1)

				stretch := If Stretch ? ("-" . ident . ".stretch " . Stretch) : ""
				vDriver := If vDriver ? ("-vdriver " . vDriver) : ""
				xRes := If xRes ? ("-" . ident . ".xres " . xRes) : ""
				yRes := If yRes ? ("-" . ident . ".yres " yRes) : ""

				If ident = lynx	; this needs to be before BezelStart so we can tell it if we need to rotate the screen or not
				{	rotateScreen := IniReadCheck(settingsFile, romName, "RotateScreen","false",,1)	; also remove all systemName section support, using systemName ini files instead, like MESS module
					rotateScreen := If rotateScreen = "true" ? "-lynx.rotateinput 1" : ""
					CheckFile(emuPath . "\firmware\lynxboot.img","Cannot find the Atari Lynx bios file required to use this system:`n" . emuPath . "\firmware\lynxboot.img")
				}

				BezelStart(,,(If rotateScreen ? 1:""))

				emuFullscreen := If Fullscreen = "true" ? "-fs 1" : "-fs 0"	; This needs to stay after BezelStart

				If ident1 = pce
					sgfxMode := If (systemName = "NEC SuperGrafx" && romExtension != sgx) ? "-pce.forcesgx 1"  : ""

				If ident2 = pce
				{	PCE_CD_Bios := IniReadCheck(settingsFile, "Bios", "PCE_CD_Bios","syscard3.pce",,1)		; Bios, placed in the bios subfolder of the emu, required for these systems: NEC PC Engine-CD & NEC TurboGrafx-CD
					CheckFile(emuPath . "\firmware\" . PCE_CD_Bios ,"Cannot find the PCE_CD_Bios  file you have defined in the module:`n" . emuPath . "\firmware\" . PCE_CD_Bios)
					pceCDBios := If PCE_CD_Bios ? ("-pce.cdbios ""firmware\"  . PCE_CD_Bios  . """") : ""
				}
				If ident = pcfx
				{	PCFX_Bios := IniReadCheck(settingsFile, "Bios", "PCFX_Bios","pcfxbios.bin",,1)			; Bios, placed in the bios subfolder of the emu, required for NEC PC-FX
					CheckFile(emuPath . "\firmware\" . PCFX_Bios ,"Cannot find the PCFX_Bios  file you have defined in the module:`n" . emuPath . "\firmware\" . PCFX_Bios)
					pcfxBios := If PCFX_Bios ? ("-pcfx.bios ""firmware\"  . PCFX_Bios  . """") : ""
				}

				If ident = psx	; only need these for Sony PlayStation, must check If these files exist, otherwise mednafan doesn't launch and HL gets stuck
				{	NA_Bios := IniReadCheck(settingsFile, "Bios", "NA_Bios","PSX - SCPH1001.bin",,1)		; Sony PlayStation only - this is the bios you want to use for North American games - place this in a "bios" subfolder where Mednafen is
					EU_Bios := IniReadCheck(settingsFile, "Bios", "EU_Bios","PSX - SCPH5502.bin",,1)		; Sony PlayStation only - this is the bios you want to use for European games - place this in a "bios" subfolder where Mednafen is
					JP_Bios := IniReadCheck(settingsFile, "Bios", "JP_Bios","PSX - SCPH5500.bin",,1)		; Sony PlayStation only - this is the bios you want to use for Japanese games - place this in a "bios" subfolder where Mednafen is
					CheckFile(emuPath . "\firmware\" . NA_Bios,"Cannot find the NA_Bios file you have defined in the module:`n" . emuPath . "\firmware\" . NA_Bios)
					CheckFile(emuPath . "\firmware\" . EU_Bios,"Cannot find the EU_Bios file you have defined in the module:`n" . emuPath . "\firmware\" . EU_Bios)
					CheckFile(emuPath . "\firmware\" . JP_Bios,"Cannot find the JP_Bios file you have defined in the module:`n" . emuPath . "\firmware\" . JP_Bios)
					naBios := If NA_Bios ? ("-psx.bios_na ""firmware\" . NA_Bios . """") : ""
					euBios := If EU_Bios ? ("-psx.bios_eu ""firmware\" .  EU_Bios . """") : ""
					jpBios := If JP_Bios ? ("-psx.bios_jp ""firmware\"  . JP_Bios . """") : ""
				}

				If bezelPath ; defining xscale and yscale relative to the bezel windowed mode
				{	If ident = lynx
					{	If !rotateScreen
						{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",160,,1)	; Controls width of the emu's window, relative to the bezel's window
							bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",102,,1)	; Controls height of the emu's window, relative to the bezel's window
						} Else {
							bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Vertical_Res",198,,1)	; Only for Atari Lynx vertical games - Controls height of the emu's window, relative to the bezel's vertical window
							bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Vertical_Res",164,,1)	; Only for Atari Lynx vertical games - Controls width of the emu's window, relative to the bezel's vertical window
						}
					} Else If ident = wswan
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",224,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",144,,1)
					} Else If ident = pce
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",288,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",231,,1)
					} Else If ident = pcfx
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",341,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",480,,1)
					} Else If ident = nes
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",298,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",240,,1)
					} Else If ident = gb
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",160,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",144,,1)
					} Else If ident = gba
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",240,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",160,,1)
					} Else If ident = snes
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",256,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",224,,1)
					} Else If ident = vb
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",384,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",224,,1)
					} Else If ident = gg
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",160,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",144,,1)
					} Else If ident = md
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",320,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",480,,1)
					} Else If ident = sms
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",256,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",240,,1)
					} Else If ident = ngp
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",160,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",152,,1)
					} Else If ident = psx
					{	bezelXres := IniReadCheck(settingsFile, "Settings", "Bezel_X_Res",640,,1)
						bezelYres := IniReadCheck(settingsFile, "Settings", "Bezel_Y_Res",480,,1)
					}
					xscale := round( bezelScreenWidth / bezelXres , 2)
					yscale := round( bezelScreenHeight / bezelYres , 2)
					xscale := "-" . ident . ".xscale " . xscale
					yscale := "-" . ident . ".yscale " . yscale
				}

				;----------------------------------------------------------------------------

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

				; Mount the CD using DaemonTools
				If ((romExtension = ".cue" || romExtension = ".ccd" || romExtension = ".iso") && dtEnabled = "true" && (ident = "psx" || ident = "pce")) {	; only Sony PlayStation tested
					Log("Module - Mounting rom in Daemon Tools")
					DaemonTools("get")
					DaemonTools("mount",romPath . "\" . romName . romExtension)
					useDT = 1
				}

				Run(executable . " " . emuFullscreen . " " . stretch . " " . vDriver . " " . (If Fullscreen = "true" ? xRes . " " . yRes : xscale . " " . yscale) . " " . sgfxMode . " " . naBios . " " . euBios . " " . jpBios . " " . pceCDBios . " " . pcfxBios . " " . rotateScreen . " " . (If useDT ? "-physcd " . dtDriveLetter . ":" : """" . romPath . "\" . romName . romExtension . """"), emuPath)

				; WinWait, % (If ident2 ? ("Mednafen") : (romName)) . " ahk_class SDL_app"
				; WinWaitActive, % (If ident2 ? ("Mednafen") : (romName)) . " ahk_class SDL_app"
				WinWait("ahk_class SDL_app")
				WinWaitActive("ahk_class SDL_app")
				BezelDraw()
				FadeInExit()

				errorLvl := Process("Exist", executable)
				If errorLvl != 0
					Process("WaitClose", executable)

				If useDT
					DaemonTools("unmount")

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


				MultiGame:
					If useDT {
						SetKeyDelay, 50
						Send, {F8 down}{F8 up}	; eject disc in mednafen - MIGHT WANT TO TRY DOING A CONTROLSEND
						DaemonTools("unmount")
						Sleep, 500	; Required to prevent  DT from bugging
						DaemonTools("mount",selectedRom)
						WinActivate, ahk_class SDL_app
						Send, {F8 down}{F8 up}	; eject disc in mednafen
					}
				Return
				RestoreEmu:
					If fullscreen = true
						WinMaximize, Mednafen ahk_class SDL_app	; mednafen will not restore unless this command is used
					WinActivate, Mednafen ahk_class SDL_app
				Return

				CloseProcess:
					FadeOutStart()
					WinClose("ahk_class SDL_app")
					; WinClose, % (If ident2 ? ("Mednafen") : (romName)) . " ahk_class SDL_app"
				Return

18:16:18:638 | HL |     INFO  | +0     | CheckFile - Checking if C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe exists
18:16:18:641 | HL |     INFO  | +16    | BuildScript - Loaded Statistics.ahk script
18:16:18:641 | HL |     INFO  | +0     | BuildScript - Loaded User Functions.ahk script
18:16:18:641 | HL |     INFO  | +0     | BuildScript - Finished injecting functions into module
18:16:18:641 | HL |     INFO  | +0     | Main - Module is built
18:16:18:641 | HL |     INFO  | +0     | CheckFile - Checking if D:\Hyperspin\Hyperlaunch\AutoHotkey.dll exists
18:16:18:642 | HL |     INFO  | +0     | Main - Hiding taskbar
18:16:18:858 | HL |     INFO  | +218   | Main - Running module
18:16:18:942 | MD |     INFO  | +N/A   | Module initialized
18:16:18:943 | MD |     INFO  | +0     | StartModule - Started
18:16:18:943 | MD |     INFO  | +0     | StartModule - MEmu: Mednafen
				MEmuV: v0.9.31 WIP
				MURL: http://mednafen.sourceforge.net/
				MAuthor: djvj
				MVersion: 2.0.9
				MCRC: DAAB2BB2
				iCRC: 1ECCF5E8
				MID: 
				MSystem: "Atari Lynx","Bandai Wonderswan","Bandai Wonderswan Color","NEC PC Engine","NEC PC Engine-CD","NEC PC-FX","NEC SuperGrafx","NEC TurboGrafx-16","NEC TurboGrafx-CD","Nintendo Entertainment System","Nintendo Famicom","Nintendo Famicom Disk System","Nintendo Game Boy","Nintendo Game Boy Advance","Nintendo Game Boy Color","Nintendo Super Famicom","Nintendo Virtual Boy","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","SNK Neo Geo Pocket","SNK Neo Geo Pocket Color","Sony PlayStation","Super Nintendo Entertainment System"
18:16:18:943 | MD |     INFO  | +0     | StartModule - You have a supported System Name for this module: "Sony Playstation"
18:16:18:947 | MD |     INFO  | +0     | Hiding mouse cursor
18:16:18:971 | MD |     INFO  | +32    | StartModule - Ended
18:16:18:972 | MD |     INFO  | +0     | GetFadePicFile - Randomized images and Fade Layer 1 will use D:\Hyperspin\Hyperlaunch\Media\Fade\_Default\Layer 1.png
18:16:18:973 | MD |     INFO  | +0     | GetFadePicFile - Randomized images and Fade Layer 2 will use D:\Hyperspin\Hyperlaunch\Media\Fade\_Default\Layer 2 (HS alt).png
18:16:19:039 | MD |     INFO  | +62    | DefaultAnimateFadeIn - Started
18:16:19:039 | MD |     INFO  | +0     | DefaultAnimateFadeIn - Drawing First FadeIn Image.
18:16:19:547 | MD |     INFO  | +515   | DefaultAnimateFadeIn - Ended
18:16:19:547 | MD |     INFO  | +0     | StartGlobalUserFeatures - Starting
18:16:19:547 | MD |     INFO  | +0     | StartGlobalUserFeatures - Ending
18:16:19:550 | MD |     INFO  | +0     | Module Setting - [settings] - Fullscreen: true
18:16:19:550 | MD |     INFO  | +0     | Module Setting - [settings] - Stretch: full
18:16:19:551 | MD |     INFO  | +0     | Module Setting - [settings] - vDriver: opengl
18:16:19:551 | MD |     INFO  | +0     | Module Setting - [settings] - xRes: 0
18:16:19:551 | MD |     INFO  | +0     | Module Setting - [settings] - yRes: 0
18:16:19:551 | MD |     INFO  | +0     | Module Setting - [bios] - NA_Bios: PSX - SCPH1001.bin
18:16:19:551 | MD |     INFO  | +0     | Module Setting - [bios] - EU_Bios: PSX - SCPH5502.bin
18:16:19:551 | MD |     INFO  | +0     | Module Setting - [bios] - JP_Bios: PSX - SCPH5500.bin
18:16:19:551 | MD |     INFO  | +0     | CheckFile - Checking if D:\Hyperspin\Emulators\Mednafen\mednafen-0.9.26-wip-win32\firmware\PSX - SCPH1001.bin exists
18:16:19:551 | MD |     INFO  | +0     | CheckFile - Checking if D:\Hyperspin\Emulators\Mednafen\mednafen-0.9.26-wip-win32\firmware\PSX - SCPH5502.bin exists
18:16:19:552 | MD |     INFO  | +0     | CheckFile - Checking if D:\Hyperspin\Emulators\Mednafen\mednafen-0.9.26-wip-win32\firmware\PSX - SCPH5500.bin exists
18:16:19:552 | MD |     INFO  | +0     | 7z - Started, received F:\Roms\PSX (USA) 2013-03-23\Zoop - America's Largest Killer of Time! (USA).7z. If rom is an archive, it will extract to D:\Hyperspin\Hyperlaunch\Module Extensions
18:16:19:552 | MD |     INFO  | +0     | CheckFile - Checking if F:\Roms\PSX (USA) 2013-03-23\Zoop - America's Largest Killer of Time! (USA).7z exists
18:16:20:348 | MD |     INFO  | +795   | 7z - Archive name matches rom name; DLL found rom inside archive using "findFileInZip": "Zoop - America's Largest Killer of Time! (USA).cue"
18:16:20:348 | MD |     INFO  | +0     | 7z - Extracted path of rom will be 140 in length and within the 255 character limit.
18:16:20:349 | MD |     INFO  | +0     | 7z - The 7zExtractPath has 233239 MB of free space which is enough to extract this game: 264 MB
18:16:20:361 | MD |     INFO  | +16    | DefaultFadeAnimation - Started
18:16:20:361 | MD |     INFO  | +0     | GetFadePicFile - Randomized images and Fade Layer 3 will use D:\Hyperspin\Hyperlaunch\Media\Fade\_Default\Layer 3.png
18:16:20:363 | MD |     INFO  | +0     | ReadHyperSpinXML - Started
18:16:20:364 | MD |     INFO  | +0     | ReadHyperSpinXML - Ended
18:16:20:365 | MD |     INFO  | +0     | CreateRomTable - Started
18:16:20:365 | MD |     INFO  | +0     | CreateRomTable - Ended, 7 Loops to create table.
18:16:20:375 | MD |     INFO  | +16    | DefaultFadeAnimation - Playing D:\Hyperspin\Hyperlaunch\Media\Fade\_Default\7z extracting.mp3
18:16:25:142 | MD |     INFO  | +4758  | DefaultFadeAnimation - Ended
18:16:25:142 | MD |     INFO  | +0     | 7z - Ended
18:16:25:142 | MD |     INFO  | +0     | Module - Mounting rom in Daemon Tools
18:16:25:142 | MD |     INFO  | +0     | DaemonTools - Started - action is get
18:16:25:620 | MD |     INFO  | +483   | DaemonTools - Started - action is mount
18:16:25:849 | MD |     INFO  | +234   | DaemonTools - Running DT with: C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe -mount scsi, 0, "D:\Hyperspin\Hyperlaunch\Module Extensions\Zoop - America's Largest Killer of Time! (USA)\Zoop - America's Largest Killer of Time! (USA).cue"
18:16:30:342 | MD |     INFO  | +4493  | DaemonTools - Ended
18:16:30:342 | MD |     INFO  | +0     | Run - Running: D:\Hyperspin\Emulators\Mednafen\mednafen-0.9.26-wip-win32\mednafen.exe -fs 1 -psx.stretch full -vdriver opengl    -psx.bios_na "firmware\PSX - SCPH1001.bin" -psx.bios_eu "firmware\PSX - SCPH5502.bin" -psx.bios_jp "firmware\PSX - SCPH5500.bin"    -physcd I:
18:16:30:370 | MD |     INFO  | +16    | WinWait - Waiting for "ahk_class SDL_app"
18:16:30:522 | MD |     INFO  | +156   | WinWaitActive - Waiting for "ahk_class SDL_app"
18:17:03:915 | MD |     INFO  | +33399 | Process - Exist 7z.exe 
18:17:04:228 | MD |    ERROR  | +312   | There was an error waiting for the window "ahk_class SDL_app" to become active. 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.
18:17:04:228 | MD |     INFO  | +0     | ExitModule - Started
18:17:04:228 | MD |     INFO  | +0     | Starting Updating Statistics:
18:17:04:260 | MD |     INFO  | +32    | Game section statistics updated.
18:17:04:265 | MD |     INFO  | +0     | Restoring mouse cursor
18:17:04:266 | MD |     INFO  | +0     | ExitModule - Ended
18:17:04:266 | MD |     INFO  | +0     | End of Module Logs
18:16:18:858 | HL |     INFO  | +0     | Main - Starting timer to watch if Front End gets displaced and restore it if it does.
18:17:04:351 | HL |     INFO  | +45490 | Main - Module ended, exiting HyperLaunch normally
18:17:04:351 | HL |     INFO  | +0     | ExitScript - Started
18:17:04:717 | HL |     INFO  | +359   | SystemCursor - Restoring mouse cursor
18:17:04:722 | HL |     INFO  | +16    | ExitScript - Ended

Posted

This kind of error is usually a huge hint that you aren't using the version of the emulator that's expected. And...

MEmuV = v0.9.31 WIP <-----

Run - Running: D:\Hyperspin\Emulators\Mednafen\mednafen-0.9.26-wip-win32\mednafen.exe <----

...you aren't.

Archived

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

×
×
  • Create New...