DDraceNetwork Documentation
Loading...
Searching...
No Matches
config_variables.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3
4// This file can be included several times.
5
6#ifndef MACRO_CONFIG_INT
7#error "The config macros must be defined"
8// This helps IDEs properly syntax highlight the uses of the macro below.
9#define MACRO_CONFIG_INT(Name, ScriptName, Def, Min, Max, Save, Desc)
10#define MACRO_CONFIG_COL(Name, ScriptName, Def, Save, Desc)
11#define MACRO_CONFIG_STR(Name, ScriptName, Len, Def, Save, Desc)
12#endif
13
14// client
15MACRO_CONFIG_INT(ClPredict, cl_predict, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Predict client movements")
28#if defined(CONF_PLATFORM_ANDROID)
29MACRO_CONFIG_INT(ClTouchControls, cl_touch_controls, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Enable ingame touch controls")
30#else
31MACRO_CONFIG_INT(ClTouchControls, cl_touch_controls, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Enable ingame touch controls")
32#endif
33
44
49
55
58
62
93
96
99
101
106
113
116
119
122
134
137
138// http map download
139MACRO_CONFIG_STR(ClMapDownloadUrl, cl_map_download_url, 100, "https://maps.ddnet.org", CFGFLAG_CLIENT | CFGFLAG_SAVE, "URL used to download maps (must start with https://)")
143
145
146// skin loading
147#if defined(CONF_ARCH_IA32)
148MACRO_CONFIG_INT(ClSkinsLoadedMax, cl_skins_loaded_max, 256, 256, 8192, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Maximum number of skins that can be loaded at the same time")
149#else
150MACRO_CONFIG_INT(ClSkinsLoadedMax, cl_skins_loaded_max, 512, 256, 8192, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Maximum number of skins that can be loaded at the same time")
151#endif
152MACRO_CONFIG_STR(ClSkinDownloadUrl, cl_skin_download_url, 100, "https://skins.ddnet.org/skin/", CFGFLAG_CLIENT | CFGFLAG_SAVE, "URL used to download skins")
153MACRO_CONFIG_STR(ClSkinCommunityDownloadUrl, cl_skin_community_download_url, 100, "https://skins.ddnet.org/skin/community/", CFGFLAG_CLIENT | CFGFLAG_SAVE, "URL used to download community skins")
157
160
164
172
175
193
196
214
222
224
227
230
232
233// dummy
247
248// more controllable dummy command
253
254// start menu
257
258// server
264
268
283
285
287
289
294
303
304// debug
305#ifdef CONF_DEBUG
306MACRO_CONFIG_INT(DbgDummies, dbg_dummies, 0, 0, SERVER_MAX_CLIENTS, CFGFLAG_SERVER, "Add debug dummies to server (Debug build only)")
307#endif
308
309MACRO_CONFIG_INT(DbgTuning, dbg_tuning, 0, 0, 2, CFGFLAG_CLIENT, "Display information about the tuning parameters that affect the own player (0 = off, 1 = show changed, 2 = show all)")
310
314
318
325
332
344
351
367
371
375
379
382
384MACRO_CONFIG_INT(SndRate, snd_rate, 48000, 5512, 384000, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Sound mixing rate")
392
401
406
409#if !defined(CONF_PLATFORM_MACOS)
410MACRO_CONFIG_INT(GfxBorderless, gfx_borderless, 0, 0, 1, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Borderless window (not to be used with fullscreen)")
411#if !defined(CONF_PLATFORM_EMSCRIPTEN)
412MACRO_CONFIG_INT(GfxFullscreen, gfx_fullscreen, 1, 0, 3, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Set fullscreen mode: 0=no fullscreen, 1=pure fullscreen, 2=desktop fullscreen, 3=windowed fullscreen")
413#else
414MACRO_CONFIG_INT(GfxFullscreen, gfx_fullscreen, 0, 0, 3, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Set fullscreen mode: 0=no fullscreen, 1=pure fullscreen, 2=desktop fullscreen, 3=windowed fullscreen")
415#endif
416#else
417MACRO_CONFIG_INT(GfxBorderless, gfx_borderless, 1, 0, 1, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Borderless window (not to be used with fullscreen)")
419#endif
420MACRO_CONFIG_INT(GfxColorDepth, gfx_color_depth, 24, 16, 24, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Colors bits for framebuffer (fullscreen only)")
430
434#if defined(CONF_FAMILY_WINDOWS)
435MACRO_CONFIG_INT(InpImeNativeUi, inp_ime_native_ui, 0, 0, 1, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Use native UI for IME (may cause IME to not work in fullscreen mode) (changing requires restart)")
436#endif
437
445
449
462MACRO_CONFIG_STR(SvRegisterUrl, sv_register_url, 128, "https://master1.ddnet.org/ddnet/15/register", CFGFLAG_SERVER, "Masterserver URL to register to")
482
489
496
497MACRO_CONFIG_INT(Debug, debug, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SERVER, "Debug mode")
503#ifdef CONF_DEBUG
504MACRO_CONFIG_INT(DbgStress, dbg_stress, 0, 0, 1, CFGFLAG_CLIENT, "Stress systems (Debug build only)")
506#endif
507
508MACRO_CONFIG_INT(HttpAllowInsecure, http_allow_insecure, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SERVER, "Allow insecure HTTP protocol in addition to the secure HTTPS one. Mostly useful for testing.")
509
510// DDRace
530
535
548
551
553
565
566#if defined(CONF_UPNP)
567MACRO_CONFIG_INT(SvUseUPnP, sv_use_upnp, 0, 0, 1, CFGFLAG_SERVER, "Enables UPnP support. (Requires -DCONF_UPNP=ON when compiling)")
568#endif
569
570MACRO_CONFIG_INT(SvDDRaceRules, sv_ddrace_rules, 1, 0, 1, CFGFLAG_SERVER, "Whether the default mod rules are displayed or not")
581
586
590
593
595
598
614
617
620
637
647
648// menu background map
653
671
672// these might need some fine tuning
677
686
687// netlimit
690
693
694#if defined(CONF_FAMILY_UNIX)
695MACRO_CONFIG_STR(SvConnLoggingServer, sv_conn_logging_server, 128, "", CFGFLAG_SERVER, "Unix socket server for IP address logging (Unix only)")
696#endif
697
698MACRO_CONFIG_INT(ClUnpredictedShadow, cl_unpredicted_shadow, 0, -1, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show unpredicted shadow tee (0 = off, 1 = on, -1 = don't even show in debug mode)")
706
710
717
728
729// demo editor
735
736// graphic library
737#if !defined(CONF_ARCH_IA32) && !defined(CONF_PLATFORM_MACOS)
738MACRO_CONFIG_INT(GfxGLMajor, gfx_gl_major, 1, 1, 10, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Graphic library major version")
739#elif !defined(CONF_ARCH_IA32)
740MACRO_CONFIG_INT(GfxGLMajor, gfx_gl_major, 3, 1, 10, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Graphic library major version")
741#else
742MACRO_CONFIG_INT(GfxGLMajor, gfx_gl_major, 1, 1, 10, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Graphic library major version")
743#endif
744#if !defined(CONF_PLATFORM_MACOS)
745MACRO_CONFIG_INT(GfxGLMinor, gfx_gl_minor, 1, 0, 10, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Graphic library minor version")
746#else
747MACRO_CONFIG_INT(GfxGLMinor, gfx_gl_minor, 3, 0, 10, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Graphic library minor version")
748#endif
749MACRO_CONFIG_INT(GfxGLPatch, gfx_gl_patch, 0, 0, 10, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Graphic library patch version")
750
751// float multiplied with 1000
753
757
759#if defined(CONF_PLATFORM_ANDROID)
760MACRO_CONFIG_STR(GfxBackend, gfx_backend, 256, "GLES", CFGFLAG_SAVE | CFGFLAG_CLIENT, "The backend to use (e.g. GLES or Vulkan)")
761#elif defined(CONF_PLATFORM_EMSCRIPTEN)
762MACRO_CONFIG_STR(GfxBackend, gfx_backend, 256, "GLES", CFGFLAG_SAVE | CFGFLAG_CLIENT, "The backend to use (e.g. GLES)")
763#elif !defined(CONF_ARCH_IA32) && !defined(CONF_PLATFORM_MACOS)
764MACRO_CONFIG_STR(GfxBackend, gfx_backend, 256, "Vulkan", CFGFLAG_SAVE | CFGFLAG_CLIENT, "The backend to use (e.g. OpenGL or Vulkan)")
765#else
766MACRO_CONFIG_STR(GfxBackend, gfx_backend, 256, "OpenGL", CFGFLAG_SAVE | CFGFLAG_CLIENT, "The backend to use (e.g. OpenGL or Vulkan)")
767#endif
768MACRO_CONFIG_INT(GfxRenderThreadCount, gfx_render_thread_count, 3, 0, 0, CFGFLAG_SAVE | CFGFLAG_CLIENT, "Number of threads the backend can use for rendering. (note: the value can be ignored by the backend)")
769
771
773
774/*
775 * Add config variables for mods below this comment to avoid merge conflicts.
776 */
Definition vmath.h:15
#define MACRO_CONFIG_STR(Name, ScriptName, Len, Def, Save, Desc)
Definition config_variables.h:11
#define MACRO_CONFIG_INT(Name, ScriptName, Def, Min, Max, Save, Desc)
Definition config_variables.h:9
#define MACRO_CONFIG_COL(Name, ScriptName, Def, Save, Desc)
Definition config_variables.h:10
Write
Definition connection_pool.h:35
static void Run(unsigned short Port, NETADDR Dest)
Definition crapnet.cpp:49
@ SERVERINFO_LEVEL_MIN
Definition protocol.h:83
@ SERVERINFO_LEVEL_MAX
Definition protocol.h:84
@ SERVER_MAX_CLIENTS
Definition protocol.h:90
static SHA256_DIGEST s(const char *pSha256)
Definition mapbugs.cpp:37
constexpr T minimum(T a, T b)
Definition math.h:137
constexpr T absolute(T a)
Definition math.h:157
Definition protocol7.h:8
Definition mapitems.cpp:6
for(tick=client_tick()+1;tick<=client_predtick();tick++) >
Definition prediction.txt:12
@ CFGFLAG_COLLIGHT
Definition config.h:58
@ CFGFLAG_CLIENT
Definition config.h:47
@ CFGFLAG_SERVER
Definition config.h:48
@ CFGFLAG_SAVE
Definition config.h:46
@ CFGFLAG_ECON
Definition config.h:51
@ CFGFLAG_GAME
Definition config.h:56
@ CFGFLAG_MASTER
Definition config.h:50
@ CFGFLAG_NONTEEHISTORIC
Definition config.h:57
@ CFGFLAG_COLALPHA
Definition config.h:60
@ CFGFLAG_INSENSITIVE
Definition config.h:61
@ CFGFLAG_COLLIGHT7
Definition config.h:59
Definition score.cpp:22
constexpr auto IO_MAX_PATH_LENGTH
Definition types.h:49
float length(const vector2_base< T > &a)
Definition vmath.h:106
T distance(const vector2_base< T > a, const vector2_base< T > &b)
Definition vmath.h:94