Difference between revisions of "GameConfigWML"
(→Color Palettes: delete sentence that seems to be wrong (tested with Ravana's color changer and #4366)) |
(→The [game_config] tag: Update docs about orbs, and clear out some of the obsolete data) |
||
Line 6: | Line 6: | ||
In official versions of Wesnoth it is in ''game_config.cfg''; values used there are labeled 'standard'. | In official versions of Wesnoth it is in ''game_config.cfg''; values used there are labeled 'standard'. | ||
+ | {{Note|This page is very outdated, and will take multiple edits to update.}} | ||
The following keys are recognised | The following keys are recognised | ||
Line 15: | Line 16: | ||
* '''kill_experience''': (standard 8) killing a unit with ''level=X'' will give ''X''*''kill_experience'' experience to the killing unit. However, if a unit has ''level=0'', it will still give half of ''X'' experience. | * '''kill_experience''': (standard 8) killing a unit with ''level=X'' will give ''X''*''kill_experience'' experience to the killing unit. However, if a unit has ''level=0'', it will still give half of ''X'' experience. | ||
− | |||
− | |||
− | |||
* '''default_defeat_music''': (standard 'defeat.ogg,defeat2.ogg') default list of music tracks that are chosen to play on player's defeat; this can be overriden per-scenario | * '''default_defeat_music''': (standard 'defeat.ogg,defeat2.ogg') default list of music tracks that are chosen to play on player's defeat; this can be overriden per-scenario | ||
* '''default_victory_music''': (standard 'victory.ogg,victory2.ogg') default list of music tracks that are chosen to play on player's victory; this can be overriden per-scenario | * '''default_victory_music''': (standard 'victory.ogg,victory2.ogg') default list of music tracks that are chosen to play on player's victory; this can be overriden per-scenario | ||
* '''title_music''': (standard 'main_menu.ogg') the music to play at the title screen | * '''title_music''': (standard 'main_menu.ogg') the music to play at the title screen | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * ''' | + | * '''energy''': (standard 'misc/bar-energy.png') the images used to display hp/xp bars. |
− | + | * '''orb''': (standard 'misc/orb.png') the orb image to add on top of the hp bar, this is recolorable to show the status; see 'Orbs', [[WesnothManual]] | |
− | + | * '''orb_two_color''': (standard 'misc/orb-two-color.png') like '''orb''', but has two separate recolorable parts | |
− | + | ||
− | * ''' | ||
− | * ''' | ||
− | |||
* '''flag_image''': (standard 'image/flag'terrain/flag-1.png:150,terrain/flag-2.png:150,terrain/flag-3.png:150,terrain/flag-4.png:150') the default flag animation to mark captured villages (if no custom flag is defined in the [side] tag). By example, this animation has 4 frames of 150ms each. An automatic side-coloring is applied. | * '''flag_image''': (standard 'image/flag'terrain/flag-1.png:150,terrain/flag-2.png:150,terrain/flag-3.png:150,terrain/flag-4.png:150') the default flag animation to mark captured villages (if no custom flag is defined in the [side] tag). By example, this animation has 4 frames of 150ms each. An automatic side-coloring is applied. | ||
* '''flag_icon_image''': (standard 'flags/flag-icon.png') the default flag icon to indicate the side playing in the statusbar (if no custom flag_icon is defined in the [side] tag). An automatic side-coloring is applied. | * '''flag_icon_image''': (standard 'flags/flag-icon.png') the default flag icon to indicate the side playing in the statusbar (if no custom flag_icon is defined in the [side] tag). An automatic side-coloring is applied. | ||
* ''' hp_bar_scaling ''': (standard '0.6') The ratio of hitpoints to height used for displaying the hp bar. Can be overwritten in [unit] and [unit_type]. | * ''' hp_bar_scaling ''': (standard '0.6') The ratio of hitpoints to height used for displaying the hp bar. Can be overwritten in [unit] and [unit_type]. | ||
* ''' xp_bar_scaling ''': (standard '0.5') The ratio of xp to height used for displaying the xp bar. Can be overwritten in [unit] and [unit_type]. | * ''' xp_bar_scaling ''': (standard '0.5') The ratio of xp to height used for displaying the xp bar. Can be overwritten in [unit] and [unit_type]. | ||
− | |||
− | |||
* '''footprint_left_nw''', '''footprint_left_n''', '''footprint_right_nw''', '''footprint_right_n''': images used to display the path that a unit would take to the tile the cursor is on. | * '''footprint_left_nw''', '''footprint_left_n''', '''footprint_right_nw''', '''footprint_right_n''': images used to display the path that a unit would take to the tile the cursor is on. | ||
Line 56: | Line 40: | ||
* '''unreachable_image''': (standard 'terrain/darken.png') the stripes mask used to show unreachable locations | * '''unreachable_image''': (standard 'terrain/darken.png') the stripes mask used to show unreachable locations | ||
− | |||
− | |||
* '''observer_image''': (standard 'misc/eye.png') the image to use for observer in multi-player games. (The eye in the upper right hand corner.) | * '''observer_image''': (standard 'misc/eye.png') the image to use for observer in multi-player games. (The eye in the upper right hand corner.) | ||
− | |||
* '''zoom_levels''': {{DevFeature1.13|8}} A comma-separated list of valid zoom levels, with 1.0 representing 100%. | * '''zoom_levels''': {{DevFeature1.13|8}} A comma-separated list of valid zoom levels, with 1.0 representing 100%. | ||
Revision as of 01:34, 24 January 2023
The [game_config] tag
This tag is a top level WML tag which can only be used once because it defines basic settings that are used everywhere in the game. In official versions of Wesnoth it is in game_config.cfg; values used there are labeled 'standard'.
Note | Note: | This page is very outdated, and will take multiple edits to update. |
The following keys are recognised
- base_income: (standard 2) how much your leader earns without any villages
- village_income: (standard 1) how much your leader earns for each village you control
- poison_amount: (standard 8) the amount of damage poison deals to a unit
- rest_heal_amount: (standard 2) how much HP a unit gains each turn it rests
- recall_cost: (standard 20) how much it costs to recall a unit; this cost is independent of level.
- kill_experience: (standard 8) killing a unit with level=X will give X*kill_experience experience to the killing unit. However, if a unit has level=0, it will still give half of X experience.
- default_defeat_music: (standard 'defeat.ogg,defeat2.ogg') default list of music tracks that are chosen to play on player's defeat; this can be overriden per-scenario
- default_victory_music: (standard 'victory.ogg,victory2.ogg') default list of music tracks that are chosen to play on player's victory; this can be overriden per-scenario
- title_music: (standard 'main_menu.ogg') the music to play at the title screen
- energy: (standard 'misc/bar-energy.png') the images used to display hp/xp bars.
- orb: (standard 'misc/orb.png') the orb image to add on top of the hp bar, this is recolorable to show the status; see 'Orbs', WesnothManual
- orb_two_color: (standard 'misc/orb-two-color.png') like orb, but has two separate recolorable parts
- flag_image: (standard 'image/flag'terrain/flag-1.png:150,terrain/flag-2.png:150,terrain/flag-3.png:150,terrain/flag-4.png:150') the default flag animation to mark captured villages (if no custom flag is defined in the [side] tag). By example, this animation has 4 frames of 150ms each. An automatic side-coloring is applied.
- flag_icon_image: (standard 'flags/flag-icon.png') the default flag icon to indicate the side playing in the statusbar (if no custom flag_icon is defined in the [side] tag). An automatic side-coloring is applied.
- hp_bar_scaling : (standard '0.6') The ratio of hitpoints to height used for displaying the hp bar. Can be overwritten in [unit] and [unit_type].
- xp_bar_scaling : (standard '0.5') The ratio of xp to height used for displaying the xp bar. Can be overwritten in [unit] and [unit_type].
- footprint_left_nw, footprint_left_n, footprint_right_nw, footprint_right_n: images used to display the path that a unit would take to the tile the cursor is on.
The first image of each key is used for tiles which would take only 1 movement point for the selected unit to move onto; the second for ones which would take more. The 'n' and 'nw' designations distinguish between tiles which are moved from orthogonally and diagonally in the same way as described in [missile_frame], AnimationWML. The 'left' and 'right' designations are used alternately throughout the path; however, the standard values are the same for 'left' and 'right'.
- terrain_mask_image: (standard 'terrain/alphamask.png') used to give a hex-shape from a rectangular image.
- grid_image: (standard 'terrain/grid.png') the image used by the grid option
- unreachable_image: (standard 'terrain/darken.png') the stripes mask used to show unreachable locations
- observer_image: (standard 'misc/eye.png') the image to use for observer in multi-player games. (The eye in the upper right hand corner.)
- zoom_levels: (Version 1.13.8 and later only) A comma-separated list of valid zoom levels, with 1.0 representing 100%.
Color Palettes
Color palettes are defined by two tags within [game_config].
- [color_palette]: Contains the definitions of source palettes, such as magenta. Each key defines a palette, and must be set to a comma-separated list of hexadecimal colors.
- [color_range]: Defines a target color palette.
- id: Used to reference the palette, for example from [side] or ~RC().
- name: A translatable name for the color.
This may be ignored for non-core colors? - rgb: A comma-separated sequence of four hexadecimal colors:
- the average shade of a unit's team-color portions
- the maximum highlight shade of a unit's team-color portions
- the minimum shadow shade of a unit's team-color portions
- the color of the markers on the mini-map.