User Tools

Site Tools


client:gdefaults2

This is an old revision of the document!


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

Range:
Default:
Menu Entry:

cacheimages

Range:
Default:
Menu Entry:

command_window

Range:
Default:
Menu Entry:

darkness

Range:
Default:
Menu Entry:

displaymode

Range:
Default:
Menu Entry:

download_all_images

Range:
Default:
Menu Entry:

echo_bindings

Range:
Default:
Menu Entry:

faceset

Range:
Default:
Menu Entry:

fasttcpsend

Range:
Default:
Menu Entry:

fog_of_war

Range:
Default:
Menu Entry:

foodbeep

Range:
Default:
Menu Entry:

grad_color_bars

Range:
Default:
Menu Entry:

iconscale

Range:
Default:
Menu Entry:

lighting

Range:
Default:
Menu Entry:

map_height

Range:
Default:
Menu Entry:

mapscale

Range:
Default:
Menu Entry:

mapscroll

Range:
Default:
Menu Entry:

map_width

Range:
Default:
Menu Entry:

message_timestamping

Range:
Default:
Menu Entry:

nosplash

Range:
Default:
Menu Entry:

popups

Range:
Default:
Menu Entry:

port

Range:
Default:
Menu Entry:

resistances

Range:
Default:
Menu Entry:

server

Range:
Default:
Menu Entry:

show_grid

Range:
Default:
Menu Entry:

showicon

Range:
Default:
Menu Entry:

sign_popups

Range:
Default:
Menu Entry:

smoothing

Range:
Default:
Menu Entry:

sound

Range:
Default:
Menu Entry:

split

Range:
Default:
Menu Entry:

splitinfo

Range:
Default:
Menu Entry:

theme

Range:
Default:
Menu Entry:

tooltips

Range:
Default:
Menu Entry:

trim_info_window

Range:
Default:
Menu Entry:

window_layout

Range:
Default:
Menu Entry:

client/gdefaults2.1523960995.txt.gz · Last modified: 2018/04/17 05:29 by karl