From: Martin Taibr Date: Thu, 12 Dec 2019 15:06:47 +0000 (+0000) Subject: Update Programming Tips X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=45e8f57a01383e818c9c705f6455dc01d172072a;p=xonotic%2Fxonotic.wiki.git Update Programming Tips --- 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