From: Martin Taibr Date: Mon, 22 Apr 2019 11:39:58 +0000 (+0000) Subject: Update Programming Tips X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;ds=sidebyside;h=9b505fd6c7cbc2e32a38006667b736d5f5a6ca7a;p=xonotic%2Fxonotic.wiki.git Update Programming Tips --- diff --git a/Programming-Tips.md b/Programming-Tips.md index 1b3ac40..f2bbb41 100644 --- a/Programming-Tips.md +++ b/Programming-Tips.md @@ -1,6 +1,8 @@ ### Debug prints -You can show text anywhere on the map using `debug_text_3d(world_coords, message);` from `common/debug.qh`. +Use `con_notify 4` together with `LOG_INFOF("my_var: %s", my_var);` (`%s` string, `%f` float, `%d` integer, `%v` vector) to see debug output without opening the console. Type `con_notify` and press `` to see descriptions and more options (or use `apropos con_notify`). + +You can draw text anywhere on the map using `debug_text_3d(world_coords, message);` from `common/debug.qh`. ### Multiple clients + clean config