Some documentation updates.
| 1 | DOSBox v0.73 |
| 2 | |
| 3 | |
| 4 | ===== |
| 5 | NOTE: |
| 6 | ===== |
| 7 | |
| 8 | While we are hoping that one day DOSBox will run all programs ever |
| 9 | made for the PC, we are not there yet. At present, DOSBox running |
| 10 | on a high-end machine will roughly be the equivalent of a 486 PC. |
| 11 | DOSBox can be configured to run a wide range of DOS games, from |
| 12 | CGA/Tandy/PCjr classics up to games from the Quake era. |
| 13 | |
| 14 | |
| 15 | |
| 16 | ====== |
| 17 | INDEX: |
| 18 | ====== |
| 19 | 1. Quickstart |
| 20 | 2. FAQ |
| 21 | 3. Usage |
| 22 | 4. Internal Programs |
| 23 | 5. Special Keys |
| 24 | 6. Mapper |
| 25 | 7. Keyboard Layout |
| 26 | 8. Serial Multiplayer feature |
| 27 | 9. How to run resource-demanding games |
| 28 | 10. Troubleshooting |
| 29 | 11. The config file |
| 30 | 12. The language file |
| 31 | 13. Building your own version of DOSBox |
| 32 | 14. Special thanks |
| 33 | 15. Contact |
| 34 | |
| 35 | |
| 36 | |
| 37 | ============== |
| 38 | 1. Quickstart: |
| 39 | ============== |
| 40 | |
| 41 | Type INTRO in DOSBox for a quick tour. |
| 42 | It is essential that you get familiar with the idea of mounting, |
| 43 | DOSBox does not automatically make any drive (or a part of it) |
| 44 | accessible to the emulation. |
| 45 | See the FAQ entry "I've got a Z instead of a C at the prompt" as |
| 46 | well as the description of the MOUNT command (section 4). |
| 47 | |
| 48 | |
| 49 | |
| 50 | ======= |
| 51 | 2. FAQ: |
| 52 | ======= |
| 53 | |
| 54 | Some Frequently Asked Questions: |
| 55 | |
| 56 | Q: I've got a Z instead of a C at the prompt. |
| 57 | Q: Do I always have to type these commands? Automation? |
| 58 | Q: How do I change to fullscreen? |
| 59 | Q: My CD-ROM doesn't work. |
| 60 | Q: The game/application can't find its CD-ROM. |
| 61 | Q: The mouse doesn't work. |
| 62 | Q: There is no sound. |
| 63 | Q: The sound stutters or sounds stretched/weird. |
| 64 | Q: I can't type \ or : in DOSBox. |
| 65 | Q: The keyboard lags. |
| 66 | Q: The cursor always moves into one direction! |
| 67 | Q: The game/application runs much too slow! |
| 68 | Q: The game/application does not run at all/crashes! |
| 69 | Q: Can DOSBox harm my computer? |
| 70 | Q: I would like to change the memory size/cpu speed/ems/soundblaster IRQ. |
| 71 | Q: What sound hardware does DOSBox presently emulate? |
| 72 | Q: DOSBox crashes on startup and I'm running arts. |
| 73 | Q: My Build game(Duke3D/Blood/Shadow Warrior) has problems. |
| 74 | Q: Great README, but I still don't get it. |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | Q: I've got a Z instead of a C at the prompt. |
| 80 | A: You have to make your directories available as drives in DOSBox by using |
| 81 | the "mount" command. For example, in Windows "mount C D:\GAMES" will give |
| 82 | you a C drive in DOSBox which points to your Windows D:\GAMES directory. |
| 83 | In Linux, "mount c /home/username" will give you a C drive in DOSBox |
| 84 | which points to /home/username in Linux. |
| 85 | To change to the drive mounted like above, type "C:". If everything went |
| 86 | fine, DOSBox will display the prompt "C:\>". |
| 87 | |
| 88 | |
| 89 | Q: Do I always have to type these commands? Automation? |
| 90 | A: In the DOSBox configuration file is an [autoexec] section. The commands |
| 91 | present there are run when DOSBox starts, so you can use this section |
| 92 | for the mounting. |
| 93 | |
| 94 | |
| 95 | Q: How do I change to fullscreen? |
| 96 | A: Press alt-enter. Alternatively: Edit the configuration file of DOSBox and |
| 97 | change the option fullscreen=false to fullscreen=true. If fullscreen looks |
| 98 | wrong in your opinion: Play with the option fullresolution in the |
| 99 | configuration file of DOSBox. To get back from fullscreen mode: |
| 100 | Press alt-enter again. |
| 101 | |
| 102 | |
| 103 | Q: My CD-ROM doesn't work. |
| 104 | A: To mount your CD-ROM in DOSBox you have to specify some additional options |
| 105 | when mounting the CD-ROM. |
| 106 | To enable CD-ROM support (includes MSCDEX): |
| 107 | - mount d f:\ -t cdrom (windows) |
| 108 | - mount d /media/cdrom -t cdrom (linux) |
| 109 | |
| 110 | In some cases you might want to use a different CD-ROM interface, |
| 111 | for example if CD audio does not work: |
| 112 | To enable SDL-support (does not include low-level CD access!): |
| 113 | - mount d f:\ -t cdrom -usecd 0 -noioctl |
| 114 | To enable ioctl access using digital audio extraction for CD audio |
| 115 | (windows-only, useful for Vista): |
| 116 | - mount d f:\ -t cdrom -ioctl_dx |
| 117 | To enable ioctl access using MCI for CD audio (windows-only): |
| 118 | - mount d f:\ -t cdrom -ioctl_mci |
| 119 | To force ioctl-only access (windows-only): |
| 120 | - mount d f:\ -t cdrom -ioctl_dio |
| 121 | To enable low-level aspi-support (win98 with aspi-layer installed): |
| 122 | - mount d f:\ -t cdrom -aspi |
| 123 | |
| 124 | In the commands: - d driveletter you will get in DOSBox |
| 125 | - f:\ location of CD-ROM on your PC. |
| 126 | - 0 The number of the CD-ROM drive, reported by "mount -cd" |
| 127 | (note that this value is only needed when using SDL |
| 128 | for CD audio, otherwise it is ignored) |
| 129 | See also the next question: The game/application can't find its CD-ROM. |
| 130 | |
| 131 | |
| 132 | Q: The game/application can't find its CD-ROM. |
| 133 | A: Be sure to mount the CD-ROM with -t cdrom switch, this will enable the |
| 134 | MSCDEX interface required by DOS games to interface with CD-ROMs. |
| 135 | Also try adding the correct label (-label LABEL) to the mount command, |
| 136 | where LABEL is the CD-label (volume ID) of the CD-ROM. |
| 137 | Under Windows you can specify -ioctl, -aspi or -noioctl. Look at the |
| 138 | description of the mount command in Section 4 for their meaning and the |
| 139 | additional audio-CD related options -ioctl_dx, ioctl_mci, ioctl_dio. |
| 140 | |
| 141 | Try creating a CD-ROM image (preferably CUE/BIN pair) and use the |
| 142 | DOSBox-internal IMGMOUNT tool to mount the image (the CUE sheet). |
| 143 | This enables very good low-level CD-ROM support on any operating system. |
| 144 | |
| 145 | |
| 146 | Q: The mouse doesn't work. |
| 147 | A: Usually, DOSBox detects when a game uses mouse control. When you click on |
| 148 | the screen it should get locked (confined to the DOSBox window) and work. |
| 149 | With certain games, the DOSBox mouse detection doesn't work. In that case |
| 150 | you will have to lock the mouse manually by pressing CTRL-F10. |
| 151 | |
| 152 | |
| 153 | Q: There is no sound. |
| 154 | A: Be sure that the sound is correctly configured in the game. This might be |
| 155 | done during the installation or with a setup/setsound utility that |
| 156 | accompanies the game. First see if an autodetection option is provided. If |
| 157 | there is none try selecting soundblaster or soundblaster16 with the default |
| 158 | settings being "address=220 irq=7 dma=1". You might also want to select |
| 159 | midi at address 330 as music device. |
| 160 | The parameters of the emulated soundcards can be changed in the DOSBox |
| 161 | configuration file. |
| 162 | If you still don't get any sound set the core to normal and use some lower |
| 163 | fixed cycles value (like cycles=2000). Also assure that your host operating |
| 164 | sound does provide sound. |
| 165 | In certain cases it might be useful to use a different emulated sound device |
| 166 | like a soundblaster pro (sbtype=sbpro1 in the DOSBox configuration file) or |
| 167 | the gravis ultrasound (gus=true). |
| 168 | |
| 169 | |
| 170 | Q: The sound stutters or sounds stretched/weird. |
| 171 | A: You're using too much CPU power to keep DOSBox running at the current speed. |
| 172 | You can lower the cycles, skip frames, reduce the sampling rate of |
| 173 | the respective sound device (see the DOSBox configuration file) or |
| 174 | the mixer device. You can also increase the prebuffer in the configfile. |
| 175 | If you are using cycles=max or =auto, then make sure that there is no |
| 176 | background processes interfering! (especially if they access the harddisk) |
| 177 | |
| 178 | |
| 179 | Q: I can't type \ or : in DOSBox. |
| 180 | A: This can happen in various cases, like your host keyboard layout does not |
| 181 | have a matching DOS layout representation (or it was not correctly detected), |
| 182 | or the key mapping is wrong. |
| 183 | Some possible fixes: |
| 184 | 1. Use / instead, or ALT-58 for : and ALT-92 for \. |
| 185 | 2. Change the DOS keyboard layout (see Section 7: Keyboard Layout). |
| 186 | 3. Add the commands you want to execute to the [autoexec]-section |
| 187 | of the DOSBox configuration file. |
| 188 | 4. Open the DOSBox configuration file and change the usescancodes entry. |
| 189 | 5. Switch the keyboard layout of your operating system. |
| 190 | |
| 191 | Note that if the host layout can not be identified, or keyboardlayout is set |
| 192 | to none in the DOSBox configuration file, the standard US layout is used. |
| 193 | In this configuration try the keys around "enter" for the key \ (backslash), |
| 194 | and for the key : (colon) use shift and the keys between "enter" and "l". |
| 195 | |
| 196 | |
| 197 | Q: The keyboard lags. |
| 198 | A: Lower the priority setting in the DOSBox configuration file, for example |
| 199 | set "priority=normal,normal". You might also want to try lowering the cycles |
| 200 | (use a fixed cycle count to start with, like cycles=10000). |
| 201 | |
| 202 | |
| 203 | Q: The cursor always moves into one direction! |
| 204 | A: See if it still happens if you disable the joystick emulation, |
| 205 | set joysticktype=none in the [joystick] section of your DOSBox |
| 206 | configuration file. Maybe also try unplugging any joystick/gamepad. |
| 207 | If you want to use the joystick in the game, try setting timed=false |
| 208 | and be sure to calibrate the joystick (both in your OS as well as |
| 209 | in the game or the game's setup program). |
| 210 | |
| 211 | |
| 212 | Q: The game/application runs much too slow! |
| 213 | A: Look at the section "How to run resource-demanding games" for more |
| 214 | information. |
| 215 | |
| 216 | |
| 217 | Q: The game/application does not run at all/crashes! |
| 218 | A: Look at Section 10: Troubleshooting |
| 219 | |
| 220 | |
| 221 | Q: Can DOSBox harm my computer? |
| 222 | A: DOSBox can not harm your computer more than any other resource demanding |
| 223 | program. Increasing the cycles does not overclock your real CPU. |
| 224 | Setting the cycles too high has a negative performance effect on the |
| 225 | software running inside DOSBox. |
| 226 | |
| 227 | |
| 228 | Q: I would like to change the memory size/cpu speed/ems/soundblaster IRQ. |
| 229 | A: This is possible! Just create a config file: config -writeconf configfile. |
| 230 | Start your favourite editor and look through the settings. To start DOSBox |
| 231 | with your new settings: dosbox -conf configfile |
| 232 | See the description of the config command in Section 4 for more details. |
| 233 | |
| 234 | |
| 235 | Q: What sound hardware does DOSBox presently emulate? |
| 236 | A: DOSBox emulates several legacy sound devices: |
| 237 | - Internal PC speaker |
| 238 | This emulation includes both the tone generator and several forms of |
| 239 | digital sound output through the internal speaker. |
| 240 | - Creative CMS/Gameblaster |
| 241 | The is the first card released by Creative Labs(R). The default |
| 242 | configuration places it on port 0x220. It should be noted that enabling |
| 243 | this with the Adlib emulation may result in conflicts. |
| 244 | - Tandy 3 voice |
| 245 | The emulation of this sound hardware is complete with the exception of |
| 246 | the noise channel. The noise channel is not very well documented and as |
| 247 | such is only a best guess as to the sound's accuracy. |
| 248 | - Tandy DAC |
| 249 | Emulation of the Tandy DAC utilizes the soundblaster emulation, thus |
| 250 | be sure the soundblaster is not disabled in the DOSBox configuration |
| 251 | file. The Tandy DAC is only emulated at the BIOS level. |
| 252 | - Adlib |
| 253 | This emulation is almost perfect and includes the Adlib's ability to |
| 254 | almost play digitized sound. |
| 255 | - SoundBlaster 16 / SoundBlaster Pro I & II / SoundBlaster I & II |
| 256 | By default DOSBox provides Soundblaster 16 level 16-bit stereo sound. |
| 257 | You can select a different SoundBlaster version in the configfile of |
| 258 | DOSBox (See Internal Commands: CONFIG). |
| 259 | - Disney Soundsource |
| 260 | Using the printer port, this sound device outputs digital sound only. |
| 261 | - Gravis Ultrasound |
| 262 | The emulation of this hardware is nearly complete, though the MIDI |
| 263 | capabilities have been left out, since an MPU-401 has been |
| 264 | emulated in other code. |
| 265 | - MPU-401 |
| 266 | A MIDI passthrough interface is also emulated. This method of sound |
| 267 | output will only work when used with a General Midi or MT-32 device. |
| 268 | |
| 269 | |
| 270 | Q: DOSBox crashes on startup and I'm running arts. |
| 271 | A: This isn't really a DOSBox problem, but the solution is to set the |
| 272 | environment variable SDL_AUDIODRIVER to alsa or oss. |
| 273 | |
| 274 | |
| 275 | Q: My Build game(Duke3D/Blood/Shadow Warrior) has problems. |
| 276 | A: First of all, try to find a port of the game. Those will offer a |
| 277 | better experience. To fix the graphics problem that occurs in |
| 278 | DOSBox on higher resolutions. Open the configuration file of |
| 279 | DOSBox and search for machine=svga_s3. Change svga_s3 to vesa_nolfb |
| 280 | |
| 281 | |
| 282 | Q: Great README, but I still don't get it. |
| 283 | A: A look at "The Newbie's pictorial guide to DOSBox" located at |
| 284 | http://vogons.zetafleet.com/viewforum.php?f=39 might help you. |
| 285 | Also try the wiki of DOSBox: |
| 286 | http://www.dosbox.com/wiki/ |
| 287 | |
| 288 | |
| 289 | For more questions read the remainder of this README and/or check |
| 290 | the site/forum: |
| 291 | http://www.dosbox.com |
| 292 | |
| 293 | |
| 294 | |
| 295 | ========= |
| 296 | 3. Usage: |
| 297 | ========= |
| 298 | |
| 299 | An overview of the command line options you can give to DOSBox. |
| 300 | Windows Users must open cmd.exe or command.com or edit the shortcut to |
| 301 | dosbox.exe for this. |
| 302 | The options are valid for all operating systems unless noted in the option |
| 303 | description: |
| 304 | |
| 305 | dosbox [name] [-exit] [-c command] [-fullscreen] [-conf congfigfile] |
| 306 | [-lang languagefile] [-machine machinetype] [-noconsole] |
| 307 | [-startmapper] [-noautoexec] [-securemode] |
| 308 | [-scaler scaler | -forcescaler scaler] |
| 309 | [-version] |
| 310 | |
| 311 | dosbox -version |
| 312 | dosbox -editconf program |
| 313 | dosbox -opencaptures program |
| 314 | dosbox -printconf |
| 315 | dosbox -eraseconf |
| 316 | |
| 317 | name |
| 318 | If "name" is a directory it will mount that as the C: drive. |
| 319 | If "name" is an executable it will mount the directory of "name" |
| 320 | as the C: drive and execute "name". |
| 321 | |
| 322 | -exit |
| 323 | DOSBox will close itself when the DOS application "name" ends. |
| 324 | |
| 325 | -c command |
| 326 | Runs the specified command before running "name". Multiple commands |
| 327 | can be specified. Each command should start with "-c" though. |
| 328 | A command can be: an Internal Program, a DOS command or an executable |
| 329 | on a mounted drive. |
| 330 | |
| 331 | -fullscreen |
| 332 | Starts DOSBox in fullscreen mode. |
| 333 | |
| 334 | -conf configfile |
| 335 | Start DOSBox with the options specified in "configfile". |
| 336 | Multiple -conf options may be present. |
| 337 | See Section 11 for more details. |
| 338 | |
| 339 | -lang languagefile |
| 340 | Start DOSBox using the language specified in "languagefile". |
| 341 | |
| 342 | -machine machinetype |
| 343 | Setup DOSBox to emulate a specific type of machine. Valid choices are: |
| 344 | hercules, cga, pcjr, tandy, svga_s3 (default) as well as the additional |
| 345 | svga chipsets listed in the help of the DOSBox configuration file. |
| 346 | svga_s3 enables vesa emulation as well. |
| 347 | For some special vga effects the machinetype vgaonly can be used, |
| 348 | note that this disables svga capabilites and might be (considerably) |
| 349 | slower due to the much higher emulation precision. |
| 350 | The machinetype affects both the videocard and the available soundcards. |
| 351 | |
| 352 | -noconsole (Windows Only) |
| 353 | Start DOSBox without showing the console window. Output will |
| 354 | be redirected to stdout.txt and stderr.txt |
| 355 | |
| 356 | -startmapper |
| 357 | Enter the keymapper directly on startup. Useful for people with |
| 358 | keyboard problems. |
| 359 | |
| 360 | -noautoexec |
| 361 | Skips the [autoexec] section of the loaded configuration file. |
| 362 | |
| 363 | -securemode |
| 364 | Same as -noautoexec, but adds config.com -securemode at the |
| 365 | bottom of AUTOEXEC.BAT (which in turn disables any changes to how |
| 366 | the drives are mounted inside DOSBox). |
| 367 | |
| 368 | -scaler scaler |
| 369 | Uses the scaler specified by "scaler". See the DOSBox configuration |
| 370 | file for the available scalers. |
| 371 | |
| 372 | -forcescaler scaler |
| 373 | Similar to the -scaler parameter, but tries to force usage of |
| 374 | the specified scaler even if it might not fit. |
| 375 | |
| 376 | -version |
| 377 | output version information and exit. Useful for frontends. |
| 378 | |
| 379 | -editconf program |
| 380 | calls program with as first parameter the configuration file. |
| 381 | You can specify this command more than once. In this case it will |
| 382 | move to second program if the first one fails to start. |
| 383 | |
| 384 | -opencaptures program |
| 385 | calls program with as first paramater the location of the captures |
| 386 | folder. |
| 387 | |
| 388 | -printconf |
| 389 | prints the location of the default configuration file. |
| 390 | |
| 391 | -eraseconf |
| 392 | removes the default configuration file. |
| 393 | |
| 394 | Note: If a name/command/configfile/languagefile contains a space, put |
| 395 | the whole name/command/configfile/languagefile between quotes |
| 396 | ("command or file name"). If you need to use quotes within quotes |
| 397 | (most likely with -c and mount): |
| 398 | Windows and OS/2 users can use single quotes inside the double quotes. |
| 399 | Other people should be able to use escaped double quotes inside the |
| 400 | double quotes. |
| 401 | Windows: -c "mount c 'c:\program files\'" |
| 402 | Linux: -c "mount c \"/tmp/name with space\"" |
| 403 | |
| 404 | For example (Windows): |
| 405 | |
| 406 | dosbox c:\atlantis\atlantis.exe -c "MOUNT D C:\SAVES" |
| 407 | This mounts c:\atlantis as c:\ and runs atlantis.exe. |
| 408 | Before it does that it would first mount C:\SAVES as the D drive. |
| 409 | |
| 410 | In Windows, you can also drag directories/files onto the DOSBox executable. |
| 411 | |
| 412 | |
| 413 | |
| 414 | ===================== |
| 415 | 4. Internal Programs: |
| 416 | ===================== |
| 417 | |
| 418 | DOSBox supports most of the DOS commands found in command.com. |
| 419 | To get a list of the internal commands type "HELP" at the prompt. |
| 420 | |
| 421 | In addition, the following commands are available: |
| 422 | |
| 423 | MOUNT "Emulated Drive letter" "Real Drive or Directory" |
| 424 | [-t type] [-aspi] [-ioctl] [-noioctl] [-usecd number] [-size drivesize] |
| 425 | [-label drivelabel] [-freesize size_in_mb] |
| 426 | [-freesize size_in_kb (floppies)] |
| 427 | MOUNT -cd |
| 428 | MOUNT -u "Emulated Drive letter" |
| 429 | |
| 430 | Program to mount local directories as drives inside DOSBox. |
| 431 | |
| 432 | "Emulated Drive letter" |
| 433 | The driveletter inside DOSBox (eg. C). |
| 434 | |
| 435 | "Real Drive letter (usually for CD-ROMs in Windows) or Directory" |
| 436 | The local directory you want accessible inside DOSBox. |
| 437 | |
| 438 | -t type |
| 439 | Type of the mounted directory. Supported are: dir (default), |
| 440 | floppy, cdrom. |
| 441 | |
| 442 | -size drivesize |
| 443 | Sets the size of the drive, where drivesize is of the form |
| 444 | "bps,spc,tcl,fcl": |
| 445 | bps: bytes per sector, by default 512 for regular drives and |
| 446 | 2048 for CD-ROM drives |
| 447 | spc: sectors per cluster, usually between 1 and 127 |
| 448 | tcl: total clusters, between 1 and 65534 |
| 449 | fcl: total free clusters, between 1 and tcl |
| 450 | |
| 451 | -freesize size_in_mb | size_in_kb |
| 452 | Sets the amount of free space available on a drive in megabytes |
| 453 | (regular drives) or kilobytes (floppy drives). |
| 454 | This is a simpler version of -size. |
| 455 | |
| 456 | -label drivelabel |
| 457 | Sets the name of the drive to "drivelabel". Needed on some |
| 458 | systems if the CD-ROM label isn't read correctly (useful when a |
| 459 | program can't find its CD-ROM). If you don't specify a label and no |
| 460 | lowlevel support is selected (that is omitting the -usecd # and/or |
| 461 | -aspi parameters, or specifying -noioctl): |
| 462 | For Windows: label is extracted from "Real Drive". |
| 463 | For Linux: label is set to NO_LABEL. |
| 464 | |
| 465 | If you do specify a label, this label will be kept as long as the drive |
| 466 | is mounted. It will not be updated !! |
| 467 | |
| 468 | -aspi |
| 469 | Forces use of the aspi layer. Only valid if mounting a CD-ROM under |
| 470 | Windows systems with an ASPI-Layer. |
| 471 | |
| 472 | -ioctl (automatic selection of the CD audio interface) |
| 473 | -ioctl_dx (digital audio extraction used for CD audio) |
| 474 | -ioctl_dio (ioctl calls used for CD audio) |
| 475 | -ioctl_mci (MCI used for CD audio) |
| 476 | Forces use of ioctl commands. Only valid if mounting a CD-ROM under |
| 477 | a Windows OS which support them (Win2000/XP/NT). |
| 478 | The various choices only differ in the way CD audio is handled, |
| 479 | preferrably -ioctl_dio is used (lowest workload), but this might not |
| 480 | work on all systems so -ioctl_dx (or -ioctl_mci) can be used. |
| 481 | |
| 482 | -noioctl |
| 483 | Forces use of the SDL CD-ROM layer. Valid on all systems. |
| 484 | |
| 485 | -usecd number |
| 486 | Valid on all systems, under windows the -noioctl switch has to be |
| 487 | present to make use of the -usecd switch. |
| 488 | Enables to select the drive that should be used by SDL. Use this if |
| 489 | the wrong or no CD-ROM drive is mounted while using the SDL CD-ROM |
| 490 | interface. "number" can be found by "MOUNT -cd". |
| 491 | |
| 492 | -cd |
| 493 | Displays all CD-ROM drives detected by SDL, and their numbers. |
| 494 | See the information at the -usecd entry above. |
| 495 | |
| 496 | -u |
| 497 | Removes the mount. Doesn't work for Z:\. |
| 498 | |
| 499 | Note: It's possible to mount a local directory as CD-ROM drive. |
| 500 | Hardware support is then missing. |
| 501 | |
| 502 | Basically MOUNT allows you to connect real hardware to DOSBox's emulated PC. |
| 503 | So MOUNT C C:\GAMES tells DOSBox to use your C:\GAMES directory as drive C: |
| 504 | in DOSBox. It also allows you to change the drive letter identification |
| 505 | for programs that demand specific drive letters. |
| 506 | |
| 507 | For example: Touche: Adventures of The Fifth Musketeer must be run on your C: |
| 508 | drive. Using DOSBox and its mount command, you can trick the game into |
| 509 | believing it is on the C drive, while you can still place it where you |
| 510 | like. For example, if the game is in D:\OLDGAMES\TOUCHE, the command |
| 511 | MOUNT C D:\OLDGAMES will allow you to run Touche from the D drive. |
| 512 | |
| 513 | Mounting your entire C drive with MOUNT C C:\ is NOT recommended! The same |
| 514 | is true for mounting the root of any other drive, except for CD-ROMs (due to |
| 515 | their read-only nature). Otherwise if you or DOSBox make a mistake you may |
| 516 | lose all your files. |
| 517 | It is recommended to put all your applications/games into a subdirectory |
| 518 | and mount that. |
| 519 | |
| 520 | General MOUNT Examples: |
| 521 | 1. To mount c:\DirX as a floppy : |
| 522 | mount a c:\DirX -t floppy |
| 523 | 2. To mount system CD-ROM drive E as CD-ROM drive D in DOSBox: |
| 524 | mount d e:\ -t cdrom |
| 525 | 3. To mount system CD-ROM drive at mountpoint /media/cdrom as CD-ROM drive D |
| 526 | in DOSBox: |
| 527 | mount d /media/cdrom -t cdrom -usecd 0 |
| 528 | 4. To mount a drive with ~870 mb free diskspace (simple version): |
| 529 | mount c d:\ -freesize 870 |
| 530 | 5. To mount a drive with ~870 mb free diskspace (experts only, full control): |
| 531 | mount c d:\ -size 512,127,16513,13500 |
| 532 | 6. To mount /home/user/dirY as drive C in DOSBox: |
| 533 | mount c /home/user/dirY |
| 534 | 7. To mount the directory where DOSBox was started as D in DOSBox: |
| 535 | mount d . |
| 536 | (note the . which represents the directory where DOSBox was started) |
| 537 | |
| 538 | |
| 539 | MEM |
| 540 | Program to display the amount of free memory. |
| 541 | |
| 542 | |
| 543 | VER |
| 544 | VER set major_version [minor_version] |
| 545 | Display the current DOSBox version and reported DOS version |
| 546 | (parameterless usage). |
| 547 | Change the reported DOS version with the "set" parameter, |
| 548 | for example: "VER set 6 22" to have DOSBox report DOS 6.22 |
| 549 | as version number. |
| 550 | |
| 551 | |
| 552 | CONFIG -writeconf localfile |
| 553 | CONFIG -writelang localfile |
| 554 | CONFIG -securemode |
| 555 | CONFIG -set "section property=value" |
| 556 | CONFIG -get "section property" |
| 557 | |
| 558 | CONFIG can be used to change or query various settings of DOSBox |
| 559 | during runtime. It can save the current settings and language strings to |
| 560 | disk. Information about all possible sections and properties can |
| 561 | be found in Section 11 (The Config File). |
| 562 | |
| 563 | -writeconf localfile |
| 564 | Write the current configuration settings to file. "localfile" is |
| 565 | located on the local drive, not a mounted drive in DOSBox. |
| 566 | The configuration file controls various settings of DOSBox: |
| 567 | the amount of emulated memory, the emulated soundcards and many more |
| 568 | things. It allows access to AUTOEXEC.BAT as well. |
| 569 | See Section 11 (The Config File) for more information. |
| 570 | |
| 571 | -writelang localfile |
| 572 | Write the current language settings to file. "localfile" is |
| 573 | located on the local drive, not a mounted drive in DOSBox. |
| 574 | The language file controls all visible output of the internal commands |
| 575 | and the internal DOS. |
| 576 | |
| 577 | -securemode |
| 578 | Switches DOSBox to a more secure mode. In this mode the internal |
| 579 | commands MOUNT, IMGMOUNT and BOOT won't work. It's not possible either |
| 580 | to create a new configfile or languagefile in this mode. |
| 581 | (Warning: you can only undo this mode by restarting DOSBox.) |
| 582 | |
| 583 | -set "section property=value" |
| 584 | CONFIG will attempt to set the property to new value. Currently |
| 585 | CONFIG can not report whether the command succeeded or not. |
| 586 | |
| 587 | -get "section property" |
| 588 | The current value of the property is reported and stored in the |
| 589 | environment variable %CONFIG%. This can be used to store the value |
| 590 | when using batch files. |
| 591 | |
| 592 | Both "-set" and "-get" work from batch files and can be used to set up your |
| 593 | own preferences for each game. |
| 594 | |
| 595 | Examples: |
| 596 | 1. To create a configfile in your current directory: |
| 597 | config -writeconf dosbox.conf |
| 598 | 2. To set the cpu cycles to 10000: |
| 599 | config -set "cpu cycles=10000" |
| 600 | 3. To turn ems memory emulation off: |
| 601 | config -set "dos ems=off" |
| 602 | 4. To check which cpu core is being used. |
| 603 | config -get "cpu core" |
| 604 | |
| 605 | |
| 606 | LOADFIX [-size] [program] [program-parameters] |
| 607 | LOADFIX -f |
| 608 | Program to reduce the amount of available conventional memory. |
| 609 | Useful for old programs which don't expect much memory to be free. |
| 610 | |
| 611 | -size |
| 612 | number of kilobytes to "eat up", default = 64kb |
| 613 | |
| 614 | -f |
| 615 | frees all previously allocated memory |
| 616 | |
| 617 | Examples: |
| 618 | 1. To start mm2.exe and allocate 64kb memory |
| 619 | (mm2 will have 64 kb less available) : |
| 620 | loadfix mm2 |
| 621 | 2. To start mm2.exe and allocate 32kb memory : |
| 622 | loadfix -32 mm2 |
| 623 | 3. To free previous allocated memory : |
| 624 | loadfix -f |
| 625 | |
| 626 | |
| 627 | RESCAN |
| 628 | Make DOSBox reread the directory structure. Useful if you changed something |
| 629 | on a mounted drive outside of DOSBox. (CTRL - F4 does this as well!) |
| 630 | |
| 631 | |
| 632 | MIXER |
| 633 | Makes DOSBox display its current volume settings. |
| 634 | Here's how you can change them: |
| 635 | |
| 636 | mixer channel left:right [/NOSHOW] [/LISTMIDI] |
| 637 | |
| 638 | channel |
| 639 | Can be one of the following: MASTER, DISNEY, SPKR, GUS, SB, FM [, CDAUDIO]. |
| 640 | CDAUDIO is only available if a CD-ROM interface with volume control is |
| 641 | enabled (CD image, ioctl_dx). |
| 642 | |
| 643 | left:right |
| 644 | The volume levels in percentages. If you put a D in front it will be |
| 645 | in decibel (Example: mixer gus d-10). |
| 646 | |
| 647 | /NOSHOW |
| 648 | Prevents DOSBox from showing the result if you set one |
| 649 | of the volume levels. |
| 650 | |
| 651 | /LISTMIDI |
| 652 | Lists the available midi devices on your PC (Windows). To select a |
| 653 | device other than the Windows default midi-mapper, add a line |
| 654 | 'midiconfig=id' to the [midi] section in the configuration file, |
| 655 | where 'id' is the number for the device as listed by LISTMIDI. |
| 656 | |
| 657 | |
| 658 | IMGMOUNT |
| 659 | A utility to mount disk images and CD-ROM images in DOSBox. |
| 660 | |
| 661 | IMGMOUNT DRIVE [imagefile] -t [image_type] -fs [image_format] |
| 662 | -size [sectorsbytesize, sectorsperhead, heads, cylinders] |
| 663 | IMGMOUNT DRIVE [imagefile1, .. ,imagefileN] -t iso -fs iso |
| 664 | |
| 665 | imagefile |
| 666 | Location of the image file to mount in DOSBox. The location can |
| 667 | be on a mounted drive inside DOSBox, or on your real disk. It is |
| 668 | possible to mount CD-ROM images (ISOs or CUE/BIN) as well, if you |
| 669 | need CD swapping capabilities specify all images in succession |
| 670 | (see the next entry). |
| 671 | CUE/BIN pairs are the preferred CD-ROM image type as they can |
| 672 | store audio tracks compared to ISOs (which are data-only). For |
| 673 | the CUE/BIN mounting always specify the CUE sheet. |
| 674 | |
| 675 | imagefile1, .. ,imagefileN |
| 676 | Location of the image files to mount in DOSBox. Specifying a number |
| 677 | of image files is only allowed for CD-ROM images. The CD's can be |
| 678 | swapped with CTRL-F4 at any time. This is required for games which |
| 679 | use multiple CD-ROMs and require the CD to be switched during the |
| 680 | gameplay at some point. |
| 681 | |
| 682 | -t |
| 683 | The following are valid image types: |
| 684 | floppy: Specifies a floppy image. DOSBox will automatically identify |
| 685 | the disk geometry (360K, 1.2MB, 720K, 1.44MB, etc). |
| 686 | iso: Specifies a CD-ROM iso image. The geometry is automatic and |
| 687 | set for this size. This can be an iso or a cue/bin pair. |
| 688 | hdd: Specifies a harddrive image. The proper CHS geometry |
| 689 | must be set for this to work. |
| 690 | |
| 691 | -fs |
| 692 | The following are valid file system formats: |
| 693 | iso: Specifies the ISO 9660 CD-ROM format. |
| 694 | fat: Specifies that the image uses the FAT file system. DOSBox will attempt |
| 695 | to mount this image as a drive in DOSBox and make the files |
| 696 | available from inside DOSBox. |
| 697 | none: DOSBox will make no attempt to read the file system on the disk. |
| 698 | This is useful if you need to format it or if you want to boot |
| 699 | the disk using the BOOT command. When using the "none" |
| 700 | filesystem, you must specify the drive number (2 or 3, |
| 701 | where 2 = master, 3 = slave) rather than a drive letter. |
| 702 | For example, to mount a 70MB image as the slave drive device, |
| 703 | you would type (without the quotes): |
| 704 | "imgmount 3 d:\test.img -size 512,63,16,142 -fs none" |
| 705 | Compare this with a mount to be able to access the drive |
| 706 | within DOSBox, which would read as: |
| 707 | "imgmount e: d:\test.img -size 512,63,16,142" |
| 708 | |
| 709 | -size |
| 710 | The Cylinders, Heads and Sectors of the drive. |
| 711 | Required to mount hard drive images. |
| 712 | |
| 713 | An example how to mount CD-ROM images: |
| 714 | 1a. mount c /tmp |
| 715 | 1b. imgmount d c:\myiso.iso -t iso |
| 716 | or (which also works): |
| 717 | 2. imgmount d /tmp/myiso.iso -t iso |
| 718 | |
| 719 | |
| 720 | BOOT |
| 721 | Boot will start floppy images or hard disk images independent of the |
| 722 | operating system emulation offered by DOSBox. This will allow you to |
| 723 | play booter floppies or boot other operating systems inside DOSBox. |
| 724 | If the target emulated system is PCjr (machine=pcjr) the boot command |
| 725 | can be used to load PCjr cartridges (.jrc). |
| 726 | |
| 727 | BOOT [diskimg1.img diskimg2.img .. diskimgN.img] [-l driveletter] |
| 728 | BOOT [cart.jrc] (PCjr only) |
| 729 | |
| 730 | diskimgN.img |
| 731 | This can be any number of floppy disk images one wants mounted after |
| 732 | DOSBox boots the specified drive letter. |
| 733 | To swap between images, hit CTRL-F4 to change from the current disk |
| 734 | to the next disk in the list. The list will loop back from the last |
| 735 | disk image to the beginning. |
| 736 | |
| 737 | [-l driveletter] |
| 738 | This parameter allows you to specify the drive to boot from. |
| 739 | The default is the A drive, the floppy drive. You can also boot |
| 740 | a hard drive image mounted as master by specifying "-l C" |
| 741 | without the quotes, or the drive as slave by specifying "-l D" |
| 742 | |
| 743 | cart.jrc (PCjr only) |
| 744 | When emulation of a PCjr is enabled, cartridges can be loaded with |
| 745 | the BOOT command. Support is still limited. |
| 746 | |
| 747 | |
| 748 | IPX |
| 749 | |
| 750 | You need to enable IPX networking in the configuration file of DOSBox. |
| 751 | |
| 752 | All of the IPX networking is managed through the internal DOSBox program |
| 753 | IPXNET. For help on the IPX networking from inside DOSBox, type |
| 754 | "IPXNET HELP" (without quotes) and the program will list the commands |
| 755 | and relevant documentation. |
| 756 | |
| 757 | With regard to actually setting up a network, one system needs to be |
| 758 | the server. To set this up, type "IPXNET STARTSERVER" (without the quotes) |
| 759 | in a DOSBox session. The server DOSBox session will automatically add |
| 760 | itself to the virtual IPX network. For every additional computer that |
| 761 | should be part of the virtual IPX network, you'll need to type |
| 762 | "IPXNET CONNECT <computer host name or IP>". |
| 763 | For example, if your server is at bob.dosbox.com, you would type |
| 764 | "IPXNET CONNECT bob.dosbox.com" on every non-server system. |
| 765 | |
| 766 | To play games that need Netbios a file named NETBIOS.EXE from Novell is |
| 767 | needed. Establish the IPX connection as explained above, then run |
| 768 | "netbios.exe". |
| 769 | |
| 770 | The following is an IPXNET command reference: |
| 771 | |
| 772 | IPXNET CONNECT |
| 773 | |
| 774 | IPXNET CONNECT opens a connection to an IPX tunnelling server |
| 775 | running on another DOSBox session. The "address" parameter specifies |
| 776 | the IP address or host name of the server computer. You can also |
| 777 | specify the UDP port to use. By default IPXNET uses port 213 - the |
| 778 | assigned IANA port for IPX tunnelling - for its connection. |
| 779 | |
| 780 | The syntax for IPXNET CONNECT is: |
| 781 | IPXNET CONNECT address <port> |
| 782 | |
| 783 | IPXNET DISCONNECT |
| 784 | |
| 785 | IPXNET DISCONNECT closes the connection to the IPX tunnelling server. |
| 786 | |
| 787 | The syntax for IPXNET DISCONNECT is: |
| 788 | IPXNET DISCONNECT |
| 789 | |
| 790 | IPXNET STARTSERVER |
| 791 | |
| 792 | IPXNET STARTSERVER starts an IPX tunnelling server on this DOSBox |
| 793 | session. By default, the server will accept connections on UDP port |
| 794 | 213, though this can be changed. Once the server is started, DOSBox |
| 795 | will automatically start a client connection to the IPX tunnelling server. |
| 796 | |
| 797 | The syntax for IPXNET STARTSERVER is: |
| 798 | IPXNET STARTSERVER <port> |
| 799 | |
| 800 | If the server is behind a router, UDP port <port> needs to be forwarded |
| 801 | to that computer. |
| 802 | |
| 803 | On Linux/Unix-based systems port numbers smaller than 1023 can only be |
| 804 | used with root privileges. Use ports greater than 1023 on those systems. |
| 805 | |
| 806 | IPXNET STOPSERVER |
| 807 | |
| 808 | IPXNET STOPSERVER stops the IPX tunnelling server running on this DOSBox |
| 809 | session. Care should be taken to ensure that all other connections have |
| 810 | terminated as well, since stopping the server may cause lockups on other |
| 811 | machines that are still using the IPX tunnelling server. |
| 812 | |
| 813 | The syntax for IPXNET STOPSERVER is: |
| 814 | IPXNET STOPSERVER |
| 815 | |
| 816 | IPXNET PING |
| 817 | |
| 818 | IPXNET PING broadcasts a ping request through the IPX tunnelled network. |
| 819 | In response, all other connected computers will respond to the ping |
| 820 | and report the time it took to receive and send the ping message. |
| 821 | |
| 822 | The syntax for IPXNET PING is: |
| 823 | IPXNET PING |
| 824 | |
| 825 | IPXNET STATUS |
| 826 | |
| 827 | IPXNET STATUS reports the current state of this DOSBox session's |
| 828 | IPX tunnelling network. For a list of all computers connected to the |
| 829 | network use the IPXNET PING command. |
| 830 | |
| 831 | The syntax for IPXNET STATUS is: |
| 832 | IPXNET STATUS |
| 833 | |
| 834 | |
| 835 | KEYB [languagecode [codepage [codepagefile]]] |
| 836 | Change the keyboard layout. For detailed information about keyboard |
| 837 | layouts please see Section 7. |
| 838 | |
| 839 | [languagecode] is a string consisting of two (in special cases more) |
| 840 | characters, examples are GK (Greece) or IT (Italy). It specifies |
| 841 | the keyboard layout to be used. |
| 842 | |
| 843 | [codepage] is the number of the codepage to be used. The keyboard layout |
| 844 | has to provide support for the specified codepage, otherwise the layout |
| 845 | loading will fail. |
| 846 | If no codepage is specified, an appropriate codepage for the requested |
| 847 | layout is chosen automatically. |
| 848 | |
| 849 | [codepagefile] can be used to load codepages that are yet not compiled |
| 850 | into DOSBox. This is only needed when DOSBox does not find the codepage. |
| 851 | |
| 852 | |
| 853 | Examples: |
| 854 | 1. To load the german keyboard layout (automatically uses codepage 858): |
| 855 | keyb gr |
| 856 | 2. To load the russian keyboard layout with codepage 866: |
| 857 | keyb ru 866 |
| 858 | In order to type russian characters press ALT+RIGHT-SHIFT. |
| 859 | 3. To load the french keyboard layout with codepage 850 (where the |
| 860 | codepage is defined in EGACPI.DAT): |
| 861 | keyb fr 850 EGACPI.DAT |
| 862 | 4. To load codepage 858 (without a keyboard layout): |
| 863 | keyb none 858 |
| 864 | This can be used to change the codepage for the FreeDOS keyb2 utility. |
| 865 | 5. To display the current codepage and, if loaded, the keyboard layout: |
| 866 | keyb |
| 867 | |
| 868 | |
| 869 | |
| 870 | For more information use the /? command line switch with the programs. |
| 871 | |
| 872 | |
| 873 | |
| 874 | ================ |
| 875 | 5. Special Keys: |
| 876 | ================ |
| 877 | |
| 878 | ALT-ENTER Switch to full screen and back. |
| 879 | ALT-PAUSE Pause emulation (hit ALT-PAUSE again to continue). |
| 880 | CTRL-F1 Start the keymapper. |
| 881 | CTRL-F4 Change between mounted disk-images. Update directory cache for all drives! |
| 882 | CTRL-ALT-F5 Start/Stop creating a movie of the screen. (avi video capturing) |
| 883 | CTRL-F5 Save a screenshot. (PNG format) |
| 884 | CTRL-F6 Start/Stop recording sound output to a wave file. |
| 885 | CTRL-ALT-F7 Start/Stop recording of OPL commands. (DRO format) |
| 886 | CTRL-ALT-F8 Start/Stop the recording of raw MIDI commands. |
| 887 | CTRL-F7 Decrease frameskip. |
| 888 | CTRL-F8 Increase frameskip. |
| 889 | CTRL-F9 Kill DOSBox. |
| 890 | CTRL-F10 Capture/Release the mouse. |
| 891 | CTRL-F11 Slow down emulation (Decrease DOSBox Cycles). |
| 892 | CTRL-F12 Speed up emulation (Increase DOSBox Cycles). |
| 893 | ALT-F12 Unlock speed (turbo button). |
| 894 | |
| 895 | (NOTE: Once you increase your DOSBox cycles beyond your computer's maximum |
| 896 | capacity, it will produce the same effect as slowing down the emulation. |
| 897 | This maximum will vary from computer to computer.) |
| 898 | |
| 899 | |
| 900 | These are the default keybindings. They can be changed in the keymapper |
| 901 | (see Section 6: Mapper). |
| 902 | |
| 903 | Saved/recorded files can be found in current_directory/capture |
| 904 | (this can be changed in the DOSBox configuration file). |
| 905 | The directory has to exist prior to starting DOSBox, otherwise nothing |
| 906 | gets saved/recorded ! |
| 907 | |
| 908 | |
| 909 | |
| 910 | ========== |
| 911 | 6. Mapper: |
| 912 | ========== |
| 913 | |
| 914 | When you start the DOSBox mapper (either with CTRL-F1 or -startmapper as |
| 915 | a command line argument to the DOSBox executable) you are presented with |
| 916 | a virtual keyboard and a virtual joystick. |
| 917 | |
| 918 | These virtual devices correspond to the keys and events DOSBox will |
| 919 | report to the DOS applications. If you click on a button with your mouse, |
| 920 | you can see in the lower left corner with which event it is associated |
| 921 | (EVENT) and to what events it is currently bound. |
| 922 | |
| 923 | Event: EVENT |
| 924 | BIND: BIND |
| 925 | Add Del |
| 926 | mod1 hold Next |
| 927 | mod2 |
| 928 | mod3 |
| 929 | |
| 930 | |
| 931 | EVENT |
| 932 | The key or joystick axis/button/hat DOSBox will report to DOS applications. |
| 933 | BIND |
| 934 | The key on your real keyboard or the axis/button/hat on your real |
| 935 | joystick(s) (as reported by SDL) which is connected to the EVENT. |
| 936 | mod1,2,3 |
| 937 | Modfiers. These are keys you need to have to be pressed while pressing |
| 938 | BIND. mod1 = CTRL and mod2 = ALT. These are generally only used when you |
| 939 | want to change the special keys of DOSBox. |
| 940 | Add |
| 941 | Add a new BIND to this EVENT. Basically add a key from your keyboard or an |
| 942 | event from the joystick (button press, axis/hat movement) which will |
| 943 | produce the EVENT in DOSBox. |
| 944 | Del |
| 945 | Delete the BIND to this EVENT. If an EVENT has no BINDS, then it is not |
| 946 | possible to trigger this event in DOSBox (that is there's no way to type |
| 947 | the key or use the respective action of the joystick). |
| 948 | Next |
| 949 | Go through the list of bindings which map to this EVENT. |
| 950 | |
| 951 | |
| 952 | Example: |
| 953 | Q1. You want to have the X on your keyboard to type a Z in DOSBox. |
| 954 | A. Click on the Z on the keyboard mapper. Click "Add". |
| 955 | Now press the X key on your keyboard. |
| 956 | |
| 957 | Q2. If you click "Next" a couple of times, you will notice that the Z on your |
| 958 | keyboard also produces an Z in DOSBox. |
| 959 | A. Therefore select the Z again, and click "Next" until you have the Z on |
| 960 | your keyboard. Now click "Del". |
| 961 | |
| 962 | Q3. If you try it out in DOSBox, you will notice that pressing X makes ZX |
| 963 | appear. |
| 964 | A. The X on your keyboard is still mapped to the X as well! Click on |
| 965 | the X in the keyboard mapper and search with "Next" until you find the |
| 966 | mapped key X. Click "Del". |
| 967 | |
| 968 | |
| 969 | Examples about remapping the joystick: |
| 970 | You have a joystick attached, it is working fine under DOSBox and you |
| 971 | want to play some keyboard-only game with the joystick (it is assumed |
| 972 | that the game is controlled by the arrows on the keyboard): |
| 973 | 1. Start the mapper, then click on one of the arrows in the middle |
| 974 | of the left part of the screen (right above the Mod1/Mod2 buttons). |
| 975 | EVENT should be key_left. Now click on Add and move your joystick |
| 976 | in the respective direction, this should add an event to the BIND. |
| 977 | 2. Repeat the above for the missing three directions, additionally |
| 978 | the buttons of the joystick can be remapped as well (fire/jump). |
| 979 | 3. Click on Save, then on Exit and test it with some game. |
| 980 | |
| 981 | You want to swap the y-axis of the joystick because some flightsim uses |
| 982 | the up/down joystick movement in a way you don't like, and it is not |
| 983 | configurable in the game itself: |
| 984 | 1. Start the mapper and click on Y- in the upper joystick field (this |
| 985 | is for the first joystick if you have two joysticks attached) or the |
| 986 | lower joystick field (second joystick or, if you have only one |
| 987 | joystick attached, the second axes cross). |
| 988 | EVENT should be jaxis_0_1- (or jaxis_1_1-). |
| 989 | 2. Click on Del to remove the current binding, then click Add and move |
| 990 | your joystick downwards. A new bind should be created. |
| 991 | 3. Repeat this for Y+, save the layout and finally test it with some game. |
| 992 | |
| 993 | |
| 994 | |
| 995 | If you change the default mapping, you can save your changes by clicking on |
| 996 | "Save". DOSBox will save the mapping to a location specified in the configuration |
| 997 | file (the mapperfile= entry). At startup, DOSBox will load your mapperfile, |
| 998 | if it is present in the DOSBox configuration file. |
| 999 | |
| 1000 | |
| 1001 | |
| 1002 | =================== |
| 1003 | 7. Keyboard Layout: |
| 1004 | =================== |
| 1005 | |
| 1006 | To switch to a different keyboard layout, either the entry "keyboardlayout" |
| 1007 | in the [dos] section of the DOSBox configuration file can be used, or the |
| 1008 | internal DOSBox program keyb.com. Both accept DOS conforming language codes |
| 1009 | (see below), but only by using keyb.com a custom codepage can be specified. |
| 1010 | |
| 1011 | The default keyboardlayout=auto currently works under windows only, the |
| 1012 | layout is chosen according to the OS layout. |
| 1013 | |
| 1014 | Layout switching |
| 1015 | DOSBox supports a number of keyboard layouts and codepages by default, |
| 1016 | in this case just the layout identifier needs to be specified (like |
| 1017 | keyboardlayout=sv in the DOSBox configuration file, or using "keyb sv" |
| 1018 | at the DOSBox command prompt). |
| 1019 | |
| 1020 | Some keyboard layouts (for example layout GK codepage 869 and layout RU |
| 1021 | codepage 808) have support for dual layouts that can be activated by |
| 1022 | pressing LEFT-ALT+RIGHT-SHIFT and deactivated by LEFT-ALT+LEFT-SHIFT. |
| 1023 | |
| 1024 | Supported external files |
| 1025 | The FreeDOS .kl files are supported (FreeDOS keyb2 keyboard layoutfiles) as |
| 1026 | well as the FreeDOS keyboard.sys/keybrd2.sys/keybrd3.sys libraries which |
| 1027 | consist of all available .kl files. |
| 1028 | See http://projects.freedos.net/keyb/ for precompiled keyboard layouts if |
| 1029 | the DOSBox-integrated layouts don't work for some reason, or if updated or |
| 1030 | new layouts become available. |
| 1031 | |
| 1032 | Both .CPI (MS-DOS and compatible codepage files) and .CPX (FreeDOS |
| 1033 | UPX-compressed codepage files) can be used. Some codepages are compiled |
| 1034 | into DOSBox, so it is mostly not needed to care about external codepage |
| 1035 | files. If you need a different (or custom) codepage file, copy it into |
| 1036 | the directory of the DOSBox configuration file so it is accessible for |
| 1037 | DOSBox. |
| 1038 | |
| 1039 | Additional layouts can be added by copying the corresponding .kl file into |
| 1040 | the directory of the DOSBox configuration file and using the first part of |
| 1041 | the filename as language code. |
| 1042 | Example: For the file UZ.KL (keyboard layout for Uzbekistan) specify |
| 1043 | "keyboardlayout=uz" in the DOSBox configuration file. |
| 1044 | The integration of keyboard layout packages (like keybrd2.sys) works similar. |
| 1045 | |
| 1046 | |
| 1047 | Note that the keyboard layout allows foreign characters to be entered, but |
| 1048 | there is NO support for them in filenames. Try to avoid them both inside |
| 1049 | DOSBox as well as in files on your host operating system that are accessible |
| 1050 | by DOSBox. |
| 1051 | |
| 1052 | |
| 1053 | |
| 1054 | ============================== |
| 1055 | 8. Serial Multiplayer feature: |
| 1056 | ============================== |
| 1057 | |
| 1058 | DOSBox can emulate a serial nullmodem cable over network and internet. |
| 1059 | It can be configured through the [serialports] section in the DOSBox |
| 1060 | configuration file. |
| 1061 | |
| 1062 | To create a nullmodem connection, one side needs to act as the server and |
| 1063 | one as the client. |
| 1064 | |
| 1065 | The server needs to be set up in the DOSBox configuration file like this: |
| 1066 | serial1=nullmodem |
| 1067 | |
| 1068 | The client: |
| 1069 | serial1=nullmodem server:<IP or name of the server> |
| 1070 | |
| 1071 | Now start your game and choose nullmodem / serial cable / already connected |
| 1072 | as multiplayer method on COM1. Set the same baudrate on both computers. |
| 1073 | |
| 1074 | Furthermore, additional parameters can be specified to control the behavior |
| 1075 | of the nullmodem connection. These are all parameters: |
| 1076 | |
| 1077 | * port: - TCP port number. Default: 23 |
| 1078 | * rxdelay: - how long (milliseconds) to delay received data if the |
| 1079 | interface is not ready. Increase this value if you encounter |
| 1080 | overrun errors in the DOSBox Status Window. Default: 100 |
| 1081 | * txdelay: - how long to gather data before sending a packet. Default: 12 |
| 1082 | (reduces Network overhead) |
| 1083 | * server: - This nullmodem will be a client connecting to the specified |
| 1084 | server. (No server argument: be a server.) |
| 1085 | * transparent:1 - Only send the serial data, no RTS/DTR handshake. Use this |
| 1086 | when connecting to anything other than a nullmodem. |
| 1087 | * telnet:1 - Interpret Telnet data from the remote site. Automatically |
| 1088 | sets transparent. |
| 1089 | * usedtr:1 - The connection will not be established until DTR is switched |
| 1090 | on by the DOS program. Useful for modem terminals. |
| 1091 | Automatically sets transparent. |
| 1092 | * inhsocket:1 - Use a socket passed to DOSBox by command line. Automatically |
| 1093 | sets transparent. (Socket Inheritance: It is used for |
| 1094 | playing old DOS door games on new BBS software.) |
| 1095 | |
| 1096 | Example: Be a server listening on TCP port 5000. |
| 1097 | serial1=nullmodem server:<IP or name of the server> port:5000 rxdelay:1000 |
| 1098 | |
| 1099 | |
| 1100 | |
| 1101 | ======================================= |
| 1102 | 9. How to run resource-demanding games: |
| 1103 | ======================================= |
| 1104 | |
| 1105 | DOSBox emulates the CPU, the sound and graphic cards, and other peripherals |
| 1106 | of a PC, all at the same time. The speed of an emulated DOS application |
| 1107 | depends on how many instructions can be emulated, which is adjustable |
| 1108 | (number of cycles). |
| 1109 | |
| 1110 | CPU Cycles |
| 1111 | By default (cycles=auto) DOSBox tries to detect whether a game needs to |
| 1112 | be run with as many instructions emulated per time interval as possible. |
| 1113 | You can force this behaviour by setting cycles=max in the DOSBox |
| 1114 | configuration file. The DOSBox window will display a line "Cpu Cyles: max" |
| 1115 | at the top then. In this mode you can reduce the amount of cycles on a |
| 1116 | percentage-basis (hit CTRL-F11) or raise it again (CTRL-F12). |
| 1117 | |
| 1118 | Sometimes manually setting the number of cycles achieves better results, |
| 1119 | in the DOSBox configuration file specify for example cycles=30000. When |
| 1120 | running some DOS application you can raise the cycles with CTRL-F12 even |
| 1121 | more, but you will be limited by the power of your actual CPU. You can see |
| 1122 | how much free time your real CPU has by looking at the Task Manager in |
| 1123 | Windows 2000/XP and the System Monitor in Windows 95/98/ME. Once 100% of |
| 1124 | your real CPU time is used there is no further way to speed up DOSBox |
| 1125 | unless you reduce the load generated by the non-CPU parts of DOSBox. |
| 1126 | |
| 1127 | CPU Cores |
| 1128 | On x86 architectures you can try to force the usage of a dynamically |
| 1129 | recompiling core (set core=dynamic in the DOSBox configuration file). |
| 1130 | This usually gives better results if the auto detection (core=auto) fails. |
| 1131 | It is best accompanied by cycles=max. Note that there might be games |
| 1132 | that work worse with the dynamic core, or do not work at all! |
| 1133 | |
| 1134 | Graphics emulation |
| 1135 | VGA emulation is a very demanding part of DOSBox in terms of actual CPU |
| 1136 | usage. Increase the number of frames skipped (in increments of one) by |
| 1137 | pressing CTRL-F8. Your CPU usage should decrease when using a fixed |
| 1138 | cycle setting. |
| 1139 | Go back one step and repeat this until the game runs fast enough for you. |
| 1140 | Please note that this is a trade-off: you lose in fluidity of video what |
| 1141 | you gain in speed. |
| 1142 | |
| 1143 | Sound emulation |
| 1144 | You can also try to disable the sound through the setup utility of the game |
| 1145 | to reduce load on your CPU further. Setting nosound=true does NOT disable |
| 1146 | the emulation of sound devices, just the output of sound will be disabled. |
| 1147 | |
| 1148 | Also try to close every program but DOSBox to reserve as much resources |
| 1149 | as possible for DOSBox. |
| 1150 | |
| 1151 | |
| 1152 | Advanced cycles configuration: |
| 1153 | The cycles=auto and cycles=max settings can be parameterized to have |
| 1154 | different startup defaults. The syntax is |
| 1155 | cycles=auto ["realmode default"] ["protected mode default"%] |
| 1156 | [limit "cycle limit"] |
| 1157 | cycles=max ["protected mode default"%] [limit "cycle limit"] |
| 1158 | Example: |
| 1159 | cycles=auto 1000 80% limit 20000 |
| 1160 | will use cycles=1000 for real mode games, 80% CPU throttling for |
| 1161 | protected mode games along with a hard cycle limit of 20000 |
| 1162 | |
| 1163 | |
| 1164 | |
| 1165 | ==================== |
| 1166 | 10. Troubleshooting: |
| 1167 | ==================== |
| 1168 | |
| 1169 | DOSBox crashes right after starting it: |
| 1170 | - use different values for the output= entry in your DOSBox |
| 1171 | configuration file |
| 1172 | - try to update your graphics card driver and DirectX |
| 1173 | |
| 1174 | Running a certain game closes DOSBox, crashes with some message or hangs: |
| 1175 | - see if it works with a default DOSBox installation |
| 1176 | (unmodified configuration file) |
| 1177 | - try it with sound disabled (use the sound configuration |
| 1178 | program that comes with the game, additionally you can |
| 1179 | set sbtype=none and gus=false in the DOSBox configuration file) |
| 1180 | - change some entries of the DOSBox configuration file, especially try: |
| 1181 | core=normal |
| 1182 | fixed cycles (for example cycles=10000) |
| 1183 | ems=false |
| 1184 | xms=false |
| 1185 | or combinations of the above settings, |
| 1186 | similar the machine settings that control the emulated chipset and |
| 1187 | functionality: |
| 1188 | machine=vesa_nolfb |
| 1189 | or |
| 1190 | machine=vgaonly |
| 1191 | - use loadfix before starting the game |
| 1192 | |
| 1193 | The game exits to the DOSBox prompt with some error message: |
| 1194 | - read the error message closely and try to locate the error |
| 1195 | - try the hints at the above sections |
| 1196 | - mount differently as some games are picky about the locations, |
| 1197 | for example if you used "mount d d:\oldgames\game" try |
| 1198 | "mount c d:\oldgames\game" and "mount c d:\oldgames" |
| 1199 | - if the game requires a CD-ROM be sure you used "-t cdrom" when |
| 1200 | mounting and try different additional parameters (the ioctl, |
| 1201 | usecd and label switches, see the appropriate section) |
| 1202 | - check the file permissions of the game files (remove read-only |
| 1203 | attributes, add write permissions etc.) |
| 1204 | - try reinstalling the game within DOSBox |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | ==================== |
| 1209 | 11. The Config File: |
| 1210 | ==================== |
| 1211 | |
| 1212 | A config file can be generated by CONFIG.COM, which can be found on the |
| 1213 | internal DOSBox Z: drive when you start up DOSBox. Look in the internal |
| 1214 | programs section of the readme for usage of CONFIG.COM. |
| 1215 | You can edit the generated configfile to customize DOSBox. |
| 1216 | |
| 1217 | The file is divided into several sections (the names have [] around it). |
| 1218 | Some sections have options you can set. |
| 1219 | # and % indicate comment-lines. |
| 1220 | The DOSBox configuration file contains the current settings. You can |
| 1221 | alter them and start DOSBox with the -conf switch to load the file and |
| 1222 | use these settings. |
| 1223 | |
| 1224 | DOSBox will parse configuration files that are specified with -conf. If |
| 1225 | none were specified it will try to load "dosbox.conf" from the local |
| 1226 | directory. If there is none, DOSBox will load the user configuration |
| 1227 | file. This file will be created if it doesn't exist. The file can be |
| 1228 | found in ~/.dosbox (Linux) or "~/Library/Preferences" (MAC OS X). |
| 1229 | Windows users should use the shortcuts in the startmenu to find it. |
| 1230 | |
| 1231 | |
| 1232 | |
| 1233 | |
| 1234 | ====================== |
| 1235 | 12. The Language File: |
| 1236 | ====================== |
| 1237 | |
| 1238 | A language file can be generated by CONFIG.COM (CONFIG -writelang langfile). |
| 1239 | Read it, and you will hopefully understand how to change it. |
| 1240 | Start DOSBox with the -lang switch to use your new language file. |
| 1241 | Alternatively, you can setup the filename in the config file in the [dosbox] |
| 1242 | section. There's a language= entry that can be changed with the filename. |
| 1243 | |
| 1244 | |
| 1245 | |
| 1246 | ======================================== |
| 1247 | 13. Building your own version of DOSBox: |
| 1248 | ======================================== |
| 1249 | |
| 1250 | Download the source. |
| 1251 | Check the INSTALL in the source distribution. |
| 1252 | |
| 1253 | |
| 1254 | |
| 1255 | =================== |
| 1256 | 14. Special thanks: |
| 1257 | =================== |
| 1258 | |
| 1259 | See the THANKS file. |
| 1260 | |
| 1261 | |
| 1262 | ============ |
| 1263 | 15. Contact: |
| 1264 | ============ |
| 1265 | |
| 1266 | See the site: |
| 1267 | http://www.dosbox.com |
| 1268 | for an email address (The Crew-page). |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use