Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 6 7 8 9 10 … 18 Next »
Possible dependency bug
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Possible dependency bug
02-07-2017, 06:25 PM,
#3
esitee Offline
you know
****
Posts: 60
Threads: 9
Joined: Dec 2014
RE: Possible dependency bug
(02-07-2017, 05:46 PM)Person8880 Wrote: If you can reduce this to the test case you've given in your post and get it to still fail (I'm assuming that's not the code you were really using), that would be helpful.

I did reduce it to the test case before with the same result. I'll just leave the exact test code I used, when getting the error:

--@name Libtest
--@author Esitee
--@dependency STEAM_0:1:68201847 lib/Aschen-Lib.txt sv
--@dependency STEAM_0:1:68201847 lib/Permissions.txt sv

--[[
My permission lib is working fine and it will give out the access level perfectly, but the aschen-lib tables won't work.
]]

if SERVER then
print(Permissions[ents.owner()ConfusedteamID()]) --will print 5
print(L["universe"]) --chip errors saying L is nil, should give out a warp vector in chat
end

This throws the following error:
Code:
[SF - ERROR] SF:libtest.txt:10: attempt to index global 'L' (a nil value)

And here the used table excerpts of the libs. For the sake of simplicity, i'm only going to post one entry of the warp table:

Permission-Lib (functions and that stuff left out, but they work as well) :

Permissions = {} 
Permissions[ents.owner()ConfusedteamID()] = 5

Aschen-Lib:

L = {}  -- Warp Table
L["universe"] = Vector( 6793.40, -1623.81, -3709.46 )


As stated before, when I change things up, so that one file is later included with
Code:
require( "filepath" )
it works just normal..

[Image: ldkcVkq.jpg]
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Possible dependency bug - by esitee - 02-07-2017, 04:07 PM
RE: Possible dependency bug - by Person8880 - 02-07-2017, 05:46 PM
RE: Possible dependency bug - by esitee - 02-07-2017, 06:25 PM
RE: Possible dependency bug - by Person8880 - 02-07-2017, 06:55 PM
RE: Possible dependency bug - by esitee - 02-07-2017, 07:36 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.