Jump to content
  • 0

Hyperspin desde 0 shiryu55


shiryu55

Question

Muy buenas, después de liarme la manta a la cabeza y con mucha paciencia, mire todo lo referente al tema.

después de dar muchas vueltas , empece a crearlo de 0, tal y como se indica en la guía.

se me plantea el siguiente fallo, autohotkey.dll error clase no encontrada 0x80040154 en la linea 6915. el mame queda minizado en la barra de tareas con lo que lo enlaza.

También me e fijado que si ejecuto el hyperlauch , me da un fallo de que no encuentra databases systems.xml.

Un saludo.

Link to comment
Share on other sites

17 answers to this question

Recommended Posts

Estoy con el mismo problema, reforme hace poquito la placa base y he reinstalado toda la maquina desde cero, aprovechando para actualizar el hyperspin y el hyperlaunch ...claro está que le meti un sistema operativo XP sp3 y me encuentro con el mismo problema, Autohotkey error class 0x80040154 el mio en la linea 6945. Eso para todos los sistemas arcade que instalo y lanzo con hyperlaunch. Investigando en el foro de Hyperlaunch dice el amigo djvj que se solucionara cuanso se realice la proxima actualizacion ya que es es un problema exclusivo de Windows xp por lo visto relacionado con algun archivo CRC.

Aqui el hilo anglosajon: http://www.hyperlaunch.net/forum/sho...=4846#post4846

En fin como bien dice shiryu55 me toca hechar para atras e instalar el hyperlaunchhq 1.0.13.0 y el RocketLauncher.0.1.1, el hq lo he conseguido pero el RocketLauncher.0.1.1 no hay forma ¿alguna idea de donde poder descargarlo?

Link to comment
Share on other sites

Al final la ultima versión elimina los problemas con autohotkey en xp? A mi me pasa algo similar, tenía el hs configurado con todos los módulos perfectos y demás en un w7 al pasar esa copia de todo a mi retros me tira error del authotkey al iniciar cualquier Emulador con hiperlaunch hq no consigo ver el fallo porque se abre el emulador pero al salir de el se queda en la pantalla quw pone now loading del hl teniendo que cerrar manualmente en programa.. Exaxtente que versión debo usar para no tener ese problema? Un saludo

Link to comment
Share on other sites

Lo he buscado hasta la saciedad pero no lo encuentro, asi que te agradeceria enormemente esa subida.

Con respecto al snes9x y drivers calamity, poco te puedo decir ya que uso una grafica nvidia con el soft15 y winmodelines, de todas formas estos son los winmodelines de nes por si te sirve de ayuda:

Super Famicom/SNES: 256x224 *modeline recomendado: 256x224 o 512x224

Link to comment
Share on other sites

Si no lo encuetras lo pongo en un fichero mega y pista.

Tengo problemas con el sistema supernintendo, lo estoy configurando para un tv con el driver calamity .

De momento lo estoy intentando con el snes9x, alguna recomendacion.

Link to comment
Share on other sites

este es el log:

14:02:53:375 | HL | INFO | +N/A | Main - HyperLaunch v3.1.0.3 BETA (www.hyperlaunch.net)

14:02:53:421 | HL | INFO | +47 | Main - System Specs:

HyperLaunch Dir: D:\hyperspin1.0\HyperLaunch

HyperLaunch is: 32-bit

OS: Microsoft Windows XP Professional

SKU:

Total Memory: 3458.41 MB

Free Memory: 1475.32 MB

Used Memory: 1983.086 MB

SystemType: 32-bit

Physical Processors: See Logical in XP

Logical Processors: 1

GPU 1 Name: Intel Haswell HD Graphics - GT1

GPU 1 RAM: 1024.00 MB

GPU 1 Driver Version: 6.14.10.5449

Sound 1 Device: Realtek High Definition Audio

Sound 1 Status: Enabled

OS Language: Spanish_Modern_Sort

OS Admin Status: Yes

Monitor #1 (\\.\DISPLAY1): 1440x900 (1440x870 work)

Monitor #1 Orientation: Landscape

Current AHK Desktop Width: 1440

Current AHK Desktop Height: 900

