View Full Version : demul 5.6 dreamcast
azzbarb
09-12-2010, 12:48 PM
has anyone got demul 5.6 for dreamcast up and running in HS yet? :)
chillinwater
09-12-2010, 08:38 PM
There is a working script in the "setting up unofficial systems" sticky or signature for versions 55 and 56.
It doesnt use command line but still works as well as demul will allow.
Its pre setup for 56 but can be changed easily to 55 if needed.
Kodiak
09-13-2010, 07:36 AM
Well I'm mostly there with my loader...I'm mildly struggling with making things appear clean, which ideally should be resolved within the hour.
Past that mostly wanting to add a few more features before release...since the AHK scripts are getting closer to the same level of functionality as my AI scripts.
Okay released my loader...not as much done on it as I had hoped. :(
[Linky] (http://www.emutalk.net/showthread.php?t=49657)
Updated Loader for Demul v0.5.6
Added more Video settings
Added support for Dreamcast CHD's.
Made use of CLI
Removed Decrypted Support as it appears Demul no longer supports this.
What's the advantage of this vs what we have setup in our ahk scripts?
I like as few things as possible in between HS and the emu.
Kodiak
09-16-2010, 08:52 PM
Far as what AI vs AHK? or functionality?
Well if the latest AHK scripts are making use of Demul's CLI then likely not much...but if you guys are still doing ugly sendkey's...leaps and bounds difference even compared to my older script.
chillinwater
09-16-2010, 09:34 PM
Well the beauty of the ugly sendkeys is that everyone here can see them and improve upon them and the scripts.
Im sure we would all love to see the inner workings of autoit and how a professional does it.
I know I would and hopefully learn somthing in the process.
Mr Gorbachev, tear down these walls! and open source your code so We can all see It! :D
We updated the scripts to use CLI and added features that demul doesn't support.
http://www.hyperspin-fe.com/forum/showpost.php?p=86093&postcount=104
Kodiak
09-18-2010, 01:45 PM
@ chillinwater -
Well not going to open up my code for the general public...did that in the past...and well things have changed.
That said I'll let you or djvj look at my code to learn from it and port whatever you want over to AHK that you can.
I'm not looking to supply code for an alternate AI loader...course you guys are welcome to submit code enhancements...but given the nature of my loader being closed I'd certainly understand it if you guys didn't want to submit anything.
@ djvj -
Good deal.
cyberk30
09-19-2010, 02:24 PM
We updated the scripts to use CLI and added features that demul doesn't support.
http://www.hyperspin-fe.com/forum/showpost.php?p=86093&postcount=104
I just tried the script from your link and when I try to launch a game in hyperspin it says cannot find naomimakaron.ini. Where do I get this file from?
That's because Naomi uses multiple emulators and the database is set to use makaron for that game which you don't have it setup in hyperlaunch.
To make it, create that file in your settings folder paste this, just change your paths:
[exe info]
path=C:\HyperSpin\Emulators\Sega Naomi\Makaron T12-5\
rompath=C:\Hyperspin\Games\Sega Naomi\
userompath=true
exe=naomi.exe
romextension=dat,zip
parameters=
searchsubfolders=
pcgame=false
winstate=HIDDEN
hyperlaunch=true
You then need to setup your script for makaron in your hyperlaunch.ahk along with makaron itself.
cyberk30
09-19-2010, 04:08 PM
That's because Naomi uses multiple emulators and the database is set to use makaron for that game which you don't have it setup in hyperlaunch.
To make it, create that file in your settings folder paste this, just change your paths:
You then need to setup your script for makaron in your hyperlaunch.ahk along with makaron itself.
Even though I'm using Demul 5.6
akiles500
09-25-2010, 07:05 AM
I,m testing Sega Dreamcast with images CHD in demul 0.56 and I have a problem,this is the configuration:
Settings.ini:
[exe info]
path = C:\HyperSpin\Emulators\Sega Dreamcast Demul\
rompath = C:\HyperSpin\Emulators\Sega Dreamcast Demul\roms\
userompath = true
exe = demul.exe
romextension = chd
parameters =
searchsubfolders = true
pcgame = false
winstate = HIDDEN
hyperlaunch = true
Hyperlaunch.ahk:
;*********************************SEGA DREAMCAST DEMUL 0.5.6 ***************************
else if (systemName = "Sega Dreamcast Demul" && executable = "demul.exe")
{
hideDesktop()
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%,
;IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
;WinHide ahk_class Shell_TrayWnd
;guiheight:=A_ScreenHeight/9*4
;Gui, +toolwindow -Caption +AlwaysOnTop
;Gui, Color, black
;Gui, Font, S24 Cred, verdanna
;Gui, Add, Text, y%guiheight% W%A_ScreenWidth% H%A_ScreenHeight% Center, Please Wait While Loading... `n`n -Sega Dreamcast- `n "%RomName%
;Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%,
SetWorkingDir, %emuPath%
Hotkey, %exitEmulatorKey%, CloseProcess
SetBatchLines -1
IniWrite, gdrImage.dll, %A_WorkingDir%\Demul.ini, plugins, gdr
IniWrite, %romPath%%romname%%RomExtension%, %A_WorkingDir%\gdrCHD.ini,
Main, imagefilename
;soundplay, %A_ScriptDir%\%SystemName%.wav
Run, %executable%
sleep, 250
send, {lalt}{down}{enter}
sleep, 5000
send, {F8}
Gui Destroy
Process, WaitClose, %executable%
WinActivate, HyperSpin
}
When run in hyperspin it see this message:
http://thumbs.subefotos.com/15dc6e36da9d5339c93be106d51b5670o.jpg (http://subefotos.com/ver/?15dc6e36da9d5339c93be106d51b5670o.jpg)
why give error?
chillinwater
09-25-2010, 11:11 AM
I cant see the picture attachment but I think I see the problem.
[If Running Outside HyperSpin]
Youll have to change the GDRom-plugin settings in demul from:
gdrImage
to:
gdrCHD
[If Running Inside HyperSpin]
The script below has the proper fullscreen command for version 56
(see in script)
and it was setup to run gdrImages (.cdi or other) using this line:
IniWrite, gdrImage.dll, %emupath%Demul.ini, plugins, gdr
-I changed the line seen above, and in the script to:
IniWrite, gdrCHD.dll, %emupath%Demul.ini, plugins, gdr
to theoretically run chd's
I havent tested with these settings running chd's in\out of HS, so I cant offer any other advice.
Hopefully somone else can chime in if needed.
;*********************************SEGA DREAMCAST Demul56***************************
else if (systemName = "SEGA DREAMCAST Demul" && executable = "Demul.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
;\\\optional plain black screen\\\
;Gui +AlwaysOnTop -Caption +ToolWindow
;Gui, color, 0
;Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
WinHide ahk_class Shell_TrayWnd
guiheight:=A_ScreenHeight/9*4
Gui, +toolwindow -Caption +AlwaysOnTop
Gui, Color, black
Gui, Font, S24 Cred, verdanna
Gui, Add, Text, y%guiheight% W%A_ScreenWidth% H%A_ScreenHeight% Center, Please Wait! Now Loading...`n %systemname%`n`n"%RomName%" ;"%romname%"
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%,
;\\\add sounds\\\
;sounds go in demul directory change to .mp3 if desired or specify a directory of sounds for "romname"
;soundplay, %A_ScriptDir%\%systemame%.wav
;soundplay, %A_ScriptDir%\%Romname%.wav
;soundplay, %A_ScriptDir%\%anyname%.wav
SetBatchLines -1
;IniWrite, gdrImage.dll, %emupath%Demul.ini, plugins, gdr ;for image (cdi)
IniWrite, gdrCHD.dll, %emupath%Demul.ini, plugins, gdr ;for CHD
IniWrite, %romPath%%romname%%RomExtension%, %emupath%gdrImage.ini, Main, imagefilename
sleep, 250
Run, %emupath%%executable% ;-run=dreamcast -rom=%Romname%
sleep, 500
send, {lalt}{down}{enter}
sleep, 5000
;send, {F8} ;demul55
send, {ALTDOWN}{ENTER}{ALTUP} ;demul56
Gui Destroy
Process, WaitClose, %executable%
WinActivate, HyperSpin
}
If using, gdrImages (.cdi)
The settings should be just like the "Sega Naomi Demul" settings with the exception of: "rom path" and "romextension"
You should be a able to use the same working NullDc roms\directory
If using gdrCHD, I dont know
akiles500
09-25-2010, 11:34 AM
Chillinwater works perfect with a game but if you select other game it see the game myself.
Example:
I tested the game TRIZEAL and works perfectly but when I go to select other game CANNON SPIKE it see is the same game again TRIZEAL.
Do you understand me?
Kodiak
09-25-2010, 02:07 PM
This is because one must also write the Path + Rom + Extension to the CHD in gdrCHD.ini as well.
[main]
OpenDialog = False
ImageFileName = C:\Dreamcast\Roms\foo.chd
Off Topic...but should I alter the GDI to CHD converter to also support BIN\CUE...really would only be making usable CHD's for use with MESS far as SegaCD, CD-i, TG-CD, NGCD, and maybe a few other systems emulated through MESS...just a thought that popped into my head.
++++
Never mind added support for BIN\CUE already.
akiles500
09-25-2010, 03:36 PM
Kodiak my gdrCHD.ini is this:
[main]
imageFileName = C:\Hyperspin\Emulators\Sega Dreamcast Demul\roms\F355 Challenge - Passione Rossa v1.001 (2000)(Acclaim)(PAL)[!].chd
imageFileName = C:\Hyperspin\Emulators\Sega Dreamcast Demul\roms\Heavy Metal - Geomatrix v1.000 (2001)(Bigben)(PAL)[!].chd
openDialog = false
And is same as before I select a image in Hyperspin and then change the other image and it see same image.
Kodiak
09-25-2010, 04:24 PM
Well imageFileName should only be present once...my guess is that AHK is running into the same issue I have in AI...but with slightly different outcome.
As without my little work around I actually end up with two [main] sections & thus two imageFileName keys...for some reason AHK is fairing slightly better...but still is suffering from the same issue.
If you open the gdrCHD or hell most the Demul INI's after Demul has written to them you'll notice some garbage prior to [main]...I've notified one of the Demul Dev's about this...but thus far it hasn't been dealt with.
The garbage HEX values are EFBBBF which I strip then add back after I make my adjustments.
My AI functions to deal with this:
Func _Fix_File_1( $MyFile )
$File = FileOpen( @ScriptDir & '\' & $MyFile & '.ini' , 16 )
$Line = FileRead( $File )
FileClose( $File )
$Line = _HexToString( StringReplace ( Hex ( $Line, 2 ) , 'EFBBBF' , '' ) )
$File = FileOpen( @ScriptDir & '\' & $MyFile & '.txt' , 2 )
FileWrite( $File , $Line )
FileClose( $File )
FileMove ( @ScriptDir & '\' & $MyFile & '.txt' , @ScriptDir & '\' & $MyFile & '.ini' , 1 )
EndFunc
Func _Fix_File_2( $MyFile )
$File = FileOpen( @ScriptDir & '\' & $MyFile & '.ini' , 16 )
$Line = FileRead( $File )
FileClose( $File )
$Line = _HexToString( 'EFBBBF' & Hex ( $Line, 2 ) )
$File = FileOpen( @ScriptDir & '\' & $MyFile & '.txt' , 2 )
FileWrite( $File , $Line )
FileClose( $File )
FileMove ( @ScriptDir & '\' & $MyFile & '.txt' , @ScriptDir & '\' & $MyFile & '.ini' , 1 )
EndFunc
No idea if this can be done in AHK...but more than likely.
_Fix_File_1( $MyFile )
Is first used to read the whole file, then strip out the offending values, then write the new file string to a TXT file...then move\rename it overwriting the original INI.
I then perform typical INI functions on the new file.
_Fix_File_2( $MyFile )
Then I add back the garbage.
chillinwater
09-25-2010, 05:51 PM
I'm not as smart as you kodiak so I cant do all that stripping and re-adding like you can. :D
The following is like swatting a fly with a sledge hammer but like I said....
So what if we stripped the "gdrCHD.ini" down to the following contents...
made a copy of it and re-named the copy to:
[gdrImage_restore.ini]
[Main]
openDialog = false
Then we add this code to the script:
FileDelete, %emupath%gdrImage.ini
FileCopy, %emupath%gdrImage_Restore.xml, %emupath%gdrImage.ini
Now you'll start with a fresh "gdrImage.ini" each time the script runs.
Oh and shortly I'll add some more code that detects which style rom (either .cdi or chd) and will write the proper plugin info to the demul.ini
[Hyperlaunch.ahk]- Sega Dreamcast Demul56 (CDI and other extensions ONLY ((NOT CHD)))
;*********************************SEGA DREAMCAST Demul56***************************
else if (systemName = "SEGA DREAMCAST Demul" && executable = "Demul.exe")
{
hideDesktop()
SetBatchLines -1
Hotkey, %exitEmulatorKey%, CloseProcess
;\\\optional plain black screen\\\
;Gui +AlwaysOnTop -Caption +ToolWindow
;Gui, color, 0
;Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
WinHide ahk_class Shell_TrayWnd
guiheight:=A_ScreenHeight/9*4
Gui, +toolwindow -Caption +AlwaysOnTop
Gui, Color, black
Gui, Font, S24 Cred, verdanna
Gui, Add, Text, y%guiheight% W%A_ScreenWidth% H%A_ScreenHeight% Center, Please Wait! Now Loading...`n %systemname%`n`n"%RomName%" ;"%romname%"
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%,
;\\\add sounds\\\
;sounds go in demul directory change to .mp3 if desired or specify a directory of sounds for "romname"
;soundplay, %A_ScriptDir%\%systemame%.wav
;soundplay, %A_ScriptDir%\%Romname%.wav
;soundplay, %A_ScriptDir%\%anyname%.wav
FileDelete, %emupath%gdrImage.ini ;for image (cdi)
FileCopy, %emupath%gdrImage_Restore.xml, %emupath%gdrImage.ini
sleep, 500
IniWrite, gdrImage.dll, %emupath%Demul.ini, plugins, gdr ;for image (cdi)
IniWrite, %romPath%%romname%%RomExtension%, %emupath%gdrImage.ini, Main, imagefilename
sleep, 250
Run, %emupath%%executable% ;-run=dreamcast -rom=%Romname%
sleep, 500
send, {lalt}{down}{enter}
sleep, 5000
;send, {F8} ;demul55
send, {ALTDOWN}{ENTER}{ALTUP} ;demul56
Gui Destroy
Process, WaitClose, %executable%
WinActivate, HyperSpin
}
For CHD's,
Strip the "gdrCHD.ini" down to the following contents...
and make a copy of it and re-name the copy to:
[gdrCHD_restore.ini]
[Main]
openDialog = false
[Hyperlaunch.ahk]- Sega Dreamcast Demul56 (for CHD ONLY)
;*********************************SEGA DREAMCAST Demul56***************************
else if (systemName = "SEGA DREAMCAST Demul" && executable = "Demul.exe")
{
hideDesktop()
SetBatchLines -1
Hotkey, %exitEmulatorKey%, CloseProcess
;\\\optional plain black screen\\\
;Gui +AlwaysOnTop -Caption +ToolWindow
;Gui, color, 0
;Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
WinHide ahk_class Shell_TrayWnd
guiheight:=A_ScreenHeight/9*4
Gui, +toolwindow -Caption +AlwaysOnTop
Gui, Color, black
Gui, Font, S24 Cred, verdanna
Gui, Add, Text, y%guiheight% W%A_ScreenWidth% H%A_ScreenHeight% Center, Please Wait! Now Loading...`n %systemname%`n`n"%RomName%" ;"%romname%"
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%,
;\\\add sounds\\\
;sounds go in demul directory change to .mp3 if desired or specify a directory of sounds for "romname"
;soundplay, %A_ScriptDir%\%systemame%.wav
;soundplay, %A_ScriptDir%\%Romname%.wav
;soundplay, %A_ScriptDir%\%anyname%.wav
FileDelete, %emupath%gdrCHD.ini ;for image (CHD)
FileCopy, %emupath%gdrCHD_Restore.xml, %emupath%gdrCHD.ini
sleep, 500
IniWrite, gdrCHD.dll, %emupath%Demul.ini, plugins, gdr ;for image (CHD)
IniWrite, %romPath%%romname%%RomExtension%, %emupath%gdrCHD.ini, Main, imagefilename
sleep, 250
Run, %emupath%%executable% ;-run=dreamcast -rom=%Romname%
sleep, 500
send, {lalt}{down}{enter}
sleep, 5000
;send, {F8} ;demul55
send, {ALTDOWN}{ENTER}{ALTUP} ;demul56
Gui Destroy
Process, WaitClose, %executable%
WinActivate, HyperSpin
}
chillinwater
09-25-2010, 06:34 PM
Combined both scripts from post #18
Now runs all file types in (1) script.
If you dont have "CHD" type roms you can use the same roms you have setup for NullDC running Dreamcast.
For the script to work properly you need to do a couple of things first:
-strip the "gdrCHD.ini" down to the following contents...
make a copy of it and re-name the copy to:
[gdrCHD_restore.ini]
[Main]
openDialog = false
-strip the "gdrImage.ini" down to the following contents...
make a copy of it and re-name the copy to:
[gdrImage_restore.ini]
[Main]
openDialog = false
DONE!
Add to:
save\compile
[Hyperlaunch.ahk]
;*****************************Sega Dreamcast Demul56*********************************
else if (systemName = "Sega Dreamcast Demul")
{
hideDesktop()
SetBatchLines -1
Hotkey, %exitEmulatorKey%, CloseProcess
;\\\optional plain black screen\\\
;Gui +AlwaysOnTop -Caption +ToolWindow
;Gui, color, 0
;Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
WinHide ahk_class Shell_TrayWnd
guiheight:=A_ScreenHeight/9*4
Gui, +toolwindow -Caption +AlwaysOnTop
Gui, Color, black
Gui, Font, S24 Cred, verdanna
Gui, Add, Text, y%guiheight% W%A_ScreenWidth% H%A_ScreenHeight% Center, Please Wait! Now Loading...`n %systemname%`n`n"%RomName%" ;"%romname%"
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%,
;\\\add sounds\\\
;sounds go in demul directory change to .mp3 if desired or specify a directory of sounds for "romname"
;soundplay, %A_ScriptDir%\%systemame%.wav
;soundplay, %A_ScriptDir%\%Romname%.wav
;soundplay, %A_ScriptDir%\%anyname%.wav
if (romextension = ".cdi" || romextension = ".mds" || romextension = ".ccd" || romextension = ".nrg" || romextension = ".gdi" || romextension = ".cue" )
{
FileDelete, %emupath%gdrImage.ini
;FileCopy, %emupath%gdrImage_Restore.xml, %emupath%gdrImage.ini
sleep, 500
IniWrite, gdrImage.dll, %emupath%Demul.ini, plugins, gdr ;for images (cdi,mds,ccd,nrg,gdi,cue)
IniWrite, false, %emupath%gdrImage.ini, Main, openDialog
IniWrite, %romPath%%romname%%RomExtension%, %emupath%gdrImage.ini, Main, imagefilename
sleep, 250
Run, %emupath%%executable% ;-run=dreamcast -rom=%Romname%
sleep, 500
send, {lalt}{down}{enter}
sleep, 5000
;send, {F8} ;demul55
send, {ALTDOWN}{ENTER}{ALTUP} ;demul56
Gui Destroy
Process, WaitClose, %executable%
WinActivate, HyperSpin
}
else if (romextension = ".chd")
{
FileDelete, %emupath%gdrCHD.ini
;FileCopy, %emupath%gdrCHD_Restore.xml, %emupath%gdrImage.ini
sleep, 500
IniWrite, false, %emupath%gdrCHD.ini, Main, openDialog
IniWrite, gdrCHD.dll, %emupath%Demul.ini, plugins, gdr ;for CHD
IniWrite, %romPath%%romname%%RomExtension%, %emupath%gdrCHD.ini, Main, imagefilename
sleep, 250
Run, %emupath%%executable% ;-run=dreamcast -rom=%Romname%
sleep, 500
send, {lalt}{down}{enter}
sleep, 5000
;send, {F8} ;demul55
send, {ALTDOWN}{ENTER}{ALTUP} ;demul56
Gui Destroy
Process, WaitClose, %executable%
WinActivate, HyperSpin
}
}
Kodiak
09-25-2010, 06:49 PM
hmm not sure it's a matter of how smart...but more a limitation of AHK.
That said maybe this thread will get you headed in the right direction with AHK...but even that might be a lost cause. :(
http://www.autohotkey.com/forum/topic58015.html&highlight=hex+string
Okay try this a different way you are looking to replace:
ASC(239)
ASC(187)
ASC(191)
Not sure how you would concatenate the three symbols in AHK to search and replace...then to append later...but that at least gets you a starting point with AHK.
Those are in the correct order...and they are only found (thus far) at the start of the file.
In AI the concatenation would look like so:
Asc( "239" ) & Asc( "187" ) & Asc( "191" )
Not sure if that will help...but its something. :p
chillinwater
09-25-2010, 07:03 PM
Holy crap! That stuff is way over my head!
cheese & rice I can only wish!
Kodiak
09-25-2010, 07:07 PM
doh! reread my prior post...edited it...might make things easier. :)
Here is an image of part of my code...maybe seeing it with syntax highlighting will help.
http://img713.imageshack.us/img713/4367/snap1g.png (http://img713.imageshack.us/i/snap1g.png/)
What the INI file looks like in a typical Text Editor:
http://img26.imageshack.us/img26/363/snap2u.png (http://img26.imageshack.us/i/snap2u.png/)
What the INI file looks like when in HEX mode...you can see the garbage prior to [main]:
http://img819.imageshack.us/img819/2807/snap3o.png (http://img819.imageshack.us/i/snap3o.png/)
I breezed over this and it looks like demul adds garbage at the beginning of the file. So you scripted to remove the garbage? I actually prefer how chillin has the script set to just overwrite the garbage file.
I think it's a lot easier to just save a good file and restore it on each run. Both work, and both are doing writes to the HD, so they are not SSD friendly. But keeping it in ahk is easier for the end user to understand, as AI is very different then ahk (btw I do prefer AI to ahk, but HS uses ahk and it's good enough).
Basically Kodiak, that's overkill to just remove some garbage when you can just rewrite the file entirely in much less script. You must love scripting :pcguru:
Kodiak
09-25-2010, 10:29 PM
Yeah I scripted the removal and appending of garbage.
chillinwater's method works, however I see it as a stopgap. It works for now...but as more stuff gets added to Demul which seems to be likely...such a stopgap will likely start to show its short comings more and more. However time will tell if my concerns are warranted or not.
hmm I don't know about AHK being easier to understand or read...I guess it all depends on ones own past experiences.
hmm I don't think what I've done is overkill as much as forward looking.
Hehe I don't know about loving to script so much as I'm very lazy...so I automate as much shit as I can. :)
akiles500
09-26-2010, 12:08 AM
Chillinwater I have tested your last configuration and nothing it see always the same game
Here you go a video:
byjzgvZPb5I
chillinwater
09-26-2010, 07:25 AM
@akiles 500, Need more info.
-can I assume that both of those are chd roms your trying to run?
-What are their extensions?
-can you setup 3 or 4 or more different roms to get a better idea to see if it plays the same game all the time?
-what are the advantages of CHD roms? Do they use mame CHDs
Otherwise I have it running perfectly with multiple games using several different romextensions as shown on post #19 (none were CHD however).
There must be somthing else in the docmentation or setup and configuration of "CHD"s" that were missing.
When outside Hyperspin,
can you run different "CHD's"?
If so look through all the config files after each different game is run and see what the differences are, post the results and see if we can come up with somthing.
-(looking for changes in the settings from demul and when those settings are changed )
When inside Hyperspin,
-(is HyperLaunch killing the changes or saves by Demul like it does with Mame? Also verify that the script is writing changes properly)
Also the splash screen looks different for both games, like there is a different resolution for each.
Whats up with that? Is it a "pal" issue? Is it a clue somehow?
@kodiak, Until I can wrap my head into AI, if demul changes we can change the ahk script or add extra info to the "restore" configs as needed. I think you would have to change your AI script as well.
Demul is always significantly different when a new version comes out, so I always expect and (somtimes look forward) to those changes.
chillinwater
09-26-2010, 07:40 AM
Oh I may have just thought of somthing. how shocking!
I have to find a chd rom to test.
How do I make one?
@djvj, is the "filedelete" not user friendly with SSD because of speed or permissions or what? (pondering another work around)
chillin, why do you have to filedelete? The script can just overwrite a file w/o deleting it first. That's what I do in the controls script for demul.
chillinwater
09-26-2010, 08:50 AM
In some scripts Ive had trouble overwriting files for unknown reasons. (yes I checked the file\write protection status and syntax of the script).
Maybe it was a timing issue.
So since,
-akiles500 had (2) roms listed in his gdrImage.ini -file which was probably causing him problems. (see post# 16)
and
-I cant predict the scripts behavior on other user systems,
I chose to alleviate any of those or other potential problems, by using the fly\sledgehammer method "filedelete" to start fresh with each run thru.
The (2) "inwrites" in the script also work like "filecopy". They will create the file even if it doesnt exist.
So, if it works better for you to just use "filecopy" then go for it. (its still in the script just ;disabled)
Also, you wont need the "iniwrite, false..." command either if thats the case.
akiles500
09-26-2010, 08:51 AM
Chillinwater have a MP
The two games have extension .chd
Cheers
chillinwater
09-26-2010, 09:04 AM
Chillinwater have a MP
What is this you speak of :)
oh I get it now PM :D
Glad it wasnt a BM :embarassed:
Im acquiring chds now, might be a while then Ill be able to test out the chd problem.
Kodiak
09-26-2010, 12:48 PM
@ chillinwater -
Well if you have some GDI dumps you can create them your self.
[Linky] (http://www.emutalk.net/showthread.php?t=51502)
akiles500
09-26-2010, 01:06 PM
Kodiak that program I sended to chilliwater this afternoon for that convert any images gdi to chd.
Chillinwater I use images with extensions chd because are more small that gdi images.
Anyways here is an example using "Crazy Taxi v1.004 (1999)(Sega)(NTSC)(US)[!][6S 51035]"
zip = 105mb
chd = 118mb
gdi = 1.10gb
So while not as small as a GDI thats zip compressed...it's certainly smaller than the uncompressed GDI.
You will of course have to use the gdrCHD plugin.
Cheers
chillinwater
09-26-2010, 01:42 PM
ok I converted (1) rom. it was a bad rom though and need to find others.
but even after testing with a bad rom, I did discover somthing I needed to change in the script.
(a new file reference for the chd portion of the script, "gdrCHD.ini")
It didnt exist in my directory before I was able to test the bad rom.
If I would have seen this first I might have figured it out quicker! Doh!
Quote from kodiak
This is because one must also write the Path + Rom + Extension to the CHD in gdrCHD.ini as well.
So, the script has been updated on post #19 give it another shot!
Just like we did on post #18 for "gdrImage_restore.ini"
strip the "gdrCHD.ini" down to the following contents...
make a copy of it and re-name the copy to:
[gdrCHD_restore.ini]
[main]
openDialog = false
and either:
- disable the (2) "filedelete" commands by adding a ";" to ;filedelete
and
-enable the (2) ";filecopy" commands by removing the ";" from filecopy
or
leave everything else alone.
guyverjay
09-26-2010, 01:52 PM
is demul better than null dc then?
If so which games does it run better?
chillinwater
09-26-2010, 02:20 PM
Dont know yet.
Demul is for naomi and beats out Makaron for naomi but no one has bench marked them yet for dreamcast.
And no one wants to benchmark Demul unless it will run in HS.
So here we are :)
Kodiak
09-26-2010, 02:44 PM
@ akiles500 -
hmm you may have phrased that a little wrong...or at least I read it wrong. That app Only converts GDI, BIN\CUE + WAV...no other disc formats are supported. I should know; Kodiak = Nologic :) *hides*
@ guyverjay -
Atomwave:
Demul
Naomi:
nullDC <= Demul 5.5 < Makaron <= Demul 5.6
Naomi 2:
Demul
Dreamcast:
Demul 5.5 < NullDC <= Demul 5.6 < Makaron
My view...course with Demul being able to run DC with CHD's is very pimp. :)
akiles500
09-26-2010, 11:31 PM
Mi view is:
I have tested a lot of games in demul for dreamcast and work all.
Chillinwater I have tested the new configuration and nothing.
I send you two images in chd for you test OK
Cheers
akiles500
09-27-2010, 07:12 AM
Chillinwater there is an error testing with #19:
error at line 416
Line Text:PleaseWait!Now Loading..
Error this parameter contains a variable name missing its ending percent sign.
The program will exit
chillinwater
09-27-2010, 07:37 AM
[edit]-temporarily removed the combined script from post #19 to avoid confusion!
It ran cdi fine but not Chd.
You might try the test script(s) on post #18
I updated it with (2) scripts, (1) for,
-(CHD) only
and the other for,
-(all other file extensions)
You dont need both!
both scripts work on post #18 and load different games.
Im having trouble combining both scripts and making that work on post #19.
That option for (1) script to have the ability to run ALL romextensions may not be needed but I always like options.
akiles500
09-27-2010, 07:58 AM
Chillinwater now yes works,you are a CRACK.
It works with this script:
;*********************************SEGA DREAMCAST Demul56***************************
else if (systemName = "Sega Dreamcast Demul" && executable = "demul.exe")
{
hideDesktop()
SetBatchLines -1
Hotkey, %exitEmulatorKey%, CloseProcess
;\\\optional plain black screen\\\
;Gui +AlwaysOnTop -Caption +ToolWindow
;Gui, color, 0
;Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
WinHide ahk_class Shell_TrayWnd
guiheight:=A_ScreenHeight/9*4
Gui, +toolwindow -Caption +AlwaysOnTop
Gui, Color, black
Gui, Font, S24 Cred, verdanna
Gui, Add, Text, y%guiheight% W%A_ScreenWidth% H%A_ScreenHeight% Center, Please Wait! Now Loading...`n %systemnane%`n`n"%RomName%" ;"%romname%"
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%,
;\\\add sounds\\\
;sounds go in demul directory change to .mp3 if desired or specify a directory of sounds for "romname"
;soundplay, %A_ScriptDir%\%systemame%.wav
;soundplay, %A_ScriptDir%\%Romname%.wav
;soundplay, %A_ScriptDir%\%anyname%.wav
;FileDelete, %emupath%gdrImage.ini ;for image (cdi)
;FileCopy, %emupath%gdrImage_Restore.xml, %emupath%gdrImage.ini
FileDelete, %emupath%gdrCHD.ini ;for image (CHD)
FileCopy, %emupath%gdrCHD_Restore.xml, %emupath%gdrCHD.ini
sleep, 500
;IniWrite, gdrImage.dll, %emupath%Demul.ini, plugins, gdr ;for image (cdi)
;IniWrite, %romPath%%romname%%RomExtension%, %emupath%gdrImage.ini, Main, imagefilename
IniWrite, gdrCHD.dll, %emupath%Demul.ini, plugins, gdr ;for image (CHD)
IniWrite, %romPath%%romname%%RomExtension%, %emupath%gdrCHD.ini, Main, imagefilename
sleep, 250
Run, %emupath%%executable% ;-run=dreamcast -rom=%Romname%
sleep, 500
send, {lalt}{down}{enter}
sleep, 5000
;send, {F8} ;demul55
send, {ALTDOWN}{ENTER}{ALTUP} ;demul56
Gui Destroy
Process, WaitClose, %executable%
WinActivate, HyperSpin
}
Why give error Chillinwater?
Thanks
chillinwater
09-27-2010, 08:05 AM
Chillinwater now yes works,you are a CRACK.
Yes, a Cracka Ass Cracka!
Why give error Chillinwater?
What error? This error?
Chillinwater there is an error testing with #19:
error at line 416
Line Text:PleaseWait!Now Loading..
Error this parameter contains a variable name missing its ending percent sign.
The program will exit
If it was the above, then that error was a web editor page error (extra space). I fixed it but then removed the script completely for further testing!
Its been reposted now.
chillinwater
09-27-2010, 08:57 AM
The combined script now works for All file types on post #19
This is the script you want for now. Till improved upon!
akiles500
09-27-2010, 11:21 AM
Thank you very much Chillinwater
chillinwater
09-28-2010, 08:14 AM
No problem!
So I have a question about Dreamcast in general.
For any emu, when the game loads and it goes into the Dreamcast Main screen and not the game,
Is that due to a bad rom or how do you get to the rom from there?
I may be able to automate that procedure if I knew the procedure.
If its a bad rom well then nevermind.
Kodiak
09-28-2010, 12:22 PM
If one arrives at the default DC screen it typically means one of two things...the rom is bad or the rom wasn't loaded. However you can also arrive at that screen because the clock\region\... aren't set in BIOS. The clock I think is now handled automatically in Demul & Makaron...I'm not sure about NullDC.
Now it's important to note that a bad rom in the case of a CDI image...may not actually be bad...as in won't work on actual hardware...just some of the loaders used on CDI images don't behave well with emulators currently.
hmm I'm rambling. :p
chillinwater
09-28-2010, 05:03 PM
Thanks kodiak,
another general question actually its more with demul,
Using version 56 after configuring vmu I now have a small animated second window screen that shows the led of the controller which is pretty cool.
(I havent seen this in any other emu)
Now my question is, is there a way to display that animated led screen on a second mini-monitor?
It gets hidden when you go fullscreen on (1) monitor which is also ok but since I have a mini screen on my cab it would cool to display it.
Kodiak
09-28-2010, 05:23 PM
Off hand I would imagine...however I can't be certain since my power supplies on my two lcd's blew...so I'm back to using just one old 20" CRT...but yeah you should be able to grab the window by its title or class and move it where you want it...at least in AI...and probably in AHK.
chillinwater
09-28-2010, 07:17 PM
I meant in the demul config.
I hadnt even thought about scripting it but thats a great idea!
hmm!
Kodiak
09-28-2010, 07:56 PM
nah there isn't anything in the config at present so scripting is the only option.
akiles500
09-29-2010, 12:43 AM
I need to convert some images with extesion .CDI to .GDI.
Anyone know any program to do this conversion.
Kodiak
09-29-2010, 01:04 AM
While a tool chain could be made to do this...there is no sense in doing the conversion. GDI offer's nothing over CDI as a file format.
The only thing GDI offer's over CDI is that dumps done in GDI format are completely unaltered original media.
If you want GDI dumps...then dump your own disc's or go hunting for them...while they may not be as available as CDI images...they not rare anymore ether.
If you are looking as to who to match dumps to Redump or Tosec...it doesn't really matter...Redump is slightly more accurate...but in a largely useless way...as they preserve the lead in data...which is skipped by actual hardware do to it's own offset.
So academically Redump is better...but in real use they are the same.
akiles500
09-29-2010, 01:15 AM
Kodiak I have some images that used for NullDC in format .CDI and now I want to use for Demul.
I need convert of .CDI to .GDI and then convert of GDI to CHD.
Do you undestand me now?
I won´t download other time all images that I have of .CDI to .GDI.
Kodiak
09-29-2010, 08:46 AM
Yeah I kind of guessed that is where you were going...but I won't put together a tool chain in which to do this conversion. Sorry.
Your CDI images will work generally fine with Demul...if they don't...they wouldn't work any better as GDI or CHD.
If you are just looking to save disk space...why not just convert them to compressed MDF\MDS which I believe Demul and the other Emu's support via Daemon Tools. Which in all likely hood would compress better than CHD to boot.
akiles500
09-29-2010, 11:45 AM
Chillinwater I have tested the script of post#19 for use with some images but give error:
ERROR AT LINE 424
Line Text:(romextension = ".cdi" || romextension = ".mds" || romextension = ".ccd" || romextension = ".nrg" ||
Error missing")"
The program will exit
The Sega Dreamcast Demul.ini is this:
[exe info]
path = C:\HyperSpin\Emulators\Sega Dreamcast Demul\
rompath = C:\HyperSpin\Emulators\Sega Dreamcast Demul\roms\
userompath = true
exe = demul.exe
romextension = chd,cdi,gdi,nrg,
parameters =
searchsubfolders = true
akiles500
10-19-2010, 12:30 PM
I,ve tested some times and give this error:
ERROR AT LINE 424
Anyone have working demul for dreamcast with some extensions .chd and .cdi together
chillinwater
10-19-2010, 02:35 PM
Sorry for the delay Akiles500. Ive been away for awhile.
the script on post #19 should work for both .chd and .cdi.
goto post #19 or in your Hyperlaunch and look for this line It should be all in one code line although its (2) lines on the web page:
if (romextension = ".cdi" || romextension = ".mds" || romextension = ".ccd" || romextension = ".nrg" || romextension = ".gdi" || romextension = ".cue" )
Make sure there are no extra spaces or line breaks between lines.
[edit]
I edited Post #19 to remove the extra space.
Give Post #19 another shot and make sure you create both restore files explained there.
akiles500
10-20-2010, 07:23 AM
Chillinwater I send in MP the files for take a look because I give this error:
Error:ELSE with no matching IF
Line #
---> 465:ELSE
Cheers
chillinwater
10-20-2010, 07:45 AM
Ok my bad. I re-edited the script on post #19 to remove the ";" from this line:
;*******Sega Dreamcast Demul56********
;else if (systemName = "Sega Dreamcast Demul")
if that doesnt fix the problem:
-check that all other systems in the script start with "else if" except the first one which should start with "if"
(its atari 5200 in the official script)
-see this post for a "if/else if" reference:
http://www.hyperspin-fe.com/forum/showpost.php?p=76835&postcount=99
akiles500
10-20-2010, 10:40 AM
Now works perfect,thank you very much.
This configuration is more completed for demul of dreamcast because I have some images with extension cdi and others with extension chd.
Cheers
donnei1979
12-07-2010, 04:34 PM
This works great, were can i extend the time for the please wait screen, and thanks
Should be in the setting.ini
chillinwater
12-08-2010, 05:10 PM
@Donnie1979, If your talking about the working script on post #19 there are no settings.ini created for "please wait" yet.
There are two many games with different naming conventions for me to make one at this time. (I dont have the time anymore unfortunately)
Once a final naming convention is settled upon the settings.ini with "screen timeouts"
could be made manually similar to the script and settings that I created and Djvj modified\enhanced in this thread:
Naomi Performance\Benchmark Testing! (http://www.hyperspin-fe.com/forum/showthread.php?t=4988) for demul56 (for naomi and atomiswave)
and then we'd have to add a few lines to the script.
However you can still change the "please wait" screen Globally (same timeout for all games)
in two different locations of the script that look like this below.
(These lines are related to the timeout. Just increase 5000 (5secs) to whatever.)
sleep, 5000
;send, {F8} ;demul55
send, {ALTDOWN}{ENTER}{ALTUP} ;demul56
Gui Destroy
@ Djvj, did you modify the script and create a settings.ini for Demul56 and Dreamcast and post it somwhere?
Hunk_4TH
01-09-2011, 08:25 PM
Is there a way to make a HL2.0 module out of this?
Hunk_4TH
01-09-2011, 10:41 PM
Actually scratch that. I can't seem to get this to work. I put the script in the HL ahk then re-compiled but upon trying to launch a game it does nothing no errors or anything. Did I do something wrong?
*Edit* Ok I change search sub path to false now it loads up like it should but it's not going fullscreen it's in the Demul window but half the screen is off lol.
Hunk_4TH
01-10-2011, 12:24 PM
Tried it again now I get nothing. It doesn't even try to load the emu :rofl: Here is my ahk HL
http://pastebin.com/98c4Zdn4
And my Sega Dreamcast settings
[exe info]
path=E:\Emulators\Atomiswave\
rompath=E:\Emulators\Atomiswave\roms\Dreamcast\
userompath=true
exe=Demul.exe
romextension=chd
parameters=
searchsubfolders=false
pcgame=false
winstate=HIDDEN
hyperlaunch=true
[filters]
parents_only=false
themes_only=false
wheels_only=false
[themes]
use_parent_vids=true
use_parent_themes=false
animate_out_default=false
reload_backgrounds=false
[wheel]
alpha=.15
small_alpha = 1
style=normal
speed=high
pin_center_width=500
horz_wheel_y=512
vert_wheel_position=right
y_rotation=center
norm_large=360
norm_small=230
vert_large=400
vert_small=240
pin_large=500
pin_small=200
horz_large=240
horz_small=150
letter_wheel_x=800
letter_wheel_y=384
text_width=700
text_font=Style4
small_text_width=260
large_text_width=400
text_stroke_size=6
text_stroke_color=0x000000
text_color1=0x00BFFD
text_color2=0xFFFFFF
text_color3=0x00BFFD
color_ratio=139
shadow_distance=0
shadow_angle=45
shadow_color=0x000000
shadow_alpha=1
shadow_blur=0
[pointer]
animated=true
x=975
y=384
[video defaults]
path=C:\HyperSpin\Media\Sega Dreamcast\Video\
[sounds]
game_sounds=true
wheel_click=true
[navigation]
game_jump=50
use_indexes=false
jump_timer=400
remove_info_wheel=false
remove_info_text=false
use_last_game=false
last_game=Soul Calibur (USA)
random_game=false
start_on_favorites=false
[Special Art A]
default=false
active=true
x=512
y=720
in=0.4
out=0.4
length=3
delay=0
type=normal
start=bottom
[Special Art B]
default=true
active=true
x=512
y=740
in=0.4
out=0.4
length=3
delay=0
type=fade
start=none
[Special Art C]
active=true
x=512
y=384
in=0
out=0
length=3
delay=10
type=fade
start=none
[Game Text]
game_text_active=true
show_year=true
show_manf=true
show_description=true
text_color1=0xffffff
text_color2=0x0099cc
stroke_color=0x000000
text_font=Style1
text1_textsize=26
text1_strokesize=7
text1_x=32
text1_y=610
text2_textsize=36
text2_strokesize=8
text2_x=30
text2_y=640
Hunk_4TH
01-10-2011, 03:12 PM
I figured it out. Had to change system name from Sega Dreamcast Demul to Sega Dreamcast then had to mess with some resolution settings in Demul.
marcus600
02-13-2011, 01:38 AM
hi , i m ready all your post concerning Dc emulator with Demul
when i start CDI / GDI game it say invalid exetention (because i think it s not in zip)
what i have to do in demul ? or hyperHQ ?
btw , why using Demul for dreamcast emulator when nullDc is officialised for hyperlaunch ?
volumetric
02-13-2011, 04:38 AM
btw , why using Demul for dreamcast emulator when nullDc is officialised for hyperlaunch ?
not sure of the exact reasons, but im guessing at the time of hyperspin's release, nulldc was the best emulator for Dreamcast. To be honest im not sure if demul is the better emulator, but im pretty sure the compatibility is as high or higher then nulldc. Also demul runs naomi and atomiswave arcade games, which may make it more popular with some people. Keep in mind, im having a stab in the dark here, i haven't actually set up dreamcast on my new HS yet. Because most of my fav DC games are now running via naomi, so Ive been procrastinating on that one :)
Also, while im not very familiar with this script, i'd hazard a guess that your extention needs to be changed in HyperHQ (under wheel settings)
bent98
09-15-2011, 04:39 AM
I trying this DC emulator on my win 7 64bit box. Sound stutters alot when playing games. Is there a plug in or a way to fix that? I am running Gtx 460 and have i7 o/c processor so I know its not the computer.
I tried different video plugins and also buffer settings on sound.
chillinwater
09-15-2011, 07:04 AM
I havent had too much stuttering using chd roms on a vista 32 bit
some yes. Havent been benchmarking lately though either.
-which demul version are you using? 56? 57-beta?
while in demul, play with:
- \config\sound (you already maxed out the buffer at 4096?)
maybe try:
[x] - cdda disable
[x] - dsp disable
Ive never played with them so dont know if the will help.
- \config\plugins\sound plugin\multithreaded spu mode (on-off)
There are no other official demul sound plugins that I know of...but maybe ther is somthing else that can be used.
- \config\DC Bios (4 different bios to choose from) Im on v1.01d (1998,1999)
- \config\Dreamcast
[x] - timehack
[x] - auto region
[x] - Ntsc
I dont know if Demul 57 final version is going to give Dreamcast any love or if they put out a 64-bit version like they did with demull 55 but that might be the ticket
.....Answering some older posts.
when i start CDI / GDI game it say invalid exetention (because i think it s not in zip)
-roms cdi and gdi should NOT be zipped
Is there a way to make a HL2.0 module out of this?
-there are some HL 2.0 modules in the the "HL 2.0 released for testing"
and the
"Naomi Performance and Benchmark" threads.
btw , why using Demul for dreamcast emulator when nullDc is officialised for hyperlaunch ?
-NullDC is better than Makaron and slightly better than Demul.
-Demul has the ability to run chd's also which can be converted from gdi's
-The ability to get multiple emulators even if slightly inferior and not official, for now gives the user tinkering OPTIONS!!
Hey dudes,
I'm triying to run demul 5.6 with HL 2.0 but the BBB's script doesn't kill the loading screen.... the emu and game runs with the loading screen over, if i try to delete loading screen the games run correctly (with those emu windows and gui of course) but doesn't start out at full screen.
I've trying to change parameters like that send alt+enter to swith to full screen and with the djvj script too, but all the scrips have tons of parameters and commands, etc. I don't want to use parameters like that because i only want to run some atomiswave and naomi games, both can have different button configs directly by demul emu.
Is there any simple module to run games in demul? i think my problem is that extensive commands, etc. parameters in the script.:questionmark:
Any help would be great :o
Regards.
You kind of have to use my script and take the time to setup the buttons. One button config does not work for all the different naomi games. It will not be an enjoyable experience. Until demul supports seperate button configs for each game, my script is the only solution to having a complete setup that works the way you want it for every game.
After I get done with my pinball scripts, I'm going back to work on naomi to add more features and make the script easier to use.
You kind of have to use my script and take the time to setup the buttons. One button config does not work for all the different naomi games. It will not be an enjoyable experience. Until demul supports seperate button configs for each game, my script is the only solution to having a complete setup that works the way you want it for every game.
After I get done with my pinball scripts, I'm going back to work on naomi to add more features and make the script easier to use.
Thanks Djvj, i'll try it :viking: :)
RobbieH
02-24-2012, 10:43 AM
Sorry to bump an older thread, but I'm just having the worst luck setting up Sega DC. tried nulldc, had an issue where I'd hear the game's audio, but no video. Made a post here, but nothing came out of it.
Now trying demul. I have everything set up and it works properly outside of hyperspin.
Ok..using latest hyperlaunch. The ahk script on the hyperlist page for the 3 emulators didn't seem to work. i had the required settings.ini in there and set the paths correctly, but it was one problem after another. Then I found this post:
http://www.hyperspin-fe.com/forum/showpost.php?p=99852&postcount=138 and used the script from there. here is the ahk script i have in the sega dreamcast modules folder:
;----------------------------------------------------------------------------
; Sega Dreamcast Demul
; Demul 56
; by chillinwater
; .1 beta
; Required Steps for Setup Prior to running:
; http://www.hyperspin-fe.com/forum/sh...&postcount=138
;----------------------------------------------------------------------------
;hideDesktop()
SetBatchLines -1
;\\\optional plain black screen\\\
;Gui +AlwaysOnTop -Caption +ToolWindow
;Gui, color, 0
;Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
;\\\Please Wait Loading Screen change size,color,font,background color,what you want to say\\\
IniRead, Long_RomName, %emupath%settings.ini, %Romname%, Long_RomName
;WinHide ahk_class Shell_TrayWnd
guiheight:=A_ScreenHeight/9*4
Gui, +toolwindow -Caption +AlwaysOnTop
Gui, Color, black
Gui, Font, S24 Cred, verdanna
Gui, Add, Text, y%guiheight% W%A_ScreenWidth% H%A_ScreenHeight% Center, Please Wait! Now Loading...`n %systemname%`n`n"%RomName%" ;"%romname%"
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%,
;\\\add sounds\\\
;sounds go in demul directory change to .mp3 if desired or specify a directory of sounds for "romname"
;soundplay, %A_ScriptDir%\%systemame%.wav
;soundplay, %A_ScriptDir%\%Romname%.wav
;soundplay, %A_ScriptDir%\%anyname%.wav
if (romextension = ".cdi" || romextension = ".mds" || romextension = ".ccd" || romextension = ".nrg" || romextension = ".gdi" || romextension = ".cue" )
{
FileDelete, %emupath%gdrImage.ini
FileCopy, %emupath%gdrImage_Restore.xml, %emupath%gdrImage.ini
sleep, 500
IniWrite, gdrImage.dll, %emupath%Demul.ini, plugins, gdr ;for images (cdi,mds,ccd,nrg,gdi,cue)
IniWrite, false, %emupath%gdrImage.ini, Main, openDialog
IniWrite, %romPath%%romname%%RomExtension%, %emupath%gdrImage.ini, Main, imagefilename
sleep, 250
Run, %emupath%%executable% -run=dc -rom=%Romname%
sleep, 4000
send, {ALTDOWN}{ENTER}{ALTUP} ;demul56
Gui Destroy
Process, WaitClose, %executable%
WinActivate, HyperSpin
exitapp
}
else if (romextension = ".chd")
{
FileDelete, %emupath%gdrCHD.ini
;FileCopy, %emupath%gdrCHD_Restore.xml, %emupath%gdrImage.ini
sleep, 500
IniWrite, false, %emupath%gdrCHD.ini, Main, openDialog
IniWrite, gdrCHD.dll, %emupath%Demul.ini, plugins, gdr ;for CHD
IniWrite, %romPath%%romname%%RomExtension%, %emupath%gdrCHD.ini, Main, imagefilename
sleep, 250
Run, %emupath%%executable% -run=dc -rom=%Romname%
sleep, 4000
send, {ALTDOWN}{ENTER}{ALTUP} ;demul56
Gui Destroy
Process, WaitClose, %executable%
WinActivate, HyperSpin
exitapp
}
CloseProcess:
process, Close, %executable%
return
I also changed the gdrimage.ini to
[Main]
openDialog = false
and made a copy of it and renamed to gdrimage_restore.ini.
I couldnt do this with gdrCHD because i dont have any chd files, so i cannot configure the chd plugin. all my games are gdi and cdi.
Anyways - when I go to launch it with hyperspin, i get a black screen with a "Please wait now loading" screen. Then my pc makes a ding sound and it just returns to hyperspin.
Please...Ive been trying for a few weeks to get the damn DC working!!!
I doubt you're going to get much support on this script. You are better off fixing the problems you had with my 3 emu module. Many are using it now and I'm sure someone can help with it. It is the only solution to get every DC game working.
RobbieH
02-24-2012, 02:14 PM
Ok djvj thanks. I re-did everything and pretty much have it all working, finally! Of the games I tested, a few of them...like House of the Dead II and Confidential Mission dont run because nullDC keeps crashing. Says the cause is BEX error or something like that. But I dont think that's script related, so I'll look into it tomorrow and see whats up. If need be, I'll make a post elsewhere.
Thanks again.
Foxgod
02-27-2012, 01:14 AM
Nice, i am going to try the 3 module script tonight as well.
Hopefully itl work, so far i havent had much luck yet with Demul/Atomiswave, its the only emulator i cant get to launch trough hyperspin, hopfully tonight that pain will be over :)
bakito666
03-21-2012, 11:59 PM
I' m sorry to bother people here but I'm trying for days now to make demul 56 to start properly in hyperspin and at last I succeed BUT now I can't exit it...I push esc,it comes back to hyperspin ( but without focus) I can still hear the game behin then demul crash...I use the demul 56 module ( the other one keep asking me for a settings.ini I can't find in the forum...:(..
any ideas would be great!!!
cheers
at last it work...I forgot the xml database list...
for some game it ask me makaron.ini...can someone explain how to deal with that ( i have makaron but not quite familiar with it!!)
cheers