Doing some test, results keep. This is by the way, a part of a gamemode
[code]
print("Commencing Loading of Modules....")
local Files,Dirs = file.Find("modules/sv_*.lua","LUA_PATH")
for key,value in pairs (Files) do
print("(A)Attempting load of "..value)
if (SERVER) then include(value); print("[Modules]: Loaded Server File ("..value..")") end
end
Files,Dirs = file.Find("modules/cl_*.lua","LUA_PATH")
for key,value in pairs (Files) do
print("(B)Attempting load of "..value)
if (SERVER) then AddCSLuaFile(value); print("[Modules]: Loaded Client File ("..value..")") end
if (CLIENT) then include(value) end
end
print("Finished Loading")
[/code]
Simply enough, isn't loading the files.
Modules folder location: [i]gamemodes/test/gamemode/modules[/i]
LUA_PATH is now just LUA
Sorry, you need to Log In to post a reply to this thread.