bnuts77 Posted August 24, 2015 Posted August 24, 2015 Following error "Error at line 626. Line text: HideEmuStart(ms=2) Error: Duplicate function definition. The program will exit" I looked that code up and error 2 has to do with incomplete games. But they launch fine in RL Edit : forgot to include logs RL [code] 19:51:35:341 | RL | INFO | +N/A | Main - RocketLauncher v1.0.1.2 (www.rlauncher.com) 19:51:35:341 | RL | WARNING | +0 | Main - You have "Logging_Log_Command_Window" enabled. This is only for logging errors being dumped to the command window from an executable. This may cause issues with running some executables and needs to be turned off when you are done. 19:51:35:397 | RL | INFO | +62 | Main - System Specs: RocketLauncher Dir: F:\New folder\Hyperspin RocketLauncher is: 32-bit OS: Microsoft Windows 10 Home SKU: Windows 8 Total Memory: 8136.00 MB Free Memory: 4114.28 MB Used Memory: 4021.719 MB SystemType: 64-bit Physical Processors: 1 Logical Processors: 4 GPU 1 Name: NVIDIA GeForce GTX 970 GPU 1 RAM: -1.00 MB GPU 1 Driver Version: 10.18.13.5362 Sound 1 Device: NVIDIA High Definition Audio Sound 1 Status: Enabled Sound 2 Device: Rocketfish 5.1 Sound 2 Status: Enabled Sound 3 Device: Realtek High Definition Audio Sound 3 Status: Enabled Sound 4 Device: NVIDIA Virtual Audio Device (Wave Extensible) (WDM) Sound 4 Status: Enabled OS Language: English_United_States OS Admin Status: Yes Monitor #1 (\\.\DISPLAY1): 2560x1440 (2560x1400 work) [Landscape] (Primary) Current AHK Desktop Width: 2560 Current AHK Desktop Height: 1440 AutoHotkey Path: AHK Version: 1.1.09.04 Unicode: No 19:51:35:397 | RL | INFO | +0 | CheckFile - Checking if F:\New folder\Hyperspin\RocketLauncher.exe exists 19:51:35:398 | RL | INFO | +0 | CheckFile - Checking if F:\New folder\Hyperspin\Plugins\HyperSpin.plugin exists 19:51:35:398 | RL | INFO | +0 | Main - Loading Front End Plugin: "HyperSpin" 19:51:35:398 | RL | INFO | +0 | Main - RocketLauncher received "MAME" and "005" 19:51:35:402 | RL | INFO | +0 | Main - Did not find a "F:\New folder\Hyperspin\Settings\MAME\Game Options.ini" file, skipping any game-specific options. 19:51:35:402 | RL | INFO | +0 | Main - 005 is using the default emulator: Mame 19:51:35:402 | RL | INFO | +0 | Main - Checking for a [Mame] section in F:\New folder\Hyperspin\Settings\MAME\Emulators.ini 19:51:35:402 | RL | INFO | +0 | Main - Found [Mame] in F:\New folder\Hyperspin\Settings\MAME\Emulators.ini 19:51:35:402 | RL | INFO | +0 | CheckFile - Checking if F:\New folder\Hyperspin\Modules\Mame\Mame.ahk exists 19:51:35:405 | RL | INFO | +16 | Main - CRC Check - CRC matches, this is an official unedited module. 19:51:35:405 | RL | INFO | +0 | Main - 005 will use module: F:\New folder\Hyperspin\Modules\Mame\Mame.ahk 19:51:35:412 | RL | INFO | +0 | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks. 19:51:35:414 | RL | INFO | +0 | CheckFile - Checking if F:\New folder\Hyperspin\Emulators\MameUI64\Mameui64.exe exists 19:51:35:415 | RL | INFO | +0 | Main - INI Keys read 19:51:35:415 | RL | INFO | +0 | CheckFile - Checking if F:\New folder\Hyperspin\Module Extensions\7z.exe exists 19:51:35:415 | RL | INFO | +0 | CheckFile - Checking if F:\New folder\Hyperspin\Module Extensions\7z.dll exists 19:51:35:418 | RL | INFO | +0 | Main - "005" 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:51:35:418 | RL | INFO | +0 | CheckPaths - Started 19:51:35:418 | RL | INFO | +0 | CheckPaths - Found rom: F:\New folder\Roms\MAME\005.zip 19:51:35:418 | RL | INFO | +0 | CheckPaths - Ended 19:51:35:418 | RL | INFO | +0 | BuildScript - User Variables: ;---------------------------------------------------------------------------- ; INJECTED VARIABLES ;---------------------------------------------------------------------------- #NoTrayIcon #InstallKeybdHook DetectHiddenWindows, ON SetTitleMatchMode, 2 SendMode, Event 0 = 10 pluginPath = F:\New folder\Hyperspin\Plugins pluginName = HyperSpin pluginExt = .plugin contextOnExit = 1 rlMode = rlTitle = RocketLauncher rlVersion = 1.0.1.2 rlAuthor = djvj rlURL = www.rlauncher.com langFile = F:\New folder\Hyperspin\Data\Language\Localization.ini primMonitor = 1 frontendPID = frontendPath = F:\New folder\Hyperspin frontendExe = HyperSpin.exe frontendExt = exe frontendName = HyperSpin frontendDrive = F: exitEmulatorKey = ~Esc exitEmulatorKeyWait = 0 forceHoldKey = ~Esc restoreFE = false exitScriptKey = ~PGUP & ~PGDN toggleCursorKey = ~e & ~t emuFullPath = F:\New folder\Hyperspin\Emulators\MameUI64\Mameui64.exe emuPath = F:\New folder\Hyperspin\Emulators\MameUI64 emuName = Mame emuExt = exe romPath = F:\New folder\Roms\MAME romPathFromIni = F:\New folder\Roms\MAME romExtension = .zip romExtensionOrig = .zip romExtensions = zip executable = Mameui64.exe systemDbName = MAME systemName = MAME dbPath = dbName = 005 dbExt = romName = 005 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 = F:\New folder\Hyperspin\Module Extensions\BlockInput.exe errorLevelReporting = false lockLaunch = false lockLaunchGame = screenRotationAngle = 0 screenRotationAngleGame = logFile = F:\New folder\Hyperspin\RocketLauncher.log logLabel := [" INFO"," WARNING"," ERROR"," DEBUG1"," DEBUG2"] logLevel = 3 logShowDebugConsole = false logIncludeModule = true logIncludeFileProperties = true logShowCommandWindow = false logCommandWindow = true rlDebugConsoleStdout = sysLang = English_United_States sysType = 64-bit broadcastWindowTitle = navUpKey = Up navDownKey = Down navLeftKey = Left navRightKey = Right navSelectKey = Enter navP2UpKey = Numpad8 navP2DownKey = Numpad2 navP2LeftKey = Numpad4 navP2RightKey = Numpad6 navP2SelectKey = NumpadEnter originalWidth = 2560 originalHeight = 1440 vdEnabled = false vdFullPath = vdUseSCSI = true vdDriveLetter = vdAddDrive = true servoStikEnabled = false ledblinkyEnabled = false ledblinkyFullPath = ledblinkyProfilePath = F:\New folder\Hyperspin\Profiles\LEDBlinky ledblinkyRLProfile = F:\New folder\Hyperspin\Profiles\LEDBlinky\RocketLauncher emuIdleShutdown = 0 launchPasswordHash = zQJHGuIBD6bt2rEoPola0Rbrl81Ci3lgdm1mxbcm+QfXe+SDPHV0ig== 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 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 = 1715|952 fadeLyr4Y = 720|1596 fadeLyr4W = 200 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 = F:\New folder\Hyperspin\Media\Fade RLDataPath = F:\New folder\Hyperspin\Data RLMediaPath = F:\New folder\Hyperspin\Media RLErrSoundPath = F:\New folder\Hyperspin\Media\Sounds\Error modulesPath = F:\New folder\Hyperspin\Modules moduleFullName = F:\New folder\Hyperspin\Modules\Mame\Mame.ahk moduleName = Mame modulePath = F:\New folder\Hyperspin\Modules\Mame moduleExtension = ahk moduleExtensionsPath = F:\New folder\Hyperspin\Module Extensions libPath = F:\New folder\Hyperspin\Lib 7zEnabled = false 7zPath = F:\New folder\Hyperspin\Module Extensions\7z.exe 7zDllPath = F:\New folder\Hyperspin\Module Extensions\7z.dll 7zExtractPath = F:\New folder\Hyperspin\Extract 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 pauseEnabled = false pauseKey = ~NumpadAdd pauseBackToMenuBarKey = X pauseZoomInKey = C pauseZoomOutKey = V pauseScreenshotKey = ~PrintScreen pauseHiToTextPath = F:\New folder\Hyperspin\Module Extensions\HiToText.exe pauseSaveStateKeyCodes = pauseLoadStateKeyCodes = keymapperEnabled = false keymapperAHKMethod = false keymapper = xpadder xpadderFullPath = F:\New folder\Utilities\Xpadder\xpadder.exe joyToKeyFullPath = F:\New folder\Utilities\JoyToKey\JoyToKey.exe keymapperProfilePath = F:\New folder\Hyperspin\Profiles\xpadder keymapperFrontEndProfileName = HyperSpin keymapperFrontEndProfile = false keymapperRocketLauncherProfileEnabled = false joyIDsEnabled = false joyIDsPreferredControllersGlobal = joyIDsPreferredControllersSystem = use_global joyIDsPreferredControllersOnExit = CustomJoyNamesEnabled = false CustomJoyNames = rotateMethod = false FEProfile = F:\New folder\Hyperspin\Profiles\xpadder\HyperSpin defaultProfile = F:\New folder\Hyperspin\Profiles\xpadder\_Default systemProfile = F:\New folder\Hyperspin\Profiles\xpadder\MAME xPadderSystemProfile = F:\New folder\Hyperspin\Profiles\xpadder\MAME\_Default emuProfile = F:\New folder\Hyperspin\Profiles\xpadder\MAME\Mame romProfile = F:\New folder\Hyperspin\Profiles\xpadder\MAME\005 RocketLauncherProfile = F:\New folder\Hyperspin\Profiles\xpadder\RocketLauncher blankProfile = F:\New folder\Hyperspin\Profiles\xpadder\_Default\blank ahkFEProfile = F:\New folder\Hyperspin\Profiles\AHK\HyperSpin ahkDefaultProfile = F:\New folder\Hyperspin\Profiles\AHK\_Default ahkSystemProfile = F:\New folder\Hyperspin\Profiles\AHK\MAME ahkEmuProfile = F:\New folder\Hyperspin\Profiles\AHK\MAME\Mame ahkRomProfile = F:\New folder\Hyperspin\Profiles\AHK\MAME\005 ahkRocketLauncherProfile = F:\New folder\Hyperspin\Profiles\AHK\RocketLauncher bezelEnabled = false bezelICEnabled = false statisticsEnabled = true pressDuration = -1 emuVolume = 1 dxwndIni = F:\New folder\Hyperspin\Module Extensions\dxwnd\dxwnd.ini dxwndFullPath = F:\New folder\Hyperspin\Module Extensions\dxwnd\dxwnd.exe mon1O = pacDrivedllFile = F:\New folder\Hyperspin\Module Extensions\PacDrive32.dll userFadeAnimIniFile = F:\New folder\Hyperspin\Lib\User Fade Animations.ini 19:51:35:420 | RL | INFO | +0 | BuildScript - Loaded XHotkey Init.ahk scripts 19:51:35:420 | RL | INFO | +0 | BuildScript - Loaded Statistics Init.ahk scripts 19:51:35:421 | RL | INFO | +15 | BuildScript - Loaded User Functions Init.ahk script 19:51:35:421 | RL | INFO | +0 | BuildScript - Validating module 19:51:35:422 | RL | INFO | +0 | BuildScript - Validation complete 19:51:35:422 | RL | INFO | +0 | BuildScript - Module: MEmu = MAME MEmuV = v0.161 MURL = http://www.mame.net/ MAuthor = djvj MVersion = 2.1.14 MCRC = 7B006C89 iCRC = CA5CEF4B MID = 635038268903403479 MSystem = "AAE","Atari Classics","Cave","Capcom","Capcom Classics","Capcom Play System","Capcom Play System II","Capcom Play System III","Data East Classics","Konami Classics","LaserDisc","MAME","Midway Classics","Namco Classics","Namco System 22","Nintendo Arcade Systems","Nintendo Classics","Sega Classics","Sega Model 1","Sega ST-V","SNK Classics","SNK Neo Geo","SNK Neo Geo AES","SNK Neo Geo MVS","Taito Classics" ;---------------------------------------------------------------------------- ; Notes: ; No need to edit mame.ini and set your rom folder, module sends the rompath for you. ; Command Line Options - http://easyemu.mameworld.info/mameguide/mameguide-options.html ; High Scores DO NOT SAVE when cheats are enabled! ; HLSL Documentation: http://mamedev.org/source/docs/hlsl.txt.html ; If you use MAME for AAE, create a vector.ini in mame's ini subfolder and paste these HLSL settings in there: http://www.mameworld.info/ubbthreads/showflat.php?Cat=&Number=309968&page=&view=&sb=5&o=&vc=1 ; ; Bezels: ; Module settings control whether RocketLauncher or MAME bezels are shown ; In the bezel normal mode only RocketLauncher Bezels will be show and the MAME use_bezels option will be forced disbaled ; In the bezel layout mode, RocketLauncher Bezels will be drawn only when you do not have a layout file on your MAME folders for the current game ; ; ServoStik: ; The module will automatically control any connected ServoStiks found on the system. ; It does this by reading the xml info from MAME. If that XML info has directional info at 4 or less, 4-way mode will be enabled. All others get 8-way mode. ; ; Ini Files: ; Module will set most settings through command line which will override any settings you might have on your MAME ini files. Everything else will be read from ; those. MAME supports a hierarchical ini file structure and will load settings from several ini files following a specific order: ;- mame.ini ;- <mymame>.ini (i.e. if MAME was renamed mame060.exe, MAME parses mame060.ini here) ;- debug.ini (if the debugger is enabled) ;- <parent>.ini (for clones only, may be called recursively) ;- <gamename>.ini ;- vertical.ini (for games with vertical monitor orientation) ;- horizont.ini (for games with horizontal monitor orientation) ;- vector.ini (for vector games only) ;- <driver>.ini (based on the source filename of the driver) ; ; The settings in the later ini's override those in the earlier ini's. ; ; It's highly recommended that you set skipchecks to 'Rom Only" for MAME otherwise RocketLauncher won't be able to launch several games due ; to the way MAME roms are packaged. This will be even more noticeable for those using merged sets. ;---------------------------------------------------------------------------- StartModule() BezelGUI() FadeInStart() settingsFile := modulePath . "\" . moduleName . ".ini" Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1) legacyMode := IniReadCheck(settingsFile, "Settings|" . systemName . "|" . romName, "LegacyMode","false",,1) hlsl := IniReadCheck(settingsFile, "Settings|" . systemName . "|" . romName, "HLSL","false",,1) glsl := IniReadCheck(settingsFile, "Settings|" . systemName . "|" . romName, "GLSL","false",,1) bezelMode := IniReadCheck(settingsFile, "Settings|" . systemName . "|" . romName, "BezelMode","layout",,1) ; "layout" or "normal" Videomode := IniReadCheck(settingsFile, "Settings", "Videomode","d3d",,1) pauseMethod := IniReadCheck(settingsFile, "Settings", "PauseMethod",1,,1) ; set the pause method that works better on your machine (preferred methods 1 and 2) 1 = Win7 and Win8 OK - Problems with Win XP, 2 = preferred method for WinXP - Problems in Win7, 3 and 4 = same as 1 and 2, 5 = only use If you have a direct input version of mame, 6 = suspend mame process method, it could crash mame in some computers verticalRotationMode := IniReadCheck(settingsFile, "Settings|" . systemName . "|" . romName, "VerticalRotationMode","none",,1) cheatMode := IniReadCheck(settingsFile, "Settings", "CheatMode","false",,1) cheatModeKey := IniReadCheck(settingsFile, "Settings", "CheatModeKey",A_Space,,1) ; user defined key to be held down before launching a mame rom. sysParams := IniReadCheck(settingsFile, systemName, "Params", A_Space,,1) romParams := IniReadCheck(settingsFile, romName, "Params", A_Space,,1) mameRomName := IniReadCheck(settingsFile, romName, "MameRomName", A_Space,,1) Artwork_Crop := IniReadCheck(settingsFile, systemName . "|" . romName, "Artwork_Crop", "true",,1) Use_Bezels := IniReadCheck(settingsFile, systemName . "|" . romName, "Use_Bezels", "false",,1) Use_Overlays := IniReadCheck(settingsFile, systemName . "|" . romName, "Use_Overlays", "true",,1) Use_Backdrops := IniReadCheck(settingsFile, systemName . "|" . romName, "Use_Backdrops", "true",,1) Use_Cpanels := IniReadCheck(settingsFile, systemName . "|" . romName, "Use_Cpanels", "false",,1) Use_Marquees := IniReadCheck(settingsFile, systemName . "|" . romName, "Use_Marquees", "false",,1) autosave := IniReadCheck(settingsFile, systemName . "|" . romName, "Autosave", "false",,1) volume := IniReadCheck(settingsFile, "Settings|" . systemName . "|" . romName, "Volume",,,1) inipath := IniReadCheck(settingsFile, systemName, "IniPath", "",,1) artworkCrop := If (Artwork_Crop = "true") ? " -artwork_crop" : " -noartwork_crop" useBezels := If (Use_Bezels = "true") ? " -use_bezels" : " -nouse_bezels" useOverlays := If (Use_Overlays = "true") ? " -use_overlays" : " -nouse_overlays" useBackdrops := If (Use_Backdrops = "true") ? " -use_backdrops" : " -nouse_backdrops" UseCpanels := If (Use_Cpanels = "true") ? " -use_cpanels" : " -nouse_cpanels" UseMarquees := If (Use_Marquees = "true") ? " -use_marquees" : " -nouse_marquees" ; Get MAME version from executable, this is needed since some CLI switches are not available in older MAME versions exeAtrib := FileGetVersionInfo_AW( EmuPath . "\" . executable, "FileVersion|ProductVersion", "|" ) Loop, Parse, exeAtrib, |%A_Tab%, %A_Space% A_Index & 1 ? ( _ := A_LoopField ) : ( %_% := A_LoopField ) If (ProductVersion) StringRight, MAMEVersion, ProductVersion, StrLen(ProductVersion) - 2 Log("Detected MAME Product Version from '" . EmuPath . "\" . executable . "' is " . MAMEVersion) If inipath inipath := AbsoluteFromRelative(EmuPath, inipath) If (verticalRotationMode = "none") verticalRotationMode := "" hideEmuObj := Object(dialogOpen . " ahk_class ConsoleWindowClass",0,"ahk_class MAME",1) ;Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later ; Process mame's ListXML for certain features If (bezelEnabled = "true" || servoStikEnabled != "false" || verticalRotationMode) { ListXMLObject := Object() ListXMLObject := ListXMLInfo(romName) If (bezelEnabled = "true") { If (bezelMode = "layout"){ BezelStart("layout",ListXMLObject["Parent"].Value,ListXMLObject["Angle"].Value,romName) } Else { ;bezel mode = normal useBezels := " -nouse_bezels" ; force disabling MAME built-in bezels BezelStart(,,ListXMLObject["Angle"].Value) } } If (servoStikEnabled != "false") { ServoStik(If ListXMLObject["Ways"].Value <= 4 ? 4 : 8) ; If "ways" in the xml is set to 4 or less, the servo will go into 4-way mode, else 8-way mode will be enabled } If (verticalRotationMode && ListXMLObject["Angle"].Value) { If (verticalRotationMode = "original") verticalRotationMode := " -norotate" Else If (verticalRotationMode = "right") verticalRotationMode := " -ror" Else If (verticalRotationMode = "left") verticalRotationMode := " -rol" Else verticalRotationMode := "" } Else verticalRotationMode := "" } ; -romload part of 147u2 that shows what roms were checked when missing roms winstate := If (Fullscreen = "true") ? "Hide UseErrorLevel" : "UseErrorLevel" fullscreen := If (Fullscreen = "true") ? " -nowindow" : " -window" If (Videomode = "opengl") { hlsl := " -nohlsl_enable" If (MAMEVersion > 159) glsl := If glsl = "true" ? " -gl_glsl" : (If glsl = "ini" ? "" : " -nogl_glsl") Else glsl := "" } Else { hlsl := If hlsl = "true" ? " -hlsl_enable" : (If hlsl = "ini" ? "" : " -nohlsl_enable") If (MAMEVersion > 159) glsl := If Videomode = "ini" ? "" : " -nogl_glsl" Else glsl := "" If (Videomode = "ini") Videomode := "" } videomode := If (Videomode != "" ) ? " -video " . videomode : "" sysParams := If sysParams != "" ? A_Space . sysParams : "" romParams := If romParams != "" ? A_Space . romParams : "" autosave := If autosave = "true" ? " -autosave" : "" volume := If volume != "" ? " -volume " . volume : "" inipath := If inipath != "" ? " -inipath """ . inipath . """" : "" StringReplace,mameRomPaths,romPathFromIni,|,`"`;`",1 ; replace all instances of | to ; in the Rom_Path from Emulators.ini so mame knows where to find your roms mameRomPaths := " -rompath """ . (If mameRomName ? romPath : mameRomPaths) . """" ; if using an alt rom, only supply mame with the path to that rom so it doesn't try to use the original rom If InStr(romParams,"-rompath") ScriptError("""-rompath"" is defined as a parameter for " . romName . ". The MAME module fills this automatically so please remove this from Params in the module's settings.") If InStr(sysParams,"-rompath") ScriptError("""-rompath"" is defined as a parameter for " . systemName . ". The MAME module fills this automatically so please remove this from Params in the module's settings.") If mameRomName { FileMove, %romPath%\%romName%%romExtension%, %romPath%\%mameRomName%%romExtension% ; rename rom to match what mame needs originalRomName := romName ; store romName from database so we know what to rename it back to later romName := mameRomName If ErrorLevel ScriptError("There was a problem renaming " . romName . " to " . mameRomName . " in " . romPath . ". Please check you have write permission to this folder/file and you don't already have a file named """ . mameRomName . """ in your rom folder.",8) Else ; if rename was successful, set var so we know to move it back later fileRenamed = 1 } If cheatMode = true { If (!FileExist(emuPath . "\cheat.zip") && !FileExist(emuPath . "\cheat.7z")) ScriptError("You have cheats enabled for " . MEmu . " but could not locate a ""cheat.zip"" or ""cheat.7z"" in " . emuPath) If cheatModeKey ; if user wants to use a key to enable CheatMode cheatEnabled := If XHotkeyAllKeysPressed(cheatModeKey) ? " -cheat" : "" ; only enables cheatMode when key is held down on launch Else ; no cheat mode key defined cheatEnabled := " -cheat" } HideEmuStart() If legacyMode = true errLvl := Run(executable . A_Space . romName . fullscreen . cheatEnabled . volume . mameRomPaths . sysParams . romParams, emuPath, winstate) Else errLvl := Run(executable . A_Space . romName . fullscreen . hlsl . glsl . cheatEnabled . volume . inipath . verticalRotationMode . videomode . artworkCrop . useBezels . useOverlays . useBackdrops . UseCpanels . UseMarquees . mameRomPaths . sysParams . romParams . autosave, emuPath, winstate) If errLvl { If (errLvl = 1) Error = Failed Validity Else If(errLvl = 2) Error = Missing Files Else If(errLvl = 3) Error = Fatal Error Else If(errLvl = 4) Error = Device Error Else If(errLvl = 5) Error = Game Does Not Exist Else If(errLvl = 6) Error = Invalid Config Else If errLvl in 7,8,9 Error = Identification Error Else Error = MAME Error Log("MAME Error - " . Error,3) } WinWait("ahk_class MAME") WinWaitActive("ahk_class MAME") BezelDraw() HideEmuEnd() FadeInExit() Process("WaitClose", executable) BezelExit() If fileRenamed { ; rename file back to alternate name for next launch FileMove, %romPath%\%romName%%romExtension%, %romPath%\%originalRomName%%romExtension% If ErrorLevel ; if rename was successful, set var so we know to move it back later ScriptError("There was a problem renaming " . romName . " back to " . originalRomName) } FadeOutExit() ExitModule() ListXMLInfo(rom){ ; returns MAME/MESS info about parent rom, orientation angle, resolution Global emuFullPath, emuPath ListXMLObject := Object() listXMLVarLog := RunWait, % comspec . " /c " . """" . emuFullPath . """" . " -listxml " . rom . " > tempBezel.txt", %emuPath%, Hide Fileread, ListxmlContents, %emuPath%\tempBezel.txt RegExMatch(ListxmlContents, "s)<game.*name=" . """" . rom . """" . ".*" . "cloneof=" . """" . "[^""""]*", parent) RegExMatch(parent,"cloneof=" . """" . ".*", parent) RegExMatch(parent,"""" . ".*", parent) StringTrimLeft, parent, parent, 1 RegExMatch(ListxmlContents, "s)<display.*rotate=" . """" . "[0-9]+" . """", angle) RegExMatch(angle,"[0-9]+", angle, "-6") RegExMatch(ListxmlContents, "s)<display.*width=" . """" . "[0-9]+" . """", width) RegExMatch(width,"[0-9]+", width, "-6") RegExMatch(ListxmlContents, "s)<display.*height=" . """" . "[0-9]+" . """", Height) RegExMatch(Height,"[0-9]+", Height, "-6") RegExMatch(ListxmlContents, "s)<control.*ways=" . """" . "[0-9]+" . """", Ways) RegExMatch(Ways,"[0-9]+", Ways, "-6") logVars := "Parent|Angle|Height|Width|Ways" Loop, Parse, logVars, | { currentobj:={} currentobj.Label := A_Loopfield currentobj.Value := %A_Loopfield% ListXMLObject.Insert(currentobj["Label"], currentobj) listXMLLog .= "`r`n`t`t`t`t`t" . currentobj["Label"] . " = " . currentobj["Value"] } Log("Module - MAME ListXML values: " . listXMLLog,5) If (ListXMLObject["Height"].Value > ListXMLObject["Width"].Value) { ListXMLObject["Angle"].Value := true Log("Module - This game's height is greater than its width, forcing vertical mode",5) } FileDelete, %emuPath%\tempBezel.txt Return ListXMLObject } HaltEmu: If pauseMethod = 1 { disableSuspendEmu = true disableRestoreEmu = true PostMessage,0x211, 1, , , ahk_class MAME } Else If pauseMethod = 2 { disableSuspendEmu = true PostMessage,0x211, 1, , , ahk_class MAME } Else If pauseMethod = 3 { disableSuspendEmu = true disableRestoreEmu = true PostMessage,% 0x0400+6, 1, , , ahk_class MAME } Else If pauseMethod = 4 { disableSuspendEmu = true PostMessage,% 0x0400+6, 1, , , ahk_class MAME } Else If pauseMethod = 5 { disableSuspendEmu = true Send, {P down} Sleep, 1000 Send, {P up} } Return RestoreEmu: If pauseMethod = 1 { PostMessage,0x212, 1, , , ahk_class MAME WinActivate, ahk_class MAME } Else If pauseMethod = 2 { PostMessage,0x212, 1, , , ahk_class MAME WinActivate, ahk_class MAME } Else If pauseMethod = 3 { PostMessage,% 0x0400+6, 0, , , ahk_class MAME WinActivate, ahk_class MAME } Else If pauseMethod = 4 { PostMessage,% 0x0400+6, 0, , , ahk_class MAME WinActivate, ahk_class MAME } Else If pauseMethod = 5 { disableSuspendEmu = true Send, {P down} Sleep, 1000 Send, {P up} WinActivate, ahk_class MAME } Else If pauseMethod = 6 WinActivate, ahk_class MAME Return CloseProcess: FadeOutStart() WinClose("ahk_class MAME") Return 19:51:35:430 | RL | INFO | +0 | BuildScript - Loaded Multi-Player scripts 19:51:35:431 | RL | INFO | +0 | BuildScript - Loaded Statistics.ahk script 19:51:35:431 | RL | INFO | +0 | BuildScript - Loaded User Functions.ahk script 19:51:35:431 | RL | INFO | +0 | BuildScript - Finished injecting functions into module 19:51:35:432 | RL | INFO | +0 | Main - Module is built 19:51:35:432 | RL | INFO | +0 | CheckFile - Checking if F:\New folder\Hyperspin\AutoHotkey.dll exists 19:51:35:433 | RL | INFO | +0 | Main - Running module 19:51:35:532 | MD | INFO | +N/A | Module initialized 19:51:35:533 | MD | INFO | +0 | StartModule - Started 19:51:35:533 | MD | INFO | +0 | StartModule - MEmu: MAME MEmuV: v0.161 MURL: http://www.mame.net/ MAuthor: djvj MVersion: 2.1.14 MCRC: 7B006C89 iCRC: CA5CEF4B MID: MSystem: "AAE","Atari Classics","Cave","Capcom","Capcom Classics","Capcom Play System","Capcom Play System II","Capcom Play System III","Data East Classics","Konami Classics","LaserDisc","MAME","Midway Classics","Namco Classics","Namco System 22","Nintendo Arcade Systems","Nintendo Classics","Sega Classics","Sega Model 1","Sega ST-V","SNK Classics","SNK Neo Geo","SNK Neo Geo AES","SNK Neo Geo MVS","Taito Classics" 19:51:35:533 | MD | INFO | +0 | StartModule - You have a supported System Name for this module: "MAME" 19:51:35:534 | MD | INFO | +0 | PluginInit - Started 19:51:35:534 | MD | INFO | +0 | CheckFile - Checking if F:\New folder\Hyperspin\Databases\MAME\MAME.xml exists 19:51:35:602 | MD | INFO | +62 | PluginInit - Ended 19:51:35:603 | MD | INFO | +0 | StartModule - Ended 19:51:35:603 | MD | INFO | +0 | StartGlobalUserFeatures - Starting 19:51:35:603 | MD | INFO | +0 | StartGlobalUserFeatures - Ending 19:51:35:603 | MD | INFO | +0 | Module Setting - [Settings] - Fullscreen: true 19:51:35:603 | MD | INFO | +0 | Module Setting - [Settings] - LegacyMode: false 19:51:35:604 | MD | INFO | +0 | Module Setting - [MAME] - LegacyMode: false 19:51:35:604 | MD | INFO | +0 | Module Setting - [005] - LegacyMode: false 19:51:35:604 | MD | INFO | +0 | Module Setting - [Settings] - HLSL: false 19:51:35:604 | MD | INFO | +0 | Module Setting - [MAME] - HLSL: false 19:51:35:604 | MD | INFO | +0 | Module Setting - [005] - HLSL: false 19:51:35:604 | MD | INFO | +0 | Module Setting - [Settings] - GLSL: false 19:51:35:604 | MD | INFO | +0 | Module Setting - [MAME] - GLSL: false 19:51:35:604 | MD | INFO | +0 | Module Setting - [005] - GLSL: false 19:51:35:604 | MD | INFO | +0 | Module Setting - [Settings] - BezelMode: normal 19:51:35:604 | MD | INFO | +0 | Module Setting - [MAME] - BezelMode: normal 19:51:35:604 | MD | INFO | +0 | Module Setting - [005] - BezelMode: normal 19:51:35:604 | MD | INFO | +0 | Module Setting - [Settings] - Videomode: d3d 19:51:35:604 | MD | INFO | +0 | Module Setting - [Settings] - PauseMethod: 4 19:51:35:604 | MD | INFO | +0 | Module Setting - [Settings] - VerticalRotationMode: none 19:51:35:604 | MD | INFO | +0 | Module Setting - [MAME] - VerticalRotationMode: none 19:51:35:604 | MD | INFO | +0 | Module Setting - [005] - VerticalRotationMode: none 19:51:35:605 | MD | INFO | +0 | Module Setting - [Settings] - CheatMode: true 19:51:35:605 | MD | INFO | +0 | Module Setting - [Settings] - CheatModeKey: Z&X 19:51:35:605 | MD | INFO | +0 | Module Setting - [MAME] - Params: 19:51:35:605 | MD | INFO | +0 | Module Setting - [005] - Params: 19:51:35:605 | MD | INFO | +0 | Module Setting - [005] - MameRomName: 19:51:35:605 | MD | INFO | +0 | Module Setting - [MAME] - Artwork_Crop: true 19:51:35:605 | MD | INFO | +0 | Module Setting - [005] - Artwork_Crop: true 19:51:35:605 | MD | INFO | +0 | Module Setting - [MAME] - Use_Bezels: false 19:51:35:605 | MD | INFO | +0 | Module Setting - [005] - Use_Bezels: false 19:51:35:605 | MD | INFO | +0 | Module Setting - [MAME] - Use_Overlays: true 19:51:35:605 | MD | INFO | +0 | Module Setting - [005] - Use_Overlays: true 19:51:35:605 | MD | INFO | +0 | Module Setting - [MAME] - Use_Backdrops: true 19:51:35:605 | MD | INFO | +0 | Module Setting - [005] - Use_Backdrops: true 19:51:35:605 | MD | INFO | +0 | Module Setting - [MAME] - Use_Cpanels: false 19:51:35:606 | MD | INFO | +0 | Module Setting - [005] - Use_Cpanels: false 19:51:35:606 | MD | INFO | +0 | Module Setting - [MAME] - Use_Marquees: false 19:51:35:606 | MD | INFO | +0 | Module Setting - [005] - Use_Marquees: false 19:51:35:606 | MD | INFO | +0 | Module Setting - [MAME] - Autosave: false 19:51:35:606 | MD | INFO | +0 | Module Setting - [005] - Autosave: false 19:51:35:606 | MD | INFO | +0 | Module Setting - [Settings] - Volume: 19:51:35:606 | MD | INFO | +0 | Module Setting - [MAME] - Volume: 19:51:35:606 | MD | INFO | +0 | Module Setting - [005] - Volume: 19:51:35:606 | MD | INFO | +0 | Module Setting - [MAME] - IniPath: 19:51:35:606 | MD | INFO | +0 | Detected MAME Product Version from 'F:\New folder\Hyperspin\Emulators\MameUI64\Mameui64.exe' is 149 19:51:35:606 | MD | INFO | +0 | Run - Running: F:\New folder\Hyperspin\Emulators\MameUI64\Mameui64.exe 005 -nowindow -nohlsl_enable -video d3d -artwork_crop -nouse_bezels -use_overlays -use_backdrops -nouse_cpanels -nouse_marquees -rompath "F:\New folder\Roms\MAME" 19:51:35:641 | MD | INFO | +47 | WinWait - Waiting for "ahk_class MAME" 19:51:36:624 | MD | INFO | +985 | WinWaitActive - Waiting for "ahk_class MAME" 19:51:36:741 | MD | INFO | +109 | Process - WaitClose Mameui64.exe 19:51:48:917 | MD | INFO | +12172 | WinClose - Closing: ahk_class MAME 19:51:49:315 | MD | INFO | +406 | StopGlobalUserFeatures - Starting 19:51:49:315 | MD | INFO | +0 | StopGlobalUserFeatures - Ending 19:51:49:315 | MD | INFO | +0 | ExitModule - Started 19:51:49:315 | MD | INFO | +0 | Starting Updating Statistics: 19:51:49:412 | MD | INFO | +94 | Game section statistics updated. 19:51:49:415 | MD | INFO | +0 | ExitModule - Ended 19:51:49:415 | MD | INFO | +0 | End of Module Logs 19:51:49:474 | RL | INFO | +14047 | Main - Module ended, exiting RocketLauncher normally 19:51:49:474 | RL | INFO | +0 | ExitScript - Started 19:51:49:483 | RL | INFO | +0 | SystemCursor - Restoring mouse cursor 19:51:49:489 | RL | INFO | +16 | ExitScript - Ended [/code] HS 07:45:04 PM | HyperSpin Started 07:45:04 PM | Going windowed mode 07:45:04 PM | Checking for updates 07:45:04 PM | Update Check Complete 07:45:04 PM | Startup program: HyperSpin Startup Script.exe 07:45:04 PM | Startup params not set 07:45:04 PM | Working directory: F:\New folder\Hyperspin\Utilities\Startup Script\ 07:45:05 PM | Window State: NORMAL 07:45:05 PM | Launching HyperSpin Startup Script.exe 07:45:05 PM | Command Line is HyperSpin Startup Script.exe 07:45:05 PM | Playing intro video 07:45:07 PM | Error intializing joysticks 07:45:07 PM | Menu Mode is multi 07:45:08 PM | Loading Main Menu.xml 07:45:08 PM | Main Menu.xml successfully loaded 07:45:08 PM | Main Menu wheel loaded successfully 07:45:38 PM | Loading MAME.xml 07:45:39 PM | Main Menu.xml successfully loaded 07:45:40 PM | MAME wheel loaded successfully 07:45:47 PM | Launching Game 07:45:47 PM | Using HyperLaunch 07:45:47 PM | Getting HyperLaunch path 07:45:47 PM | HyperLaunch located at F:\New folder\Hyperspin\HyperLaunch.exe 07:45:47 PM | Running HyperLaunch.exe 07:45:47 PM | HyperLaunch Command Line is: F:\New folder\Hyperspin\HyperLaunch.exe "MAME" "1941j" 07:47:50 PM | Launching Game 07:47:50 PM | Using HyperLaunch 07:47:50 PM | Getting HyperLaunch path 07:47:50 PM | HyperLaunch located at F:\New folder\Hyperspin\HyperLaunch.exe 07:47:50 PM | Running HyperLaunch.exe 07:47:51 PM | HyperLaunch Command Line is: F:\New folder\Hyperspin\HyperLaunch.exe "MAME" "1941j" 07:47:52 PM | Launching Game
Recommended Posts
Archived
This topic is now archived and is closed to further replies.