Dosbox non-cd games idea

This is a forum section for ideas howto implement and running DOS games in ECC (using DOSBox), this forum wil be temporally here until the problem is solved.
marlborojacl
Posts: 24
Joined: 28 Jan 2009, 20:42

Dosbox non-cd games idea

Unread post by marlborojacl » 05 Feb 2009, 11:13

I googled a bit and thought this: why not use hard disk images for dosbox games? We could pack up games and use an ecc script to automatically mount the image in dosbox. About mutiple executables, maybe a txt inside the image could keep track of proper launch or setup commands. The only flaw i see is keeping image crc when saving games, but maybe we could use a special image only for savegames.

Zerosan
ECC Support
Posts: 126
Joined: 21 Apr 2007, 19:37
Location: Germany / Hamburg

Re: Dosbox non-cd games idea

Unread post by Zerosan » 06 Feb 2009, 15:37

There was something in dosbox, that could take care of saving all changes to a different file/folder than the actual gamedir.

As for the hard drive images, well, not quite sufficent, as the setting management isn't something that can be done inside of the current ecc structure.
We need some custom emulator setting stuff for different games.
No-Intro Image Packages for Ecc:
SNES Images | GB Images
Gameboy Advance and Gameboy Color in progress.

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9059
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Dosbox non-cd games idea

Unread post by Phoenix » 07 Feb 2009, 09:38

Hello guys,

Since i am also a old dos game fan! :yes_head: , i was also thinking how to give the best support in ECC, this is my idea:

1. ZIP the games and parse games as arcade (like scummvm)
2a. Enter startup information in the FIELD ID like , so the script nows what the file is to start the game.
2b. Enter config information in the FIELD ID like [c=setup.exe], so the script nows what the file is to configure the game.
2c. so the FIELD ID looks like this: [c=setup.exe]
3. When running the game => extract all files to folder (like scummvm)

Well... what do you think?
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

User avatar
Vicman
PLATINUM member
Posts: 1233
Joined: 17 Jun 2007, 16:12
Location: Germany,Bochum

Re: Dosbox non-cd games idea

Unread post by Vicman » 07 Feb 2009, 10:03

I do also collect the old dos-games.
At this time, i use DFend-Reloaded to archive & play the old good Games.....
If there is a way, to play/archive them with/in ECC, that would be fine :hearteyes:
imagepacks:
Done: Vic20, N64, Philips VG-5000 G7000 G7400, SordM5, Amstrad GX4000, Enterprise 64/128
Progress: Atari 8bit, Dosbox, Exelvision EXL 100
Vicman's eCC-Clips on You Tube

Zerosan
ECC Support
Posts: 126
Joined: 21 Apr 2007, 19:37
Location: Germany / Hamburg

Re: Dosbox non-cd games idea

Unread post by Zerosan » 07 Feb 2009, 13:17

There is a plugin for dosbox that enables the direct mounting of zip files as drives.
Writing is not possible with this, changes are saved somewhere else.

Extracting is an bad idea, I have games like Command and Conquer in there, and that takes up a few more mb :P

Actually, I also have Tilt! (Hyper 3d pinball), that takes up about 100mb.

So, extracting would make it feel weird.
No-Intro Image Packages for Ecc:
SNES Images | GB Images
Gameboy Advance and Gameboy Color in progress.

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9059
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Dosbox non-cd games idea

Unread post by Phoenix » 07 Feb 2009, 19:48

Hi Zerosan,

Can you tell us more about this plugin?, how to install & use ect....
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

marlborojacl
Posts: 24
Joined: 28 Jan 2009, 20:42

Re: Dosbox non-cd games idea

Unread post by marlborojacl » 07 Feb 2009, 23:42

