Introduction
Foreword
Welcome to the dosbox-automation 0.84-da3 Tutorials guide!
This guide will gently introduce you to the wonderful world of dosbox-automation by walking you through setting up a few example games from scratch. Although it's primarily intended for newcomers unfamiliar with dosbox-automation and DOS emulation, it's a recommended read for people already comfortable with other DOSBox variants - we have many unique features that none of the other variants provide. And even if you're a long-time Staging user, we're quite certain you will learn a few new useful things and techniques by reading this guide.
The guide has been written in the spirit of "teaching a man how to fish" --- the games are only vehicles to teach you the basics that you can apply to any DOS game you want to play. Consequently, the choice of games doesn't matter that much (although we tried to pick from the classics).
To get the most out of this guide, don't just read the instructions, but perform all the steps yourself! Later chapters build on concepts introduced in previous ones, so do not skip a chapter just because you're not interested in a particular game! You don't have to play it if you don't want to; going through the setup procedure and learning how to troubleshoot various issues is what this is all about. The best way to learn that is by practice. All necessary files will be provided, and no familiarity with IBM PCs and the MS-DOS environment is required - everything you need to know will be explained as we go. The only assumption is that you can perform basic everyday computer tasks, such as copying files, unpacking ZIP archives, and editing text files.
The guide has been written so that everyone can follow it with ease, regardless of their operating system of choice. For example, Windows users probably know what the "C drive" is, and most Linux people are comfortable using the command line, but these things need to be explained to the Mac folks.
We wish you a pleasant journey and we hope dosbox-automation will bring you as much joy as we had in developing it!
Installing dosbox-automation
You must use the current stable version of dosbox-automation for this guide. If you already have other versions of DOSBox on your computer, installing dosbox-automation won't interfere with them at all. That includes any DOSBox variants bundled with GOG and Steam games - installing dosbox-automation won't break those games.
If you're a beginner and have previously installed dosbox-automation on your machine, we highly recommend uninstalling it first, then installing the current stable version to avoid confusion. Please make sure to follow the instructions in this section as well.
Windows
Download the current stable installer from our releases page, then proceed with the installation. Just accept the default options; don't change anything.
Microsoft Defender SmartScreen may warn you when running the installer. Click More info, then Run anyway to proceed.
macOS
There are no official macOS builds at this time; we provide builds for Windows and Linux. You can compile dosbox-automation from source on macOS using the build instructions in the source repository, but this is untested territory and you're on your own there. The rest of this guide still applies to a self-built copy.
Linux
Download the current stable release from our releases page. Our official Linux build is statically linked and runs on most desktop Linux distributions (x86_64 only for now).
Warning
We highly recommend our official Linux build over distro-provided packages or self-compiled builds, especially if you're a beginner. Builds not tested by the core development team can contain any number of obvious or subtle bugs.
Other stuff we'll need
As you follow along, you'll need to create and edit DOSBox configuration files, which are plain text files. While Notepad on Windows or TextEdit on macOS could do the job, it's preferable to use a better text editor better suited to the task.
Windows
We recommend Windows users install the free and open-source Notepad++ editor.
Accept the default installer options; this will give you a handy Open with Notepad++ right-click context menu entry in Windows Explorer.
macOS
TextMate is a free and open-source text editor for macOS, which is perfect for the job.
Tip
When editing DOSBox configuration files in TextMate, it's best to set syntax highlighting to the Properties file format as shown in the screenshot below (it's the combo-box to the left of the Tab Size combo-box in the status bar).
Linux
We're pretty sure Linux users don't need any help and have their favorite text editors at hand already. And, of course, everybody knows Vim is the best! :sunglasses:
A note for existing dosbox-automation users
If you already have dosbox-automation installed on your computer, or if you have
used it in the past but have uninstalled it, you most likely have a primary
configuration file named dosbox-automation.conf somewhere on your drive (this
is sometimes also referred to as the default or global configuration).
The guide assumes the default settings of the current stable release, so we highly recommend removing any existing primary configuration files first (but make sure to back them up). If the primary config file does not exist in a platform-specific location, dosbox-automation will create it on the first launch. If it exists, it will be used, but the defaults of some settings might have changed between releases, or you might have tweaked some settings yourself. Since the guide assumes the default settings, these differences may render its instructions invalid.
This is where the primary config is located per platform:
| Windows | C:\Users\%USERNAME%\AppData\Local\dosbox-automation\dosbox-automation.conf |
| macOS | ~/Library/Preferences/dosbox-automation/dosbox-automation.conf |
| Linux | ~/.config/dosbox-automation/dosbox-automation.conf |
You can also execute dosbox-automation with the --printconf option from the
command line to have the location of the primary config printed out.
To back up your existing primary config, you can simply change the extension
of dosbox-automation.conf from .conf to .bak. dosbox-automation will write a
brand new primary config containing the current defaults the next time you
start it.
Portable mode notes
If you've been using dosbox-automation in portable mode, dosbox-automation.conf is
located in the same folder as your dosbox-automation executable. In that case, we
recommended backing up your existing primary config and then creating a new
empty dosbox-automation.conf file in the executable folder. dosbox-automation will
write the new defaults to the empty dosbox-automation.conf file on the first
launch.
Important
Having this empty config file there is important before you start up dosbox-automation - this instructs it to operate in portable mode. Otherwise, it would create the new primary config in the platform-specific home folder location.