En:Game Configuration

Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.

All configuration of game is made by values of parametres which are specified in a file named "config.cfg". It is text a file with keyword list with their parameters. File should be allocated in game root directory (near to an exe-file).

List of parameters

Name of parameter
Description
Acceptable value
resource_path Path to game resource. Can used for debug. This parameter can be skipped. String value in curly brackets
music_volume Music volume. If parameter = 0 then music will be switched off. Integer value (from 0 to 255) in curly brackets
sfx_volume Sound effects volume. If parameter = 0 then sound effects will be switched off. Integer value (from 0 to 255) in curly brackets
screen_width Game window width in pixels (used only in PC version). Integer value (from 240 to 10000) in curly brackets
screen_height Game window height in pixels (used only in PC version). Integer value (from 240 to 10000) in curly brackets
show_fps If parameter = 1 then system will be draw count of frames per second in top right corner of game window. Integer value (0 or 1) in curly brackets
memory_status If parameter = 1 then system will be draw free memory status (like green bar) in top left corner of game window Integer value (0 or 1) in curly brackets
battery_status If parameter = 1 then system will be draw current battery status (like bar) in top left corner of game window. Integer value (0 or 1) in curly brackets
inv_rotate_timer Value for synchronize all drawing events in game. For example it used in rotated unit in inventory window Integer value in curly brackets
player_name Player Name String value in curly brackets
debug_mode Service parameter. Used for switch on game engine to debug mode. Parameters that have use this parameter are marked like «*» in this manual. If parameter = 1 then user will be see on small game panel button for call debug menu. Integer value (0 or 1) in curly brackets
draw_grid * Service parameter. If parameter = 1 then on game map floor user will be see tiles grid with coordinates. This feature user can use when he develop level map. Integer value (0 or 1) in curly brackets
debug_map *Service parameter. Used for load location with given name. This feature user can use when he develop level map. String value in curly brackets
text_timer Timer (in milliseconds) of visible of unit text Integer value in curly brackets
always_run Always run mode flag. If it = 1, then hero will be always run over location. Integer value (0 or 1) in curly brackets
unit_random_act_timer Timer (in milliseconds) that declared random unit action (think, walk, random talk and so on) Integer value in curly brackets
map_random_act_timer Timer (in milliseconds) of random map cation Integer value in curly brackets
show_map_coord Show current map coordinates in pixels. If this parameter = 1 then user will see in top left corner values of current map coordinated. Useful for method MapBuilder.AddMapViewPort Integer value (0 or 1) in curly brackets
draw_tile_coord Draw floor tiles coordinates. If value = 1, then on each floor tiles user will see tile coordinates. Integer value (0 or 1) in curly brackets
disable_random_actions Disable (if value = 1) all unit and map random actions. Useful on weak devices. Integer value (0 or 1) in curly brackets
disable_day_night Disable of switching game screen to day/night. Useful on weak devices. Integer value (0 or 1) in curly brackets
screen_orientation Added in version 1.1. Type of screen rotation. This parameter can use next values:
  • 0 - No screen rotation
  • 1 - Screen rotation to the right on 90 degrees (by default)
  • 2 - Screen rotation on 180 degrees
  • 3 - Screen rotation to the left on 90 degrees
  • 4 - Screen rotation detected by system driver
Integer value from 0 to 4 in curly brackets

Example of config.cfg

resource_path={D:\\Games\\Fallout_PPC}
music_volume={100}
sfx_volume={150}
show_fps={1}
inv_rotate_timer={300}
player_name={maskin} 

debug_mode={1}
draw_grid={1}
debug_map={default}

Execute Pocket F.A.L.L.O.U.T. from command line

Note : symbol "|" means : and/or

PocketFallout.exe [-debug | -map <имя_карты> | -load <номер_слота> | 
                  -nofps | -grid ]