I'm currently developing something for dosbox. I mada a script that handles zip files in this way: a folder inside ecc-user/dosbox is used as DOS C drive. Everytime it runs, it looks for a folder named like the zip file. If such folder isn't found, the zip inside rom directory (wich contains dos game files) is extracted on appropriate folder, and the scripts ask, with a FileOpenDialog, to select two executable files (one for setup and one to launch the game), and subsequently creates two dosbox configurations files, one to launch setup and one for the game itself. If such directory is found, the game is already installed, and the launch game conf is passed to Dosbox. To allow reconfiguration, if metaid field is filled with "reconfig", the configuration part is done again, if "setup" the setup conf is otherwise executed. Below is the script, but i'm making some changes right now, to add the cd mounting scenario (for my preciousss Alone in the Dark triology box) and a dosbos.conf editing gui. About that, i'm playing a bit to adapt DOSBox Config Editor 0.1.3b, that is a simple gui to edit dosbox.conf files.
A question finally, does anybody knows about a free iso mounting software that is compatible with .nrg and .mds (hate proprietaries)? would be useful for cd mounting!
Besides, i personally use Pismo File mount for zipped scummvm resources, no frame drops with COMI 1280x800 on my sony fz21s, so i expect no performance hits on other games
Spoiler: show

Code: Select all

; Platform      : DosBox
; Script for      : DosBox 0.72
; Script version   : v1.0.0.2
; Last changed      : 2009.02.06
;
; Author: E.Canepa
;
; NOTES:
; - This script only works for 
; 1) ZIPPED (ZIP) DOS games with executables ready for configuring and launching game (no installation on HD)
; 2) CD Images (like AITD cd edition, Shadow of the Comet CD, etc..). It requires Pismo File Mount manager
; freely avaible at www.pismotechnic.com and currently supports only ISO images!
;
; ==============================================================================
; You need to implent this block in every script, this changes the workfolder to
; the folder where this script is executed, and loads the 'eccScriptSystem' script.
FileChangeDir(@ScriptDir)
#include "..\eccScriptSystem.au3"
; ==============================================================================

; ------------------------------------------------------------------------------
; BEGIN OF SCRIPT
; ------------------------------------------------------------------------------

;DosBox autoexec file
$loadConf = "ecc_launch.conf"
$setupConf = "ecc_setup.conf"

;Check for DOSHD directory
$DosHDFolder = $eccSystemEccFolder & "ecc-user\dosbox\DOSHD\"
If FileExists($DosHDFolder) Then
    TrayTip("ECC DosBox", "Found DOS Hard Disk", 10, 1)
Else
	TrayTip("ECC DosBox", "Creating DOS Hard Disk", 10, 1)
	DirCreate($DosHDFolder)
EndIf
 
;Check for DOSCD dyrectory
$DosCDFolder = $eccSystemEccFolder & "ecc-user\dosbox\DOSCD\"
If FileExists($DosCDFolder) Then
    TrayTip("ECC DosBox", "Found DOS Hard Disk", 10, 1)
Else
	TrayTip("ECC DosBox", "Creating DOS Hard Disk", 10, 1)
	DirCreate($DosCDFolder)
EndIf

;Check for Media type (zip or CD)


;Check for Game Directory
$GameFolder = $DosHDFolder & $eccFileRomNamePlain & "\"

If FileExists($GameFolder) = 0 Then
	InstallGame($GameFolder)
	InitGameConf($GameFolder)
	LaunchDOSBox($setupConf)
Else		
	$command = $eccMetaInfoId
	If $command = "reconfig" Then
		InitGameConf($GameFolder)
		Exit
	EndIf
	If $command = "setup" Then
		LaunchDOSBox($setupConf)
		Exit
	EndIf
	LaunchDOSBox($loadConf)
	Exit
EndIf
; ------------------------------------------------------------------------------
; END OF SCRIPT
; ------------------------------------------------------------------------------
Exit

Func QuotePath($Path)
	$Path = Chr(34) & $Path & Chr(34)
	return $Path
EndFunc

Func InstallGame($GameFolder)
	$PackedRomFile = QuotePath($eccFileRomPath & $eccFileRomFile)
	$7zip = QuotePath($eccSystemEccFolder & "ecc-core\thirdparty\7zip\7za.exe")
	DirCreate($GameFolder)
	TrayTip("ECC DosBox", "Installing Game", 10, 1)
	ShellExecuteWait($7zip, "x -y -aos " & $PackedRomFile & " -o" & QuotePath($GameFolder), "", "", @SW_HIDE)	
