Xonotic Forums
How to make new weapons? - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12)
+--- Thread: How to make new weapons? (/showthread.php?tid=3535)



How to make new weapons? - Kris - 09-30-2012

I am trying to program a new weapon. I have made a new .qc file and add it to w_all.qc. Write a w_weaponname() function and add the wepaon with REGISTER_WEAPON(). The weapon do currently nothing and has no model too because i want to bring xonotic first to working with a new weapon. But when i start the game with the new progs.dat the server/game crashes with some errors in the console. So what i must do more to bring the game to working?


RE: How to make new weapons? - Mario - 09-30-2012

You need to compile the client side code (csprogs.dat) too.


RE: How to make new weapons? - Mr. Bougo - 09-30-2012

csprogs might be the issue, yes.

But really, if you get a crash, there is no general way we can guess why it's happening. Post the crash log and the code.