This page describes tools used for traditional method of TASing. If you are new, this method can seem unintuitive and complicated to you. Then for first TAS sessions you can try using a more user-friendly all-in-one interface developed by TASers exclusively - TASEditor.

Theory

Since emulation process consists of emulating isolated frames, you can affect the speed. But emulation of a hardware takes much more powers than that hardware used. Emulators have different code, and its execution takes different time. If your computer is powerful enough to handle it, you can increase the emulation speed. Either gradually (if the emulator allows), to some fixed speed, or by pressing Fast Forward key, which speeds the process up to maximum possible speed.
But most commonly we slow down emulation. It allows to trace every process as it flows. Combined with Frame Advance, this provides quite a useful method of navigation - you press FA emulating particular frames, then hold it down to let the game run for some time (usually at slower speed), then release FA back, pausing all. Some emulators provide slower speed when holding down FA, than the original emulation speed.
Emulation speed may be adjusted, because the process, that looks uniform and seamless, is actually gradual. A game is emulated frame by frame at a rate determined by the emulated platform. Your computer usually takes less time to prepare every next frame, than the original system took, so emulation gets internally suspended to match the original framerate.
That gradualness allows pausing emulation, which freezes the game at the state it was at. And if we can pause, nothing prohibits us from unpausing it and pausing back any time we wish, say, next frame. This is how Frame Advance was born. Once you press the key assigned for frame-advancing, the game emulates one more frame and gets hanged up on pause.
Being able to emulate each frame on command allows the desired precision of actions and gives time to examine everything before entering input. See how exactly emulators provide Frame Advance.
Some controllers, especially analog ones, are difficult to operate precisely. Emulators offer the option of manually specifying the exact input that you wish to use. Not only does this remove limitations in the input hardware used to make the movie, but it also allows exact values to be picked, allowing for perfectly controlled movement.
2d control sticks in particular benefit from this by allowing exact direction and velocity control.
Emulators record your play to input files, that allow to navigate through, edit, replay, share. These are traditionally called movies, though they have nothing to do with video. They provide enough determinism to make games react similarly to similar input each time it's replayed. Input file is a foundation of tool-assistance.
When you start movie recording (refer to Emulators Usage for how to access this function), you must record from the game's initial state it has on load (Power On), that would be a base for further manipulations. You don't start a movie from a savestate normally, because this way it won't have a preliminary input to approve that game state. In some cases though, it's allowed to start from a savestate, when your movie requires unlocking some special mode. Then you record how you unlock it from load, make a savestate, and start recording from such approved one.
Each savestate represents a complete snapshot of a game memory, that normally changes depending on your actions gradually. It can be stored (saved) and restored (loaded), and loading it will instantly bring the game to the saved state.
Competently combined with movies, savestates create a whole new concept - stable rerecording. That means it gets remembered what frame the state was saved on, what input preceded it, what values some useful counters had at that point. This allows to restore not just the game state, but the entire movie state as well. Good emulators also allow undoing saves and loads. The final trait of savestates used for tool-assistance is that we have 10 slots for them (some cases allow even more), not just one.
You should have one savestate which you use extremely often (termed "quicksave" although any savestate is arguably a quicksave). There should be a 2nd savestate trailing the quicksave that can be used for backup. Other savestates are for replaying your movie and/or resuming recording at some point. You should have at least one savestate around the beginning of the level that you are on. Here is how experienced TASers use their savestate slots.
There are two systems of saveslot switching. The first system is a couple of keys used to change the saveslot number and a couple of keys to save and load. The second system consists of 20 keys, with each pair controlling save and load of a distinct saveslot. Emulators have either the second system, or both. Default keys vary by emulator.
Our emulators internally allow to show some useful info on top of the game window.
  • Frame count - Basic value to keep track on, it is helpful to know exactly how many frames your movie has used by a certain point, when comparing different routes or movies.
  • Lag count - Second most basic value, allows to determine how much time you lose due to game freezes. Lag can sometimes depend on your actions, and thus be manipulatable.
  • Input display - When reviewing movies, it is often helpful to see when keys are pressed. It shows which keys the author pressed in the movie as it is played. You can figure out macros used for tricks. It also helps during recording to see which buttons registered during a frame.
Autofire (turbo-buttons emulation) causes the emulator to press a designated button every second frame. Autohold causes the emulator to press the button every frame. There may be many other types of autofire options.
Autofire is strictly unnecessary for making TASes, as frame advance is the most precise form of slow motion (lag or some limit can break autofire patterns). Autohold may be necessary when pressing a mass of keys that will likely cause some not to register (depends on a keyboard).
See Advanced tools for the ones that need quite some work to get working, but offer new levels of precision and abstraction.

Practice

Playing back
To play back a movie, a ROM must be loaded. There should be a menu option (which may be under any heading) named "(Re)play movie", "(Re)play input", "Movie > Play", or similar.
To play back the movie correctly is another issue. See desync help.
In the Unix version of FCEU, you either
  • have to place the movie into the FCEU preferences directory (~/.fceu) with a name composed of the ROM name, the ROM md5sum and .fcm extension, and then press shift-F6 to load it.
  • start the emulator with a command line like this: "fceu -play moviefile.fcm moviefile.nes"
  • start the emulator and hit shift+2 and enter the movie filename
