31.01.2011, 13:43
Quote:
Originally Posted by Kwarde
Default How to find bugs
Hi everyone, this is another tutorial by me I'm gonna explain (little tutorial) how to find bugs / non-working scripts. Did you ever had this? You had no warnings/errors while compiling, but when playing, it isn't working. This ain't nice at all. It's just easy to find: DEBUG IT Before you're gonna ask, what is 'debug'? It ain't 'debug' of course XD - It's 'debugging'. With debugging, you can find bugs... That's why I made this tutorial. It's actually "How to debug". Follow these 2 steps. Step 1: Go after what isn't working The step title says it. If you made a lock pick system, for example, and it isn't working / not working properly, find in the gamemode/filterscript the part that isn't working! If you need to press "LOOK_BEHIND" for that script, search for "KEY_LOOK_BEHIND" or "512". ( KEY_LOOK_BEHIND = key 512 ). There you can find the script you're gonna need probably Step 2: Add debugging messages After finding the code, there are 2 options: 1) Add console prints / client messages |
However, thanks everyone :P
- Kevin