EndFunc

Func GetGameExecutable($GameFolder)
	$loadFile = ""
    TrayTip("ECC DosBox", "Please choose game executable", 10, 1)
	While $loadFile == ""
		$loadFile = FileOpenDialog("Choose game executable", $GameFolder, "Executables (*.exe;*.com;*.bat)", 1 + 2 )
	WEnd
    Return $loadFile
EndFunc

Func GetSetupExecutable($GameFolder)
	$setupFile = ""
	TrayTip("ECC DosBox", "Please choose setup executable", 10, 1)
	While $setupFile = ""
		$setupFile = FileOpenDialog("Choose setup executable", $GameFolder, "Executables (*.exe;*.com;*.bat)", 1 + 2 )
	WEnd
    Return $setupFile
EndFunc

Func CreateConfFiles($GameFolder, $loadFile, $loadConf, $setupFile, $setupConf)
	TrayTip("ECC DosBox", "Creating config files", 10, 1)
	$pathArray = StringSplit($loadFile,"\")
	$loadFile = $pathArray[$pathArray[0]]
	$file = FileOpen($GameFolder & $loadConf, 2+8)
	; Check if file opened for reading OK
	If $file = -1 Then
		MsgBox(0, "Error", "Unable to create autostart dosbox config file")
		Exit
	EndIf
	FileWriteLine($file, "[sdl]")
	FileWriteLine($file, "fullscreen=true")
	FileWriteLine($file, "[autoexec]")
	FileWriteLine($file, "mount C " & QuotePath($DosHDFolder))
	FileWriteLine($file, "C: ")
	FileWriteLine($file, "cd " & $eccFileRomNamePlain)
	FileWriteLine($file, $loadFile)
	FileWriteLine($file, "exit")
	FileClose($file)
	
	$pathArray = StringSplit($setupFile,"\")
	$setupFile = $pathArray[$pathArray[0]]
	
	$file = FileOpen($GameFolder & $setupConf, 2+8)
	; Check if file opened for reading OK
	If $file = -1 Then
		MsgBox(0, "Error", "Unable to create setup dosbox config file")
		Exit
	EndIf
	FileWriteLine($file, "[autoexec]")
	FileWriteLine($file, "mount C " & QuotePath($DosHDFolder))
	FileWriteLine($file, "C: ")
	FileWriteLine($file, "cd " & $eccFileRomNamePlain)
	FileWriteLine($file, $setupFile)
	FileWriteLine($file, "exit")
	FileClose($file)
	TrayTip("ECC DosBox", "Done", 10, 1)
EndFunc

Func InitGameConf($GameFolder)
	TrayTip("ECC DosBox", "Configuring Game", 10, 1)	
	;Ask user for launcher and setup
	$loadFile = GetGameExecutable($GameFolder)	
	$setupFile = GetSetupExecutable($GameFolder)

	;Create Dosbox Config files
	CreateConfFiles($GameFolder,$loadFile,$loadConf,$setupFile,$setupConf)
EndFunc

Func LaunchDOSBox($confFile)
	TrayTip("ECC DosBox", "Launching DOSBox", 10, 1)
	ShellExecute($eccEmuEmulatorPath & $eccEmuEmulatorFile, "-exit -conf " & QuotePath($GameFolder & $confFile))
EndFunc

Func MountCDImage($isoFile,$mountPath)
;   WIP, do not works
	TrayTip("ECC DosBox", "Mounting CD Image", 10, 1)
	;Run(@ProgramFilesDir & 'VCDmount.exe C:\MyFolder\disk1.iso')
EndFunc

Func _FindCD($name, $option)
	; e.g. _FindCD('Setup.exe', 0) or _FindCD('CD Title', 1)
	; $option: 0 = Filename in CD Root ; 1 = CD title
	Local $cddrive
	While Not $cddrive
		$drvs = DriveGetDrive('CDROM')
		If Not @error Then
			For $i = 1 To $drvs[0]
				If DriveStatus($drvs[$i] & '\') = 'READY' Then
					If $option = 0 Then
						If FileExists($drvs[$i] & '\' & $name) Then
							$cddrive = $drvs[$i]
							Return $cddrive
						EndIf
					ElseIf $option = 1 Then
						$cddrive = $drvs[$i]
						If DriveGetLabel($cddrive) = $name Then
							Return $cddrive
						EndIf
					EndIf
				EndIf
			Next
			If Not $cddrive Then
				If MsgBox(21, 'Warning', 'Please insert CD into a drive now') = 2 Then
					Sleep(1000)
					If MsgBox(36, 'Important', 'Are you sure that you want to exit') = 6 Then Exit
				EndIf
				Sleep(2000)
			EndIf
		EndIf
	WEnd
EndFunc

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9059
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Dosbox non-cd games idea

Unread post by Phoenix » 07 Feb 2009, 23:47

marlborojacl wrote:does anybody knows about a free iso mounting software that is compatible with .nrg and .mds (hate proprietaries)? would be useful for cd mounting!
I think 'Alcohol 120%' can handle these files?...not sure (maybe .nrg can only be supported by nero?)

Also a fine job on the script :thumb: , we will await your next version, i'll give it a spin soon!
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

marlborojacl
Posts: 24
Joined: 28 Jan 2009, 20:42

Re: Dosbox non-cd games idea

Unread post by marlborojacl » 08 Feb 2009, 01:02

I'm using VirtualCloneDrive from Elaborate Bytes for now, which supports common formats. I'm finishing up config panel, here is a screen
Attachments
eccdosbox.jpg

marlborojacl
Posts: 24
Joined: 28 Jan 2009, 20:42

Re: Dosbox non-cd games idea

Unread post by marlborojacl » 08 Feb 2009, 14:33

The configuration panel for dosbox.conf is ready (in beta stage, any suggestion is appreciated), along with new script version. CD images support is still in development, and will be ready on next script version. Please read Script notes before using to avoid issues.
Spoiler: show

Code: Select all

; Platform      : DosBox
; Script for      : DosBox 0.72
; Script version   : v1.0.0.3
; Last changed      : 2009.02.08
;
; Author: E.Canepa

;
; NOTES:
; - This script only works for 
; 1) ZIPPED (ZIP) DOS games with executables ready for configuring and launching game (no installation on HD)
; 2) This script USES THIRD PARTY TOOL to allow dosbox configuration. Please visit ECC forum to download
; dosbconf.exe and put it in third party tool folder (create a directory ecc-core\thirdparty\dosboxconf and put
; executable in that foder. To access configuration panel, put "config" in metaid field of rom" OF AN INSTALLED GAME
; (so please run the script first to properly unpack and configure game)
; 3) CD Images (like AITD cd edition, Shadow of the Comet CD, etc..). It requires Pismo File Mount manager
; freely avaible at www.pismotechnic.com and currently supports only ISO images!
;
; ==============================================================================
; You need to implent this block in every script, this changes the workfolder to
; the folder where this script is executed, and loads the 'eccScriptSystem' script.
FileChangeDir(@ScriptDir)
#include "..\eccScriptSystem.au3"
; ==============================================================================

; ------------------------------------------------------------------------------
; BEGIN OF SCRIPT
; ------------------------------------------------------------------------------

;DosBox autoexec file
$loadConf = "ecc_launch.conf"
$setupConf = "ecc_setup.conf"

;Check for DOSHD directory
$DosHDFolder = $eccSystemEccFolder & "ecc-user\dosbox\DOSHD\"
If FileExists($DosHDFolder) Then
    TrayTip("ECC DosBox", "Found DOS Hard Disk", 10, 1)
Else
	TrayTip("ECC DosBox", "Creating DOS Hard Disk", 10, 1)
	DirCreate($DosHDFolder)
EndIf
 
;Check for DOSCD dyrectory
$DosCDFolder = $eccSystemEccFolder & "ecc-user\dosbox\DOSCD\"
If FileExists($DosCDFolder) Then
    TrayTip("ECC DosBox", "Found DOS Hard Disk", 10, 1)
Else
	TrayTip("ECC DosBox", "Creating DOS Hard Disk", 10, 1)
	DirCreate($DosCDFolder)
EndIf

;Check for Media type (zip or CD)


;Check for Game Directory
$GameFolder = $DosHDFolder & $eccFileRomNamePlain & "\"

If FileExists($GameFolder) = 0 Then
	InstallGame($GameFolder)
	InitGameConf($GameFolder)
	LaunchDOSBox($setupConf)
Else		
	$command = $eccMetaInfoId
	If $command = "reconfig" Then
		InitGameConf($GameFolder)
		Exit
	EndIf
	If $command = "setup" Then
		LaunchDOSBox($setupConf)
		Exit
	EndIf
	If $command = "config" Then
		EditLoadConf($loadConf)
		Exit
	EndIf
	LaunchDOSBox($loadConf)
	Exit
EndIf
; ------------------------------------------------------------------------------
; END OF SCRIPT
; ------------------------------------------------------------------------------
Exit

Func QuotePath($Path)
	$Path = Chr(34) & $Path & Chr(34)
	return $Path
EndFunc

Func InstallGame($GameFolder)
	$PackedRomFile = QuotePath($eccFileRomPath & $eccFileRomFile)
	$7zip = QuotePath($eccSystemEccFolder & "ecc-core\thirdparty\7zip\7za.exe")
	DirCreate($GameFolder)
	TrayTip("ECC DosBox", "Installing Game", 10, 1)
	ShellExecuteWait($7zip, "x -y -aos " & $PackedRomFile & " -o" & QuotePath($GameFolder), "", "", @SW_HIDE)	
EndFunc

Func EditLoadConf($confFile)
	$editor = QuotePath($eccSystemEccFolder & "ecc-core\thirdparty\dosboxconf\dosbconf.exe")
	TrayTip("ECC DosBox", "Launching Dosbox.conf editor", 10, 1)
	ShellExecute($editor, QuotePath($GameFolder & $confFile), "", "", @SW_HIDE)
EndFunc

Func GetGameExecutable($GameFolder)
	$loadFile = ""
    TrayTip("ECC DosBox", "Please choose game executable", 10, 1)
	While $loadFile == ""
		$loadFile = FileOpenDialog("Choose game executable", $GameFolder, "Executables (*.exe;*.com;*.bat)", 1 + 2 )
	WEnd
    Return $loadFile
EndFunc

Func GetSetupExecutable($GameFolder)
	$setupFile = ""
	TrayTip("ECC DosBox", "Please choose setup executable", 10, 1)
	While $setupFile = ""
		$setupFile = FileOpenDialog("Choose setup executable", $GameFolder, "Executables (*.exe;*.com;*.bat)", 1 + 2 )
	WEnd
    Return $setupFile
EndFunc

Func CreateConfFiles($GameFolder, $loadFile, $loadConf, $setupFile, $setupConf)
	TrayTip("ECC DosBox", "Creating config files", 10, 1)
	$pathArray = StringSplit($loadFile,"\")
	$loadFile = $pathArray[$pathArray[0]]
	$file = FileOpen($GameFolder & $loadConf, 2+8)
	; Check if file opened for reading OK
	If $file = -1 Then
		MsgBox(0, "Error", "Unable to create autostart dosbox config file")
		Exit
	EndIf
	; Empty stub
	FileWriteLine($file, "[sdl]")
	FileWriteLine($file, "fullscreen=true")
    FileWriteLine($file, "[dosbox]")
    FileWriteLine($file, "[render]")
    FileWriteLine($file, "[cpu]")
    FileWriteLine($file, "[mixer]")
    FileWriteLine($file, "[midi]")
    FileWriteLine($file, "[sblaster]")
    FileWriteLine($file, "[gus]")
    FileWriteLine($file, "[speaker]")
    FileWriteLine($file, "[joystick]")
    FileWriteLine($file, "[serial]")
    FileWriteLine($file, "[dos]")
    FileWriteLine($file, "[ipx]")
    FileWriteLine($file, "[autoexec]")
	FileWriteLine($file, "mount C " & QuotePath($DosHDFolder))
	FileWriteLine($file, "C: ")
	FileWriteLine($file, "cd " & $eccFileRomNamePlain)
	FileWriteLine($file, $loadFile)
	FileWriteLine($file, "exit")
	FileClose($file)
	
	$pathArray = StringSplit($setupFile,"\")
	$setupFile = $pathArray[$pathArray[0]]
	
	$file = FileOpen($GameFolder & $setupConf, 2+8)
	; Check if file opened for reading OK
	If $file = -1 Then
		MsgBox(0, "Error", "Unable to create setup dosbox config file")
		Exit
	EndIf
	FileWriteLine($file, "[autoexec]")
	FileWriteLine($file, "mount C " & QuotePath($DosHDFolder))
	FileWriteLine($file, "C: ")
	FileWriteLine($file, "cd " & $eccFileRomNamePlain)
	FileWriteLine($file, $setupFile)
	FileWriteLine($file, "exit")
	FileClose($file)
	TrayTip("ECC DosBox", "Done", 10, 1)
EndFunc

Func InitGameConf($GameFolder)
	TrayTip("ECC DosBox", "Configuring Game", 10, 1)	
	;Ask user for launcher and setup
	$loadFile = GetGameExecutable($GameFolder)	
	$setupFile = GetSetupExecutable($GameFolder)

	;Create Dosbox Config files
	CreateConfFiles($GameFolder,$loadFile,$loadConf,$setupFile,$setupConf)
EndFunc

Func LaunchDOSBox($confFile)
	TrayTip("ECC DosBox", "Launching DOSBox", 10, 1)
	ShellExecute($eccEmuEmulatorPath & $eccEmuEmulatorFile, "-exit -conf " & QuotePath($GameFolder & $confFile))
EndFunc

Func MountCDImage($isoFile,$mountPath)
;   WIP, do not works
	TrayTip("ECC DosBox", "Mounting CD Image", 10, 1)
	;Run(@ProgramFilesDir & 'VCDmount.exe C:\MyFolder\disk1.iso')
EndFunc

Func _FindCD($name, $option)
	; e.g. _FindCD('Setup.exe', 0) or _FindCD('CD Title', 1)
	; $option: 0 = Filename in CD Root ; 1 = CD title
	Local $cddrive
	While Not $cddrive
		$drvs = DriveGetDrive('CDROM')
		If Not @error Then
			For $i = 1 To $drvs[0]
				If DriveStatus($drvs[$i] & '\') = 'READY' Then
					If $option = 0 Then
						If FileExists($drvs[$i] & '\' & $name) Then
							$cddrive = $drvs[$i]
							Return $cddrive
						EndIf
					ElseIf $option = 1 Then
						$cddrive = $drvs[$i]
						If DriveGetLabel($cddrive) = $name Then
							Return $cddrive
						EndIf
					EndIf
				EndIf
			Next
			If Not $cddrive Then
				If MsgBox(21, 'Warning', 'Please insert CD into a drive now') = 2 Then
					Sleep(1000)
					If MsgBox(36, 'Important', 'Are you sure that you want to exit') = 6 Then Exit
				EndIf
				Sleep(2000)
			EndIf
		EndIf
	WEnd
EndFunc
Attachments
dosbox_confeditor_source.zip
(321 KiB) Downloaded 51 times
dosbconf.7z
(198.34 KiB) Downloaded 54 times

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9059
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Dosbox non-cd games idea

Unread post by Phoenix » 08 Feb 2009, 15:40

@marlborojacl,

How can i create dosbox HD images?? when i have the games ZIPPED?, is there a tool?
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

marlborojacl
Posts: 24
Joined: 28 Jan 2009, 20:42

Re: Dosbox non-cd games idea

Unread post by marlborojacl » 09 Feb 2009, 09:36

just get all files in a zip and put it in rom directory, making sure you edited dosbox.ini to let the parser work on zips

User avatar
Vicman
PLATINUM member
Posts: 1233
Joined: 17 Jun 2007, 16:12
Location: Germany,Bochum

Re: Dosbox non-cd games idea

Unread post by Vicman » 09 Feb 2009, 11:58

Hi,
I want to try this "Feature" :D
I've DL the conf.exe and put them in the right folder.
What is the next step, so ECC find "zip" - files while parsing the rom-folder ?
For now ECC is only looking for bin, cue & images......., so what should I do ? :rolleyes:
imagepacks:
Done: Vic20, N64, Philips VG-5000 G7000 G7400, SordM5, Amstrad GX4000, Enterprise 64/128
Progress: Atari 8bit, Dosbox, Exelvision EXL 100
Vicman's eCC-Clips on You Tube

marlborojacl
Posts: 24
Joined: 28 Jan 2009, 20:42

Re: Dosbox non-cd games idea

Unread post by marlborojacl » 09 Feb 2009, 14:24

go to "emuControlCenter\ecc-system\system" and edit ecc_dosbox_system.ini. You have to add zip support both in [extension] and [parser] sections. Attached is my ini, just to be sure. When i'll finish the cd installation feature i'll put up a new ini with all cd images supported by daemon's tool.

Code: Select all

[EXTENSIONS]
img = 1
bin = 1
jrc = 1
zip = 1

[PARSER]
FileParserGeneric#dosbox = jrc, img, bin, zip

User avatar
Vicman
PLATINUM member
Posts: 1233
Joined: 17 Jun 2007, 16:12
Location: Germany,Bochum

Re: Dosbox non-cd games idea

Unread post by Vicman » 09 Feb 2009, 15:31

O.K. ;)

Now, I've parsed a zip-Game
ID-Field: config
after this, i've set the ID-Field blank.
But when starting the Game, Dosbox do a short Pop-Up...and nothing happens....
because the dosbox closed, I can't see whats wrong.....
Can't find an Option on "DOSBox Cofig Editor" , to don't close the DOSBox-Window.....where is it ?
Or can I something change in the Autoexec.bat for this ?
imagepacks:
Done: Vic20, N64, Philips VG-5000 G7000 G7400, SordM5, Amstrad GX4000, Enterprise 64/128
Progress: Atari 8bit, Dosbox, Exelvision EXL 100
Vicman's eCC-Clips on You Tube

marlborojacl
Posts: 24
Joined: 28 Jan 2009, 20:42

Re: Dosbox non-cd games idea

Unread post by marlborojacl » 09 Feb 2009, 15:49

dosbox executable is launched with -exit options, so the window is autoclosed. I'll add a no-exit option asap. Eventually you can remove the parameter -conf from dosbox launching function at the end of the script. Can i ask you for game name? i'll try by myself to check what's wrong. Besides, the script asks you for 2 executables, one for setup and one for launching game. Make sure you selected the right ones. After this, setup is launched in windowed mode. if you mis-selected executable you could use reconfig command.

commands
config: open up configuration panel of starting dosbox.conf
reconfig: asks again for setup and game executables and regenerates configs
setup: start setup executable (mainly for sound and video config)
everything else (includes empty): starts the game using selected executable and generated (or edited) config.
I'm sorry for the lack of proper documentation, i'm currently working on the script to add cd support, after surely fix everything. Please go on with tests and post your opinion

User avatar
Vicman
PLATINUM member
Posts: 1233
Joined: 17 Jun 2007, 16:12
Location: Germany,Bochum

Re: Dosbox non-cd games idea

Unread post by Vicman » 09 Feb 2009, 16:40

Game is Al-Quadim :clown: , the German version.
Got it from Old Games Never Die (OGND), but at this moment you can't reach this Homepage....
I've made the same Settings, I use in DFend-Reloaded....
Also tried the Game "Der Schatz im Silbersee"....no Go

Maybe it's because my DOSBox(0.72) isn't intalled on the Emu-folder from ECC...
or maybe it's, because the mounting-path has some spaces.....or maybe i'm stupid :nuts: , i`ll try on.....

ecc_launch.conf
Spoiler: show
[sdl]
fullscreen=false
fulldouble=false
fullresolution=original
windowresolution=original
output=overlay
autolock=false
sensitivity=100
waitonerror=true
priority=normal,higher
mapperfile=mapper.txt
usescancodes=false
[dosbox]
language=
machine=vga
captures=captures
memsize=16
[render]
frameskip=0
aspect=false
scaler=normal2x
[cpu]
core=normal
cycles=3000
cycleup=500
cycledown=20
[mixer]
nosound=false
rate=22050
blocksize=2048
prebuffer=10
[midi]
mpu401=intelligent
device=default
config=
[sblaster]
sbtype=sb16
sbbase=220
irq=7
dma=1
hdma=5
mixer=false
oplmode=auto
oplrate=22050
[gus]
gus=true
gusrate=22050
gusbase=240
irq1=5
irq2=5
dma1=3
dma2=3
ultradir=C:\ULTRASND
[speaker]
pcspeaker=false
pcrate=22050
tandy=auto
tandyrate=22050
disney=false
[joystick]
joysticktype=2axis
[serial]
serial1=dummy
serial2=dummy
serial3=disabled
serial4=disabled
[dos]
xms=true
ems=true
umb=true
[ipx]
ipx=false
[autoexec]
mount C "I:\ECC - 0.9.8b\emuControlCenter\ecc-user\dosbox\DOSHD\"
C:
cd Al-Qadim (OGND) [RPG][DE][Inst][XP-Dos][CyberloreStudios1994]
GENIER.EXE
exit
ecc_setup.conf
Spoiler: show
[autoexec]
mount C "I:\ECC - 0.9.8b\emuControlCenter\ecc-user\dosbox\DOSHD\"
C:
cd Al-Qadim (OGND) [RPG][DE][Inst][XP-Dos][CyberloreStudios1994]
SOUND.BAT
exit
imagepacks:
Done: Vic20, N64, Philips VG-5000 G7000 G7400, SordM5, Amstrad GX4000, Enterprise 64/128
Progress: Atari 8bit, Dosbox, Exelvision EXL 100
Vicman's eCC-Clips on You Tube

marlborojacl
Posts: 24
Joined: 28 Jan 2009, 20:42

Re: Dosbox non-cd games idea

Unread post by marlborojacl » 09 Feb 2009, 16:53

did you try these configs on plain dosbox? i think the problem is the directory name, which in this version is equal to zip name. Could you try to temporally rename it to "alq.zip" and repeat steps? Hope also you figured out how to launch config panel

User avatar
Vicman
PLATINUM member
Posts: 1233
Joined: 17 Jun 2007, 16:12
Location: Germany,Bochum

Re: Dosbox non-cd games idea

Unread post by Vicman » 09 Feb 2009, 18:11

GOT IT !!! :swing:

You're right, the pathname was too long

Dfend-Reloaded do automaticly this '~' , when the pathname is above 8 "signs"

[autoexec]
mount C "I:\ECC\EMUCON~1\ecc-user\dosbox\DOSHD\"
C:
cd AL-QAD~1\AL-QAD~1\
GENIER.EXE
exit


I've changed the path manuell, now it works ;)

Can you also add something to the Script, so long Directorynames will have this ~ in the launch-conf ?

Ciao,
Vicman

btw.
It's Great to use DOSBox now in ECC :thumbsup:
imagepacks:
Done: Vic20, N64, Philips VG-5000 G7000 G7400, SordM5, Amstrad GX4000, Enterprise 64/128
Progress: Atari 8bit, Dosbox, Exelvision EXL 100
Vicman's eCC-Clips on You Tube

marlborojacl
Posts: 24
Joined: 28 Jan 2009, 20:42

Re: Dosbox non-cd games idea

Unread post by marlborojacl » 09 Feb 2009, 18:14

yes, i'm planning for a definitive solution, basically i have to replace path strings longer than 8 chars in configs. Will be ready in next script version, along with iso support. Thanks for your help and time

Locked

Who is online

Users browsing this forum: No registered users and 1 guest