Author Topic: ULib constantly overwriting my groups.txt  (Read 3216 times)

0 Members and 1 Guest are viewing this topic.

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
ULib constantly overwriting my groups.txt
« on: August 16, 2010, 05:30:11 AM »
Basically every time the server starts, it renames groups.txt to groups_backup.txt, and if it already backed up one, then groups_backup2.txt. It then creates a new groups.txt from some default somewhere over the rainbow. Thats as simple as I can put it. Idk what is happening, I can never get my custom groups to load.

Also, don't flame me because I already searched, sorry if I couldn't find the solution all by myself this time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULib constantly overwriting my groups.txt
« Reply #1 on: August 16, 2010, 08:05:13 AM »
Please share your groups.txt. My guess is that you edited the default groups.txt file instead of the one in the data folder.
Experiencing God's grace one day at a time.

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: ULib constantly overwriting my groups.txt
« Reply #2 on: August 16, 2010, 09:56:55 AM »
Im sure its not that. Heres my stuff:
Here is groups.txt before I start the server, after I set it to my custom stuff:
Code: [Select]
"owner"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx hiddenecho"
      "ulx rcon"
      "ulx luarun"
      "ulx cexec"
      "ulx ent"
      "ulx adduser"
      "ulx adduserid"
      "ulx removeuser"
      "ulx userallow"
      "ulx userdeny"
      "ulx addgroup"
      "ulx removegroup"
      "ulx groupallow"
      "ulx groupdeny"
      "overcomeimmunity"
   }
   "inherit_from"   
   {
      "superadmin"
   }
}
"superadmin"
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulib_passtime"
      "ulib_passtimeout"
      "ulx spawnecho"
      "ulx tsay"
      "ulx csay"
      "ulx gimp"
      "ulx mute"
      "ulx ungimp"
      "ulx unmute"
      "ulx gag"
      "ulx ungag"
      "ulx chattime"
      "ulx welcomemessage"
      "ulx slap"
      "ulx whip"
      "ulx slay"
      "ulx sslay"
      "ulx ignite"
      "ulx unignite"
      "ulx playsound"
      "ulx freeze"
      "ulx unfreeze"
      "ulx god"
      "ulx ungod"
      "ulx noclip"
      "ulx hp"
      "ulx armor"
      "ulx cloak"
      "ulx uncloak"
      "ulx blind"
      "ulx unblind"
      "ulx jail"
      "ulx unjail"
      "ulx ghost"
      "ulx unghost"
      "ulx ragdoll"
      "ulx unragdoll"
      "ulx maul"
      "ulx strip"
      "ulx adminmenu"
      "ulx clientmenu"
      "ulx mapsmenu"
      "ulx showmotd"
      "ulx banmenu"
      "ulx exec"
      "ulx rslotsmode"
      "ulx rslots"
      "ulx rslotsvisible"
      "ulx reservedslots"
      "ulx bring"
      "ulx goto"
      "ulx send"
      "ulx teleport"
      "ulx tooldeny"
      "ulx toolallow"
      "ulx tooldenyuser"
      "ulx toolallowuser"
      "ulx tooldenyoverride"
      "ulx map"
      "ulx kick"
      "ulx ban"
      "ulx banid"
      "ulx unban"
      "ulx spectate"
      "ulx physgunplayer"
      "ulx vote"
      "ulx votemap2"
      "ulx votekick"
      "ulx voteban"
      "ulx veto"
      "ups_damage"
      "ups_vehicle"
      "ups_freeze"
      "ups_physgun"
      "ups_remove"
      "ups_tool"
      "ups_unfreeze"
      "ups_use"
      "ups disableplayers"
      "ups miscdeletionaccess"
      "ulx seeasay"
   }
   "inherit_from"   
   {
      "admin"
   }
}
"admin"   
{
   "deny"
   {
   }
   "allow"
   {
      "ulx tsay"
      "ulx csay"
      "ulx gimp"
      "ulx ungimp"
      "ulx cloak"
      "ulx uncloak"
      "ulx blind"
      "ulx unblind"
      "ulx ghost"
      "ulx unghost"
      "ulx adminmenu"
      "ulx clientmenu"
      "ulx banmenu"
      "ulx banid"
      "ulx unban"
      "ulx voteban"
   }
   "inherit_from"
   {
      "moderator"
   }
}
"moderator"
{
   "deny"
   {
   }
   "allow"
   {
      "ulx mute"
      "ulx unmute"
      "ulx gag"
      "ulx ungag"
      "ulx slap"
      "ulx whip"
      "ulx slay"
      "ulx sslay"
      "ulx ignite"
      "ulx unignite"
      "ulx freeze"
      "ulx unfreeze"
      "ulx hp"
      "ulx armor"
      "ulx ragdoll"
      "ulx unragdoll"
      "ulx maul"
      "ulx strip"
      "ulx mapsmenu"
      "ulx send"
      "ulx teleport"
      "ulx map"
      "ulx kick"
      "ulx vote"
      "ulx votemap2"
      "ulx votekick"
      "ulx veto"
   }
   "inherit_from"
   {
      "respected"
   }
}
"respected"
{
   "deny"
   {
   }
   "allow"
   {
      "ulx jail"
      "ulx unjail"
      "ulx god"
      "ulx ungod"
      "ulx noclip"
      "ulx bring"
      "ulx goto"
   }
   "inherit_from"
   {
      "user"
   }
}
"user"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx"
      "ulx help"
      "ulx psay"
      "ulx asay"
      "ulx thetime"
      "ulx menu"
      "ulx_valueupdate"
      "ulx_cvar"
      "ulx_getgamemodes"
      "ulx motd"
      "ulx_getbans"
      "ulx usermanagementhelp"
      "ulx who"
      "ulx votemap"
   }
   "inherit_from"   
   {
   }
}
Here is what ULib puts in groups.txt after starting the server
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx adminmenu"
"ulx armor"
"ulx ban"
"ulx banid"
"ulx banmenu"
"ulx blind"
"ulx bring"
"ulx chattime"
"ulx clientmenu"
"ulx cloak"
"ulx csay"
"ulx exec"
"ulx freeze"
"ulx gag"
"ulx ghost"
"ulx gimp"
"ulx god"
"ulx goto"
"ulx hp"
"ulx ignite"
"ulx jail"
"ulx kick"
"ulx map"
"ulx mapsmenu"
"ulx maul"
"ulx mute"
"ulx noclip"
"ulx physgunplayer"
"ulx playsound"
"ulx ragdoll"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx seeasay"
"ulx send"
"ulx showmotd"
"ulx slap"
"ulx slay"
"ulx spawnecho"
"ulx spectate"
"ulx sslay"
"ulx strip"
"ulx teleport"
"ulx toolallow"
"ulx toolallowuser"
"ulx tooldeny"
"ulx tooldenyoverride"
"ulx tooldenyuser"
"ulx tsay"
"ulx unban"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx ungag"
"ulx unghost"
"ulx ungimp"
"ulx ungod"
"ulx unignite"
"ulx unjail"
"ulx unmute"
"ulx unragdoll"
"ulx veto"
"ulx vote"
"ulx voteban"
"ulx votekick"
"ulx votemap2"
"ulx welcomemessage"
"ulx whip"
"ups disableplayers"
"ups miscdeletionaccess"
"ups_damage"
"ups_freeze"
"ups_physgun"
"ups_remove"
"ups_tool"
"ups_unfreeze"
"ups_use"
"ups_vehicle"
}
"inherit_from" "user"
}
"admin"
{
"deny"
{
}
"allow"
{
"ulx adminmenu"
"ulx banid"
"ulx banmenu"
"ulx blind"
"ulx clientmenu"
"ulx cloak"
"ulx csay"
"ulx ghost"
"ulx gimp"
"ulx tsay"
"ulx unban"
"ulx unblind"
"ulx uncloak"
"ulx unghost"
"ulx ungimp"
"ulx voteban"
}
"inherit_from" "user"
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx asay"
"ulx help"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx usermanagementhelp"
"ulx votemap"
"ulx who"
"ulx_cvar"
"ulx_getbans"
"ulx_getgamemodes"
"ulx_valueupdate"
}
}
"respected"
{
"deny"
{
}
"allow"
{
"ulx bring"
"ulx god"
"ulx goto"
"ulx jail"
"ulx noclip"
"ulx ungod"
"ulx unjail"
}
"inherit_from" "user"
}
"owner"
{
"deny"
{
}
"allow"
{
"overcomeimmunity"
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx cexec"
"ulx ent"
"ulx groupallow"
"ulx groupdeny"
"ulx hiddenecho"
"ulx luarun"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
}
"inherit_from" "user"
}
"moderator"
{
"deny"
{
}
"allow"
{
"ulx armor"
"ulx freeze"
"ulx gag"
"ulx hp"
"ulx ignite"
"ulx kick"
"ulx map"
"ulx mapsmenu"
"ulx maul"
"ulx mute"
"ulx ragdoll"
"ulx send"
"ulx slap"
"ulx slay"
"ulx sslay"
"ulx strip"
"ulx teleport"
"ulx unfreeze"
"ulx ungag"
"ulx unignite"
"ulx unmute"
"ulx unragdoll"
"ulx veto"
"ulx vote"
"ulx votekick"
"ulx votemap2"
"ulx whip"
}
"inherit_from" "user"
}
And again, after starting the server my custom one, which was originally in groups.txt is renamed to groups_backup.txt

