Core State/Playback Options


state
Description This option lets you load a specified save state when you run a system.
Full Command -state <slot number>
Alt. Command none
Reverse Command none
Example mame64.exe pacman -state 3
Mame.ini Command state
Command Default none
Argument Format <slot number>

autosave
Description This option automatically creates a save state file when exiting a system. Mame will automatically try and load the save file when you restart the system.
Full Command -autosave
Alt. Command none
Reverse Command -noautosave
Example mame64.exe pacman -autosave
Mame.ini Command autosave
Command Default 0
Argument Format <boolean>

rewind
Description This option will pause Mame and then save a savestate for each frame from there on. You can then use "Left Shift + Tilde" to step though each savestate.
Full Command -rewind
Alt. Command none
Reverse Command -norewind
Example mame64.exe pacman -rewind
Mame.ini Command rewind
Command Default 0
Argument Format <boolean>

rewind_capacity
Description This option allows you to set the maximum size in megabytes that the rewind savestate files can use before overwriting themselves. This value must be larger than a standard savestate file for the system.
Full Command -rewind_capacity <integer>
Alt. Command none
Reverse Command none
Example mame64.exe pacman -rewind -rewind_capacity 50
Mame.ini Command rewind_capacity
Command Default 100
Argument Format <integer>

playback
Description This option allows you to load an input file created by the -record command. As with the record function, make sure that you've deleted any nvram, cfg and memory card files or it may fail.
Full Command -playback <filename>
Alt. Command -pb
Reverse Command none
Example mame64.exe pacman -playback C:\inp\pacman.inp
Mame.ini Command playback
Command Default none
Argument Format <filename>

record
Description This option will tell Mame to record all inputs made when running a system so that they can be played back later. Make sure to clear any nvram, cfg and memory card files as they may affect playback due to system memory changes.
Full Command -record <filename>
Alt. Command -rec
Reverse Command none
Example mame64.exe pacman -record pacman1.inp
Mame.ini Command record
Command Default none
Argument Format <filename>

record_timecode
Description This option allows you to create a timecode file that shows the elasped time of a recording by pressing the F12 key.
Full Command -record_timecode
Alt. Command none
Reverse Command none
Example mame64.exe pacman -record pacman.inp -record_timecode
Mame.ini Command record_timecode
Command Default 0
Argument Format <boolean>

exit_after_playback
Description This option makes Mame exit after it has completed the playback of an input file.
Full Command -exit_after_playback
Alt. Command none
Reverse Command none
Example mame64.exe pacman -playback pacman1.inp -exit_after_playback
Mame.ini Command exit_after_playback
Command Default 0
Argument Format <boolean>

mngwrite
Description This option records every video frame of a system to an MNG video file. This option is not affected by frame rates of systems so will produce a smooth video file of even the most demanding system.
Full Command -mngwrite <filename>
Alt. Command none
Reverse Command none
Example mame64.exe pacman -mngwrite pacman.mng
Mame.ini Command mngwrite
Command Default none
Argument Format <filename>

aviwrite
Description This option will create an uncompressed AVI video file of the system specified. This video is affected by frame rates of systems, so gives an exact representation on how a system runs on your computer. As it is uncompressed, the raw video files can get huge as you record.
Full Command -aviwrite <filename>
Alt. Command none
Reverse Command none
Example mame64.exe pacman -aviwrite pacman.avi
Mame.ini Command aviwrite
Command Default none
Argument Format <filename>

wavwrite
Description This option allows the recording of the audio played by the running system in uncompressed WAV format. As it is uncompressed, the audio files can get huge as you record.
Full Command -wavwrite <filename>
Alt. Command none
Reverse Command none
Example mame64.exe pacman -wavwrite pacman.wav
Mame.ini Command wavwrite
Command Default none
Argument Format <filename>

snapname
Description This option determines the name format used to create snapshots of running systems. There are three possible wildcards you can use to name the file and you can use a back slash (/) as a separator to create sub folders. The wildcards are...
  1. %g = System Name
  2. %i = Snapshot Number In #### Format
  3. %d_ = Software Image Name Based On Format
The number generated by the %i option increases for each snapshot. If the %i isn't added then the image file is overwritten.
Full Command -snapname <wildcard>
Alt. Command none
Reverse Command none
Example mame pacman -snapname %g (Creates a file called /snap/pacman.png)
mame pacman -snapname %g/%i (Creates the file /snap/pacman/0000.png)
mame snes -cart smb -snapname %d_cart/%g%i (Creates the file /snap/snes/smb0000.png)
Mame.ini Command snapname
Command Default %g/%i
Argument Format <wildcard>

snapsize
Description This option specifies the width and height of snapshots and video created whilst running systems. Mame will use the systems default resolution if this option is not specified.
Full Command -snapsize <integer>x<integer>
Alt. Command none
Reverse Command none
Example mame64.exe pacman -snapsize 800x600
Mame.ini Command snapsize
Command Default auto
Argument Format <integer>x<integer>

snapview
Description This option will set the view that is used when taking snapshots. These are the same views used in the -view command and can be found by loading a system, pressing TAB, selecting Video Options and checking out the views in the list. The view name specified only needs to be part of the full view name (e.g. mame64.exe pacman -snapview pixel will use the Pixel Aspect (7:9) view. The view that is being recorded can also be different from the one you've got displayed.
Full Command -snapview <custom>
Alt. Command none
Reverse Command none
Example mame64.exe pacman -snapview cocktail
Mame.ini Command snapview
Command Default auto
Argument Format <custom>

snapbilinear
Description This option specifies whether the snapshot or movie should have bilinear filtering applied.
Full Command -snapbilinear
Alt. Command none
Reverse Command -nosnapbilinear
Example mame64.exe pacman -nosnapbilinear
Mame.ini Command snapbilinear
Command Default 1
Argument Format <boolean>

statename
Description This option determines the name format used to create save state files when running systems. There are three possible wildcards you can use to name the file and you can use a back slash (/) as a separator to create sub folders. The wildcards are...
  1. %g = System Name
  2. %i = Save Number In #### Format
  3. %d_ = Software Image Name Based On Format
The number generated by the %i option increases for each save state. If the %i isn't added then the save file is overwritten.
Full Command -statename <custom>
Alt. Command none
Reverse Command none
Example mame pacman -statename %g (Creates a file called /sta/pacman.sta)
mame pacman -statename %g/%i (Creates the file /sta/pacman/0000.sta)
mame snes -cart smb -statename %d_cart/%g%i (Creates the file /sta/snes/smb0000.sta)
Mame.ini Command statename
Command Default %g
Argument Format <custom>

burnin
Description This option creates an image of the running system which simulates the screen burn effect often seen on old tvs and monitors. The generated file highlights screen brightness and creates a black and white PNG image that can be loaded as part of an artwork file. These images are saved as systemname/burnin<screenname>.png
Full Command -burnin
Alt. Command none
Reverse Command -noburnin
Example mame64.exe pacman -burnin
Mame.ini Command burnin
Command Default 0
Argument Format <boolean>