tips for devs
authorMartin Taibr <taibr.martin@gmail.com>
Wed, 6 Mar 2019 16:06:03 +0000 (17:06 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Wed, 6 Mar 2019 16:06:03 +0000 (17:06 +0100)
Home.md
Programming-Tips.md [new file with mode: 0644]

diff --git a/Home.md b/Home.md
index f6f4964..28dcb7e 100644 (file)
--- 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 (file)
index 0000000..fd93e8f
--- /dev/null
@@ -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`.