From: Martin Taibr Date: Wed, 6 Mar 2019 16:06:03 +0000 (+0100) Subject: tips for devs X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=4f62712f8fc685f3d3a59f8a6ee5b09443d04082;hp=4da10083abd92d4a8581d7e3170080b54bf52e35;p=xonotic%2Fxonotic.wiki.git tips for devs --- diff --git a/Home.md b/Home.md index f6f4964..28dcb7e 100644 --- a/Home.md +++ b/Home.md @@ -125,6 +125,7 @@ Mutators change the configuration of the game play, e.g. how weapon appears, whi - [QuakeC tutorials](http://www.inside3d.com/tutorials.php) at inside3d.com - [NewQC](NewQC) - Possible changes regarding QC (compiler, syntax, …) - [Writing your first mutator](writing-your-first-mutator) +- [Tips to new developers](Programming-Tips) ### [Modeling](Modeling) - [Textures know-how](Textures) diff --git a/Programming-Tips.md b/Programming-Tips.md new file mode 100644 index 0000000..fd93e8f --- /dev/null +++ b/Programming-Tips.md @@ -0,0 +1,9 @@ +### Session Id + +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 (`+` sets cvars to avoid annoying popups) + +### Debug prints + +You can show text anywhere on the map using `debug_text_3d(position, message);` from `common/debug.qh`.