Author Topic: ULX / DarkRP conflict  (Read 5239 times)

0 Members and 3 Guests are viewing this topic.

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
ULX / DarkRP conflict
« 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

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULX / DarkRP conflict
« Reply #1 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.
Experiencing God's grace one day at a time.

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Re: ULX / DarkRP conflict
« Reply #2 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.

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Re: ULX / DarkRP conflict
« Reply #3 on: February 25, 2012, 11:50:56 AM »
I tried doing that and I got this while in my listen server testing it out.


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
)

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Re: ULX / DarkRP conflict
« Reply #4 on: February 25, 2012, 03:20:23 PM »
Do I need to add a hook some where or am I being a noob

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX / DarkRP conflict
« Reply #5 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Digital Spit

  • Jr. Member
  • **
  • Posts: 79
  • Karma: 1
Re: ULX / DarkRP conflict
« Reply #6 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!