Jump to content

Sega CD + Fusion help


rashil

Recommended Posts

Posted

I am having difficulty in launching any Sega CD game through HL. I am using bin/cue format. If I load a game outside of HL it works just fine. When I try to launch it through HL it loads the Sega CD BIOS but not the actual game. Here is my log file contents:

[code]
09:00:53:957 | HL |     INFO  | +N/A   | Main - HyperLaunch v3.0.1.0
09:00:53:957 | HL |     INFO  | +0     | Main - System Specs:
				HyperLaunch Dir: C:\Hyperspin\HyperLaunch
				OS: WIN_7
				Architecture: 64-bit (might not be accurate)
				OS Language: English_United_States
				OS Admin Status: Yes
				Monitor #1 (\\.\DISPLAY1): 1920x1080 (1920x1040 work)
				AutoHotkey Path:
				AHK Version: 1.1.09.04
				Unicode: No
09:00:53:957 | HL |     INFO  | +0     | Main - HyperSpin.exe coordinates are x y w h
09:00:53:957 | HL |     INFO  | +0     | CheckFile - Checking if C:\Hyperspin\HyperLaunch\HyperLaunch.exe exists
09:00:53:957 | HL |     INFO  | +0     | Main - HyperLaunch received "Sega CD" and "BC Racers (USA)"
09:00:53:957 | HL |     INFO  | +0     | Main - BC Racers (USA) is using the default emulator: Fusion
09:00:53:957 | HL |     INFO  | +0     | Main - Checking for a [Fusion] section in C:\Hyperspin\HyperLaunch\Settings\Sega CD\Emulators.ini
09:00:53:957 | HL |     INFO  | +0     | Main - Checking for a [Fusion] section in C:\Hyperspin\HyperLaunch\Settings\Global Emulators.ini
09:00:53:957 | HL |     INFO  | +0     | Main - Found [Fusion] in C:\Hyperspin\HyperLaunch\Settings\Global Emulators.ini
09:00:53:957 | HL |     INFO  | +0     | CheckFile - Checking if C:\Hyperspin\HyperLaunch\Modules\Fusion\Fusion.ahk exists
09:00:53:967 | HL |     INFO  | +16    | Main - CRC Check - CRC matches, this is an official unedited module.
09:00:53:967 | HL |     INFO  | +0     | Main - BC Racers (USA) will use module: C:\Hyperspin\HyperLaunch\Modules\Fusion\Fusion.ahk
09:00:53:977 | HL |     INFO  | +0     | Main - Using standard method with "Rom Extension" SkipChecks or without any SkipChecks.
09:00:53:987 | HL |     INFO  | +15    | Main - INI Keys read
09:00:53:987 | HL |     INFO  | +0     | CheckFile - Checking if C:\Hyperspin\HyperLaunch\Module Extensions\7z.exe exists
09:00:53:987 | HL |     INFO  | +0     | CheckFile - Checking if C:\Hyperspin\HyperLaunch\Module Extensions\7z.dll exists
09:00:53:987 | HL |     INFO  | +0     | CreateRomMapTable - Started
09:00:53:987 | HL |     INFO  | +0     | CreateRomMapTable - Could not find any roms for the Rom Map Table
09:00:53:987 | HL |     INFO  | +0     | CreateRomMapTable - Ended, No mapping inis found.
09:00:53:987 | HL |     INFO  | +0     | CheckPaths - Started
09:00:53:987 | HL |     INFO  | +0     | CheckPaths - Found rom: C:\Hyperspin\Emulators\Fusion\BC Racers (USA).cue
09:00:53:987 | HL |     INFO  | +0     | CheckFile - Checking if C:\Hyperspin\Emulators\Fusion\Fusion.exe exists
09:00:53:987 | HL |     INFO  | +0     | CheckPaths - Ended
09:00:53:987 | HL |     INFO  | +0     | BuildScript - User Variables:
				;----------------------------------------------------------------------------
				; INJECTED VARIABLES
				;----------------------------------------------------------------------------

				#NoTrayIcon
				#InstallKeybdHook
				DetectHiddenWindows, ON
				SetTitleMatchMode, 2
				SendMode, Event
				0 = 2
				frontendPID = 0
				frontendPath = C:\Hyperspin
				frontendExe = HyperSpin.exe
				frontendExt = exe
				frontendName = HyperSpin
				frontendDrive = C:
				exitEmulatorKey = ~Esc
				exitEmulatorKeyWait = 0
				forceHoldKey = ~Esc
				restoreFE = false
				exitScriptKey = ~q & ~s
				toggleCursorKey = ~e & ~t
				emuFullPath = C:\Hyperspin\Emulators\Fusion\Fusion.exe
				emuPath = C:\Hyperspin\Emulators\Fusion
				emuName = Fusion
				emuExt = exe
				romPath = C:\Hyperspin\Emulators\Fusion
				romPathFromIni = C:\Hyperspin\Emulators\Fusion
				romExtension = .cue
				romExtensionOrig = .cue
				romExtensions = zip|7z|md|sms|32x|cue
				executable = Fusion.exe
				systemName = Sega CD
				dbName = BC Racers (USA)
				romName = BC Racers (USA)
				romMapPath = C:\Hyperspin\HyperLaunch\Settings\Sega CD\Rom Mapping
				romMappingEnabled = true
				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
				logFile = C:\Hyperspin\HyperLaunch\HyperLaunch.log
				logLabel := ["    INFO"," WARNING","   ERROR","  DEBUG1","  DEBUG2"]
				logLevel = 3
				logIncludeModule = true
				logIncludeFileProperties = true
				logShowCommandWindow = false
				logCommandWindow = false
				navUpKey = Up
				navDownKey = Down
				navLeftKey = Left
				navRightKey = Right
				navSelectKey = Enter
				navP2UpKey = Numpad8
				navP2DownKey = Numpad2
				navP2LeftKey = Numpad4
				navP2RightKey = Numpad6
				navP2SelectKey = NumpadEnter
				originalWidth = 1920
				originalHeight = 1080
				dtEnabled = true
				dtPath = C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe
				dtUseSCSI = true
				dtAddDrive = true
				emuIdleShutdown = 0
				hideCursor = false
				hideEmu = false
				hideFE = false
				fadeIn = false
				fadeInDuration = 500
				fadeInTransitionAnimation = DefaultAnimateFadeIn
				fadeInDelay = 0
				fadeInExitDelay = 0
				fadeOutExitDelay = 0
				fadeOut = false
				fadeOutExtraScreen = false
				fadeOutDuration = 500
				fadeOutTransitionAnimation = DefaultAnimateFadeOut
				fadeOutDelay = 0
				fadeLyrInterpolation = 7
				fadeLyr1Color = FF000000
				fadeLyr1AlignImage = Align to Top Left
				fadeLyr2Pos = Bottom Right Corner
				fadeLyr2X = 300
				fadeLyr2Y = 300
				fadeLyr2Adjust = 1
				fadeLyr2PicPad = 0
				fadeLyr3Pos = Center
				fadeLyr3X = 300
				fadeLyr3Y = 300
				fadeLyr3Adjust = 0.75
				fadeLyr3Speed = 750
				fadeLyr3Animation = DefaultFadeAnimation
				fadeLyr37zAnimation = DefaultFadeAnimation
				fadeLyr3Type = imageandbar
				fadeLyr3ImgFollow7zProgress = true
				fadeLyr3Repeat = 1
				fadeLyr3PicPad = 0
				fadeLyr4Adjust = 0.75
				fadeLyr4X = 100
				fadeLyr4Y = 100
				fadeLyr4Pos = Above Layer 3 - Left
				fadeLyr4FPS = 10
				fadeLyr4PicPad = 0
				fadeTranspGifColor = FFFFFF
				fadeBarWindow = false
				fadeBarWindowX =
				fadeBarWindowY =
				fadeBarWindowW = 600
				fadeBarWindowH = 120
				fadeBarWindowR = 20
				fadeBarWindowM = 20
				fadeBarWindowHatchStyle = 8
				fadeBarBack = true
				fadeBarBackColor = FF555555
				fadeBarH = 20
				fadeBarR = 5
				fadeBarColor = DD00BFFF
				fadeBarHatchStyle = 3
				fadeBarPercentageText = true
				fadeBarInfoText = true
				fadeBarXOffset = 0
				fadeBarYOffset = 100
				fadeRomInfoDescription = text
				fadeRomInfoSystemName = text
				fadeRomInfoYear = text
				fadeRomInfoManufacturer = text
				fadeRomInfoGenre = text
				fadeRomInfoRating = text
				fadeRomInfoOrder = Description|SystemName|Year|Manufacturer|Genre|Rating
				fadeRomInfoTextPlacement = topRight
				fadeRomInfoTextMargin = 5
				fadeRomInfoText1Options = cFF555555 r4 s20 Bold
				fadeRomInfoText2Options = cFF555555 r4 s20 Bold
				fadeRomInfoText3Options = cFF555555 r4 s20 Bold
				fadeRomInfoText4Options = cFF555555 r4 s20 Bold
				fadeRomInfoText5Options = cFF555555 r4 s20 Bold
				fadeRomInfoText6Options = cFF555555 r4 s20 Bold
				fadeStats_Number_of_Times_Played = text with label
				fadeStats_Last_Time_Played = text with label
				fadeStats_Average_Time_Played = text with label
				fadeStats_Total_Time_Played = text with label
				fadeStats_System_Total_Played_Time = text with label
				fadeStats_Total_Global_Played_Time = text with label
				fadeStatsInfoOrder = Number_of_Times_Played|Last_Time_Played|Average_Time_Played|Total_Time_Played|System_Total_Played_Time|Total_Global_Played_Time
				fadeStatsInfoTextPlacement = topLeft
				fadeStatsInfoTextMargin = 5
				fadeStatsInfoText1Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText2Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText3Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText4Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText5Options = cFF555555 r4 s20 Bold
				fadeStatsInfoText6Options = cFF555555 r4 s20 Bold
				fadeText1X = 0
				fadeText1Y = 0
				fadeText1Options = cFFFFFFFF r4 s20 Right Bold
				fadeText1 = Loading Game
				fadeText2X = 0
				fadeText2Y = 0
				fadeText2Options = cFFFFFFFF r4 s20 Right Bold
				fadeText2 = Extraction Complete
				fadeFont = Arial
				fadeSystemAndRomLayersOnly = false
				fadeInterruptKey =
				detectFadeErrorEnabled = true
				fadeImgPath = C:\Hyperspin\HyperLaunch\Media\Fade
				HLDataPath = C:\Hyperspin\HyperLaunch\Data
				HLMediaPath = C:\Hyperspin\HyperLaunch\Media
				HLErrSoundPath = C:\Hyperspin\HyperLaunch\Media\Sounds\Error
				modulesPath = C:\Hyperspin\HyperLaunch\Modules
				moduleFullName = C:\Hyperspin\HyperLaunch\Modules\Fusion\Fusion.ahk
				moduleName = Fusion
				modulePath = C:\Hyperspin\HyperLaunch\Modules\Fusion
				moduleExtension = ahk
				moduleExtensionsPath = C:\Hyperspin\HyperLaunch\Module Extensions
				libPath = C:\Hyperspin\HyperLaunch\Lib
				7zEnabled = true
				7zPath = C:\Hyperspin\HyperLaunch\Module Extensions\7z.exe
				7zDllPath = C:\Hyperspin\HyperLaunch\Module Extensions\7z.dll
				7zExtractPath = C:\Users\Matt\AppData\Local\Temp\HS
				7zExtractPathOrig =
				7zAttachSystemName = false
				7zDelTemp = true
				7zSounds = true
				7zFormats = .zip,.rar,.7z,.lzh,.gzip,.tar
				7zFormatsNoP = zip,rar,7z,lzh,gzip,tar
				mgEnabled = false
				mgKey = ~NumpadSub
				mgBackgroundColor = FF000000
				mgSidePadding = 0.2
				mgYOffset = 500
				mgImageAdjust = 0
				mgFont = Arial
				mgText1Options = x10p y30p w80p Center cBBFFFFFF r4 s100 BoldItalic
				mgText1Text = Please select a game
				mgText2Options = w96p cFFFFFFFF r4 s50 Center BoldItalic
				mgText2Offset = 70
				mgUseSound = true
				mgSoundfreq = 300
				mgExitEffect = none
				mgSelectedEffect = rotate
				mgUseGameArt = false
				mgArtworkDir = Artwork1
				hpEnabled = false
				hpKey = ~NumpadAdd
				hpBackToMenuBarKey = X
				hpZoomInKey = C
				hpZoomOutKey = V
				hpScreenshotKey = ~PrintScreen
				hpHiToTextPath = C:\Hyperspin\HyperLaunch\Module Extensions\HiToText.exe
				hpSaveStateKeyCodes =
				hpLoadStateKeyCodes =
				keymapperEnabled = false
				keymapperAHKMethod = false
				keymapper =
				xpadderFullPath = C:\Hyperspin\Utilities\Xpadder\xpadder.exe
				joyToKeyFullPath = C:\Hyperspin\Utilities\JoyToKey\JoyToKey.exe
				keymapperProfilePath = C:\Hyperspin\HyperLaunch\Profiles\
				keymapperFrontEndProfileName = HyperSpin
				keymapperHyperLaunchProfileEnabled = false
				JoyIDsEnabled = false
				JoyIDsPreferredControllersSystem = use_global
				JoyIDsPreferredControllersGlobal = use_global
				CustomJoyNamesEnabled = false
				CustomJoyNames =
				FEProfile = C:\Hyperspin\HyperLaunch\Profiles\\HyperSpin
				defaultProfile = C:\Hyperspin\HyperLaunch\Profiles\\_Default
				systemProfile = C:\Hyperspin\HyperLaunch\Profiles\\Sega CD
				xPadderSystemProfile = C:\Hyperspin\HyperLaunch\Profiles\\Sega CD\_Default
				emuProfile = C:\Hyperspin\HyperLaunch\Profiles\\Sega CD\Fusion
				romProfile = C:\Hyperspin\HyperLaunch\Profiles\\Sega CD\BC Racers (USA)
				HyperLaunchProfile = C:\Hyperspin\HyperLaunch\Profiles\\HyperLaunch
				blankProfile = C:\Hyperspin\HyperLaunch\Profiles\\blank
				ahkFEProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\HyperSpin
				ahkDefaultProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\_Default
				ahkSystemProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\Sega CD
				ahkEmuProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\Sega CD\Fusion
				ahkRomProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\Sega CD\BC Racers (USA)
				ahkHyperLaunchProfile = C:\Hyperspin\HyperLaunch\Profiles\AHK\HyperLaunch
				bezelEnabled = false
				statisticsEnabled = true