depending which version of FCEU you have.
Read-Only/Read+Write
If a movie is in a "read-only" mode (Playback), the user input has no affect on the playback, and savestates & loadstates can not alter the movie in any way. Loading a state in Read-Only mode will jump to that frame in the movie, allowing to watch the following events if they exist.
If a movie is in a "read+write" mode (Recording), the user input is dumped into the movie file during emulation, and savestates affect movie data when loaded. Savestates only include input before the saved frame, so if you load a state in Read+Write mode, it will contain no input afterwards, you're supposed to record it.
Resuming recording
To resume recording of a movie, play it back until it reaches the point where you want to resume recording. Then make a savestate, turn off Read-Only (default is usually Q but can be configured), and load the savestate. You can use existing savestates (in read-only mode) to reach the point sooner.
Some emulators have an option such as "Resume recording from now" or such.
Assign keys so that one hand takes care of directional input (up, down, ...), the other hand common button input (A, B, ...). Assign keys that are rarely used out of the way.
The frame advance button should be close to the hand that is least involved (usually the hand using directional input). The quickload button should be close to the other hand. The quicksave button can be anything as long as it is not easy to press by accident. All other savestate buttons should be out of the way.
Avoid assigning keys to the control keys on your keyboard. However, in cases when a keyboard doesn't allow too many keys to be pressed at once (which is what we're doing while recording movies), frame advance can be assigned to Ctrl or alike, to let it work above the limit. Sometimes using arrows for D-pad also helps with that problem.
It is recommended to change the frame advance key once in a while, unless you are fine with wearing that button out.
FractalFusion uses, for example:
  • Directional input: Numpad 8, 2, 4, 6 for up, down, left, right.
  • Common button input: N,G, and possibly H and nearby buttons.
  • Other input: Usually [ for select and ] for start.
  • Frame advance: Page Up (could use a better button)
  • Quickload: T
  • Quicksave: Shift+T
  • 2nd savestate: F3 for load, Shift+F3 for save
  • 3rd savestate: F5 for load, Shift+F5 for save
Refer to that thread for which control schemes our TASers actually use.
Most games have a title screen requiring you to push a button (in general or a specific button) to advance to the main menu or to the game itself. As an exercise in basic tool-assistance, try to find the first frame at which pushing a button will advance the game in this fashion. This works as follows:
  1. Save a state well before it is possible to advance the screen (this can be as early as starting to record the movie).
  2. Run the game (frame advance or otherwise) until it is clearly possible to advance. Using the frame number display, make a note of that frame number.
  3. Load your earlier save state.
  4. Advance until shortly before the frame number you found earlier and try to cause the game to advance past the title screen by pushing the appropriate button and advancing a few frames to see if it will fade out.
  5. If this works, make a note of the frame number, reload your earlier state and proceed as above. If it doesn't work, note the frame number and try a later frame.
  6. By repeating the above, narrow down the range of frames until you reach the desired target frame.
Use of more save states during this process is encouraged, as it can help things go considerably faster.
Much of TASing can be boiled down to this basic procedure - repeating a short segment over and over again until the best possible result is achieved. Here the desired input is relatively trivial (finding the best frame at which to push one button).
I loaded a previous savestate by accident; what do I do?
Load your quicksave, or the most recent savestate that works. This is a feature called bulletproof rerecording, which protects your movie. There also might be an option to undo last save or load.
Available only in some emulators (TODO: elaborate). Where it's not, there probably is a lua script for that.
While recording, load your savestate and enter the input you want for player 1. When you're satisfied, pause the emulation without saving and cycle through the different input tracks until you reach player 2. The default keybind for this action is ">" (shift + ".") and "<" (shift + ",").
Then simply load that same savestate again and enter player 2's input. During this time, player 1 will automatically repeat the input you entered previously. When you're finished, you can then save over the savestate and both inputs will be recorded.

Video

In this introduction video, adelikat describes what is a Tool-assisted Movie and basic concepts of how to record and play a movie. Then he introduce the concepts of rerecording, savestates, slow-downs and frame advance. Basic optimization concepts are covered.
He uses FCEUX for this tutorial and covers how the user can aquire it. Super Mario Bros was picked to show basic rerecording. Watch on Ustream if YouTube sound desyncs.
In this video, dwangoAC guides Sand_Knight through everything from the basics of creating a Tool-Assisted Speedrun movie file to using frame advance and other tools like TAS Editor within FCEUX. This is also a good overview of various techniques used to route a game and test a game's mechanics. Basics like performing a binary search are included as well as a deep dive of various topics such as a demonstration on how to recover from accidentally advancing more frames than you intended to before making a savestate. At the end the different techniques we used get put to the test in a head-to-head comparison of who had the fastest time.
This video features an actual TAS session by Aglar, where he is TASing in Gens with Sonic HeadsUpDisplay script.
TASing in DeSmuME recorded by paul_t
TASing in Mupen64 done by Rising Tempest

TASingGuide/BasicTools last edited by on 1/1/2022 6:13 PM
Page History Latest diff List referrers View Source