[Tutorial] How to find bugs
#8

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
It was already there
However, thanks everyone :P

- Kevin
Reply


Messages In This Thread
How to find bugs - by Kwarde - 26.01.2011, 17:50
Re: How to find bugs - by Ash. - 26.01.2011, 17:53
Re: How to find bugs - by Kwarde - 26.01.2011, 17:56
Re: How to find bugs - by ricardo178 - 26.01.2011, 18:14
Re: How to find bugs - by Kwarde - 27.01.2011, 04:32
Re: How to find bugs - by Hal - 30.01.2011, 23:06
Re: How to find bugs - by Blacklite - 30.01.2011, 23:13
Re: How to find bugs - by Kwarde - 31.01.2011, 13:43
Re: How to find bugs - by Marty_Alex - 05.02.2011, 03:27
Re: How to find bugs - by Scenario - 05.02.2011, 03:35

Forum Jump:


Users browsing this thread: 2 Guest(s)