Ulysses

General => Developers Corner => Topic started by: Digital Spit on February 24, 2012, 09:46:34 PM

Title: ULX / DarkRP conflict
Post by: Digital Spit on February 24, 2012, 09:46:34 PM
I'm starting to add the donator jobs on my server and they way I'm setting the restrictions is by ULX groups, so if they player is stated as a VIP then they have access to certain jobs that other players don't have.
Here lies the problem, when adding more than one VIP job I get an error that says "too many commands running at once" I don't know how I would fix this. Here is the line of code the determines who can access the job,
Code: [Select]
function(ply) return ply:GetUserGroup() == "vip" end -- The extra check function. Enter nil or nothing to not have an extra check
)

If I'm unclear please tell me so I can explain it differently
Title: Re: ULX / DarkRP conflict
Post by: Megiddo on February 25, 2012, 09:41:42 AM
Under ulib/lua/ulib/shared/commands.lua, try changing the "60" on line 1201 to a higher number like 120 and see if you still have the same problem.
Title: Re: ULX / DarkRP conflict
Post by: Digital Spit on February 25, 2012, 11:29:03 AM
Under ulib/lua/ulib/shared/commands.lua, try changing the "60" on line 1201 to a higher number like 120 and see if you still have the same problem.

I will try doing that.
Title: Re: ULX / DarkRP conflict
Post by: Digital Spit on February 25, 2012, 11:50:56 AM
I tried doing that and I got this while in my listen server testing it out.
(http://i43.tinypic.com/2il1ls0.png)

I did ulx debuginfo and I got this:
Code: [Select]
irst (and extra) jails.
] ulx debuginfo
KeyValues Error: LoadFromBuffer: missing { in file In

KeyValues Error: LoadFromBuffer: missing { in file In
(*AddonInfo*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*AddonInfo*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*AddonInfo*),
KeyValues Error: LoadFromBuffer: missing { in file In

KeyValues Error: LoadFromBuffer: missing { in file In

KeyValues Error: LoadFromBuffer: missing { in file In

KeyValues Error: LoadFromBuffer: missing { in file In

KeyValues Error: LoadFromBuffer: missing { in file In

KeyValues Error: LoadFromBuffer: missing { in file In

KeyValues Error: LoadFromBuffer: missing { in file In

KeyValues Error: LoadFromBuffer: missing { in file In

The code I'm using for my two classes are below, I hope I'm not being to overwhelming, I just don't know where to turn.

Code: [Select]
TEAM_VIPJOB = AddExtraTeam("Black Market Dealer", -- Name
Color(0, 255, 255, 255) -- Team Color
"models/player/odessa.mdl" -- Player Model
[[ You supply illegal items to the town.
You can be caught and arrested or killed for operating within a shop.
Owning a shop is okay as long as you disguise what you are selling.]] -- Job description
{"unarrest_stick",} -- Weapons
"bmdealer" -- Job command
5, -- Maximum aamount of said job
35, -- Salary
0, -- Admin status
0, -- Has to vote
false, --Has a license if true then yes
nil, -- Player needs to be said job in order to get this job nil if it does not apply
function(ply) return ply:GetUserGroup() == "vip" end -- The extra check function. Enter nil or nothing to not have an extra check
)

TEAM_VIPJOB2 = AddExtraTeam("Test", -- Name
Color(0, 255, 255, 255) -- Team Color
"models/player/odessa.mdl" -- Player Model
[[ You supply illegal items to the town.
You can be caught and arrested or killed for operating within a shop.
Owning a shop is okay as long as you disguise what you are selling.]] -- Job description
{"unarrest_stick",} -- Weapons
"exampletest" -- Job command
5, -- Maximum aamount of said job
35, -- Salary
0, -- Admin status
0, -- Has to vote
false, --Has a license if true then yes
nil, -- Player needs to be said job in order to get this job nil if it does not apply
function(ply) return ply:GetUserGroup() == "vip" end -- The extra check function. Enter nil or nothing to not have an extra check
)
Title: Re: ULX / DarkRP conflict
Post by: Digital Spit on February 25, 2012, 03:20:23 PM
Do I need to add a hook some where or am I being a noob
Title: Re: ULX / DarkRP conflict
Post by: JamminR on February 25, 2012, 03:40:54 PM
Looks like you've made syntax errors.
It's telling you, you're missing a { bracket somewhere. Unfortunately, it can't tell where.
Most likely, settings/users.txt, or you manually modified a gmod/data/ULib/groups.txt or users.txt file in a way that you shouldn't have.
Title: Re: ULX / DarkRP conflict
Post by: Digital Spit on February 25, 2012, 08:53:02 PM
Looks like you've made syntax errors.
It's telling you, you're missing a { bracket somewhere. Unfortunately, it can't tell where.
Most likely, settings/users.txt, or you manually modified a gmod/data/ULib/groups.txt or users.txt file in a way that you shouldn't have.

Thank you for that information, your team is very helpful!