News
Documentation History Authors Cost Video links
Forums
AdvanceMAME
AdvanceMENU
AdvanceCAB
|
Documentation of the AdvanceMENU advmenu program.
AdvanceMENU Frontend1 Synopsisadvmenu [-default] [-remove] [-cfg FILE] [-log] [-version] [-help] 2 DescriptionAdvanceMENU is a front-end to run the AdvanceMAME, AdvanceMESS, MAME, MESS, xmame, Raine and other emulators.Simply run it in the same directory of the emulator and press `f1' to get the help screen or `~' for the main menu. Press `tab' to change the display mode. Press `space' to change the preview mode. To run a game press `enter'. Press `esc' to exit. The major features are:
The sections of this document are:
3 Options
In Linux and Mac OS X you can also use `--' before options instead of `-'. In DOS and Windows you can also use `/'. 4 EmulatorsThe program supports many type of emulators. The emulators AdvanceMAME, AdvanceMESS, MAME, SDLMAME, xmame, DMAME, DMESS and DRAINE are directly supported and the only thing you should do is to run the AdvanceMENU program in the same directory of the emulator.All the other emulators are supported with the emulator type `generic'. 4.1 generic - Generic emulatorFor the `generic' emulator no additional rom information is needed. Only the name and the size of the rom files are used.You should specify all emulator information and directories with the `emulator' and `emulator_*' options in the `advmenu.rc' file. You need to use at least the `emulator' and `emulator_roms' options to inform AdvanceMENU how to run the emulator and where to find the roms. For example:
The various %s, %f, %p, ... macros are explained in the `emulator' option description. The roms are searched in the path specified with the `emulator_roms' option in the `advmenu.rc' file. For every file found (with any extension) a game is added in the menu. You can filter the files with the `emulator_roms_filter' option. All the snapshots are searched in the directories specified with the `emulator_*' options using the same name of the rom file. If you want, you can manually write a MAME like information file and name it as `ENUNAME.lst'. This file has the same format of the output of the `-listinfo' MAME command. Actually only the information `game', `name', `description', `year', `manufacturer', `cloneof' are used. Please note that this file is used only to add information at the existing games. The games present in this file are not automatically added at the game list. 4.2 advmame - AdvanceMAMEFor the `advmame' emulator type the roms informations are gathered from the file `ENUNAME.xml'. If this file doesn't exist, it's created automatically with emulator `-listxml' command.The directories specified in the `dir_rom' option in the `advmame.rc' file are used to detect the list of the available roms. In the DOS and Windows versions of the program the `advmenu.rc' file is searched in the same directory of the emulator. In the Unix version it's searched in the `HOME/.advance' directory. The directory specified in `dir_snap' is used to detect the list of available snapshots. 4.3 advmess - AdvanceMESSFor the `advmess' emulator the rom information is gathered from the file `EMUNAME.xml'. If this file doesn't exist, it's created automatically with emulator `-listxml' command.The directories specified in the `dir_rom' option in the `advmess.rc' file are used to detect the list of the available bioses. All the directories listed in the option `dir_image' are read and all the files found in the `machine' directories are inserted as software if the extension is recognized as a valid device extension for the current `machine' or if it's a `zip' file. For example if the `dir_image' options is `c:\software', AdvanceMENU scans the directories `c:\software\ti99_4a', `c:\software\sms', `c:\software\gameboy'... Files in the main directory `c:\software' are NOT checked. When you select to run a zip file, the zip file is opened and all the files in the zip with a valid name and with a recognized device extension are added at the AdvanceMESS command line. A file is considered to have a valid name if has the same name of the zip of if it has the name of the zip with an additional char. For example in the file `alpiner.zip' the files `alpiner.bin', `alpinerc.bin' and `alpinerg.bin' have a valid name. This feature can be used to group all the required roms to play a software in a single zip file. The file extension is also used to correctly select the device type when calling AdvanceMESS. The directory specified in `dir_snap' is used to detect the list of available snapshots. At any exit of AdvanceMESS if a new snapshot is created, this file is moved to the correct `snap\system' directory renaming it as the software started. For example, suppose that you run the `ti99_4a' system with the software `alpiner'. If you press F12 during the emulation, the file `snap\ti99_4a.png' is created. When you return to AdvanceMENU the file is moved automatically to `snap\ti99_4a\alpiner.png'. 4.4 mame - Windows MAMEFor the `mame' emulator the roms information is gathered from the file `EMUNAME.xml'. If this file doesn't exist, it's created automatically with emulator `-listxml' command.The directories specified in the `rompath' option in the `mame.ini' file are used to detect the list of the available roms. The directory specified in `snapshot_directory' is used to detect the list of available snapshots. 4.5 sdlmame - SDL MAMEFor the `sdlmame' emulator the roms informations are gathered from the file `EMUNAME.xml'. If this file doesn't exist, it's created automatically with emulator `-listxml' command.The directories specified in the `rompath' option in the `HOME/.mame/mame.ini' file in Linux and Mac OS X and in the 'mame.ini' file in Windows are used to detect the list of the available roms. Please note that in Linux and Mac OS X the 'mame.ini' file doesn't support relative paths for roms and other files. Always absolute paths configuring SDL MAME. The directory specified in `snapshot_directory' is used to detect the list of available snapshots files. 4.6 xmame - xmameFor the `xmame' emulator the roms informations are gathered from the file `EMUNAME.xml'. If this file doesn't exist, it's created automatically with emulator `-listxml' command.The directories specified in the `rompath' option in the `HOME/.xmame/mamerc' file are used to detect the list of the available roms. The directory specified in `screenshotdir' is used to detect the list of available snapshots files. 4.7 dmame - DOS MAMEFor the `dmame' emulator the roms informations are gathered from the file `EMUNAME.xml'. If this file doesn't exist, it's created automatically with emulator `-listxml' command.The directories specified in the `rompath' option in the `mame.cfg' file are used to detect the list of the available roms. The directory specified in `snap' is used to detect the list of available snapshots. 4.8 dmess - DOS MESSFor the `dmess' emulator the roms informations are gathered from the file `EMUNAME.xml'. If this file doesn't exist, it's created automatically with emulator `-listxml' command.The directories specified in the `biospath' option in the `mess.cfg' file are used to detect the list of the available bioses. All the directories listed in the option `softwarepath' are read and all the `zip' files found in the `subsystem' directories are inserted as software. For example if the `softwarepath' options is `c:\software', AdvanceMENU scans the directories `c:\software\ti99_4a', `c:\software\sms', `c:\software\gameboy'... Zips in the main directory `c:\software' are NOT checked. When you select one of these entries the zip is opened and is searched the first file with the same name of the zip but different extension. This file is used as the argument of the `-cart' option when running `mess'. AdvanceMENU is NOT able to use other supports like `-flop'. All the aliases present if the `mess.cfg' are inserted as software entries. When you select one of these entries the `mess' option `-alias' is used to start the game. You can set an arbitrary description on an alias specification adding it on the same line of the alias after the comment char '#' using this format:
For example:
At any exit of the emulator if a new snapshot is created, this file is moved to the correct `snap\system' directory renaming it as the software started. For example, suppose that you run the `ti99_4a' system with the software `alpiner'. If you press F12 during the emulation, the file `snap\ti99_4a.png' is created. When you return to AdvanceMENU the file is moved automatically to `snap\ti99_4a\alpiner.png'. 4.9 draine - DOS RaineFor the `draine' emulator the roms informations are gathered from the file `EMUNAME.lst'. If this file doesn't exist, it's created automatically with emulator `-gameinfo' command.All the directories specified in the `rom_dir_*' options are used to detect the list of the available roms. The directory specified in `screenshots' is used to detect the list of available snapshots. 5 ConfigurationThe file `advmenu.rc' is used to save the current state of the front-end. It's read at startup and saved at exit. You can prevent the automatic save at the exit with the `config' option.In DOS and Windows the configuration options are read from the file `advmenu.rc' in the current directory. In Linux and Mac OS X the configuration options are read from the files `advmame.rc' and `advmess.rc' in the $host, $data and the $home directory. The $host directory is `$SYSCONFDIR', where $SYSCONFDIR is the `sysconfdir' directory configured with the `configure' script. The default is `/usr/local/etc'. The $data directory is `$DATADIR/advance', where $DATADIR is the `datadir' directory configured with the `configure' script. The default is `/usr/local/share'. The $home directory is `$ADVANCE', where $ADVANCE is the value of the ADVANCE environment variable when the program is run. If the ADVANCE environment variable is missing the $home directory is `$HOME/.advance' where $HOME is the value of the HOME environment variable. If both the ADVANCE and HOME environment variables are missing the $data directory became also the $home directory. The priority of the options is in the order: $host, $home and $data. The $home directory is also used to write all the information by the program. The files in the $host and $data directory are only read. You can include an additional configuration files with the `include' option. In DOS and Windows the files are searched in the current directory. In Linux and Mac OS X the files are searched in the $home directory if they are expressed as a relative path. You can force the search in the current directory prefixing the file with `./'. To include more than one file you must divide the names with `;' in DOS and Windows, and with `:' in Linux and Mac OS X. You can force the creation of a default configuration file with the command line option `-default'. In DOS and Windows the directory name separator is `\' and the multi-directory separator is `;'. In Linux and Mac OS X the directory name separator is `/' and the multi-directory separator is `:'. 5.1 Global Configuration OptionsThis section describes the global options used to customize the the program.A subset of the configuration options are saved per emulator basis to allow different configurations for different emulators. Please note that these specific emulator configurations are not activated if you select to show more than one emulator at time. In this case only the default configuration is used. Specifically these special options are `mode', `sort', `preview', `group_include' and `type_include'. 5.1.1 configSelects if and when the configuration modified by the user at runtime should be saved.
config save_at_exit | restore_at_exit | restore_at_idle Options:
You can manually save the configuration at runtime from the main menu. 5.1.2 emulatorSelects the emulators to list in the menu. You can specify more than one emulator.WARNING! Before playing with this option, you should do a backup copy of your current `advmenu.rc' because when you remove an emulator, the game information for that emulator (like the time played) is lost.
emulator "EMULATOR" (generic | advmame | advmess | mame | dmame | dmess | draine) "[-]EXECUTABLE" "ARGUMENTS" Options:
In the emulator arguments some macros are substituted with some special values:
For the `generic' emulator type you need use the % macros to tell at the emulator which game run. For all the other emulator types this information is automatically added by AdvanceMENU. Examples for DOS and Windows:
Examples for Linux and Mac OS X:
5.1.3 emulator_roms/roms_filter/altss/flyers/cabinets/icons/titlesSelects additional directories for the emulators. These directories are used in addition to any other directory defined in the emulator config file. The preview images and sounds files are also searched also in any `.zip' file present in these directories.
emulator_roms "EMULATOR" "LIST" emulator_roms_filter "EMULATOR" "LIST" emulator_altss "EMULATOR" "LIST" emulator_flyers "EMULATOR" "LIST" emulator_cabinets "EMULATOR" "LIST" emulator_marquees "EMULATOR" "LIST" emulator_icons "EMULATOR" "LIST" emulator_titles "EMULATOR" "LIST" Commands:
Options:
Examples for DOS and Windows:
5.1.4 modeSelects the menu listing mode.
[EMULATOR/]mode full | full_mixed | text | list | list_mixed | tile_small | tile_normal | tile_big | tile_enormous | tile_giant | tile_icon | tile_marquee Options:
5.1.5 mode_skipDisables some menu modes when you press `tab'.
mode_skip (full | full_mixed | text | list | list_mixed | tile_small | tile_normal | tile_big | tile_enormous | tile_giant | tile_icon | tile_marquee)* Options:
Examples:
5.1.6 sortSelects the sort order of the games displayed.
[EMULATOR/]sort parent | name | time | play | year | manufacturer | type | group | size | resolution | info Options:
5.1.7 previewSelects the type of the images displayed.
[EMULATOR/]preview snap | titles | flyers | cabinets Options:
The `icons' and `marquees' images can be selected with the special `mode' options `tile_icon' and `tile_marquee'. 5.1.8 preview_expandEnlarges the screen area used by the vertical games on horizontal tile (and horizontal games in vertical tile).
preview_expand FACTOR Options:
Examples:
5.1.9 preview_default_*Selects the default images. When an image for the selected game is not found, a default image can be displayed.
preview_default "FILE" preview_default_snap "FILE" preview_default_flyer "FILE" preview_default_cabinet "FILE" preview_default_icon "FILE" preview_default_marquee "FILE" preview_default_title "FILE" Commands:
Options:
Examples:
5.1.10 icon_spaceSelects the space size between icons. The `icon' mode is available only if you set the option `emulator_icons' in the emulator config file.
icon_space SPACE Options:
In the icon display the game title is displayed in multiple rows if there is enough space. 5.1.11 mergeSelects the expected format of your romset. It's used to test the existence of the correct zips needed to run the games.
merge none | differential | parent | any | disable Options:
5.1.12 gameContains various information of the know games. A `game' option is added automatically at the configuration files for any rom found. It's used to keep some game information like the play time.
game "EMULATOR/GAME" "GROUP" "TYPE" TIME PLAY "DESC" Options:
The GROUP, TYPE and DESC argument overwrite any other value imported with the `group_import', `type_import', and `desc_import' options. The imported values take effect only if the user GROUP, TYPE and DESC are empty. Examples:
5.2 Display Configuration OptionsThis section describes the options used to customize the display.5.2.1 device_video_*These options are used to customize the video drivers.All the `device_video_*' options defined in the `advdev.txt' file can be used. If you use a `System' video driver, you don't need to set these options. They are mostly ignored. With a `Generate' video drivers these options are used to select and create the correct video mode. If missing the settings for a standard Multisync SVGA monitor are used. 5.2.2 display_sizeSelects the desired width of the video mode.
display_size WIDTH Options:
5.2.3 display_restoreatgameSelects whether to reset the video mode before running the emulator.
[EMULATOR/]display_restoreatgame yes | no Options:
5.2.4 display_restoreatexitSelects whether to reset the video mode before exiting.
display_restoreatexit yes | no Options:
5.2.5 display_orientationSelects the desired orientation of the screen.
display_orientation (flip_xy | mirror_x | mirror_y)* Options:
Examples:
5.2.6 display_brightnessSelects the image brightness factor.
display_brightness FACTOR Options:
Examples:
5.2.7 display_gammaSelects the image gamma correction factor.
display_gamma FACTOR Options:
Examples:
5.3 Sound Configuration OptionsThis section describes the options used to customize the sound.5.3.1 device_sound_*These options are used to customize the audio drivers.All the `device_sound_*' options defined in the `advdev.txt' file can be used. 5.3.2 sound_volumeSets the global sound volume.
sound_volume VOLUME Options:
Examples:
5.3.3 sound_latencySets the audio latency.
sound_latency TIME Options:
Increase the value if your hear a choppy audio. 5.3.4 sound_bufferSets the size of the lookahead audio buffer for decoding.
sound_buffer TIME Options:
Increase the value if your hear a choppy audio. 5.3.5 sound_foreground_EVENTSelects the sounds played in foreground for the various events.
sound_foreground_begin none | default | FILE sound_foreground_end none | default | FILE sound_foreground_key none | default | FILE sound_foreground_start none | default | FILE sound_foreground_stop none | default | FILE Commands:
Options:
5.3.6 sound_background_EVENTSelects the sounds played in background for the various events.
sound_background_begin none | FILE sound_background_end none | FILE sound_background_start none | FILE sound_background_stop none | FILE sound_background_loop none | default | FILE Commands:
Options:
5.3.7 sound_background_loop_dirSelects the background music directory to search for MP3 and WAV files. Music tracks will be played in random order.Multiple directories may be specified by separating each with a semicolon `;' in DOS and Windows, with a double-colon `:' in Linux and Mac OS X. Note that this directory must be used only for your music. The emulated game recordings, played when the cursor is moved on the game, are stored in the snap directory defined in the emulator configuration file or with the `emulator_altss' option.
sound_background_loop_dir "DIR" Options:
Examples:
5.4 Input Configuration OptionsThis section describes the options used to customize the user input.5.4.1 device_keyboard/joystick/mouseThese options are used to customize the input drivers.All the `device_keyboard/joystick/mouse_*' options defined in the `advdev.txt' file can be used. As default the mouse and the joystick support is disabled. To enable it you must add the options:
in your advmenu.rc file. 5.4.2 mouse_deltaSelects the mouse/trackball sensitivity. Increase the value for a slower movement. Decrease it for a faster movement.
mouse_delta STEP Options:
5.5 User InterfaceThis section describes the options used to customize the user interface.5.5.1 ui_fontSelects a font file. The formats TrueType (TTF), GRX, PSF and RAW are supported. You can find a collection of fonts in the `contrib' directory.
ui_font auto | "FILE" Options:
The TrueType (TTF) format is supported only if the program is compiled with the FreeType2 library. 5.5.2 ui_fontsizeSelects the font size, if the specified font is scalable. The size is expressed in number of rows and columns of text in the screen.
ui_fontsize auto | ROWS [COLS] Options:
5.5.3 ui_backgroundDefines a background image in .PNG or MNG format. The image is stretched to fit the screen.ui_background FILE | none Options:
For .MNG files only the first frame is used. 5.5.4 ui_exitDefines an exit image/clip in .PNG or .MNG format displayed at the frontexit exit. The image is stretched to fit the screen.ui_exit FILE | none Options:
5.5.5 ui_startupDefines a startup image/clip in .PNG or .MNG format displayed at the frontend startup. The image is stretched to fit the screen.ui_startup FILE | none Options:
5.5.6 ui_helpDefines an help image/clip in .PNG or .MNG format displayed when the user press F1. The image is stretched to fit the screen.ui_help FILE | none Options:
5.5.7 ui_gamemsgOne line message displayed when a game is chosen. The message is displayed only if the option `display_restoreatgame' is set to `no'.
ui_gamemsg "MESSAGE" Options:
Examples:
5.5.8 ui_gameSelects the preview type to display when a game is run. The preview is displayed only if the option `display_restoreatgame' is set to `no'.
ui_game none | snap | flyers | cabinets | titles Options:
5.5.9 ui_skiptop/bottom/left/rightDefines the border area of the screen not used by the menu. Generally it's the part of the screen used by the background image. If a `ui_background' image is specified these values refer at image size before stretching, otherwise they refer at the current video mode size.ui_skiptop N ui_skipbottom N ui_skipleft N ui_skipright N Options:
5.5.10 ui_topbar/bottombarEnables or disables the top and bottom information bars.ui_topbar yes | no ui_bottombar yes | no 5.5.11 ui_colorSelects the user interface colors.
ui_color TAG FOREGROUND BACKGROUND Tags:
Options:
5.5.12 ui_clipSelects how play the video clips.
ui_clip none | single | singleloop | multi | multiloop | multiloopall Options:
5.5.13 ui_translucencySelects the translucency of the user interface.ui_translucency FACTOR Options:
The translucency has effect only if you have a background image. 5.5.14 ui_commandDefines the user commands. These commands are executed as shell scripts. The video mode is not changed, so they must be silent.ui_command "MENU" SCRIPT Options:
In the script text some macro are substituted with information of the selected game:
If no game is selected the macros aren't substituted. If the script exits with an error code, a message is displayed. Examples:
5.5.15 ui_command_menuSelects the name of the menu entry for the commands submenu.ui_command_menu MENU Options:
5.5.16 ui_command_errorSelects the message to display if a command fails.ui_command_error MSG Options:
5.5.17 ui_menukeyEnables or disables the key names in the menu entries.ui_menukey yes | no 5.5.18 ui_consoleChanges the user interface behavior for the use on a game console system. Mainly for AdvanceCD.ui_console yes | no In console mode the menu is reduced to contains only the minimal commands, and the sound volume is propagated to the emulators if possible. 5.6 Input Configuration OptionsThis section describes the options used to customize the user input.5.6.1 device_keyboard/joystick/mouse_*These options are used to customize the input drivers.All the `device_keyboard/joystick/mouse_*' options defined in the `advdev.txt' file can be used. 5.6.2 input_hotkeyEnables or disables the recognition of the special OS keyboard sequences.
input_hotkey yes | no Options:
In DOS the hotkey recognized are:
In Linux the hotkey recognized generally are:
5.6.3 lockLocks or unlocks the user interface. When locked, the user can only browse and run games. Options can't be changed and the user cannot exit.
lock yes | no Options:
5.6.4 event_assignCustomizes the input keyboard codes that trigger menu events.
event_assign EVENT EXPRESSION Events:
Options:
Examples:
You can use the utility `advk' to get the key scancodes and names. 5.6.5 event_repeatSelects the repeat rate of the various events.
event_repeat FIRST_TIME NEXT_TIME Options:
5.6.6 event_modeSelects whether to wait for a complete screen update before processing the next event.
event_mode wait | fast Options:
5.6.7 event_alphaDisables the alphanumeric keys for fast moving. If you have a keyboard encoder or a keyboard hack with some buttons remapped to alphanumeric keys, it's useful to disable them.
event_alpha yes | no Options:
5.7 Other Configuration Options5.7.1 idle_startAutomatically starts a random game after some time of inactivity. You can also configure the AdvanceMAME option `input_idleexit' in the file `advmame.rc' to create a continuous demo mode.
idle_start START_TIMEOUT REPEAT_TIMEOUT Options:
Examples:
5.7.2 idle_screensaverSelects the start time of the default screen saver. The screensaver is a slide show of the available snapshots.
idle_screensaver START_TIMEOUT REPEAT_TIMEOUT Options:
Examples:
5.7.3 idle_screensaver_previewSelects the preview type to use in the screensaver. Like the preview option.
idle_screensaver_preview none | exit | shutdown | play | snap | flyers | cabinets | titles Options:
5.7.4 group/typeSelects the available `group' and `type' category names and which of them to show.
group "STRING" type "STRING" [EMULATOR/]group_include "STRING" [EMULATOR/]type_include "STRING" Commands:
Options:
5.7.5 group/type/desc/info_importSelects the automatic import of the groups, types, descriptions and extra information from an external file. The extra info are additional information displayed for every game.The file formats supported are CATINI, MacMAME and NMS. The files are read in the current directory in DOS and Windows and in the $home directory in Linux and Mac OS X. WARNING! These options DON'T OVERRIDE any user explicit choices made with the `game' option.
desc_import (ini | mac | nms) "EMULATOR" "FILE" ["SECTION"] info_import (ini | mac | nms) "EMULATOR" "FILE" ["SECTION"] group_import (ini | mac | nms) "EMULATOR" "FILE" ["SECTION"] type_import (ini | mac | nms) "EMULATOR" "FILE" ["SECTION"] Commands:
Options:
Examples:
The CATLIST files can be downloaded at:
5.7.6 misc_exitSelects the exit mode.
misc_exit none | normal | shutdown | all Options:
5.7.7 misc_quietDisables the copyright text message at the startup.
misc_quiet yes | no 6 Formats SupportedThis is the list of the file formats supported by AdvanceMENU.Images:
Clips:
Sounds:
Fonts:
Archives:
7 SignalsThe program intercepts the following signals:
8 CopyrightThis file is Copyright (C) 2003, 2004, 2005 Andrea Mazzoleni, Randy Schnedler. |