AutoHotkey Path: C:\Archivos de programa\AutoHotkey\AutoHotkey.exe

AHK Version: 1.1.09.04

Unicode: No

14:02:53:421 | HL | INFO | +0 | CheckFile - Checking if D:\hyperspin1.0\HyperLaunch\HyperLaunch.exe exists

14:02:53:421 | HL | INFO | +0 | CheckFile - Checking if D:\hyperspin1.0\HyperLaunch\Module Extensions\dxwnd\dxwnd.ini exists

14:02:53:421 | HL | INFO | +0 | CheckFile - Checking if D:\hyperspin1.0\HyperLaunch\Module Extensions\dxwnd\dxwnd.exe exists

14:02:53:421 | HL | INFO | +0 | CheckFile - Checking if D:\hyperspin1.0\HyperLaunch\Plugins\HyperSpin.plugin exists

14:02:53:421 | HL | INFO | +0 | Main - Loading Front End Plugin: "HyperSpin"

14:02:53:421 | HL | INFO | +0 | Main - HyperLaunch received "MAME" and "1941"

14:02:53:453 | HL | INFO | +31 | Main - 1941 is using the default emulator: MAME

14:02:53:453 | HL | INFO | +0 | Main - Checking for a [MAME] section in D:\hyperspin1.0\HyperLaunch\Settings\MAME\Emulators.ini

14:02:53:453 | HL | INFO | +0 | Main - Checking for a [MAME] section in D:\hyperspin1.0\HyperLaunch\Settings\Global Emulators.ini

14:02:53:453 | HL | INFO | +0 | Main - Found [MAME] in D:\hyperspin1.0\HyperLaunch\Settings\Global Emulators.ini

14:02:53:453 | HL | INFO | +0 | CheckFile - Checking if D:\hyperspin1.0\HyperLaunch\Modules\MAME\MAME.ahk exists

14:02:53:453 | HL | INFO | +0 | Main - CRC Check - CRC matches, this is an official unedited module.

14:02:53:453 | HL | INFO | +0 | Main - 1941 will use module: D:\hyperspin1.0\HyperLaunch\Modules\MAME\MAME.ahk

14:02:53:468 | HL | INFO | +16 | Main - Did not find a "D:\hyperspin1.0\HyperLaunch\Settings\MAME\Game Options.ini" file, skipping any game-specific options.

14:02:53:468 | HL | INFO | +0 | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks.

14:02:53:468 | HL | INFO | +0 | Main - INI Keys read

14:02:53:468 | HL | INFO | +0 | CheckFile - Checking if D:\hyperspin1.0\HyperLaunch\Module Extensions\7z.exe exists

14:02:53:468 | HL | INFO | +0 | CheckFile - Checking if D:\hyperspin1.0\HyperLaunch\Module Extensions\7z.dll exists

14:02:53:468 | HL | INFO | +0 | CheckFile - Checking if D:\hyperspin1.0\HyperLaunch\Module Extensions\FontReg.exe exists

