From 5d77d8475af7aff27eb026a4b56065387c024165 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 4 Nov 2017 22:42:24 -0400 Subject: Massive changes * New error messages for missing dependencies * Removed useless art_serverchanger entity * Added a sweet ascii logo * Added Skills * Minor fixes to cl_inventory tracker * Changed a few prints to use logging module --- gamemode/nrequire.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gamemode/nrequire.lua') diff --git a/gamemode/nrequire.lua b/gamemode/nrequire.lua index 1ec4fb7..29e350d 100644 --- a/gamemode/nrequire.lua +++ b/gamemode/nrequire.lua @@ -6,7 +6,6 @@ ]] --Don't run ourselves, or we'll get stuck in a recursive loop! if nrequire ~= nil then return end -print("hello from nrequire!") local path = (GM or GAMEMODE).Folder:gsub("gamemodes/","") .. "/gamemode" --[[ Calls func on all the files under dir. @@ -161,6 +160,7 @@ function nrequire(req) --Deal with bookkeeping dealing with circular dependancies, and include pathstack[#pathstack + 1] = tpath reqtbl[tpath] = include(tpath) + hook.Call("artery_file_included",nil,tpah) --[[ co = coroutine.create(function() reqtbl[tpath] = include(tpath) @@ -192,7 +192,6 @@ hook.Call("artery_nrequire_defined") If the file starts with cl_ it will only be included on the client, if it starts with sv_ it will only be included on the server. If it starts with anything else, it will be shared. Will detect and error on circuar dependancy. ]] local function doincludes() - print("doing includes") paths = {} TraverseFolder("",ins) ntbl = rebuild_include_table(paths) -- cgit v1.2.3-70-g09d2