From 5fd5f2b3d1c77c3b85355c452ffc7e1fe2e12162 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 28 Feb 2018 09:41:23 -0500 Subject: Fixed some types, worked on 0x050 Fixed typos in a bunch of tutorials, did a little more work on 0x050 - Entities --- tutorials/tut021_detouring.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tutorials/tut021_detouring.md') diff --git a/tutorials/tut021_detouring.md b/tutorials/tut021_detouring.md index 7e4c980..a03a31d 100644 --- a/tutorials/tut021_detouring.md +++ b/tutorials/tut021_detouring.md @@ -14,7 +14,7 @@ garrysmod/lua/autorun/detourprint.lua The above script __replaces__ the print function, with a new function, which eventually calls the original print function, with modified arguments. The above can be done with modules in Artery as well. For example, `log.lua`'s .error() function currently only prints a message in red, it dosn't actually show what failed or why. Let's modify it to show a stack trace. -garrysmod/addons/artery_rougelite/trace_errors.lua +garrysmod/addons/artery\_rougelite/trace\_errors.lua local log = nrequire("log.lua") local colors = nrequire("config/colortheme.lua") --Holds colors @@ -27,3 +27,5 @@ garrysmod/addons/artery_rougelite/trace_errors.lua For more information on colortheme.lua see @{colortheme.lua}, for more on debug.traceback() see [the gmod wiki](http://wiki.garrysmod.com/page/debug/traceback). + +Next tutorial: @{tut030_inventories.md} -- cgit v1.2.3-70-g09d2