View Page Source

Back to Page
Revision 76 (current)
Edited by feos on 9/12/2023 7:41 PM
This page will give you specific instructions and tips for using DOS in PCem. The entirety of the [EmulatorResources/PCem|main guide] applies here too.

%%TOC%%

!!! What you'll need

* [EmulatorResources/PCem#WhatYouLlNeed|libTAS and PCem (with ROM files)]

!!! Premade configurations

To make setup as easy as possible, you can just pick one of these premade configurations. They represent machines compatible with DOS games, based on era they were released in, and specs they were intended for.
* [UserFiles/Info/638254751623856814|Early '80s config] - for 1980s games that don't require a hard drive - ones that can boot or run directly from a floppy disk
* [https://files.tasvideos.org/common/Wiki/pcem/dos/PCem-Late80s.7z|Late '80s package] - for games released until 1989-12-31.
* [https://files.tasvideos.org/common/Wiki/pcem/dos/PCem-Early90s.7z|Early '90s package] - for games released from 1990-01-01 to 1994-12-31.
* [https://files.tasvideos.org/common/Wiki/pcem/dos/PCem-Late90s.7z|Late '90s package] - for games released after 1995-01-01.

Here's how we created them:
* [Emulator Resources / PCem / DOS / Configurations]

!!! Using with libTAS

This section will be focusing on setting up a configuration to make tool-assisted speedruns. These guidelines will help you make a TAS that people will be able to sync on other machines. If nobody else can sync your run, then it will probably not get accepted!

Be aware of our Movie Rules for [EmulatorResources/LibTAS#MovieSubmissions|libTAS movies] and especially for running [EmulatorResources/PCem#MovieSubmissions|DOS in PCem in libTAS].

!! CD driver issues

The FreeDOS CD driver, {{udvd2.sys}}, is known to have some bugs, especially with CD audio playback, and some games do not even work with it at all, such as Fallout. If you're trying to run a game that requires a CD and it's not working quite right, you should try swapping out the CD driver as part of your movie. {{oakcdrom.sys}} is known to work well with PCem. To swap out the CD driver:
* Do all of the following actions within your movie or verification movie, starting from fresh files.
* Include the CD driver with your game files or make an ISO with just the driver on it. (For info on how to use multiple CDs in a config, check [EmulatorResources/PCem#SwappingDisks|here])
* Within libTAS, boot up the config and get to the {{C:\>}} prompt. Copy the driver to the appropriate place with the command {{copy d:\path\to\oakcdrom.sys c:\fdos\bin\}}, substituting in the proper driver path.
* Open the editor with the command {{edit autoexec.bat}}. Go down to the line that says {{DEVLOAD /H /Q %dosdir%\BIN\UDVD2.SYS /D:FDCD0001}} and replace {{UDVD2.SYS}} with {{OAKCDROM.SYS}}. Do File -> Save to save it.
* Reboot the PC by using the built-in Restart input for libTAS.

You can then install your game and continue.

!! flash.bin

{{flash.bin}} is a file that contains the flash memory of the system. Because the ROM gets written into it, we can't distribute it. This file may also contain custom system parameters from previous configs using the chipset.

For these reasons, __{{flash.bin}} should be deleted before starting a TAS__. Failure to do this may result in desyncs. The Late 80s setup does not use this, but {{flash.bin}} can be found in {{~/.pcem/roms/pb570/}} for the Early 90s setup and in {{~/.pcem/roms/ga686bx/}} for the Late 90s setup.

If you use a verification movie to install your game, you can use the {{flash.bin}} that is generated from it, as long as we will be able to reproduce it.

!! libTAS Settings

All settings from the [EmulatorResources/PCem#UsingLibtasWithPcem|general PCem guide] apply