From 45e8f57a01383e818c9c705f6455dc01d172072a Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Thu, 12 Dec 2019 15:06:47 +0000 Subject: [PATCH] Update Programming Tips --- Programming-Tips.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Programming-Tips.md b/Programming-Tips.md index 8f47980..4d67913 100644 --- a/Programming-Tips.md +++ b/Programming-Tips.md @@ -1,6 +1,10 @@ -### Loading the code you've just compiled +### Faster compiling and reloading of QuakeC -Once your QC code is compiled to progs.dat for server and csprogs.dat for client you don't need to restart Xonotic, it suffices to start a new map with `map XXX` (depending on how you launch Xonotic you may need to use `fs_rescan; map XXX`). For menu code you can restart the menu with `menu_restart`. +You can use `QCCFLAGS_WERROR="" ZIP=: ./all compile` to let the build succeed even with warnings and to skip compressing the resulting csprogs.dat (client gamecode) into a pk3. + +Server and menu code produce progs.dat and menu.dat respectively. + +No need to restart Xonotic to load the new client and server code, just start a new map with `map XXX` (depending on how you launch Xonotic you may need to use `fs_rescan; map XXX`). You can restart the menu with `menu_restart`. ### Debug prints -- 2.39.2