Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: IMPOSTING on January 05, 2007, 07:44:23 PM

Title: Access Doesnt work
Post by: IMPOSTING on January 05, 2007, 07:44:23 PM
Ok Im trying to run a Dedicated Server and Im using UlX 3.0 and Ulib 2.1. I added myself as superadmin in users.txt in garrysmod/settings. Everytime I join the dedicated server ULX doesnt add me as admin and the garrysmod users.txt doesnt reconize me as superadmin, so whenever im on my server I cant do anything that requires access because ULX wont reconize me because Garrys Mod wont reconize me. What can I do to make both work? Any Help Is Much Appreciated.
Title: Re: Access Doesnt work
Post by: Megiddo on January 05, 2007, 07:49:02 PM
Read the sticky (http://forums.ulyssesmod.net/index.php/topic,383.0.html)
Title: Re: Access Doesnt work
Post by: IMPOSTING on January 05, 2007, 08:04:39 PM
I did the commands in console and got this

Code: [Select]
> PrintTable( ULib.ucl )...
passTimeout = function: 02554C28
addAccessCallback = function: 02554C58
checkAuth = function: 02554C10
callbacks:
1 = function: 02554FB8
groups:
admin:
deny:
allow:
members:
1 = garry
2 = user2
superadmin:
deny:
allow:
members:
1 = garry
2 = vanthepimpman
addUser = function: 02554BB0
awaitingauth:
addGroup = function: 02554B98
authed:
users:
garry:
deny:
type = steamid
groups:
1 = superadmin
id = STEAM_0:1:7099
pass_req = false
pass =
allow:
user2:
deny:
type = steamid
groups:
1 = admin
id = STEAM_0:1:855035
pass_req = false
pass =
allow:
vanthepimpman:
deny:
type = steamid
groups:
1 = superadmin
id = STEAM_0:1:855035
pass_req = false
pass =
allow:
query = function: 02554C70
removeUser = function: 02554BC8
probe = function: 02554BE0
checkPass = function: 02554BF8
callCallbacks = function: 02554C40

this is from the users one

Code: [Select]
> PrintTable( util.KeyValuesToTable( file.Read( "../settings/users/txt" ) )...
LS: Error running string:
LS: stdin:1: ')' expected near '<eof>'
Title: Re: Access Doesnt work
Post by: Megiddo on January 05, 2007, 08:33:53 PM
Well you forgot to use the status command, but it looks like you forgot a number off your steamid.
Title: Re: Access Doesnt work
Post by: spbogie on January 05, 2007, 08:52:24 PM
It may also have something to do with you having two users with the same steamID and different access. Try removing user2 from your settings/users.txt and data/ULib/users.txt.

@Megiddo: I fixed a typo in the last command in the stickey. users/txt => users.txt
Title: Re: Access Doesnt work
Post by: JamminR on January 06, 2007, 02:15:54 AM
Megiddo,
 Also, the example at http://garrysmod.com/wiki/?title=Admin#Dedicated_Servers actually state that having yourself in both Superadmin and Admin won't "significantly decrease" level. Though it might for ULX, perhaps we should make it so that it won't, since the access instructions we're sending them to for now state it won't?

Quote from: Example at site http://garrysmod.com/wiki/?title=Admin#Dedicated_Servers
"Users"
{
   "superadmin" //This is a user group. Groups are useful to LUA coders.
   {
      "garry"         "STEAM_0:1:7099"    //Garry is a user in the superadmin group.
      "User2"         "STEAM_0:1:8001337" //To be the server admin, your Steam ID should go here
   }

   "admin" //Another user group.
   {
      "garry"         "STEAM_0:1:7099"    //Your ID could go here as well without a significant decrease in admin power.
   }
}
Title: Re: Access Doesnt work
Post by: spbogie on January 06, 2007, 07:35:34 AM
JamminR,
    That is just confusing wording on the part of the tutorial. It's not saying you won't get a significant decrease in admin power if you put it in both. It's saying that putting your self as admin will still give you many admin powers just not all that superadmin gets. The problem here however is that he doesn't just have his steamID in both, but a different name on each, so ULib/ULX recognizes it as two users. Again, this may have nothing to do with the actuall problem.

A check for duplicate steamids on different names when importing would be a good idea. Although I don't see any way to accuratly decide which to keep. Perhapse we ignore both and pop an error saying what the problem is.
Title: Re: Access Doesnt work
Post by: Megiddo on January 06, 2007, 05:08:21 PM
Hmm those instructions are wrong because GM10 will only let a user have one access level. Perhaps we should change them? (I'm not good with tutorials, anyone else want to volunteer?)
Title: Re: Access Doesnt work
Post by: amburgers on January 06, 2007, 06:21:43 PM
i made one i think its easy o and it works for me to put my name in both places