ULX

Author Topic: ULX + ASSmod // ULib/shared/sh_ucl.lua:58: [ULib] has an invalid group (user)  (Read 8239 times)

0 Members and 1 Guest are viewing this topic.

Offline mrevil

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Okay heres the deal, my Uteam files and my Ulib groups, are fine. They work fine.
It's just a small bug, If I type ulx in the console as soon as the x gets put on it shows me that
ULib/shared/sh_ucl.lua:58: [ULib] Player XXXXX has an invalid group (user), aborting. Please be careful when modifying the ULib files!


So basically its ASSmod conflicting with ULX.
It works with ASSmod 2.5 and under.

In version 2.10 and above of ASSmod it gives the error.
I know that in 2.10 they changed how usergroups were done with ulx..

If I use the 2.5 version of the file assmod\lua\plugins\ass_sandbox_toollimit.lua
it works. But as soon as I update that lua to the 2.10 version I get that error.

So what could I do to get around this?
What is causing this in this code?
I know I shouldn't be using ASSmod with ULX but, I like ASSmod's menu and I like how simple ulx is with group management and the abilty to change group permissions and change the team names. I think its in general much more easier. So any ideas what I could change in this file?




2.10
http://210assm.pastebin.com/m690c7651


2.5
http://2.05assm.pastebin.com/m37c28e0f

If need be put them both into Notepad++ and press Alt D to compare them.
So which line of code is making this happen.

I dont think it does anything other than generate an annoying console error.

« Last Edit: November 16, 2009, 11:56:02 PM by mrevil »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
MrEvil, the files you posted have no functions related to any monitoring of console commands.
Though they are different from each other, they affect spam protection/swep, tool and weapon control.
As for the error you get, you state "I know that in 2.10 they changed how usergroups were done with ulx.."

They being who?
If assmod authors, what changes or mention of them?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Try sending us a debug dump (ulx debuginfo, I think).
Experiencing God's grace one day at a time.

Offline mrevil

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Code: [Select]
ULX version: <SVN> revision 78
ULib version: 2.40
Gamemode: Sandbox
Map: gm_flatgrass
Dedicated server: true

Currently connected players:
Nick                            steamid            id lsh created
Bob     STEAM_0:1:0000000 1  n   10