14:02:53:500 | HL | INFO | +31 | Main - "1941" does not qualify for MultiGame. Only roms with any of these strings in their name are acceptable: (Disc,(Disk,(Cart,(Tape,(Cassette,(Part,(Side

14:02:53:500 | HL | INFO | +0 | CheckPaths - Started

14:02:53:500 | HL | INFO | +0 | CheckPaths - Found rom: D:\hyperspin1.0\Emulators\MAME\roms\1941.zip

14:02:53:500 | HL | INFO | +0 | CheckPaths - Ended

14:02:53:500 | HL | INFO | +0 | BuildScript - User Variables:

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

; INJECTED VARIABLES

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

#NoTrayIcon

#InstallKeybdHook

DetectHiddenWindows, ON

SetTitleMatchMode, 2

SendMode, Event

0 = 8

pluginPath = D:\hyperspin1.0\HyperLaunch\Plugins

pluginName = HyperSpin

pluginExt = .plugin

hlMode =

hlTitle = HyperLaunch

hlVersion = 3.1.0.3 BETA

hlAuthor = djvj

hlURL = www.hyperlaunch.net

langFile = D:\hyperspin1.0\HyperLaunch\Data\Language\Localization.ini

frontendPID = 0

frontendPath = D:\hyperspin1.0

frontendExe = HyperSpin.exe

frontendExt = exe

frontendName = HyperSpin

frontendDrive = D:

exitEmulatorKey = ~Esc

exitEmulatorKeyWait = 0

forceHoldKey = ~Esc

restoreFE = false

exitScriptKey = ~q & ~s

toggleCursorKey = ~e & ~t

emuFullPath = D:\hyperspin1.0\Emulators\MAME\mame.exe

emuPath = D:\hyperspin1.0\Emulators\MAME

emuName = MAME

emuExt = exe

romPath = D:\hyperspin1.0\Emulators\MAME\roms

romPathFromIni = D:\hyperspin1.0\Emulators\MAME\roms

romExtension = .zip

romExtensionOrig = .zip

romExtensions = zip|7z

executable = mame.exe

systemName = MAME

dbPath =

dbName = 1941

dbExt =

romName = 1941

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 = D:\hyperspin1.0\HyperLaunch\Module Extensions\BlockInput.exe

errorLevelReporting = false

lockLaunch = false

lockLaunchGame =

screenRotationAngle = 0

screenRotationAngleGame =

logFile = D:\hyperspin1.0\HyperLaunch\HyperLaunch.log

logLabel := [" INFO"," WARNING"," ERROR"," DEBUG1"," DEBUG2"]

logLevel = 3

logShowDebugConsole = false

logIncludeModule = true

logIncludeFileProperties = true

logShowCommandWindow = false

logCommandWindow = false

hlDebugConsoleStdout =

sysLang = Spanish_Modern_Sort

sysType = 32-bit

navUpKey = Up

navDownKey = Down

navLeftKey = Left

navRightKey = Right

navSelectKey = Enter

navP2UpKey = Numpad8

navP2DownKey = Numpad2

navP2LeftKey = Numpad4

navP2RightKey = Numpad6

navP2SelectKey = NumpadEnter

originalWidth = 1440

originalHeight = 900

dtEnabled = false

dtPath =

dtUseSCSI = false

dtAddDrive = true

servoStikEnabled = false

ledblinkyEnabled = false

ledblinkyFullPath =

ledblinkyProfilePath = D:\hyperspin1.0\HyperLaunch\Profiles\LEDBlinky

ledblinkyHLProfile = D:\hyperspin1.0\HyperLaunch\Profiles\LEDBlinky\HyperLaunch

emuIdleShutdown = 0

launchPasswordHash = UpUpDownDownLeftRightLeftRight

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

fadeXScale =

fadeYScale =

fadeLyr1Color = FF000000

fadeLyr1AlignImage = Align to Top Left

fadeLyr2Pos = Bottom Right Corner

fadeLyr2X = 300

fadeLyr2Y = 300

fadeLyr2Adjust = 1

fadeLyr2PicPad = 0

fadeLyr2Prefix = Layer 2

fadeLyr3Pos = Center

fadeLyr3X = 300

fadeLyr3Y = 300

fadeLyr3Adjust = 0.75

fadeLyr3PicPad = 0

fadeLyr3Speed = 750

fadeLyr3Animation = DefaultFadeAnimation

fadeLyr37zAnimation = DefaultFadeAnimation

fadeLyr3Type = imageandbar

fadeLyr3ImgFollow7zProgress = true

fadeLyr3Repeat = 1

fadeLyr3BackImageTransparency = 30

fadeLyr3StaticPos = No Alignment

fadeLyr3StaticX = 0

fadeLyr3StaticY = 870|1575

fadeLyr3StaticAdjust = 1

fadeLyr3StaticPicPad = 0

fadeLyr3StaticPrefix = Info Bar

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

fadeBar = 7zOnly

fadeBarNon7zProgressTime = 0

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

fadeText3 = Loading Game

fadeText4 = Loading Complete

fadeFont = Arial

fadeSystemAndRomLayersOnly = false

fadeExtractionTime = disabled

fadeExtractionTimeTextX = 0

fadeExtractionTimeTextY = 0

fadeExtractionTimeTextOptions = cFF555555 r4 s20 Bold

fadeInterruptKey =

detectFadeErrorEnabled = true

fadeImgPath = D:\hyperspin1.0\HyperLaunch\Media\Fade

HLDataPath = D:\hyperspin1.0\HyperLaunch\Data

HLMediaPath = D:\hyperspin1.0\HyperLaunch\Media

HLErrSoundPath = D:\hyperspin1.0\HyperLaunch\Media\Sounds\Error

modulesPath = D:\hyperspin1.0\HyperLaunch\Modules

moduleFullName = D:\hyperspin1.0\HyperLaunch\Modules\MAME\MAME.ahk

moduleName = MAME

modulePath = D:\hyperspin1.0\HyperLaunch\Modules\MAME

moduleExtension = ahk

moduleExtensionsPath = D:\hyperspin1.0\HyperLaunch\Module Extensions

libPath = D:\hyperspin1.0\HyperLaunch\Lib

7zEnabled = false

7zPath = D:\hyperspin1.0\HyperLaunch\Module Extensions\7z.exe

7zDllPath = D:\hyperspin1.0\HyperLaunch\Module Extensions\7z.dll

7zExtractPath = C:\DOCUME~1\trasteo\CONFIG~1\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

mgXScale = 1

mgYScale = 1

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

mgArtworkDir = Artwork1

mgCandidate =

mgValidTypes = (Disc,(Disk,(Cart,(Tape,(Cassette,(Part,(Side

mgOnLaunch = false

hpEnabled = false

hpKey = ~NumpadAdd

hpBackToMenuBarKey = X

hpZoomInKey = C

hpZoomOutKey = V

hpScreenshotKey = ~PrintScreen

hpHiToTextPath = D:\hyperspin1.0\HyperLaunch\Module Extensions\HiToText.exe

hpSaveStateKeyCodes = {shift down}{F7 down}{F7 up}{shift up}

hpLoadStateKeyCodes = {F7 down}{F7 up}

keymapperEnabled = false

keymapperAHKMethod = false

keymapper = xpadder

xpadderFullPath = D:\hyperspin1.0\Utilities\Xpadder\xpadder.exe

joyToKeyFullPath = D:\hyperspin1.0\Utilities\JoyToKey\JoyToKey.exe

keymapperProfilePath = D:\hyperspin1.0\HyperLaunch\Profiles\xpadder

keymapperFrontEndProfileName = HyperSpin

keymapperFrontEndProfile = false

keymapperHyperLaunchProfileEnabled = false

JoyIDsEnabled = false

JoyIDsPreferredControllersSystem = use_global

JoyIDsPreferredControllersGlobal = use_global

CustomJoyNamesEnabled = false

CustomJoyNames =

rotateMethod = false

FEProfile = D:\hyperspin1.0\HyperLaunch\Profiles\xpadder\HyperSpin

defaultProfile = D:\hyperspin1.0\HyperLaunch\Profiles\xpadder\_Default

systemProfile = D:\hyperspin1.0\HyperLaunch\Profiles\xpadder\MAME

xPadderSystemProfile = D:\hyperspin1.0\HyperLaunch\Profiles\xpadder\MAME\_Default

emuProfile = D:\hyperspin1.0\HyperLaunch\Profiles\xpadder\MAME\MAME

romProfile = D:\hyperspin1.0\HyperLaunch\Profiles\xpadder\MAME\1941

HyperLaunchProfile = D:\hyperspin1.0\HyperLaunch\Profiles\xpadder\HyperLaunch

blankProfile = D:\hyperspin1.0\HyperLaunch\Profiles\xpadder\_Default\blank

ahkFEProfile = D:\hyperspin1.0\HyperLaunch\Profiles\AHK\HyperSpin

ahkDefaultProfile = D:\hyperspin1.0\HyperLaunch\Profiles\AHK\_Default

ahkSystemProfile = D:\hyperspin1.0\HyperLaunch\Profiles\AHK\MAME

ahkEmuProfile = D:\hyperspin1.0\HyperLaunch\Profiles\AHK\MAME\MAME

ahkRomProfile = D:\hyperspin1.0\HyperLaunch\Profiles\AHK\MAME\1941

ahkHyperLaunchProfile = D:\hyperspin1.0\HyperLaunch\Profiles\AHK\HyperLaunch

bezelEnabled = false

bezelICEnabled = false

statisticsEnabled = true

pressDuration = -1

emuVolume = 1

dxwndIni = D:\hyperspin1.0\HyperLaunch\Module Extensions\dxwnd\dxwnd.ini

dxwndFullPath = D:\hyperspin1.0\HyperLaunch\Module Extensions\dxwnd\dxwnd.exe

mon1O = 0

pacDrivedllFile = D:\hyperspin1.0\HyperLaunch\Module Extensions\PacDrive32.dll

14:02:53:500 | HL | INFO | +0 | BuildScript - Loaded XHotkey Init.ahk scripts

14:02:53:500 | HL | INFO | +0 | BuildScript - Loaded Statistics Init.ahk scripts

14:02:53:500 | HL | WARNING | +0 | BuildScript - "D:\hyperspin1.0\HyperLaunch\Lib\User Functions Init.ahk" not found

14:02:53:500 | HL | INFO | +0 | BuildScript - Validating module

14:02:53:500 | HL | INFO | +0 | BuildScript - Validation complete

14:02:53:500 | HL | INFO | +0 | BuildScript - Module:

MEmu = MAME

MEmuV = v0.150

MURL = http://www.mame.net/

MAuthor = djvj

MVersion = 2.1.3

MCRC = 9678FB18

iCRC = D88577B3

MID = 635038268903403479

MSystem = "AAE","Cave","Capcom","LaserDisc","MAME","Nintendo Arcade Systems","Sega Model 1","Sega ST-V","SNK Neo Geo","SNK Neo Geo AES"

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

; 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 HyperLaunch or MAME bezels are shown

; In the bezel normal mode only HyperLaunch Bezels will be show and the MAME use_bezels option will be forced disbaled

; In the bezel layout mode, HyperLaunch Bezels will be drawn only when you do not have a layout file on your MAME folders for the current game

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

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)

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

bezelMode := IniReadCheck(settingsFile, "Settings", "BezelMode","layout",,1) ; "layout" or "normal"

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)

volume := IniReadCheck(settingsFile, "Settings|" . systemName . "|" . romName, "Volume",,,1)

autosave := IniReadCheck(settingsFile, systemName . "|" . romName, "Autosave", "false",,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"

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 ListXMLtable for certain features

If (bezelEnabled = "true" || servoStikEnabled != "false") {

ListXMLtable := []

ListXMLtable := ListXMLInfo(romName)

If (bezelEnabled = "true") {

If (bezelMode = "layout"){

BezelStart("layout",ListXMLtable[1],ListXMLtable[2],romName)

} Else { ;bezel mode = normal

useBezels := " -nouse_bezels" ; force disabling MAME built-in bezels

BezelStart(,,ListXMLtable[2])

}

}

If (servoStikEnabled != "false") {

ServoStik(If ListXMLtable[5] <= 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

}

}

; -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"

hlsl := If hlsl = "true" ? " -hlsl_enable" : " -nohlsl_enable"

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 : ""

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 . cheatEnabled . volume . 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

ListXMLtable := []

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")

ListXMLtable[1] := parent

ListXMLtable[2] := angle

ListXMLtable[3] := height

ListXMLtable[4] := width

ListXMLtable[5] := ways

if (ListXMLtable[3] > ListXMLtable[4])

ListXMLtable[2] := true

FileDelete, %emuPath%\tempBezel.txt

Return ListXMLtable

}

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

14:02:53:515 | HL | INFO | +16 | BuildScript - Loaded Multi-Player scripts

14:02:53:515 | HL | INFO | +0 | BuildScript - Loaded Statistics.ahk script

14:02:53:515 | HL | WARNING | +0 | BuildScript - "D:\hyperspin1.0\HyperLaunch\Lib\User Functions.ahk" not found

14:02:53:515 | HL | INFO | +0 | BuildScript - Finished injecting functions into module

14:02:53:515 | HL | INFO | +0 | Main - Module is built

14:02:53:515 | HL | INFO | +0 | CheckFile - Checking if D:\hyperspin1.0\HyperLaunch\AutoHotkey.dll exists

14:02:53:515 | HL | INFO | +0 | Main - Running module

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...