09:00:53:987 | HL |     INFO  | +0     | BuildScript - Loaded XHotkey Init.ahk scripts
09:00:53:987 | HL |     INFO  | +0     | BuildScript - Loaded Statistics Init.ahk scripts
09:00:53:987 | HL |     INFO  | +0     | BuildScript - Loaded User Functions Init.ahk script
09:00:53:997 | HL |     INFO  | +16    | BuildScript - Module:
				MEmu = Fusion
				MEmuV =  v3.64
				MURL = http://www.eidolons-inn.net/tiki-index.php?page=Kega
				MAuthor = djvj
				MVersion = 2.0.5
				MCRC = 38645830
				iCRC = 7A5BD6E2
				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 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
				;----------------------------------------------------------------------------
				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 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)
				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)
				defaultGenP1Controller := IniReadCheck(settingsFile, systemName, "Default_Genesis_P1_Controller",2,,1)
				defaultGenP1bController := IniReadCheck(settingsFile, systemName, "Default_Genesis_P1b_Controller",2,,1)
				defaultGenP1cController := IniReadCheck(settingsFile, systemName, "Default_Genesis_P1c_Controller",2,,1)
				defaultGenP1dController := IniReadCheck(settingsFile, systemName, "Default_Genesis_P1d_Controller",2,,1)
				defaultGenP2Controller := IniReadCheck(settingsFile, systemName, "Default_Genesis_P2_Controller",2,,1)
				defaultGenP2bController := IniReadCheck(settingsFile, systemName, "Default_Genesis_P2b_Controller",2,,1)
				defaultGenP2cController := IniReadCheck(settingsFile, systemName, "Default_Genesis_P2c_Controller",2,,1)
				defaultGenP2dController := IniReadCheck(settingsFile, systemName, "Default_Genesis_P2d_Controller",2,,1)
				defaultSMSP1Controller := IniReadCheck(settingsFile, systemName, "Default_SMS_P1_Controller",1,,1)
				defaultSMSP2Controller := IniReadCheck(settingsFile, systemName, "Default_SMS_P2_Controller",1,,1)
				defaultGenP1Use := IniReadCheck(settingsFile, systemName, "Default_Genesis_P1_Use",1,,1)
				defaultGenP1bUse := IniReadCheck(settingsFile, systemName, "Default_Genesis_P1b_Use",1,,1)
				defaultGenP1cUse := IniReadCheck(settingsFile, systemName, "Default_Genesis_P1c_Use",1,,1)
				defaultGenP1dUse := IniReadCheck(settingsFile, systemName, "Default_Genesis_P1d_Use",1,,1)
				defaultGenP2Use := IniReadCheck(settingsFile, systemName, "Default_Genesis_P2_Use",1,,1)
				defaultGenP2bUse := IniReadCheck(settingsFile, systemName, "Default_Genesis_P2b_Use",1,,1)
				defaultGenP2cUse := IniReadCheck(settingsFile, systemName, "Default_Genesis_P2c_Use",1,,1)
				defaultGenP2dUse := IniReadCheck(settingsFile, systemName, "Default_Genesis_P2d_Use",1,,1)
				defaultSMSP1Use := IniReadCheck(settingsFile, systemName, "Default_SMS_P1_Use",1,,1)
				defaultSMSP2Use := IniReadCheck(settingsFile, systemName, "Default_SMS_P2_Use",1,,1)
				perfectSync := IniReadCheck(settingsFile, romName, "PerfectSync","false",,1)
				genP1Controller := IniReadCheck(settingsFile, romName, "Genesis_P1_Controller",,,1)
				genP1bController := IniReadCheck(settingsFile, romName, "Genesis_P1b_Controller",,,1)
				genP1cController := IniReadCheck(settingsFile, romName, "Genesis_P1c_Controller",,,1)
				genP1dController := IniReadCheck(settingsFile, romName, "Genesis_P1d_Controller",,,1)
				genP2Controller := IniReadCheck(settingsFile, romName, "Genesis_P2_Controller",,,1)
				genP2bController := IniReadCheck(settingsFile, romName, "Genesis_P2b_Controller",,,1)
				genP2cController := IniReadCheck(settingsFile, romName, "Genesis_P2c_Controller",,,1)
				genP2dController := IniReadCheck(settingsFile, romName, "Genesis_P2d_Controller",,,1)
				smsP1Controller := IniReadCheck(settingsFile, romName, "SMS_P1_Controller",,,1)
				smsP2Controller := IniReadCheck(settingsFile, romName, "SMS_P2_Controller",,,1)
				genP1Use := IniReadCheck(settingsFile, romName, "Genesis_P1_Use",,,1)
				genP1bUse := IniReadCheck(settingsFile, romName, "Genesis_P1b_Use",,,1)
				genP1cUse := IniReadCheck(settingsFile, romName, "Genesis_P1c_Use",,,1)
				genP1dUse := IniReadCheck(settingsFile, romName, "Genesis_P1d_Use",,,1)
				genP2Use := IniReadCheck(settingsFile, romName, "Genesis_P2_Use",,,1)
				genP2bUse := IniReadCheck(settingsFile, romName, "Genesis_P2b_Use",,,1)
				genP2cUse := IniReadCheck(settingsFile, romName, "Genesis_P2c_Use",,,1)
				genP2dUse := IniReadCheck(settingsFile, romName, "Genesis_P2d_Use",,,1)
				smsP1Use := IniReadCheck(settingsFile, romName, "SMS_P1_Use",,,1)
				smsP2Use := IniReadCheck(settingsFile, romName, "SMS_P2_Use",,,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
				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 ( 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,"Joystick1Type", If genP1Controller ? genP1Controller : defaultGenP1Controller)	; sets controls for P1 to rom's P1 control type if exists, else sets to default P1 control type
					WriteProperty(fusionIni,"Joystick1bType", If genP1bController ? genP1bController : defaultGenP1bController)	; sets controls for P1b to rom's P1b control type if exists, else sets to default P1b control type
					WriteProperty(fusionIni,"Joystick1cType", If genP1cController ? genP1cController : defaultGenP1cController)	; sets controls for P1c to rom's P1c control type if exists, else sets to default P1c control type
					WriteProperty(fusionIni,"Joystick1dType", If genP1dController ? genP1dController : defaultGenP1dController)	; sets controls for P1d to rom's P1d control type if exists, else sets to default P1d control type
					WriteProperty(fusionIni,"Joystick2Type", If genP2Controller ? genP2Controller : defaultGenP2Controller)	; sets controls for P2 to rom's P2 control type if exists, else sets to default P2 control type
					WriteProperty(fusionIni,"Joystick2bType", If genP2bController ? genP2bController : defaultGenP2bController)	; sets controls for P2b to rom's P2b control type if exists, else sets to default P2b control type
					WriteProperty(fusionIni,"Joystick2cType", If genP2cController ? genP2cController : defaultGenP2cController)	; sets controls for P2c to rom's P2c control type if exists, else sets to default P2c control type
					WriteProperty(fusionIni,"Joystick2dType", If genP2dController ? genP2dController : defaultGenP2dController)	; sets controls for P2d to rom's P2d control type if exists, else sets to default P2d control type
					WriteProperty(fusionIni,"Joystick1MSType", If smsP1Controller ? smsP1Controller : defaultSMSP1Controller)	; sets controls for sms P1 to rom's sms P1 control type if exists, else sets to default sms P1 control type
					WriteProperty(fusionIni,"Joystick2MSType", If smsP2Controller ? smsP2Controller : defaultSMSP2Controller)	; sets controls for sms P2 to rom's sms P2 control type if exists, else sets to default sms P2 control type
					WriteProperty(fusionIni,"Joystick1Using", If genP1Use ? genP1Use : defaultGenP1Use)	; sets controls for P1 to rom's P1 control using if exists, else sets to default P1 control using
					WriteProperty(fusionIni,"Joystick1bUsing", If genP1bUse ? genP1bUse : defaultGenP1bUse)	; sets controls for P1b to rom's P1b control using if exists, else sets to default P1b control using
					WriteProperty(fusionIni,"Joystick1cUsing", If genP1cUse ? genP1cUse : defaultGenP1cUse)	; sets controls for P1c to rom's P1c control using if exists, else sets to default P1c control using
					WriteProperty(fusionIni,"Joystick1dUsing", If genP1dUse ? genP1dUse : defaultGenP1dUse)	; sets controls for P1d to rom's P1d control using if exists, else sets to default P1d control using
					WriteProperty(fusionIni,"Joystick2Using", If genP2Use ? genP2Use : defaultGenP2Use)	; sets controls for P2 to rom's P2 control using if exists, else sets to default P2 control using
					WriteProperty(fusionIni,"Joystick2bUsing", If genP2bUse ? genP2bUse : defaultGenP2bUse)	; sets controls for P2b to rom's P2b control using if exists, else sets to default P2b control using
					WriteProperty(fusionIni,"Joystick2cUsing", If genP2cUse ? genP2cUse : defaultGenP2cUse)	; sets controls for P2c to rom's P2c control using if exists, else sets to default P2c control using
					WriteProperty(fusionIni,"Joystick2dUsing", If genP2dUse ? genP2dUse : defaultGenP2dUse)	; sets controls for P2d to rom's P2d control using if exists, else sets to default P2d control using
					WriteProperty(fusionIni,"Joystick1MSUsing", If smsP1Use ? smsP1Use : defaultSMSP1Use)	; sets controls for sms P1 to rom's sms P1 control using if exists, else sets to default sms P1 control using
					WriteProperty(fusionIni,"Joystick2MSUsing", If smsP2Use ? smsP2Use : defaultSMSP2Use)	; sets controls for sms P2 to rom's sms P2 control using if exists, else sets to default sms P2 control using
					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(".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()
				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

09:00:53:997 | HL |     INFO  | +0     | CheckFile - Checking if C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe exists
09:00:53:017 | HL |     INFO  | +15    | BuildScript - Loaded Statistics.ahk script
09:00:54:017 | HL |     INFO  | +0     | BuildScript - Loaded User Functions.ahk script
09:00:54:017 | HL |     INFO  | +0     | BuildScript - Finished injecting functions into module
09:00:54:017 | HL |     INFO  | +0     | Main - Module is built
09:00:54:017 | HL |     INFO  | +0     | CheckFile - Checking if C:\Hyperspin\HyperLaunch\AutoHotkey.dll exists
09:00:54:027 | HL |     INFO  | +16    | Main - Running module

Posted

Ensure Daemon Tools is installed and HyperlaunchHQ Global Settings Daemon Tools path is pointing to your DT install.

Make sure DT is enabled in your global settings

Make sure DT is enabled in your HyperlaunchHQ Sega CD console settings

Within Fusion make sure it's setup for the correct Daemon Tools Virtual Drive number.

Make sure the Fusion emulator (under global\emulators) has this for the extensions 7z|zip|sg|gg|sms|gen|32x|md|cue|bin

Posted

Thanks a bunch, Deadly!

This was it:

Within Fusion make sure it's setup for the correct Daemon Tools Virtual Drive number.

I really appreciate the assistance :)

  • 2 weeks later...
Posted

I've just started using daemon tools and am also having problems with sega cd. I think the problem that rashil was having is the same one I'm having, but I'm unsure what you guys are talking about when you say "Within Fusion make sure it's setup for the correct Daemon Tools Virtual Drive number." Do you mean under the sega cd tab in HQ, or in the emulator itself? I've checked both, and I still am not finding what you're talking about. Any help would be appreciated.

  • 3 weeks later...
Posted

I had luck with adding a new emulator, naming it Fusion364 (after my folder), setting up the path to it, selecting the Fusion module, and having the only extension be ISO. Made the default emulator for Sega CD the Fusion 364 that I just added; put my game in it's own folder, in this case it was Shining Force (USA), and that booted right into the game no problems.

Posted
I've just started using daemon tools and am also having problems with sega cd. I think the problem that rashil was having is the same one I'm having, but I'm unsure what you guys are talking about when you say "Within Fusion make sure it's setup for the correct Daemon Tools Virtual Drive number." Do you mean under the sega cd tab in HQ, or in the emulator itself? I've checked both, and I still am not finding what you're talking about. Any help would be appreciated.

By virtual drive number I think he meant you need to choose the correct "virtual drive" that daemontools creates when you follow the instructions in the wiki for setting up daemon tools. If you go into my computer in windows you can see your actual, physical dvd drive and any virtual drives you have created with daemon tools will be there too. If you only installed daemontools for hyperspin purposes there is probably only 1 virtual drive. If not then... by following the wiki you set up a "SCSI" drive, this is the one that needs to be used. You can open up daemontools.exe to see which drives are SCSI and which are not.

  • 2 weeks later...
Posted

I already know how to find out what drive number the virtual drive is. Where do you find the spot to change the drive number option "Within Fusion"??? I've looked in the fusion emulator application options, and it doesn't seem to be there. I need to check this first before i figure out what MY problem is. (to troubleshoot).

My games are "booting up" kinda. They open Windows media Player and play music from the game at the same time as SEGA CD starts up, just to tell me "Press RESET to Open CD tray". (no game booting)

ps- My sega CD games were booting fine in Hyperlaunch 1.x in Fusion. And I have Daemon Tools Running just fine: ie. PC-FX & TurboGrafx-CD are running perfect through Mednafen

thanks for the help (hope this is the right thread)

Posted
I already know how to find out what drive number the virtual drive is. Where do you find the spot to change the drive number option "Within Fusion"??? I've looked in the fusion emulator application options, and it doesn't seem to be there. I need to check this first before i figure out what MY problem is. (to troubleshoot).

My games are "booting up" kinda. They open Windows media Player and play music from the game at the same time as SEGA CD starts up, just to tell me "Press RESET to Open CD tray". (no game booting)

ps- My sega CD games were booting fine in Hyperlaunch 1.x in Fusion. And I have Daemon Tools Running just fine: ie. PC-FX & TurboGrafx-CD are running perfect through Mednafen

thanks for the help (hope this is the right thread)

Here's where you change your CD options are, But it may not show as a drive letter and Windows 7 wont show a drive letter until something is mounted (on mine at least.)

post-9524-142870611265_thumb.jpg

Here's the DT info, showing the same info.

post-9524-142870611268_thumb.jpg

56uIzxg.png

Posted

Thanks for the quick reply! Now my SEGA CD games are booting up, rather than just giving me a CD Player Screen. But I'm still having a major problem in Hyperspin with SEGA CD + RocketLauncher:

Whenever I boot up a SEGA CD game from Hyperspin, It first either opens Windows Media Player, playing some music track from the game, or AutoPlay's Little Window. Hyperspin also boots up Fusion, but it reverts to the background behind hyperspin and totally hidden. I can use alt+tab to switch to Fusion then the Game starts up perfectly, in fullscreen.

(I'm also having the Windows Media Player problem in SEGA Saturn too. It plays music/voice while the game is trying to play it's own actual sounds. Same as SEGA CD, except my SEGA Saturn goes fullscreen like it should. It just has Windows Media Player playing crap in the background)

EDIT--->

I thought I might try and mess with the "desktop" settings in the "main settings" section of HLHQ for SEGA CD. ie. Hide Desktop, Hide Frontend, etc. But this didn't help anything. Windows media player is the main problem, I'd say. Then try to get the focus to defult to fusion on boot.

Posted

I had the same issue yesterday but I was getting PowerDVD every time, and what a wind up that was. I knew what the problem was but how to solve it on Windows 7.

So it's auto play that's the trouble, you put in a DVD and a window appears and you may select a program to automatically start when you put that kind of media in your drive.

Same for virtual drives.

So I found this, and for my personal preference I chose to disable it on all drives (option one/3), so downloaded the reg file and double clicked it. No more damn annoying pop up. :)