P.S. I edited the one in "H:\GDS\orangebox\garrysmod\data" so I'm sure I'm doing it right.
« Last Edit: August 16, 2010, 10:12:54 AM by Stephen304 »

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ULib constantly overwriting my groups.txt
« Reply #3 on: August 16, 2010, 11:18:39 AM »
I think the issue is with your "inherit_from" statements, they should look like this:

Code: [Select]
"inherit_from"   "moderator"
instead of:
Code: [Select]
 
"inherit_from"
   {
      "moderator"
   }
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: ULib constantly overwriting my groups.txt
« Reply #4 on: August 16, 2010, 11:32:50 AM »
And thats causing it to create a backup and overwrite the default?
I'll try and see.
It seemed to work fine in earlier versions of ulx.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULib constantly overwriting my groups.txt
« Reply #5 on: August 16, 2010, 03:46:27 PM »
Possibly, yes.
If you're using old pre-svn formatting with new SVN ULib, all sorts of trouble can occur.
"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
Re: ULib constantly overwriting my groups.txt
« Reply #6 on: August 16, 2010, 04:01:42 PM »
If you upgrade ULib it will convert the data format over for you, nice and easy. But if you try to copy an older data file to an already upgraded ULib, that's when you run into trouble.
Experiencing God's grace one day at a time.

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: ULib constantly overwriting my groups.txt
« Reply #7 on: August 16, 2010, 04:07:28 PM »
I upgraded by clicking svn update, if that helps the situation.

