ISSUE #05 - Configuring DOSBOX .CONF for game

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.
User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9059
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

ISSUE #05 - Configuring DOSBOX .CONF for game

Unread post by Phoenix » 20 Dec 2009, 12:01

Ok, now it's time to select a DosBox .conf file for the game (if needed), in update 000419 there are some templates installed, wich you can select OR you can browse for any other .conf file, the file wil then be renamed with CRC32 and placed into the 'configs' folder.

Code: Select all

; === CONFIGURE DOSBOX SETUP (.CONF) ===
Global $DosBoxConf = IniRead($GameSettingsINI, "STARTUPDATA", "dosboxconf", "")
If $DosBoxConf = "" Then
	$GameSelectConf = FileOpenDialog("select a [DOSBOX CONFIG] file for the game", $ConfTemplateFolder, "DosBox config (*.conf)", 1)
	If @error Then
		IniWrite($GameSettingsINI, "STARTUPDATA", "dosboxconf", "no")
	Else
		;copy the .conf file to the 'configs' folder and rename to CRC32
		FileCopy($GameSelectConf, $eccSystemEccFolder & "\ecc-script\dosbox\configs\" & $eccFileRomCrc32 & ".conf",1)
		IniWrite($GameSettingsINI, "STARTUPDATA", "dosboxconf", "yes")
	EndIf
EndIf
example output:
Attachments
ecc_dosbox_conf_file.png
ecc_dosbox_conf_file.png (19.08 KiB) Viewed 1293 times
ecc_dosbox_game_settings.png
ecc_dosbox_game_settings.png (14.15 KiB) Viewed 1292 times
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
Phoenix
ECC Developer 2006-2016
Posts: 9059
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: ISSUE #05 - Configuring DOSBOX .CONF for game

Unread post by Phoenix » 24 Dec 2009, 00:46

Applying the right config when the game is started

Code: Select all

; === PLACE [CRC32].CONF AS DOSBOX.CONF IN DOSBOX FOLDER ===
FileCopy($GameConfFile, $eccEmuEmulatorPath & "dosbox.conf", 1)
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
Blackerking
ECC Support
Posts: 448
Joined: 30 Dec 2006, 14:51
Location: Germany, Leipzig
Contact:

Re: ISSUE #05 - Configuring DOSBOX .CONF for game

Unread post by Blackerking » 02 Jan 2010, 14:32

I think we must implement a feature to choose the right Keyboardlanguage.

look here for further information:
http://dosbox.com/wiki/KEYB
Nothing that looks like a signature.

Altheos
Posts: 60
Joined: 25 Oct 2008, 10:14

Re: ISSUE #05 - Configuring DOSBOX .CONF for game

Unread post by Altheos » 02 Jan 2010, 16:21

Why do we need that ? keyboard layout and codepage are stored in '.conf' files.

User avatar
Blackerking
ECC Support
Posts: 448
Joined: 30 Dec 2006, 14:51
Location: Germany, Leipzig
Contact:

Re: ISSUE #05 - Configuring DOSBOX .CONF for game

Unread post by Blackerking » 02 Jan 2010, 17:22

Because the differences. In German the y and z button are switched. Also it is only a small input, which can insert like any other command.
Nothing that looks like a signature.

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

Re: ISSUE #05 - Configuring DOSBOX .CONF for game

Unread post by Phoenix » 10 Jan 2010, 16:43

Improved the code of Dosbox config, now copied when truly set to yes, so if a config already exists it will check this value too....so when set to 'no' (the user canceled selection of the .conf file) the file will not be copied.

Code: Select all

; === PLACE [CRC32].CONF AS DOSBOX.CONF IN DOSBOX FOLDER ===
If $DosBoxConf = "yes" Then FileCopy($GameConfFile, $eccEmuEmulatorPath & "dosbox.conf", 1)
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
Phoenix
ECC Developer 2006-2016
Posts: 9059
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: ISSUE #05 - Configuring DOSBOX .CONF for game

Unread post by Phoenix » 10 Jan 2010, 16:45

Blackerking wrote:I think we must implement a feature to choose the right Keyboardlanguage.

look here for further information:
http://dosbox.com/wiki/KEYB
Hi blackerking,

I see the keyboard codes in the .conf are all on 'default', maybe it better to put them on 'auto'?, maybe that will work...can you try this?
keyboardlayout=auto/none/XY
default "auto" (since 0.73. Previously "none"), see KEYB for supported values (keyboard layout codes/ids)
source: http://www.dosbox.com/wiki/Dosbox.conf
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
Phoenix
ECC Developer 2006-2016
Posts: 9059
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: ISSUE #05 - Configuring DOSBOX .CONF for game

Unread post by Phoenix » 11 Jan 2010, 22:37

Added deletion of the dosbox.conf file after closing:

Code: Select all

; === REMOVE OLD FILES ===
FileDelete($eccEmuEmulatorPath & "dosbox.conf") ;dosbox.conf file
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.

Locked

Who is online

Users browsing this forum: No registered users and 1 guest