Jump to content

fusion - HLQH - sega games start fusion.ini file instead of games?


bigwhy

Recommended Posts

Posted

Hi, I have my setup done with the below:

damon tools lite installed and mapped to a drive Q

Emulator with Fusion 3.64 mapped to drive Q

HQ set up with daemon tools exe, Enable true, SCSI true.

When I go to Games in HQ and try to launch a game, HQ shows me the fusion.ini and gives me an error messages a minute later (There was an error waiting for the window "Fusion ahk_class KegaClass". 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.)

Using Fusion directly, I have no pbl playing games. Problem occurs just when using Hyperspin and HQ.

any idea?

Thanks.

Posted

Sounds like fusion isn't starting, does it? If not have you set your paths correctly?

Please post your Hyperlaunch log set to troubleshooting, if your unsure about that there is a posting guide on the main forum.

Welcome to the forum btw. :)

56uIzxg.png

Posted

Hi, thank you for your response, please see below the logs. (I couldnt find the forum info about posting logs...). Nervertheless, below are the extract logs, thanks.

07:46:59:960 | HL |     INFO  | +N/A   | Main - HyperLaunch v3.0.1.1c
07:47:00:320 | HL |     INFO  | +358   | Main - System Specs:
				HyperLaunch Dir: W:\Hyperspin\Hyperlaunch
				OS: Microsoft Windows 7 Professional
				SKU: Professional
				Total Memory: 3955.67 MB
				Free Memory: 1774.37 MB
				Used Memory: 2181.301 MB
				SystemType: x64-based PC
				Physical Processors: 1
				Logical Processors: 4
				GPU 1 Name: LogMeIn Mirror Driver
				GPU 1 RAM: 0.00 MB
				GPU 1 Driver Version: 7.1.542.0
				GPU 2 Name: NVIDIA NVS 3100M
				GPU 2 RAM: 256.00 MB
				GPU 2 Driver Version: 9.18.13.546
				Sound 1 Device: NVIDIA High Definition Audio
				Sound 1 Status: Enabled
				Sound 2 Device: NVIDIA High Definition Audio
				Sound 2 Status: Enabled
				Sound 3 Device: NVIDIA High Definition Audio
				Sound 3 Status: Enabled
				Sound 4 Device: Conexant 20585 SmartAudio HD
				Sound 4 Status: Enabled
				Sound 5 Device: Bluetooth Hands-free Audio
				Sound 5 Status: Enabled
				Sound 6 Device: NVIDIA High Definition Audio
				Sound 6 Status: Enabled
				OS Language: English_United_States
				OS Admin Status: No
				Monitor #1 (\\.\DISPLAY1): 1440x900 (1440x860 work)
				Monitor #2 (\\.\DISPLAY2): 1780x0 (1780x0 work)
				AutoHotkey Path:
				AHK Version: 1.1.09.04
				Unicode: No