P.S. Also it seems that changing the format fixed half of the problem. Now it doesn't mess with the files and debuginfo shows the correct groups loaded, however I'm still not admin on the server:
Code: [Select]
ULX version: 3.50
ULib version: 2.40
Gamemode: Sandbox
Map: gm_flatgrass
Dedicated server: true

Currently connected players:
Nick                            steamid            id lsh created
Steven                          STEAM_0:1:22324767 1  n   49


ULib.ucl.users (#=5):
reconnect:
deny:
type = steamid
groups:
1 = respected
id = STEAM_0:1:25257648
allow:
pass =
steven:
deny:
type = steamid
groups:
1 = owner
id = STEAM_0:1:22324767
pass =
allow:
1 = immunity
2 = ulx hasreadhelp
dnr| prenpringle:
deny:
type = steamid
groups:
1 = respected
id = STEAM_0:1:25688313
allow:
pass =
helppctech:
deny:
type = steamid
groups:
1 = respected
id = STEAM_0:0:29863045
pass =
allow:
cheseyjesus:
deny:
type = steamid
groups:
1 = respected
id = STEAM_0:1:30133456
pass =
allow:


ULib.ucl.groups (#=6):
superadmin:
deny:
allow:
1 = ulib_passtime
2 = ulib_passtimeout
3 = ulx spawnecho
4 = ulx tsay
5 = ulx csay
6 = ulx gimp
7 = ulx mute
8 = ulx ungimp
9 = ulx unmute
10 = ulx gag
11 = ulx ungag
12 = ulx chattime
13 = ulx welcomemessage
14 = ulx slap
15 = ulx whip
16 = ulx slay
17 = ulx sslay
18 = ulx ignite
19 = ulx unignite
20 = ulx playsound
21 = ulx freeze
22 = ulx unfreeze
23 = ulx god
24 = ulx ungod
25 = ulx noclip
26 = ulx hp
27 = ulx armor
28 = ulx cloak
29 = ulx uncloak
30 = ulx blind
31 = ulx unblind
32 = ulx jail
33 = ulx unjail
34 = ulx ghost
35 = ulx unghost
36 = ulx ragdoll
37 = ulx unragdoll
38 = ulx maul
39 = ulx strip
40 = ulx adminmenu
41 = ulx clientmenu
42 = ulx mapsmenu
43 = ulx showmotd
44 = ulx banmenu
45 = ulx exec
46 = ulx rslotsmode
47 = ulx rslots
48 = ulx rslotsvisible
49 = ulx reservedslots
50 = ulx bring
51 = ulx goto
52 = ulx send
53 = ulx teleport
54 = ulx tooldeny
55 = ulx toolallow
56 = ulx tooldenyuser
57 = ulx toolallowuser
58 = ulx tooldenyoverride
59 = ulx map
60 = ulx kick
61 = ulx ban
62 = ulx banid
63 = ulx unban
64 = ulx spectate
65 = ulx physgunplayer
66 = ulx vote
67 = ulx votemap2
68 = ulx votekick
69 = ulx voteban
70 = ulx veto
71 = ups_damage
72 = ups_vehicle
73 = ups_freeze
74 = ups_physgun
75 = ups_remove
76 = ups_tool
77 = ups_unfreeze
78 = ups_use
79 = ups disableplayers
80 = ups miscdeletionaccess
81 = ulx seeasay
inherit_from = admin
admin:
deny:
allow:
1 = ulx tsay
2 = ulx csay
3 = ulx gimp
4 = ulx ungimp
5 = ulx cloak
6 = ulx uncloak
7 = ulx blind
8 = ulx unblind
9 = ulx ghost
10 = ulx unghost
11 = ulx adminmenu
12 = ulx clientmenu
13 = ulx banmenu
14 = ulx banid
15 = ulx unban
16 = ulx voteban
inherit_from = moderator
user:
deny:
allow:
1 = ulx
2 = ulx help
3 = ulx psay
4 = ulx asay
5 = ulx thetime
6 = ulx menu
7 = ulx_valueupdate
8 = ulx_cvar
9 = ulx_getgamemodes
10 = ulx motd
11 = ulx_getbans
12 = ulx usermanagementhelp
13 = ulx who
14 = ulx votemap
respected:
deny:
allow:
1 = ulx jail
2 = ulx unjail
3 = ulx god
4 = ulx ungod
5 = ulx noclip
6 = ulx bring
7 = ulx goto
inherit_from = user
owner:
deny:
allow:
1 = ulx hiddenecho
2 = ulx rcon
3 = ulx luarun
4 = ulx cexec
5 = ulx ent
6 = ulx adduser
7 = ulx adduserid
8 = ulx removeuser
9 = ulx userallow
10 = ulx userdeny
11 = ulx addgroup
12 = ulx removegroup
13 = ulx groupallow
14 = ulx groupdeny
15 = overcomeimmunity
inherit_from = superadmin
moderator:
deny:
allow:
1 = ulx mute
2 = ulx unmute
3 = ulx gag
4 = ulx ungag
5 = ulx slap
6 = ulx whip
7 = ulx slay
8 = ulx sslay
9 = ulx ignite
10 = ulx unignite
11 = ulx freeze
12 = ulx unfreeze
13 = ulx hp
14 = ulx armor
15 = ulx ragdoll
16 = ulx unragdoll
17 = ulx maul
18 = ulx strip
19 = ulx mapsmenu
20 = ulx send
21 = ulx teleport
22 = ulx map
23 = ulx kick
24 = ulx vote
25 = ulx votemap2
26 = ulx votekick
27 = ulx veto
inherit_from = respected


ULib.ucl.authed (#=1):
1021643060:
deny:
allow:
group = user


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


Active addons on this server:
Advanced Duplicator      by TAD2020, version 1.85 (June 28th 2009)
Anti-NoClip              by RabidToaster, version 2 (24th January 2007)
Buoyancy Tool            by RabidToaster, version 1.1 (4th May 2008)
counter-strike           by Valve, version 1 (5th August 2006)
day-of-defeat            by Valve, version 1 (22nd August 2006)
Freespace_Revolution     by -)BDB(- -=]On-A-Freak[=- :D, version 1 (October 2009)
gm_flatpack              by On-A-Freak, version 1 (22/3/2009)
Hat Maker                by (null), version (null) ((null))
HL2weaponitem            by morten8035 - mortennp - morten123, version 4 (7.1.2008)
hl2_ep2                  by Valve, version 1 (29th October 2007)
OL_Stacker               by OverloadUT, version 2.2 (19th January 2007)
Phx3                     by PhoeniX-Storms, 1/4 Life, hunter, joebloom, scragnog, x-quake, Xeon133, Squad, PelPix, Stigern, Alex Malkin, Cpl.Cookie, version SVN (25th April 2010)
portal                   by Valve, version 1 (29th October 2007)
Simple Prop Protection   by Spacetech, version SVN ()
smartsnap                by Syranide, version 0.9.5 ()
smart_welding            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)
Unbreakable              by Chaussetteā„¢, version 1.1 (28th January 2007)
WeightSTool              by Spoco, version 1.21 ((null))
Wire Extras              by Anticept and respective developers, version SVN (3rd June 2008)
Wire Mod                 by Wire Team, version SVN ((null))
Wire Model Pack 1        by Wire Team, version SVN ((null))
zeno_clash               by ACE Team, version 1 (May 8th 2009)
« Last Edit: August 16, 2010, 04:14:51 PM by Stephen304 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULib constantly overwriting my groups.txt
« Reply #8 on: August 16, 2010, 04:41:38 PM »
By upgrade I meant from ULX 3.40 to ULX 3.50 (currently under trunk on SVN and in development).

Your problem is the same thing you had with groups.txt, just with users.txt... you're using a file that you brought over from an older version.
Experiencing God's grace one day at a time.

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: ULib constantly overwriting my groups.txt
« Reply #9 on: August 16, 2010, 05:22:10 PM »
Yeah but I'm not bringing over old files to a new system, I'm bringing a new system to the old files, if that makes any sense. Basically the server was a bit old, I did svn update on ulx and Ulib and it broke. Didn't you say if you update right then it would auto fix it?

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: ULib constantly overwriting my groups.txt
« Reply #10 on: August 16, 2010, 06:14:07 PM »
Ookay it fixed when I did ulx adduser and readded myself.