User Tools

Site Tools


client:gdefaults

This is an old revision of the document!


Crossfire Client configuration file gdefaults

The gdefaults file is usually located inside the .crossfire directory.
This file applies to the old gtk-1 client for crossfire,
The newer gtk-2 client uses the gdefaults2 file as configuration file.

At the top of the file one reads :

# This file is generated automatically by gcfclient.
# Manually editing is allowed, however gcfclient may be a bit finicky about
# some of the matching it does.  all comparisons are case sensitive.
# 'True' and 'False' are the proper cases for those two values
# 'True' and 'False' have been replaced with 1 and 0 respectively

Entries

Sorted by alphabetical sort:

  1. cacheimages: < 0 | 1 >
  2. command_window: < 1 - 127 >
  3. darkness: < 0 | 1 >
  4. displaymode: < 0 | 1 | 2 > [ CFG_DM_PIXMAP , CFG_DM_SDL , CFG_DM_OPENGL ]
  5. echo_bindings: < 0 | 1 >
  6. faceset: < standard | classic >
  7. fasttcpsend: < 0 | 1 >
  8. fog_of_war: < 0 | 1 >
  9. foodbeep: < 0 | 1 >
  10. grad_color_bars: < 0 | 1 >
  11. iconscale: < 25 - 200 >
  12. lighting: < 0 - 3 > [ CFG_LT_NONE , CFG_LT_TILE , CFG_LT_PIXEL , CFG_LT_PIXEL_BEST ]
  13. map_height: < 9 - 31 > [ MAP_MAX_SIZE ]
  14. map_width: < 9 - 31 > [ MAP_MAX_SIZE ]
  15. mapscale: < 25 - 200 >
  16. mapscroll: < 0 | 1 >
  17. nosplash: < 0 | 1 >
  18. popups: < 0 | 1 >
  19. port: 13327 [ EPORT , DEFPORT ]
  20. resistances: < 0 | 1 >
  21. server: (null)
  22. show_grid: < 0 | 1 >
  23. showicon: < 0 | 1 >
  24. sign_popups: < 0 | 1 >
  25. smoothing: < 0 | 1 >
  26. sound: < 0 | 1 >
  27. sound_server: < cfsndserv | cfsndserv_alsa9 >
  28. split: < 0 | 1 >
  29. splitinfo: < 0 | 1 >
  30. tooltips: < 0 | 1 >
  31. trim_info_window: < 0 | 1 >

auto_apply_container

cacheimages

command_window

darkness

displaymode

The displaymode entry can have several values for drawing the map:

  • 0 Pixmap
  • 1 SDL ; command line option -sdl
  • 2 OpenGL ; command line option -opengl ; ( GTK-2 client only )

OpenGL

The OpenGL mode is available on Linux, if the MESA package is found at compilation time.
If the gdefaults2 entry is set to 2, and MESA was not found at compilation time,
the client acts differently than started with the -opengl parameter.

The GLX and probably DRI extensions should be available to the X-Server, when the
X-Server Xorg is started to manage the monitor of the computer.
When the GLX extension is not available for the X-Server, then the client will either crash with
message Xlib: extension “GLX” missing on display “:0.0”. and Segmentation fault as for
version 1.10.0 for example; or
printing Direct rendering is not available! to the loglevel INFO log output as it is for version 1.70.0 of the client,
and still would work in OpenGL drawing mode if libGL.so.1, libGLU.so.1 and libglut.so.3 are available on the system ( but GLX disabled for the X-Server ) .

Special kdrive X-Servers disbanded after version 1.4.x of the Xorg R7 release like Xvesa,
likely will not work with MESA and DRI.
The Xorg's own driver vesa_drv.so and probably some special framebuffer drivers will also not work
with OpenGL / MESA.

Screenshot of Scorn at nighttime of the client's opengl mode for the intel_drv.so driver:
opengl_scorn-400.jpg

download_all_images

echo_bindings

faceset

fasttcpsend

fog_of_war

foodbeep

grad_color_bars

iconscale

lighting

SDL lighting in pictures: City of Navar around midnight ..

lighting 0 None lighting 1 Per Tile lighting 2 Fast per Pixel lighting 3 Best per Pixel
sdl_lightning_0_none.jpg sdl_lightning_1_per_tile.jpg sdl_lightning_2_fast_per_pixel.jpg sdl_lightning_3_best_per_pixel.jpg

map_height

map_width

mapscale

mapscroll

message_timestamping

nosplash

popups

Values : 0 or 1 – 0 disables popup windows like a separate log-in window, 1 enables them.
Default: 0 ( disabled )

The default is set to 0 inside the source code
in function init_client_vars() in file common/init.c as variable want_config[CONFIG_POPUPS] = FALSE; .

Command-line options : -popups and -nopopups

Behaviour: Most popup-windows might be annoying, while playing the game, but the log-on to a server had been impossible for versions 1.11.0 and below of the GTK-1 client, if that was unset ( 0 ) . To enter a user-name was not possible in the “traditional” Info-Message and Cmd-Line Pane on the right side of the client.
See also

port

resistances

server

show_grid

This option is only available for the SDL displaymode .
Purpose: It draws a red tile grid-overlay onto the map.
Effect: But this grid vanishes as soon as the player moves.
Implemented: gridline options available under the client config window. MSW 2001-06-17
Client Menu: Client > Configure > Map & Image > Print Grid Overlay (SDL only, slow, useful for debugging, development)

The GTK-2 client does not have such a Menu option to choose anymore; but still has this parameter entry in it's gdefaults2 config file.

showicon

sign_popups

smoothing

sound

sound_server

split

splitinfo

tooltips

trim_info_window

client/gdefaults.1523788537.txt.gz · Last modified: 2018/04/15 05:35 by karl