07:47:00:320 | HL |     INFO  | +0     | Main - HyperSpin.exe coordinates are x y w h
07:47:00:320 | HL |     INFO  | +0     | CheckFile - Checking if W:\Hyperspin\Hyperlaunch\HyperLaunch.exe exists
07:47:00:322 | HL |     INFO  | +0     | Main - HyperLaunch received "Sega Genesis" and "3 Ninjas Kick Back (USA)"
07:47:00:336 | HL |     INFO  | +16    | Main - 3 Ninjas Kick Back (USA) is using the default emulator: Fusion
07:47:00:336 | HL |     INFO  | +0     | Main - Checking for a [Fusion] section in W:\Hyperspin\Hyperlaunch\Settings\Sega Genesis\Emulators.ini
07:47:00:336 | HL |     INFO  | +0     | Main - Checking for a [Fusion] section in W:\Hyperspin\Hyperlaunch\Settings\Global Emulators.ini
07:47:00:337 | HL |     INFO  | +0     | Main - Found [Fusion] in W:\Hyperspin\Hyperlaunch\Settings\Global Emulators.ini
07:47:00:337 | HL |     INFO  | +0     | CheckFile - Checking if W:\Hyperspin\Hyperlaunch\Modules\Fusion\Fusion.ahk exists
07:47:00:447 | HL |     INFO  | +109   | Main - CRC Check - CRC matches, this is an official unedited module.
07:47:00:447 | HL |     INFO  | +0     | Main - 3 Ninjas Kick Back (USA) will use module: W:\Hyperspin\Hyperlaunch\Modules\Fusion\Fusion.ahk
07:47:00:476 | HL |     INFO  | +31    | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks.
07:47:00:485 | HL |     INFO  | +0     | Main - INI Keys read
07:47:00:486 | HL |     INFO  | +0     | CheckFile - Checking if W:\Hyperspin\Hyperlaunch\Module Extensions\7z.exe exists
07:47:00:487 | HL |     INFO  | +0     | CheckFile - Checking if W:\Hyperspin\Hyperlaunch\Module Extensions\7z.dll exists
07:47:00:488 | HL |     INFO  | +0     | CheckPaths - Started
07:47:00:505 | HL |     INFO  | +16    | CheckPaths - Found rom: W:\Hyperspin\Emulators\Sega Genesis\Roms\3 Ninjas Kick Back (USA).md
07:47:00:505 | HL |     INFO  | +0     | CheckFile - Checking if W:\Hyperspin\Emulators\sega master system\Fusion.ini exists
07:47:00:507 | HL |     INFO  | +16    | CheckPaths - Ended
07:47:00:507 | HL |     INFO  | +0     | BuildScript - User Variables:
				;----------------------------------------------------------------------------
				; INJECTED VARIABLES
				;----------------------------------------------------------------------------

				#NoTrayIcon
				#InstallKeybdHook
				DetectHiddenWindows, ON
				SetTitleMatchMode, 2
				SendMode, Event
				0 = 2
				hlMode =
				frontendPID = 0
				frontendPath = W:\Hyperspin
				frontendExe = HyperSpin.exe
				frontendExt = exe
				frontendName = HyperSpin
				frontendDrive = W:
				exitEmulatorKey = ~Esc
				exitEmulatorKeyWait = 0
				forceHoldKey = ~Esc
				restoreFE = false
				exitScriptKey = ~q & ~s
				toggleCursorKey = ~e & ~t
				emuFullPath = W:\Hyperspin\Emulators\sega master system\Fusion.ini
				emuPath = W:\Hyperspin\Emulators\sega master system
				emuName = Fusion
				emuExt = ini
				romPath = W:\Hyperspin\Emulators\Sega Genesis\Roms
				romPathFromIni = W:\Hyperspin\Emulators\Sega Genesis\Roms
				romExtension = .md
				romExtensionOrig = .md
				romExtensions = 7z|zip|sg|gg|sms|gen|32x|md|cue
				executable = Fusion.ini
				systemName = Sega Genesis
				dbName = 3 Ninjas Kick Back (USA)
				romName = 3 Ninjas Kick Back (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 = W:\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 = 1440
				originalHeight = 900
				dtEnabled = true
				dtPath = W:\Hyperspin\DAEMON Tools Lite\DTLite.exe
				dtUseSCSI = true
				dtAddDrive = true
				emuIdleShutdown = 0
				hideCursor = false
				hideEmu = false
				hideFE = false
				fadeIn = false
				fadeInDuration = 500
				fadeInTransitionAnimation = DefaultAnimateFadeIn
				fadeInDelay = 0
				fadeInExitDelay = 0
				fadeOutExitDelay = 0
				fadeOut = false
				fadeOutExtraScreen = false
				fadeOutDuration = 500
				fadeOutTransitionAnimation = DefaultAnimateFadeOut
				fadeOutDelay = 0
				fadeLyrInterpolation = 7
				fadeLyr1Color = FF000000
				fadeLyr1AlignImage = Align to Top Left
				fadeLyr2Pos = Bottom Right Corner
				fadeLyr2X = 300
				fadeLyr2Y = 300
				fadeLyr2Adjust = 1
				fadeLyr2PicPad = 0
				fadeLyr3Pos = Center
				fadeLyr3X = 300
				fadeLyr3Y = 300
				fadeLyr3Adjust = 0.75
				fadeLyr3Speed = 750
				fadeLyr3Animation = DefaultFadeAnimation
				fadeLyr37zAnimation = DefaultFadeAnimation
				fadeLyr3Type = imageandbar
				fadeLyr3ImgFollow7zProgress = true
				fadeLyr3Repeat = 1
				fadeLyr3PicPad = 0
				fadeLyr4Adjust = 0.75
				fadeLyr4X = 100
				fadeLyr4Y = 100
				fadeLyr4Pos = Above Layer 3 - Left
				fadeLyr4FPS = 10
				fadeLyr4PicPad = 0
				fadeTranspGifColor = FFFFFF
				fadeBarWindow = false
				fadeBarWindowX =
				fadeBarWindowY =
				fadeBarWindowW = 600
				fadeBarWindowH = 120
				fadeBarWindowR = 20
				fadeBarWindowM = 20
				fadeBarWindowHatchStyle = 8
				fadeBarBack = true
				fadeBarBackColor = FF555555
				fadeBarH = 20
				fadeBarR = 5
				fadeBarColor = DD00BFFF
				fadeBarHatchStyle = 3
				fadeBarPercentageText = true
				fadeBarInfoText = true
				fadeBarXOffset = 0
				fadeBarYOffset = 100
				fadeRomInfoDescription = text
				fadeRomInfoSystemName = text
				fadeRomInfoYear = text
				fadeRomInfoManufacturer = text
				fadeRomInfoGenre = text
				fadeRomInfoRating = text
				fadeRomInfoOrder = Description|SystemName|Year|Manufacturer|Genre|Rating
				fadeRomInfoTextPlacement = topRight
				fadeRomInfoTextMargin = 5
				fadeRomInfoText1Options = cFF555555 r4 s20 Bold
				fadeRomInfoText2Options = cFF555555 r4 s20 Bold
				fadeRomInfoText3Options = cFF555555 r4 s20 Bold
				fadeRomInfoText4Options = cFF555555 r4 s20 Bold
				fadeRomInfoText5Options = cFF555555 r4 s20 Bold
				fadeRomInfoText6Options = cFF555555 r4 s20 Bold
				fadeStats_Number_of_Times_Played = text with label
				fadeStats_Last_Time_Played = text with label
				fadeStats_Average_Time_Played = text with label
				fadeStats_Total_Time_Played = text with label
				fadeStats_System_Total_Played_Time = text with label
				fadeStats_Total_Global_Played_Time = text with label
				fadeStatsInfoOrder = Number_of_Times_Played|Last_Time_Played|Average_Time_Played|Total_Time_Played|System_Total_Played_Time|Total_Global_Played_Time
				fadeStatsInfoTextPlacement = topLeft
				fadeStatsInfoTextMargin = 5
				fadeStatsInfoText1Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText2Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText3Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText4Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText5Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText6Options = cFF555555 r4 s20 Bold
				fadeText1X = 0
				fadeText1Y = 0
				fadeText1Options = cFFFFFFFF r4 s20 Right Bold
				fadeText1 = Loading Game
				fadeText2X = 0
				fadeText2Y = 0
				fadeText2Options = cFFFFFFFF r4 s20 Right Bold
				fadeText2 = Extraction Complete
				fadeFont = Arial
				fadeSystemAndRomLayersOnly = false
				fadeInterruptKey =
				detectFadeErrorEnabled = true
				fadeImgPath = W:\Hyperspin\Hyperlaunch\Media\Fade
				HLDataPath = W:\Hyperspin\Hyperlaunch\Data
				HLMediaPath = W:\Hyperspin\Hyperlaunch\Media
				HLErrSoundPath = W:\Hyperspin\Hyperlaunch\Media\Sounds\Error
				modulesPath = W:\Hyperspin\Hyperlaunch\Modules
				moduleFullName = W:\Hyperspin\Hyperlaunch\Modules\Fusion\Fusion.ahk
				moduleName = Fusion
				modulePath = W:\Hyperspin\Hyperlaunch\Modules\Fusion
				moduleExtension = ahk
				moduleExtensionsPath = W:\Hyperspin\Hyperlaunch\Module Extensions
				libPath = W:\Hyperspin\Hyperlaunch\Lib
				7zEnabled = false
				7zPath = W:\Hyperspin\Hyperlaunch\Module Extensions\7z.exe
				7zDllPath = W:\Hyperspin\Hyperlaunch\Module Extensions\7z.dll
				7zExtractPath = W:\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 = 1
				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 = W:\Hyperspin\Hyperlaunch\Module Extensions\HiToText.exe
				hpSaveStateKeyCodes = {F5 down}{F5 up}
				hpLoadStateKeyCodes = {F5 down}{F5 up}
				keymapperEnabled = false
				keymapperAHKMethod = false
				keymapper =
				xpadderFullPath = W:\Hyperspin\Utilities\Xpadder\xpadder.exe
				joyToKeyFullPath = W:\Hyperspin\Utilities\JoyToKey\JoyToKey.exe
				keymapperProfilePath = W:\Hyperspin\Hyperlaunch\Profiles\
				keymapperFrontEndProfileName = HyperSpin
				keymapperFrontEndProfile = false
				keymapperHyperLaunchProfileEnabled = false
				JoyIDsEnabled = false
				JoyIDsPreferredControllersSystem = use_global
				JoyIDsPreferredControllersGlobal = use_global
				CustomJoyNamesEnabled = false
				CustomJoyNames =
				FEProfile = W:\Hyperspin\Hyperlaunch\Profiles\\HyperSpin
				defaultProfile = W:\Hyperspin\Hyperlaunch\Profiles\\_Default
				systemProfile = W:\Hyperspin\Hyperlaunch\Profiles\\Sega Genesis
				xPadderSystemProfile = W:\Hyperspin\Hyperlaunch\Profiles\\Sega Genesis\_Default
				emuProfile = W:\Hyperspin\Hyperlaunch\Profiles\\Sega Genesis\Fusion
				romProfile = W:\Hyperspin\Hyperlaunch\Profiles\\Sega Genesis\3 Ninjas Kick Back (USA)
				HyperLaunchProfile = W:\Hyperspin\Hyperlaunch\Profiles\\HyperLaunch
				blankProfile = W:\Hyperspin\Hyperlaunch\Profiles\\blank
				ahkFEProfile = W:\Hyperspin\Hyperlaunch\Profiles\AHK\HyperSpin
				ahkDefaultProfile = W:\Hyperspin\Hyperlaunch\Profiles\AHK\_Default
				ahkSystemProfile = W:\Hyperspin\Hyperlaunch\Profiles\AHK\Sega Genesis
				ahkEmuProfile = W:\Hyperspin\Hyperlaunch\Profiles\AHK\Sega Genesis\Fusion
				ahkRomProfile = W:\Hyperspin\Hyperlaunch\Profiles\AHK\Sega Genesis\3 Ninjas Kick Back (USA)
				ahkHyperLaunchProfile = W:\Hyperspin\Hyperlaunch\Profiles\AHK\HyperLaunch
				bezelEnabled = false
				statisticsEnabled = true

07:47:00:519 | HL |     INFO  | +0     | BuildScript - Loaded XHotkey Init.ahk scripts
07:47:00:519 | HL |     INFO  | +0     | BuildScript - Loaded Statistics Init.ahk scripts
07:47:00:519 | HL |     INFO  | +0     | BuildScript - Loaded User Functions Init.ahk script
07:47:00:522 | HL |     INFO  | +15    | BuildScript - Module:
				MEmu = Fusion
				MEmuV =  v3.64
				MURL = http://www.eidolons-inn.net/tiki-index.php?page=Kega
				MAuthor = djvj
				MVersion = 2.0.8
				MCRC = 792D6332
				iCRC = 3B62A7B7
				MID = 635038268893895568
				MSystem = "Samsung Gam Boy","Sega 32X","Sega CD","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Mega-CD","Sega Pico","Sega SC-3000","Sega SG-1000"
				;----------------------------------------------------------------------------
				; Notes:
				; Don't forget to setup your bios or you might just get a black screen.
				; Set your fullscreen resolution by going to Video->Full Screen Resolution
				; Fusion only supports 4 different windowed resolutions. If you don't use fullscreen, set the one you want by going to Video->Window Size
				; Esc is Fusion's default key to go Fullscreen/Windowed mode. This cannot be changed, but this module will still close if you use Esc to exit. You may see the emu leave fullscreen first though.
				; Esc can also cause Fusion to change its fullscreen mode on exit, causing it to lockup for 5-10 seconds. The only fix for this is to not use Esc as your exit key.
				; For Sega CD, make sure your cues are correctly pointing to all the tracks or else you will not get sound. Also turn off auto-play for CDs
				;
				; Sega CD
				; Configure your Sega CD bios first by going to Options -> Set Config -> Sega CD
				; Set the scsi drive you want to use manually by going to Options -> CD Drive and seleting the one that corresponds to your scsi drive in DT. A dt drive is not supported by the emu, it must be scsi.
				;
				; Defining per-game controller types:
				; In the module ini, set Controller_Reassigning_Enabled to true
				; Default_P1_Controller and Default_P2_Controller should be set to the controller type you normally use for games not listed in the ini
				; Make a new ini section with the name of your rom in your database, for example [super Scope 6 (USA)]
				; Under this section you can have 2 keys, P1_Controller and P2_Controller
				; For P1_Controller - 0=None, 1=Gamepad, 2=Multitap, 3=Mouse, 4=Serial USART
				; For P2_Controller - 0=None, 1=Gamepad, 2=Multitap, 3=Mouse, 4=Super Scope, 5=Justifier, 6=Dual Justifiers, 7=Serial USART
				;
				; Some games will not work if you have Teamplayer or 4way play active all the time, so you can set the MultiTapType for those problematic games in the module settings for each of these games.
				;
				; Windows 8 and 8.1 users:
				; You may experience an issue with Fusion never getting higher than 33.5fps. Use Ctrl+F to bring up the FPS counter in Fusion to check if you are affected. This is caused by some compatibility changes Microsoft made for DirectDraw applications. There are two ways of fixing this issue:
				; 1) Apply a compatibility patch for the Fusion executable using the Microsoft Application Compatibility Toolkit
				; 2) Copy a prepatched ddraw.dll into the Fusion directory.
				; Using the Microsoft Application Compatibility Toolkit is a cleaner fix but takes a few minutes to go through the steps to apply. Using the prepatched ddraw.dll file is quick and simple but may break the right-click menus when in full-screen mode, requiring you to make all configuration changes with the emulator windowed.
				; Both methods are fully detailed with downloads, instructions and screenshots at http://www.blitzbasic.com/Community/post.php?topic=99477&post=1202630
				;----------------------------------------------------------------------------
				StartModule()
				BezelGUI()
				FadeInStart()

				; The object controls how the module reacts to different systems. Fusion can play a lot of systems, but changes itself slightly so this module has to adapt
				mType := Object("Samsung Gam Boy","sms","Sega 32X","32X","Sega CD","scd","Sega Mega-CD","scd","Sega Game Gear","gg","Sega Genesis","gen","Sega Mega Drive","gen","Sega Master System","sms","Sega Pico","gen","Sega SC-3000","sms","Sega SG-1000","sms")
				ident := mType[systemName]	; search 1st array for the systemName identifier mednafen uses
				If !ident
					ScriptError("Your systemName is: " . systemName . "`nIt is not one of the known supported systems for this Fusion module: " . moduleName)

				Log("Module - Started reading module ini")
				settingsFile := modulePath . "\" . moduleName . ".ini"
				Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
				forceFullScreen32 := IniReadCheck(settingsFile, "Settings", "ForceFullScreen32","true",,1)
				hideTitleBar := IniReadCheck(settingsFile, "Settings", "hideTitleBar","true",,1)	; Removes the border, titlebar, menubar, and centers the emu on your screen. Only need this if fullscreen is false
				useRamCarts := IniReadCheck(settingsFile, "Settings", "UseRamCarts","true",,1)
				fluxAudioCD := IniReadCheck(settingsFile, "Settings", "FluxAudioCD",,,1)	; audio CD for use when Flux is ran
				fluxAudioCD := GetFullName(fluxAudioCD)	; convert relative path to absolute
				DTWaitTime := IniReadCheck(settingsFile, systemName, "DTWaitTime","0",,1)
				controllerReassigningEnabled := IniReadCheck(settingsFile, systemName, "Controller_Reassigning_Enabled","false",,1)
				perfectSync := IniReadCheck(settingsFile, romName, "PerfectSync","false",,1)
				multiTapType := IniReadCheck(settingsFile, systemName . "|" . romName, "MultiTapType",0,,1)
				genP1Controller := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P1_Controller",2,,1)
				genP1bController := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P1b_Controller",2,,1)
				genP1cController := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P1c_Controller",2,,1)
				genP1dController := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P1d_Controller",2,,1)
				genP2Controller := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P2_Controller",2,,1)
				genP2bController := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P2b_Controller",2,,1)
				genP2cController := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P2c_Controller",2,,1)
				genP2dController := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P2d_Controller",2,,1)
				smsP1Controller := IniReadCheck(settingsFile, systemName . "|" . romName, "SMS_P1_Controller",1,,1)
				smsP2Controller := IniReadCheck(settingsFile, systemName . "|" . romName, "SMS_P2_Controller",1,,1)
				genP1Use := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P1_Use",1,,1)
				genP1bUse := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P1b_Use",1,,1)
				genP1cUse := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P1c_Use",1,,1)
				genP1dUse := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P1d_Use",1,,1)
				genP2Use := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P2_Use",1,,1)
				genP2bUse := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P2b_Use",1,,1)
				genP2cUse := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P2c_Use",1,,1)
				genP2dUse := IniReadCheck(settingsFile, systemName . "|" . romName, "Genesis_P2d_Use",1,,1)
				smsP1Use := IniReadCheck(settingsFile, systemName . "|" . romName, "SMS_P1_Use",1,,1)
				smsP2Use := IniReadCheck(settingsFile, systemName . "|" . romName, "SMS_P2_Use",1,,1)
				Log("Module - Finished reading module ini")

				BezelStart()

				fusionFile := CheckFile(emuPath . "\fusion.ini")
				fusionIni := LoadProperties(fusionFile)	; load the config into memory
				currentFullScreen := ReadProperty(fusionIni,"FullScreen")	; read current fullscreen state
				currentForceFullScreen32 := ReadProperty(fusionIni,"forceFullScreen32")	; read current ForceFullScreen32 state
				currentPerfectSync := ReadProperty(fusionIni,"PerfectSync")	; read current PerfectSync state

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

				If romExtension in .7z,.rar
					ScriptError(MEmu . " only supports uncompressed or zip compressed roms. Please enable 7z support in HLHQ to use this module/emu for this extension: """ . romExtension . """")

				If ( Fullscreen != "true" And currentFullScreen = "1" ) {
					WriteProperty(fusionIni,"FullScreen", 0)
					If controllerReassigningEnabled != true	; no need to save file if it's going to be written later
						SaveProperties(fusionFile,fusionIni)	; save fusionFile to disk
				} Else If ( Fullscreen = "true" And currentFullScreen = "0" ) {
					WriteProperty(fusionIni,"FullScreen", 1)
					If controllerReassigningEnabled != true	; no need to save file if it's going to be written later
						SaveProperties(fusionFile,fusionIni)	; save fusionFile to disk
				}

				If ( forceFullScreen32 != "true" And currentForceFullScreen32 = "1" ) {
					WriteProperty(fusionIni,"ForceFullScreen32", 0)
					If controllerReassigningEnabled != true	; no need to save file if it's going to be written later
						SaveProperties(fusionFile,fusionIni)	; save fusionFile to disk
				} Else If ( forceFullScreen32 = "true" And currentForceFullScreen32 = "0" ) {
					WriteProperty(fusionIni,"ForceFullScreen32", 1)
					If controllerReassigningEnabled != true	; no need to save file if it's going to be written later
						SaveProperties(fusionFile,fusionIni)	; save fusionFile to disk
				}

				If ( perfectSync != "true" And currentPerfectSync = "1" ) {
					WriteProperty(fusionIni,"PerfectSync", 0)
					If controllerReassigningEnabled != true	; no need to save file if it's going to be written later
						SaveProperties(fusionFile,fusionIni)	; save fusionFile to disk
				} Else If ( perfectSync = "true" And currentPerfectSync = "0" ) {
					WriteProperty(fusionIni,"PerfectSync", 1)
					If controllerReassigningEnabled != true	; no need to save file if it's going to be written later
						SaveProperties(fusionFile,fusionIni)	; save fusionFile to disk
				}

				hideEmu := (If Fullscreen = "true" ? ("Hide") : (""))
				fullscreen := (If Fullscreen = "true" ? ("-fullscreen") : (""))

				If bezelPath ; Setting windowed mode resolution
				{	WriteProperty(fusionIni,"GameGearZoom", 1) ; disabling emulator default bezel
					If controllerReassigningEnabled != true	; no need to save file if it's going to be written later
						SaveProperties(fusionFile,fusionIni)	; save fusionFile to disk
				}

				 ; Allows you to set on a per-rom basis the controller type plugged into controller ports 1 and 2
				If controllerReassigningEnabled = true
				{	Log("Module - Started reassigning Fusion's ini controls")
					WriteProperty(fusionIni,"MultiTapType", multiTapType)	; sets MultiTap
					WriteProperty(fusionIni,"Joystick1Type", genP1Controller)	; sets controls for P1
					WriteProperty(fusionIni,"Joystick1bType", genP1bController)	; sets controls for P1b
					WriteProperty(fusionIni,"Joystick1cType", genP1cController)	; sets controls for P1c
					WriteProperty(fusionIni,"Joystick1dType", genP1dController)	; sets controls for P1d
					WriteProperty(fusionIni,"Joystick2Type", genP2Controller)	; sets controls for P2
					WriteProperty(fusionIni,"Joystick2bType", genP2bController)	; sets controls for P2b
					WriteProperty(fusionIni,"Joystick2cType", genP2cController)	; sets controls for P2c
					WriteProperty(fusionIni,"Joystick2dType", genP2dController)	; sets controls for P2d
					WriteProperty(fusionIni,"Joystick1MSType", smsP1Controller)	; sets controls for sms P1
					WriteProperty(fusionIni,"Joystick2MSType", smsP2Controller)	; sets controls for sms P2
					WriteProperty(fusionIni,"Joystick1Using", genP1Use)	; sets controls for P1
					WriteProperty(fusionIni,"Joystick1bUsing", genP1bUse)	; sets controls for P1b
					WriteProperty(fusionIni,"Joystick1cUsing", genP1cUse)	; sets controls for P1c
					WriteProperty(fusionIni,"Joystick1dUsing", genP1dUse)	; sets controls for P1d
					WriteProperty(fusionIni,"Joystick2Using", genP2Use)	; sets controls for P2
					WriteProperty(fusionIni,"Joystick2bUsing", genP2bUse)	; sets controls for P2b
					WriteProperty(fusionIni,"Joystick2cUsing", genP2cUse)	; sets controls for P2c
					WriteProperty(fusionIni,"Joystick2dUsing", genP2dUse)	; sets controls for P2d
					WriteProperty(fusionIni,"Joystick1MSUsing", smsP1Use)	; sets controls for sms P1
					WriteProperty(fusionIni,"Joystick2MSUsing", smsP2Use)	; sets controls for sms P2
					SaveProperties(fusionFile,fusionIni)	; save fusionFile to disk
					Log("Module - Finished reassigning Fusion's ini controls")
				}

				fluxRom := InStr(romName, "flux")	; test if this game is Flux, a special case game that requires an Audio CD to be mounted
				If fluxRom {
					Log("Module - Mounting the Audio CD because """ . romName . """ requires one to function.")
					ident := "gen"	; change ident to gen because Flux has to be mounted as a Genesis rom
					DaemonTools("mount", fluxAudioCD)	; mount the Audio CD the user has set in the module settings
				}

				scdExtension := InStr(".ccd|.cue|.bin|.iso", romExtension)	; the sega cd extensions supported by fusion

				If (ident = "scd" && dtEnabled = "true" && scdExtension) {
					If dtUseSCSI = false
						Log("Module - Daemon Tools drive type is set to ""dt"" but only ""scsi"" is supported for Fusion. Forcing scsi drive.", 2)
					DaemonTools("mount", romPath . "\" . romName . romExtension, (If dtUseSCSI = "false" ? "scsi" : ""))
					Sleep, DTWaitTime
					Run(executable . " -auto -" . ident . " " . fullscreen, emuPath, hideEmu)
				} Else {
					If (ident = "scd" && dtEnabled = "true" && !scdExtension)
						Log("Module - " . romExtension . " is not a supported cd image extension for Fusion. Launching Fusion without DT support.", 2)
					Run(executable . " -auto -" . ident . " " . fullscreen . " """ . romPath . "\" . romName . romExtension . """", emuPath, hideEmu)
				}

				WinWait("Fusion ahk_class KegaClass")
				WinWaitActive("Fusion ahk_class KegaClass")

				If fluxRom
					PostMessage, 0x111, 40009,,,ahk_class KegaClass	; Runs the Boot Sega-CD command to load the Audio CD that should be mounted in DT already

				If (ident = "scd" && useRamCarts = "true")	; Sega CD or Mega CD only
				{	brmPath := ReadProperty(fusionIni,"BRMFiles")		; read BRM path
					IfNotExist, %brmPath%
						FileCreateDir, %brmPath%	; create brmPath if it does not exist
					selectRamWin := "Select RAM Cart Size ahk_class #32770"
					createRamWin := "Create RAM Cart ahk_class #32770"
					loadRamWin := "Load RAM Cart ahk_class #32770"
					; Create New Ram Cart if it doesn't exist already
					IfNotExist, %brmPath%\%romName%.crm
					{	PostMessage, 0x111, 40036,,,ahk_class KegaClass	; Open Create New Ram Cart Window
						WinWait, %selectRamWin%
						WinSet, Transparent, On, %selectRamWin%
						Control, Check,, Button7, %selectRamWin%
						ControlSend, Button1, {Enter}, %selectRamWin%
						WinWait, %createRamWin%
						WinSet, Transparent, On, %createRamWin%
						WinWaitActive, %createRamWin%
						Loop {
							ControlGetText, edit1Text, Edit1, %createRamWin%
							If ( edit1Text = brmPath . "\" . romName . ".crm" )
								Break
							Sleep, 100
							ControlSetText, Edit1, %brmPath%\%romName%.crm, %createRamWin%
						}
						ControlSend, Button1, {Enter}, %createRamWin% ; Select Save
					}
					; Now load the Ram Cart
					PostMessage, 0x111, 40035,,,ahk_class KegaClass	; Open Load Ram Cart Window
					WinWait, %loadRamWin%
					WinSet, Transparent, On, %loadRamWin%
					WinWaitActive, %loadRamWin%
					Loop {
						ControlGetText, edit1Text, Edit1, %loadRamWin%
						If ( edit1Text = brmPath . "\" . romName . ".crm" )
							Break
						Sleep, 100
						ControlSetText, Edit1, %brmPath%\%romName%.crm, %loadRamWin%
					}
					ControlSend, Button1, {Enter}, %loadRamWin% ; Select Open
				}

				WinWaitActive("Fusion ahk_class KegaClass")

				Loop { ; looping until Fusion is done loading game
					Sleep, 200
					WinGetTitle, winTitle, Fusion ahk_class KegaClass
					StringSplit, T, winTitle, %A_Space%
					If ( T3 = "-" )
						Break
				}

				If hideTitleBar = true
				{	WinSet, Style, -0x40000, Fusion ahk_class KegaClass ; Removes the border of the game window
					WinSet, Style, -0xC00000, Fusion ahk_class KegaClass ; Removes the TitleBar
					DllCall("SetMenu", uint, WinActive( "A" ), uint, 0) ; Removes the MenuBar
					If bezelEnabled != true
						Center(Fusion ahk_class KegaClass)
				}

				BezelDraw()
				FadeInExit()

				If InStr(systemName, "Pico")
					PostMessage, 0x111, 40183,,,ahk_class KegaClass	; tell Kega Fusion to capture mouse input

				Process("WaitClose", executable)

				If (fluxRom || (ident = "scd" && dtEnabled = "true" && scdExtension))
					DaemonTools("unmount")

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


				Center(title) {
					WinGetPos, X, Y, width, height, %title%
					x := ( A_ScreenWidth / 2 ) - ( width / 2 )
					y := ( A_ScreenHeight / 2 ) - ( height / 2 )
					WinMove, %title%, , x, y
				}

				MultiGame:
					; msgbox % "selectedRom = " . selectedRom . "`nselected game = " . currentButton . "`nmgRomPath = " . mgRomPath . "`nmgRomExt = " . mgRomExt . "`nmgRomName = "  . mgRomName
					; Unmount the CD from DaemonTools
					If ( scdExtension && dtEnabled = "true" )
						DaemonTools("unmount")
					Sleep, 500	; Required to prevent  DT from bugging
					; Mount the CD using DaemonTools
					If ( scdExtension && dtEnabled = "true" )
						DaemonTools("mount", selectedRom)
				Return

				CloseProcess:
					FadeOutStart()
					WinClose("Fusion ahk_class KegaClass")
					; PostMessage, 0x111, 40039,,,ahk_class KegaClass	; Tells Fusion to Power Off
					; Sleep, 100	; giving time for Fusion to unload rom
					; PostMessage, 0x111, 40005,,,ahk_class KegaClass	; Tells Fusion to exit
				Return

07:47:00:534 | HL |     INFO  | +0     | CheckFile - Checking if W:\Hyperspin\DAEMON Tools Lite\DTLite.exe exists
07:47:00:553 | HL |     INFO  | +31    | BuildScript - Loaded Statistics.ahk script
07:47:00:553 | HL |     INFO  | +0     | BuildScript - Loaded User Functions.ahk script
07:47:00:553 | HL |     INFO  | +0     | BuildScript - Finished injecting functions into module
07:47:00:553 | HL |     INFO  | +0     | Main - Module is built
07:47:00:553 | HL |     INFO  | +0     | CheckFile - Checking if W:\Hyperspin\Hyperlaunch\AutoHotkey.dll exists
07:47:00:571 | HL |     INFO  | +16    | Main - Running module
07:47:00:733 | MD |     INFO  | +N/A   | Module initialized
07:47:00:820 | MD |     INFO  | +94    | StartModule - Started
07:47:00:820 | MD |     INFO  | +0     | StartModule - MEmu: Fusion
				MEmuV: v3.64
				MURL: http://www.eidolons-inn.net/tiki-index.php?page=Kega
				MAuthor: djvj
				MVersion: 2.0.8
				MCRC: 792D6332
				iCRC: 3B62A7B7
				MID:
				MSystem: "Samsung Gam Boy","Sega 32X","Sega CD","Sega Game Gear","Sega Genesis","Sega Master System","Sega Mega Drive","Sega Mega-CD","Sega Pico","Sega SC-3000","Sega SG-1000"
07:47:00:820 | MD |     INFO  | +0     | StartModule - You have a supported System Name for this module: "Sega Genesis"
07:47:00:820 | MD |     INFO  | +0     | StartModule - Ended
07:47:00:821 | MD |     INFO  | +0     | StartGlobalUserFeatures - Starting
07:47:00:821 | MD |     INFO  | +0     | StartGlobalUserFeatures - Ending
07:47:00:821 | MD |     INFO  | +0     | Module - Started reading module ini
07:47:00:821 | MD |     INFO  | +0     | Module Setting - [settings] - Fullscreen: true
07:47:00:821 | MD |     INFO  | +0     | Module Setting - [settings] - ForceFullScreen32: true
07:47:00:821 | MD |     INFO  | +0     | Module Setting - [settings] - hideTitleBar: true
07:47:00:822 | MD |     INFO  | +0     | Module Setting - [settings] - UseRamCarts: true
07:47:00:822 | MD |     INFO  | +0     | Module Setting - [settings] - FluxAudioCD:
07:47:00:822 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - DTWaitTime: 0
07:47:00:822 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Controller_Reassigning_Enabled: false
07:47:00:823 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - PerfectSync: false
07:47:00:823 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - MultiTapType: 0
07:47:00:823 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - MultiTapType: 0
07:47:00:823 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P1_Controller: 2
07:47:00:823 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P1_Controller: 2
07:47:00:824 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P1b_Controller: 2
07:47:00:824 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P1b_Controller: 2
07:47:00:824 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P1c_Controller: 2
07:47:00:824 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P1c_Controller: 2
07:47:00:824 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P1d_Controller: 2
07:47:00:825 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P1d_Controller: 2
07:47:00:825 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P2_Controller: 2
07:47:00:825 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P2_Controller: 2
07:47:00:825 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P2b_Controller: 2
07:47:00:825 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P2b_Controller: 2
07:47:00:826 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P2c_Controller: 2
07:47:00:826 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P2c_Controller: 2
07:47:00:826 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P2d_Controller: 2
07:47:00:826 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P2d_Controller: 2
07:47:00:827 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - SMS_P1_Controller: 1
07:47:00:827 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - SMS_P1_Controller: 1
07:47:00:827 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - SMS_P2_Controller: 1
07:47:00:827 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - SMS_P2_Controller: 1
07:47:00:827 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P1_Use: 1
07:47:00:828 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P1_Use: 1
07:47:00:828 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P1b_Use: 1
07:47:00:828 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P1b_Use: 1
07:47:00:828 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P1c_Use: 1
07:47:00:829 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P1c_Use: 1
07:47:00:829 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P1d_Use: 1
07:47:00:829 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P1d_Use: 1
07:47:00:829 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P2_Use: 1
07:47:00:829 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P2_Use: 1
07:47:00:830 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P2b_Use: 1
07:47:00:830 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P2b_Use: 1
07:47:00:830 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P2c_Use: 1
07:47:00:830 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P2c_Use: 1
07:47:00:830 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - Genesis_P2d_Use: 1
07:47:00:831 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - Genesis_P2d_Use: 1
07:47:00:831 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - SMS_P1_Use: 1
07:47:00:831 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - SMS_P1_Use: 1
07:47:00:831 | MD |     INFO  | +0     | Module Setting - [sega Genesis] - SMS_P2_Use: 1
07:47:00:831 | MD |     INFO  | +0     | Module Setting - [3 Ninjas Kick Back (USA)] - SMS_P2_Use: 1
07:47:00:832 | MD |     INFO  | +0     | Module - Finished reading module ini
07:47:00:832 | MD |     INFO  | +0     | CheckFile - Checking if W:\Hyperspin\Emulators\sega master system\fusion.ini exists
07:47:00:835 | MD |     INFO  | +15    | Run - Running: W:\Hyperspin\Emulators\sega master system\Fusion.ini -auto -gen -fullscreen "W:\Hyperspin\Emulators\Sega Genesis\Roms\3 Ninjas Kick Back (USA).md"
07:47:00:978 | MD |     INFO  | +141   | WinWait - Waiting for "Fusion ahk_class KegaClass"
07:47:33:945 | MD |    ERROR  | +32963 | There was an error waiting for the window "Fusion ahk_class KegaClass". 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.
07:47:33:945 | MD |     INFO  | +0     | ExitModule - Started
07:47:33:945 | MD |     INFO  | +0     | Starting Updating Statistics:
07:47:33:945 | MD |     INFO  | +0     | CreateRomTable - Started
07:47:33:945 | MD |     INFO  | +0     | CreateRomTable - Ended, 7 Loops to create table.
07:47:34:076 | MD |     INFO  | +124   | Game section statistics updated.
07:47:34:077 | MD |     INFO  | +0     | ExitModule - Ended
07:47:34:077 | MD |     INFO  | +0     | End of Module Logs
07:47:34:179 | HL |     INFO  | +33603 | Main - Module ended, exiting HyperLaunch normally
07:47:34:179 | HL |     INFO  | +0     | ExitScript - Started
07:47:34:226 | HL |     INFO  | +46    | SystemCursor - Restoring mouse cursor
07:47:34:244 | HL |     INFO  | +16    | ExitScript - Ended

Posted

You are The Boss, I dont know how I missed that, but you are totally right, T H A N K you, I changed it and it s working.

(by the way, I have been browsing the forum for over a year now, each time i was able to find the solution on my own or with other thread from the forum).

Thanks Hyperpsin users.

Archived

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

×
×
  • Create New...