]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blob - Programming-Tips.md
tips for devs
[xonotic/xonotic.wiki.git] / Programming-Tips.md
1 ### Session Id
2
3 If you need 2 players for debugging, you can launch another client locally:
4  - use -sessionid (e.g. `./all run -sessionid testing`) to keep your config
5  - 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)
6
7 ### Debug prints
8
9 You can show text anywhere on the map using `debug_text_3d(position, message);` from `common/debug.qh`.