• Print

Author Topic: Groups.txt oddity - Muyako  (Read 9 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Groups.txt oddity - Muyako
« on: August 31, 2013, 09:03:56 am »
I decided to start 'fresh' using the new dedicated Gmod server I'm using with the latest (after release) SVN of ULib and ULX.
After having years of dev groups.txt file edits/group edits, beta commands added, etc. , I didn't copy over groups.txt from my old server files, figuring ULib would rebuild.
Started server. No ulx commands would work. Not even ulx who.

It rebuilt alright, but, not well.
See below.

Code: [Select]
ULX version: <SVN> unknown revision
ULib version: 2.51
Gamemode: Sandbox
Map: gm_construct
Dedicated server: true

Currently connected players:
Nick                            steamid            uid        id lsh
[ULX]JamminR                    STEAM_0:1:6016299  4168400042 1  n  


ULib.ucl.users (#=2):
STEAM_0:1:1913368:
allow:
1 = osi_rubber
deny:
name = [BBS]WildWill
group = admin
STEAM_0:1:6016299:
allow:
1 = osi_rubber
deny:
name = [ULX]JamminR
group = superadmin


ULib.ucl.groups (#=4):
superadmin:
allow:
inherit_from = admin
operator:
can_target = !%admin
allow:
inherit_from = user
user:
allow:
admin:
can_target = !%superadmin
allow:
1 = ulx return
inherit_from = operator


ULib.ucl.authed (#=1):
4168400042:
allow:
1 = osi_rubber
deny:
name = [ULX]JamminR
group = superadmin


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


Active legacy addons on this server:
uclip                    by Team Ulysses and Ryno-SauruS, version 1.22 (01/27/13)
ujoin_sound              by JamminR (Team Ulysses), version 1.1 (00/00/13)
ulib                     by Team Ulysses, version 2.5099 (00/00/00)
ulx                      by Team Ulysses, version 3.6199 (00/00/00)
ulx_oldschoolimmunity    by JamminR, version 1 (00/00/13)
ups                      by Megiddo (Team Ulysses), version 1 (01/27/13)
utime                    by Megiddo (Team Ulysses), version 1.4299 (00/00/00)

Is the misc_registered a key file we check before rebuilding groups.txt?
If so, may I ask, why not check if groups.txt exists properly?
"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: Groups.txt oddity - Muyako
« Reply #1 on: August 31, 2013, 09:25:52 am »
I'm confused. Are you saying that you copied over misc_registered.txt and users.txt but not groups.txt? Your result is the behavior I would expect from that case.

Going on this assumption, I'll answer your question on not checking for groups.txt. It's because it does still exist under addons. Also, I never thought people would selectively carry over configuration files. :P
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Groups.txt oddity - Muyako
« Reply #2 on: August 31, 2013, 04:06:01 pm »
As a newb, I'd imagine someone having no idea what misc_registered was, so fear of deleting it too after they purposely deleted groups.txt.
I had no fear of this, I knew it too would rebuild.
What I didn't expect is that groups.txt didn't rebuild to match all the defaultcommands until I deleted misc_registered.
As long as this is 'expected' behavior, I know to keep an eye out for it if anyone brings up similar question.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

  • Print