This is an old revision of the document!
Table of Contents
Crossfire Client configuration file gdefaults2
The gdefaults2 file is usually located inside the .crossfire directory.
This file applies to the new gtk-2 client for crossfire,
The older gtk-1 client used the gdefaults file as configuration file.
This configuration file does not exist in a fresh installation of the client.
This file gets created by pressing the 'Save' button in the client configuration sub window
found under Menubar > Client > Configure .
At the top of the file one reads :
# crossfire-client-gtk2 automatically generates this file. # Manual editing is allowed, but the client may be a bit # finicky about the keys and values. Comparisons are case # sensitive. 'True' and 'False' are the proper case, but # have been replaced with 1 and 0 respectively.
Where the part 'True' and 'False' are the proper case
once applied to the X11 cfclient configuration file defaults .
The code in function load_defaults() in file client/gtk-v2/src/config.c parses as follows :
if (inbuf[0]=='#') continue; /* Skip any setting line that does not contain a colon character */ if (!(cp=strchr(inbuf,':'))) continue; *cp='\0'; cp+=2; /* colon, space, then value */ val = -1; if (isdigit(*cp)) val=atoi(cp); else if (!strcmp(cp,"True")) val = TRUE; else if (!strcmp(cp,"False")) val = FALSE;
Meaning, that lines starting with # are ignored,
lines need to contain a colon : or are ignored,
and may have any content, but digits *not* -1 ,
and still recognizes True or False in case sensitive string comparison.
Entries
See also the gtk-1 gdefaults configfile, since the gdefaults2 does not differ much.
- auto_apply_container: < 0 | 1 >
- cacheimages: < 0 | 1 >
- command_window: < 0 | 1 >
- darkness: < 0 | 1 >
- displaymode: < 0 | 1 | 2 > CFG_DM_PIXMAP , CFG_DM_SDL , CFG_DM_OPENGL
- download_all_images: < 0 | 1 >
- echo_bindings: < 0 | 1 >
- fasttcpsend: < 0 | 1 >
- fog_of_war: < 0 | 1 >
- foodbeep: < 0 | 1 >
- grad_color_bars: < 0 | 1 >
- iconscale: < >
- lighting: < 0 | 1 >
- map_height: < >
- mapscale: < >
- mapscroll: < 0 | 1 >
- map_width: < >
- message_timestamping: < 0 | 1 >
- nosplash: < 0 | 1 >
- popups: < 0 | 1 >
- port: < >
- resistances: < >
- server: < >
- show_grid: < 0 | 1 >
- showicon: < 0 | 1 >
- sign_popups: < 0 | 1 >
- smoothing: < 0 | 1 >
- sound: < 0 | 1 >
- split: < 0 | 1 >
- splitinfo: < 0 | 1 >
- theme: < 0 | 1 >
- tooltips: < 0 | 1 >
- trim_info_window: < 0 | 1 >
- window_layout: < >
auto_apply_container
Range:
Default: 1
Menu Entry:
cacheimages
Range:
Default: 0
Menu Entry: (Old) Client > Configure > Map & Image Options
command_window
Range:
Default: 10
Menu Entry: (Old) Client > Configure > General Options
darkness
Range:
Default: 1
Menu Entry:
displaymode
Range:
Default: 0
Menu Entry: (Old) Client > Configure > Map & Image Options
download_all_images
Range:
Default: 0
Menu Entry: (Old) Client > Configure > Map & Image Options
echo_bindings
Range:
Default: 0
Menu Entry: (Old) Client > Configure > General Options
faceset
Range:
Default: (null)
Menu Entry: (Old) Client > Configure > Map & Image Options
fasttcpsend
Range:
Default: 1
Menu Entry: (Old) Client > Configure > General Options
fog_of_war
Range:
Default: 1
Menu Entry: (Old) Client > Configure > Map & Image Options
foodbeep
Range:
Default: 0
Menu Entry: (Old) Client > Configure > General Options
grad_color_bars
Range:
Default: 0
Menu Entry: (Old) Client > Configure > General Options
iconscale
Range:
Default: 100 , until version 1.11.0 '90'
Menu Entry: (Old) Client > Configure > Map & Image Options
lighting
Range:
Default: 1
Menu Entry: (Old) Client > Configure > Map & Image Options
map_height
Range:
Default: 25 , until version 1.11.0 '15'
Menu Entry: (Old) Client > Configure > Map & Image Options
mapscale
Range:
Default: 100 , until version 1.11.0 '90'
Menu Entry: (Old) Client > Configure > Map & Image Options
mapscroll
Range:
Default: 1
Menu Entry:
map_width
Range:
Default: 25 , until version 1.11.0 '15'
Menu Entry: (Old) Client > Configure > Map & Image Options
message_timestamping
Range:
Default: 0
Menu Entry:
nosplash
Range:
Default: 1
Menu Entry:
popups
Range:
Default: 0
Menu Entry:
port
Range:
Default:
Menu Entry:
resistances
Range:
Default: 0
Menu Entry:
server
Range:
Default: (null)
Menu Entry:
show_grid
Range:
Default: 0
Menu Entry:
showicon
Range:
Default: 0
Menu Entry:
sign_popups
Range:
Default: 1
Menu Entry:
smoothing
Range:
Default: 0
Menu Entry: (Old) Client > Configure > Map & Image Options
sound
Range:
Default: 1
Menu Entry: (Old) Client > Configure > General Options
split
Range:
Default: 0
Menu Entry:
That leftover from the gtk-1 client does not work for the gtk-2 client.
splitinfo
Range:
Default: 0
Menu Entry:
That leftover from the gtk-1 client does not work for the gtk-2 client.
theme
Range:
Default:Standard
Menu Entry: (Old) Client > Configure > Map & Image Options
Implemented since version 1.12
tooltips
Range:
Default: 1
Menu Entry:
trim_info_window
Range:
Default: 0
Menu Entry:
window_layout
Range:
Default: gtk-v1.glade
Menu Entry: (Old) Client > Configure > Map & Image Options
Implemented since version 1.12