ULib.ucl.users (#=3):
STEAM_0:1:0000001:
deny:
allow:
name = Bob2
group = admin
STEAM_0:1:0000002:
deny:
allow:
name = Bob
group = superadmin
STEAM_0:0:0000003:
deny:
group = developer
allow:
name = Bob3


ULib.ucl.groups (#=6):
developer:
allow:
1 = overcomeimmunity
2 = ulx addgroup
3 = ulx adduser
4 = ulx adduserid
5 = ulx cexec
6 = ulx ent
7 = ulx exec
8 = ulx groupallow
9 = ulx hiddenecho
10 = ulx luarun
11 = ulx maul
12 = ulx rcon
13 = ulx removegroup
14 = ulx removeuser
15 = ulx renamegroup
16 = ulx userallow
inherit_from = admin
admin:
1 = inherit_from
allow:
1 = ulx adminmenu
2 = ulx armor
3 = ulx ban
4 = ulx banid
5 = ulx banmenu
6 = ulx blind
7 = ulx bring
8 = ulx chattime
9 = ulx cloak
10 = ulx csay
11 = ulx freeze
12 = ulx gag
13 = ulx gimp
14 = ulx god
15 = ulx goto
16 = ulx hp
17 = ulx ignite
18 = ulx jail
19 = ulx kick
20 = ulx map
21 = ulx mapsmenu
22 = ulx mute
23 = ulx noclip
24 = ulx physgunplayer
25 = ulx playsound
26 = ulx ragdoll
27 = ulx reservedslots
28 = ulx rslots
29 = ulx rslotsmode
30 = ulx rslotsvisible
31 = ulx send
32 = ulx seeasay
33 = ulx showmotd
34 = ulx slap
35 = ulx slay
36 = ulx spawnecho
37 = ulx spectate
38 = ulx sslay
39 = ulx strip
40 = ulx teleport
41 = ulx tsay
42 = ulx unban
43 = ulx unblind
44 = ulx uncloak
45 = ulx unfreeze
46 = ulx ungag
47 = ulx ungimp
48 = ulx ungod
49 = ulx unignite
50 = ulx unigniteall
51 = ulx unjail
52 = ulx unmute
53 = ulx unragdoll
54 = ulx veto
55 = ulx vote
56 = ulx voteban
57 = ulx votekick
58 = ulx votemap2
59 = ulx welcomemessage
60 = ulx whip
inherit_from = user
user:
allow:
1 = ulx asay
2 = ulx clientmenu
3 = ulx help
4 = ulx logchat
5 = ulx logdir
6 = ulx logecho
7 = ulx logevents
8 = ulx logfile
9 = ulx logspawns
10 = ulx logspawnsecho
11 = ulx menu
12 = ulx motd
13 = ulx psay
14 = ulx thetime
15 = ulx usermanagementhelp
16 = ulx votebanminvotes
17 = ulx votebansuccessratio
18 = ulx voteecho
19 = ulx votekickminvotes
20 = ulx votekicksuccessratio
21 = ulx votemap
22 = ulx votemap2minvotes
23 = ulx votemap2successratio
24 = ulx votemapenabled
25 = ulx votemapmapmode
26 = ulx votemapmintime
27 = ulx votemapminvotes
28 = ulx votemapsuccessratio
29 = ulx votemapvetotime
30 = ulx votemapwaittime
31 = ulx who
regular:
1 = inherit_from
allow:
1 = ulx asay
2 = ulx clientmenu
3 = ulx help
4 = ulx logchat
5 = ulx logdir
6 = ulx logecho
7 = ulx logevents
8 = ulx logfile
9 = ulx logspawns
10 = ulx logspawnsecho
11 = ulx menu
12 = ulx motd
13 = ulx psay
14 = ulx thetime
15 = ulx usermanagementhelp
16 = ulx votebanminvotes
17 = ulx votebansuccessratio
18 = ulx voteecho
19 = ulx votekickminvotes
20 = ulx votekicksuccessratio
21 = ulx votemap
22 = ulx votemap2minvotes
23 = ulx votemap2successratio
24 = ulx votemapenabled
25 = ulx votemapmapmode
26 = ulx votemapmintime
27 = ulx votemapminvotes
28 = ulx votemapsuccessratio
29 = ulx votemapvetotime
30 = ulx votemapwaittime
31 = ulx who
inherit_from = user
superadmin:
allow:
1 = overcomeimmunity
2 = ulx addgroup
3 = ulx adduser
4 = ulx adduserid
5 = ulx cexec
6 = ulx ent
7 = ulx exec
8 = ulx groupallow
9 = ulx hiddenecho
10 = ulx luarun
11 = ulx maul
12 = ulx rcon
13 = ulx removegroup
14 = ulx removeuser
15 = ulx renamegroup
16 = ulx userallow
inherit_from = admin
operator:
1 = inherit_from
allow:
1 = ulx armor
2 = ulx banmenu
3 = ulx chattime
4 = ulx gag
5 = ulx god
6 = ulx goto
7 = ulx hp
8 = ulx jail
9 = ulx kick
10 = ulx mute
11 = ulx noclip
12 = ulx physgunplayer
13 = ulx playsound
14 = ulx ragdoll
15 = ulx reservedslots
16 = ulx rslots
17 = ulx rslotsmode
18 = ulx rslotsvisible
19 = ulx send
20 = ulx seeasay
21 = ulx showmotd
22 = ulx spawnecho
23 = ulx spectate
24 = ulx teleport
25 = ulx ungag
26 = ulx ungod
27 = ulx unjail
28 = ulx unmute
29 = ulx veto
30 = ulx vote
31 = ulx voteban
32 = ulx votekick
33 = ulx votemap2
34 = ulx welcomemessage
35 = ulx whip
36 = ulx asay
37 = ulx clientmenu
38 = ulx help
39 = ulx logchat
40 = ulx logdir
41 = ulx logecho
42 = ulx logevents
43 = ulx logfile
44 = ulx logspawns
45 = ulx logspawnsecho
46 = ulx menu
47 = ulx motd
48 = ulx psay
49 = ulx thetime
50 = ulx usermanagementhelp
51 = ulx votebanminvotes
52 = ulx votebansuccessratio
53 = ulx voteecho
54 = ulx votekickminvotes
55 = ulx votekicksuccessratio
56 = ulx votemap
57 = ulx votemap2minvotes
58 = ulx votemap2successratio
59 = ulx votemapenabled
60 = ulx votemapmapmode
61 = ulx votemapmintime
62 = ulx votemapminvotes
63 = ulx votemapsuccessratio
64 = ulx votemapvetotime
65 = ulx votemapwaittime
66 = ulx who
inherit_from = user


ULib.ucl.authed (#=1):
579398881:
deny:
allow:
name = Bob
group = superadmin


Garrysmod default file (#=2):
admin:
superadmin:


Active addons on this server:
Adv Duplicator           by TAD2020, version 1.85 (June 28th 2009)
Adv Stacker              by manJak, version 1 (18th July 2009)
all malawar stools       by Malawar + final pack by creec, version 1.7 (December 19th 2006)
Amraam Addon             by Mike C. (Foda), version 2.5 ()
Anti-NoClip              by RabidToaster, version 2 (24th January 2007)
assmod                   by Andy Vincent, version 2.0299 (31st January 2008)
Buoyancy Tool            by RabidToaster, version 1.1 (4th May 2008)
Buoyancy Tool - Wire     by RabidToaster, version 1 (4th May 2008)
Conna's Tools Pack       by Conna, version 1.3999 ((null))
counter-strike           by Valve, version 1 (5th August 2006)
day-of-defeat            by Valve, version 1 (22nd August 2006)
default_sent_pack        by TEAM GARRY, version 1 (3rd December 2006)
derma                    by , version 0.1 (17th July 2007)
DoorSTool                by High6 (Edited by JerryCougrawr), version v1.6b (December 19th 2006)
EasyAlignment            by Raiden0899 (MichaelS), version 1 (28th July 2008)
EasyPrecision            by hunter, version 0.9a ((null))
Fin2                     by Q42 + Tad2020, version 1.2999 (lol)
GMOD-MAPICONS            by Raiden0899, version 99 (15th May 2009)
GMOD-SPAWNICONS          by Raiden0899 (MichaelS), version 19 (13th May 2009)
gStream                  by Spencer Henslol, version 1.2999 ((null))
hl2_ep2                  by Valve, version 1 (29th October 2007)
kermite                  by Kermite(SWEPS), version 2 (2009)
keypad                   by Robbis_1 (aka Killer HAHA), version 1.3999 (25th February 2008)
Laser STOOL 2            by MadJawa, version 2 (August 1st 2008)
masslessthrusters        by JetBoom, version 1.2999 (April 3st, 2008)
ModelManipulator         by LuaPineapple, version 1 (June 13 2007)
No collide world         by Panthera Tigris, version 1 (6 october 2007)
no_collide_multi         by Narkaleptic, version 1.1 (December 19th 2006)
OL_MeasuringStick        by OverloadUT, version 1.1 (23th December 2006)
PHX3                     by PhoeniX-Storms, 1/4 Life, hunter, joebloom, scragnog, x-quake, Xeon133, Squad, PelPix, Stigern, version SVN (20th May 2008)
Player Weld              by Overv, version 1.1 (4h January 2009)
portal                   by Valve, version 1 (29th October 2007)
PROP PROTECTION          by Spacetech, version SVN ()
SmartFreezer             by LuaPineapple, version 1 (Today)
SmartSnap                by Syranide, version 0.9.5 ()
SmartWeld                by Duncan Stead, version 2.0999 (7th August 2007)
sui_scoreboard           by Suicidal.Banana, version ? ()
tf2                      by Valve, version 1 (29th October 2007)
ULIB                     by Team Ulysses, version 2.4 (00/00/00)
ULX                      by Team Ulysses, version 3.50 SVN (00/00/00)
wire                     by Wire Team, version SVN ((null))
wire model pack 1        by Wire Team, version SVN ((null))
WiredDoorSTool           by Doridian, version v1.4 (January 11th 2008)
zeno_clash               by ACE Team, version 1 (May 8th 2009)

[EDIT - JamminR] - Wrapped output in code tag for better formatting
« Last Edit: November 18, 2009, 03:58:42 PM by JamminR »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
O_o - Why are you editing the steam ids? Or did you?


Your groups.txt file is seriously broken.
Must be missing brackets and or quotes in a few places.
I'm surprised it's working at all, no matter what version of assmod you're using.
« Last Edit: November 17, 2009, 06:51:49 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline mrevil

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
My groups.txt works flawlessy might I add. All the groups WORK.
but with assmod I get that error. even tho they still work it fucks up the auto completes.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Though your groups may be working flawlessly, something about the output of the debug file seems off.
I believe that, either there is a syntax issue with the file itself, or, the functions for parsing tables is broken.
It's possible parts of either could be affecting Assmod/ULX with either version.
I'd like to start with what I know, ULX/ULib;
Please attach, using the additional options link, your groups.txt file.
Did you edit steamids in the debug output as I asked previously?
« Last Edit: November 18, 2009, 04:01:10 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline mrevil

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Yeah I did, I wasn't comfortable posting my steam ID.
here it is..

Code: [Select]
"user"
{
"allow"
{
"ulx asay"
"ulx clientmenu"
"ulx help"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logevents"
"ulx logfile"
"ulx logspawns"
"ulx logspawnsecho"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx usermanagementhelp"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx voteecho"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx who"
}
}
"superadmin"
{
"allow"
{
"overcomeimmunity"
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx groupallow"
"ulx hiddenecho"
"ulx luarun"
"ulx maul"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx renamegroup"
"ulx userallow"
}
"inherit_from" "admin"
}
"developer"
{
"allow"
{
"overcomeimmunity"
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx groupallow"
"ulx hiddenecho"
"ulx luarun"
"ulx maul"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx renamegroup"
"ulx userallow"
}
"inherit_from" "admin"
}
"admin"
{
"allow"
{
"ulx adminmenu"
"ulx armor"
"ulx ban"
"ulx banid"
"ulx banmenu"
"ulx blind"
"ulx bring"
"ulx chattime"
"ulx cloak"
"ulx csay"
"ulx freeze"
"ulx gag"
"ulx gimp"
"ulx god"
"ulx goto"
"ulx hp"
"ulx ignite"
"ulx jail"
"ulx kick"
"ulx map"
"ulx mapsmenu"
"ulx mute"
"ulx noclip"
"ulx physgunplayer"
"ulx playsound"
"ulx ragdoll"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx send"
                "ulx seeasay"
"ulx showmotd"
"ulx slap"
"ulx slay"
"ulx spawnecho"
"ulx spectate"
"ulx sslay"
"ulx strip"
"ulx teleport"
"ulx tsay"
"ulx unban"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx ungag"
"ulx ungimp"
"ulx ungod"
"ulx unignite"
"ulx unigniteall"
"ulx unjail"
"ulx unmute"
"ulx unragdoll"
"ulx veto"
"ulx vote"
"ulx voteban"
"ulx votekick"
"ulx votemap2"
"ulx welcomemessage"
"ulx whip"
}
"inherit_from"
}
"operator"
{
"allow"
{
"ulx armor"
"ulx banmenu"
"ulx chattime"
"ulx gag"
"ulx god"
"ulx goto"
"ulx hp"
"ulx jail"
"ulx kick"
"ulx mute"
"ulx noclip"
"ulx physgunplayer"
"ulx playsound"
"ulx ragdoll"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx send"
                "ulx seeasay"
"ulx showmotd"
"ulx spawnecho"
"ulx spectate"
"ulx teleport"
"ulx ungag"
"ulx ungod"
"ulx unjail"
"ulx unmute"
"ulx veto"
"ulx vote"
"ulx voteban"
"ulx votekick"
"ulx votemap2"
"ulx welcomemessage"
"ulx whip"
"ulx asay"
"ulx clientmenu"
"ulx help"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logevents"
"ulx logfile"
"ulx logspawns"
"ulx logspawnsecho"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx usermanagementhelp"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx voteecho"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx who"
}
"inherit_from"
}
"regular"
{
"allow"
{
                "ulx asay"
"ulx clientmenu"
"ulx help"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logevents"
"ulx logfile"
"ulx logspawns"
"ulx logspawnsecho"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx usermanagementhelp"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx voteecho"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx who"
}
"inherit_from"
}






Heres my uteam.txt
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Server Owner"
"group" "superadmin"
"armor" "100"
"hp" "100"
"color"
{
"a" "255"
"B" "162"
"g" "162"
"r" "162"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
                "2"
{
"name" "Server Developer"
"group" "developer"
"armor" "1500"
"hp" "1337"
"color"
{
"a" "255"
"B" "131"
"g" "1"
"r" "141"
}
}
"3"
{
"name" "Administrator"
"group" "admin"
"armor" "100"
"hp" "100"
"color"
{
"a" "255"
"B" "0"
"g" "200"
"r" "0"
}
}
"4"
{
"name" "Guard"
"group" "operator"
"armor" "100"
"hp" "100"
"color"
{
"a" "255"
"B" "10"
"g" "100"
"r" "255"
}
}
               "5"
{
"name" "Regular"
"group" "regular"
"armor" "100"
"hp" "100"
"color"
{
"a" "255"
"B" "240"
"g" "165"
"r" "0"
}
}
"6"
{
"name" "Guest"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "238"
"r" "200"
}
"model" "male1"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}


these files are from data folder, and not addons just so you know.
« Last Edit: November 18, 2009, 06:06:49 PM by mrevil »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Ok, not trying to argue, it's possible ULib and or ULX was somehow overlooking the errors, but, your groups file was definitely not right.
You had several "inherit from" with no entry afterwards.
I'm not 100% sure, but believe that can cause errors... your debuginfo showed several "inherit from" entries as though they were groups or access commands.
There was also quite a bit of whitespace. Though ULib does a pretty good job of looking past it, I can't speak for other scripts or mods that use ULib.
So, shut your server down, back up your gmod/data/ULib/groups.txt (hey, I'm only human, I might have made a mistype myself), paste the attached file back in, then test ASSmod 2.10 again.

Also, have you asked the ASSmod author(s) what might be causing it?
Since you know it's more likely an assmod issue than a ulx one, they'd know where the code lies for thier autocomplete/console commands.

Even if the attached file doesn't fix the Assmod issue, at least it will prevent future issues.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline mrevil

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
yeah still same prob. =/ i know for sure its something with that lua plugin in assmod, I like the abiltity assmod has to restrict tools and stuff, the menu it uses and the ability to give ppl weapons etc etc etc, but I like ulx aswell, for the ability to use teams and other stuff. perhaps i should ask the assmod developers..

ty

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
You may wish to also try URestrict. Jay's been working on it.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming