Creating Shortcuts to Launch Games in DOSBox and Creating a DOSBox Shortcut: Difference between pages

From Sierra Wiki
(Difference between pages)
Jump to navigationJump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
<div align="center" style="font-size: 22pt">Creating a Game DOSBox Shortcut</div><br />
<div align="center" style="font-size: 22pt">Creating a DOSBox Shortcut</div><br />


If you add the path to a game's executable (.COM, .EXE or .BAT) to the end of what's in the "Target" box in a DOSBox Shortcut, you can start that game in DOSBox by simply double clicking the Shortcut.
<blockquote>
# [[#DOSBoxShortcut|Create and Modify a DOSBox Shortcut]]
# [[#CustomizingShortcut|Customizing the Shortcut]]
# [[#DOSBoxSettings|Customizing DOSBox's Settings]]
# [[#Automating|Automating Commands for DOSBox]]
# [[#example|An example]]
</blockquote>
==<div id="DOSBoxShortcut"></div><br /> 1. Create and Modify a DOSBox Shortcut ==
<blockquote>
[[Creating a DOSBox Shortcut|Create a DOSBox Shortcut]] - then modify it for your game.
</blockquote>
<div align="center">
<div align="center">
Right click on the DOSBox<br />
Open Start Menu > All apps > DOSBox
Shortcut and choose "Properties"<br />
[[File:Properties.png|Properties]]


This will bring up the Shortcut's properties dialog.<br />
[[File:StartMenu.png|400px]]
It's what's in the <u>T</u>arget box that we want to modify.<br />
[[File:Target.png|Target]]
</div>
<blockquote>
Depending on where you have DOSBox installed, what's in the <u>T</u>arget box for the Start Menu Shortcut will be something like:


<blockquote>
Right click on the DOSBox exe > "More" and select "Open file location
<code>"C:\Program Files\DOSBox\DOSBox.exe"</code>
<blockquote>
<p class="Alert">IMPORTANT: When specifying paths with any spaces in file names you <em>must</em> place it in quotes, i.e. "C:\My Game Folder". You do not need to if there are no spaces, i.e. C:\MYGAMEFOLDER.
</blockquote>
</blockquote>


This is the path to DOSBox. We want to get It to use a specific config file that will setup DOSBox for the game. We need to add a path to the configuration file to be used after the dosbox.exe path in the "Target" box:<blockquote>
[[File:OpenLocation.png|Open Location]]
<div align="left"><code>"C:\Program Files\DOSBox\DOSBox.exe" -conf "C:\SIERRA\QG4CD\dosbox.conf"</code></div>
</blockquote> To start a game in DOSBox with this Shortcut, all that needs to be done is to mount the game's folder as the harddrive, change to that harddrive and state the game's executable in the autoexec section of the dosbox.conf.  


You can easily copy the path to your game's dosbox.conf by holding the shift key down, right click on the conf file and choose "Copy as path" from the context menu to copy the file's path to the clipboard.
[[File:DOSBoxFolder.png|DOSBox Folder]]
</blockquote>


===<br /> 2. Customizing DOSBox's Settings ===
Right click, hold and drag the DOSBox Shortcut to<br />
your desktop.


<blockquote>
[[File:Drag&Drop.png|Drag & Drop]]
DOSBox can be configured to emulate different hardware or to use different display modes. You can set the speed (cycles) and memory options that DOSBox will use. You can also specify what settings the emulated hardware will use. All of these make DOSBox highly adaptable to be compatible with a very wide range of games.  


You can use a custom config file for each game that you setup a DOSBox Shortcut for. You can either copy the dosbox.conf from DOSBox's installed folder to the game's folder and modify it or create one that only has the non-default options you want and DOSBox will use the defaults for all the other settings.  
Choose "Create Shortcut Here"<br />
[[File:Shortcut.png|Shortcut]]
</div>


Graphics modes you may want to try are some of 3x scalers. On a 19" monitor, this will make the screen about the same size as a 14" monitor. There are also options for anti-aliasing (gets rid of the stair step looking edges) and perspective correction. See the DOSBox README for more information on these settings.
This will create a Shortcut to DOSBox on your desktop. You can customize this new shortcut by changing the icon in its properties dialog and/or adding


