TASVideos

Tool-assisted game movies
When human skills are just not enough

Emulator Resources / P Cem

>> Emulator Resources / P Cem / DOS
>> Emulator Resources / P Cem / Linux

PCem doesn't have TAS tools, but it works well in libTAS, so it's otherwise quite TASable at this point. In addition to running DOS, it can run Linux and early Windows, along with various environments like Flash or Java.

Source code: https://github.com/TASVideos/pcem

NOTE: This guide is a draft. PCem runs are not currently submittable and any references to policies about submitting PCem runs are not final.

This guide will show you how to set up PCem for libTAS. This guide should generally work for all platforms, refer to other subpages for more instructions.

Table of contents [expand all] [collapse all]

What you'll need

Configuring PCem

When you first boot up PCem, you will see a configuration manager. Click on New to set up your system. Each of these sections is in relation to the tabs on the Configure PCem window. Config files are saved into ~/.pcem/configs/ by default.

Motherboard

This tab sets up basic system specs such as the chipset, the CPU, and the RAM.

Machine + CPU

The machine will decide which BIOS you'll be using, and each machine is only compatible with a certain range of CPUs. When selecting the CPU, keep in mind our rules on the PC game environment. If the CPU affects the speed of the gameplay, such as in One Must Fall 2097, you must pick a processor that the game was intended to be played on. Refer to the game's official documentation for guidance on which system specs are recommended. If the CPU speed only shortens loading times and improves the framerate, feel free to use the fastest one you can.

Memory

Refer to the game's documentation for how much RAM you'll need. Each machine has a certain cap on how much RAM you can use. Keep in mind that the more RAM you use, the longer it will take to count it on the POST screen.

Graphics

This is where you choose which GPU you're going to use. Only some of these are single-threaded, you should avoid the following choices: ATI Graphics Pro Turbo, Diamond Stealth 32, Number Nine 9FX, Paradise Bahamas 64, Phoenix S3, Tseng ET4000AX, and Trident TGUI9440.

If you're unsure, pick S3 ViRGE/DX, as it's the best one and will be compatible with almost everything.

Voodoo has been modified to be single-threaded on the TASVideos PCem branch, so feel free to use it if your game supports it. Note that savestates won't work in libTAS versions 1.3.4 or older if you have this checked.

Sound

You should look at your game's documentation to see what sound cards it's compatible with. If the game is compatible with Sound Blaster, then pick Sound Blaster AWE32. If it only uses Adlib, then pick Adlib Gold. If it only uses PC Speaker, then pick None.

You can see the Sound Blaster configuration by clicking on the button next to the device dropdown menu. They are not displayed, but by default the IRQ is 7 and the DMA channel is 1. You should only change things in this window if you really know what you're doing.

Drives

This is where you set up which drives are connected. You will probably only need one floppy disk, so set FDD1 to 3.5" 2.88M. If you want to install your game from 5.25" disk images, set FDD2 accordingly, otherwise leave it at None. If you're using the CD drive, pick the fastest speed.

Make drive C: a hard drive and click on New. This is where you decide how big you want the hard drive to be. Refer to the game's documentation for how much space it needs. Don't just pick the bare minimum that the game files will fit into; most games create temporary files while they're running, and the game will crash if there isn't enough room for them. Also be careful not to create a drive massively larger than what you need. The time it takes to load and save states in libTAS is proportional to the size of the hard drive image. Don't worry about sectors, heads, and cylinders; type in the size you want and it will figure out the rest for you. Pick a filename and path and click OK. This will create the hard drive image, but it's not ready to use just yet. Preparing the hard drive will be covered in a later section.

Set one of the other drives to a CD-ROM. Even if your game doesn't use a CD, it will be used to move files later. Leave the rest blank.

Mouse

Anything is fine here. You will need mouse drivers to make this functional, most boot disks come with ctmouse.

Joystick

Feel free to set up a joystick if your game supports it. No additional drivers or setup is required. You can bind the joystick buttons to any USB game controller.

Network

Network connections could cause determinism issues, so leave this at None.

Setting up the BIOS

When you have the configuration done, you're ready to boot up PCem. If this is your first time running a chipset, you might get a CMOS error, this is normal. Either way, you will want to enter BIOS setup, usually this is done by pressing the Del key during the POST screen. All of the BIOS screens will look different, but all the functions referenced here will be there, although you might have to look for them. The most common chipset will be Socket 7 Shuttle HOT-557, so the screenshots and instructions will be for that.

You will see this screen:

The only menu options we really care about are the first two, Standard CMOS Setup and BIOS Features Setup.

Standard CMOS Setup

Remember what you put into the Drives tab during configuration? You'll have to make sure this matches that. Generally with this chipset, you can set the type to Auto for any drive you installed and it will auto-detect the specs of the drive. If you set one of the drives to be a CD, make sure that's Auto as well. In some BIOS setups, you will either have to use a function to detect each drive or you'll have to manually enter the cylinders, heads, and sectors of the drive. Set unused drives to None so it doesn't try to look for them during POST.

Make sure Drive A and Drive B match what you set for FDD1 and FDD2, respectively. Don't worry about the clock, the time set by libTAS will override it.

Back out of this menu and go to BIOS Features Setup.

BIOS Features Setup

The only thing you want to touch on this screen is the Boot Sequence. If you're booting from a floppy disk, make the it boot from "A" first, and if you want to boot from a CD, make it boot from "CDROM" first.

Back out of this menu and do Save & Exit Setup. You should now be able to set up the hard drive.

Setting up the hard drive

Reset PCem and it should get past the POST screen this time. You should see something similar to this:

Right-click on the PCem window (while the mouse is released) and load up your boot floppy or CD. If you're using a floppy go to Disc -> Change drive A:, and if you're using a CD go to CD-ROM -> Load image. Hit Enter to continue.

Partitioning and formatting

You will need to partition and format the hard drive using tools on the boot disk. How you do this will depend on the boot disk you're using, refer to the subsections for instructions on specific platforms.

Moving files onto the hard drive

It's time to put your game/OS on the hard drive. If you have floppy images you'd like to install from, it's ok to unmount a boot floppy and insert a new one. If you have an ISO, the boot disk should have already loaded CD drivers and you can load the CD image from the right-click menu. When you are installing, document your installation steps so we can properly replicate your hard drive!

If you have some files already prepared in a folder, it's surprisingly easy to move files into your drive. You can use the following terminal command in Linux to make a quick ISO file out of a folder:

  mkisofs -o name.iso /path/to/folder
Substitute the filename and the folder path accordingly. Mount the ISO in PCem and copy the files from the CD drive to the hard drive.

Using libTAS with PCem

libTAS needs some very specific settings to work with PCem, so read this section carefully.

Set the game executable to the PCem path you've been using. libTAS doesn't like the configuration selection screen, so you need to bypass it by setting the command-line options to "--config /path/to/config.cfg", where config.cfg is the PCem configuration file you just set up, which will likely be located in ~/.pcem/configs.

Set the frames per second to 100/1. Uncheck Runtime -> Recycle threads. Everything else can be left at the default settings; PCem needs no time tracking, and Prevent writing to disk can remain checked so your hard drive image will be unchanged after you're done.

Make a test encode of your game to make sure the sound is working! There are a ton of resolution changes while booting, which will produce a lot of separate media files, so remember to open the correct movie segment when you're testing.

Here are a few tips for using PCem in libTAS:



Combined RSS Feed
EmulatorResources/PCem last edited by feos on 2019-10-11 20:08:17
Page info and history | Latest diff | List referrers | View Source