http://www.sevenforums.com/tutorials/216706-autoplay-enable-disable.html

56uIzxg.png

Posted

Sweet, Thanks a lot! I can't wait to try this when I get off of work tonight. I'm curious about if this will also fix the problem of SEGA CD booting up behind Hyperspin. I hope so, fingers crossed.

Posted

THAT SOLVED IT! Thanks GigaPig! Everyone should download this if they're building a Cabinet (unless you can think of a reason not to install it)

I ran Disable_AutoPlay_for_All_Drives.reg from the site you gave me in the above post. Windows Media Player is no longer starting up, and neither is AutoPlay. Now Fusion is letting SEGA CD games boot up from hyperspin without interruption. And also, Fusion is booting up Fullscreen and in front, like it should.

AND, disabling AutoPlay with Disable_AutoPlay_for_All_Drives.reg, also solved a very similar problem I was having in SSF/SEGA Saturn. So now my SEGA Saturn system is working through hyperspin with no issues whatsoever.

  • 2 weeks later...
Posted

Yup it was autoplay for me too. I just went to control panel I think, and found the autoplay options and turned them off for everything. I don't really use it anyways even in my normal computing. If I insert something into a drive I obviously know that I put it there, so I am going to my computer anyways to check it out. Don't need the computer helping me with that process really haha. Glad you got it all worked out! It's a good feeling when stuff finally works huh!?

  • 7 months later...
Posted

If I may ask about this comment

"Within Fusion make sure it's setup for the correct Daemon Tools Virtual Drive number."

Where would that be set? is there a specific place in HL that you provide the drive letter or within each emulator? I've just now started to look into the emulator files and modules (been at HyperSpin for about 4 days now)

2nd question, i've seen some posts say Daemon Tools DT format is the one way to go, then other posts say SCSI is the only one that will work? Which one is correct?

Posted
If I may ask about this comment

"Within Fusion make sure it's setup for the correct Daemon Tools Virtual Drive number."

Where would that be set? is there a specific place in HL that you provide the drive letter or within each emulator? I've just now started to look into the emulator files and modules (been at HyperSpin for about 4 days now)

Here?

post-9524-142870637263_thumb.jpg

2nd question, i've seen some posts say Daemon Tools DT format is the one way to go, then other posts say SCSI is the only one that will work? Which one is correct?

SCSI.

56uIzxg.png

Posted

Any way to fix stuttering/lagging/choppy bgm when mounting a game on Fusion? It only happens when I use SCSI but if I convert the .ccd/.img/.sub to .iso/.cue and load the .cue directly the audio sounds fine.

Archived

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

×
×
  • Create New...