To use this custom config file add its path to the <u>T</u>arget box for the game's Shortcut:
==<br /> References ==  
<blockquote>
'''<code>"C:\Program Files (x86)\DOSBox-0.74\dosbox.exe" -conf C:\hero\dosbox.conf</code>'''
</blockquote>
</blockquote>
 
===<div id="Automating"></div><br /> 3. Automating Commands for DOSBox ===
 
<blockquote>
If your game needs the CD-ROM drive or floppy to run, you will need to mount them before DOSBox (and your game) will be able to see them. You can automate this by adding the mount commands to the [autoexec] section of the config file. For more on mounting, see <a href="DOSBoxGuide-Mount.html">this guide</a>.
</blockquote> <div id="CustomizingShortcut"></div>
'''4. Customizing the Shortcut:'''<blockquote>
 
You, of course, can rename the Shortcut to the game's name and change the icon to one for the game (through the "Change Icon" in the Shortcut's Properties dialog. More importantly, you can modify DOSBox's behavior by adding "switches".
 
Adding '''-noconsole''' to the target will prevent DOSBox's console window from opening. Adding '''-exit''' will close DOSBox after you exit the game. A complete list of these switches can be found in the DOSBox README.
</blockquote>
 
===<div id="example"></div><br /> 5. An example ===
 
<blockquote>
'''The Shortcut Target'''
 
To run, say, Quest for Glory IV ([[#Mount|with the game's folder mounted as "C:" in the autoexec section of the specified dosbox.conf]]), if DOSBox is installed to its default location, you didn't want the console window opening and you wanted DOSBox to close after you exit the game, this is what you would put in the target box :
<blockquote>
<code>"C:\Program Files\DOSBox-0.73\DOSBox.exe" -conf C:\SIERRA\QG4CD\dosbox.conf -noconsole -exit</code>
</blockquote>
 
If you find that the game runs best on your computer at 12,000 cycles, you can set this speed in the the [cpu] section of your config file.
 
If you want perspective correction to keep things from being vertically compressed (the Sierra logo should be round, not an oval) and you wanted antialaizing you would need to add:
 
<blockquote>
<code>aspect=true<br />
scaler=advmame3x</code>
</blockquote>
to the [render] section of your config file.
 
<div id="Mount"></div>
Mounting and starting the game can be handled through the [autoexec] section:
<blockquote><code>mount c c:\sierra\qg4cd</code>
</blockquote>
tells DOSBox to mount the Quest for Glory IV game folder as the "C:" drive. The game needs the CD to install and run, so you would need to add to the [autoexec] section of your config file:
<blockquote>
<code>mount d e:\ -t cdrom -ioctl</code>
</blockquote>
Which tells DOSBox mount your real "E:" drive as DOSBox's "D:" drive. The -t cdrom tells DOSBox to mount it as a CD-ROM drive. The -ioctl tells DOSBox to use low level access for problematic CD games.
 
To change to the game's folder, add:
<blockquote>
<code>c:</code>
</blockquote>
 
To start the game add the name of the game's executable:
<blockquote>
'''qg4cd.bat'''
</blockquote>
The dosbox.conf:
<blockquote>
<code>[render]<br />
<br />
aspect=true<br />
scaler=normal3x<br />
<br />
[cpu]<br />
<br />
cycles=12000<br />
<br />
[autoexec]<br />
<br />
mount c c:\sierra\qg4cd<br />
mount d D:\ -t cdrom -ioctl<br />
c:<br />
call qg4cd.bat</code>
</blockquote>
</blockquote>
 
==<br /> References ==


<references />
<references />
 
 
== Also See ==
== Also See ==


* [[DOSBox|Main DOSBox Page]]
* [[DOSBox|Main DOSBox Page]]

Revision as of 21:58, 14 October 2024

Creating a DOSBox Shortcut


Open Start Menu > All apps > DOSBox

File:StartMenu.png

Right click on the DOSBox exe > "More" and select "Open file location

Open Location

DOSBox Folder

Right click, hold and drag the DOSBox Shortcut to
your desktop.

Drag & Drop

Choose "Create Shortcut Here"
Shortcut

This will create a Shortcut to DOSBox on your desktop. You can customize this new shortcut by changing the icon in its properties dialog and/or adding


References


== Also See ==