From 12994dab7ea872ef493c29bdec1bf6c95f814646 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Mon, 23 Dec 2019 22:49:09 +0000 Subject: [PATCH] Update Programming Tips --- Programming-Tips.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Programming-Tips.md b/Programming-Tips.md index 487aca3..21e3a3e 100644 --- a/Programming-Tips.md +++ b/Programming-Tips.md @@ -15,8 +15,11 @@ You can draw text anywhere on the map using `debug_text_3d(world_coords, message ### Multiple clients + clean config If you need 2 players for debugging, you can launch another client locally: - - use -sessionid (e.g. `./all run -sessionid testing`) to keep your config - - use -userdir (e.g. `./all run -userdir ~/.xonotic-testing +name tester +cl_allow_uid2name 0`) to get a clean config (`+cl_allow_uid2name 0` to avoid an annoying popup). You can set whatever cvar on start with `+cvar_name value`. +- use -sessionid (e.g. `./all run -sessionid testing`) to keep your config +- use -userdir (e.g. `./all run -userdir ~/.xonotic-testing +name tester +cl_allow_uid2name 0`) to get a clean config (if you delete the dir before each use) + - you can set any cvar or run any command on start with `+cvar_name value` + - `+name tester` avoids the nick selection dialog + - `+cl_allow_uid2name 0` avoids an annoying popup ### Testing with bots -- 2.39.2