ULX

Author Topic: Access Help-I Have Read The Sticky to!  (Read 2388 times)

0 Members and 1 Guest are viewing this topic.

my name is: NEED help!

  • Guest
Access Help-I Have Read The Sticky to!
« on: February 03, 2007, 01:42:57 AM »
Hey, i started running a gmod 10 dedicated server and put ulx, i added myself correctly to user.txt and i think i did with data/ulib users.txt. I get this message when i try to use an admin feature of ulx : You do not have access to this command, Precision shot.exe. Im using ULX 3.0.2 and ULIB 2.0.2. In console i type "ulx adduser Precision shot.exe superadmin 1" it said Invalid User Group! Help me out here please

When i type in status i get this:
status
hostname:  Precision shot.exe's Construct Server
version : 1.0.0.0/7 2992 secure
udp/ip  :  192.168.2.2:27015
map     :  gm_construct at: 0 x, 0 y, 0 z
players :  1 (8 max)

# userid name uniqueid connected ping loss state
#  4 "Precision shot.exe" STEAM_0:1:8488699 38:34 37 0 active

When i put in lua_run PrintTable( ULib.ucl ) i get: ABOUSOULTY NOTHING!

And When i put lua_run PrintTable( util.KeyValuesToTable( file.Read( "../settings/users.txt" ) ) ): ummmmmm, nothing


ok, this is what i put in my settings/user.txt:"Users"
{
   "superadmin" //This is a user group. Groups are useful to LUA coders.
   {
      "Precision shot.exe"         "STEAM_0:1:8488699"    //Precision shot.exe 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_XXXXXXXXX"    //Your ID could go here as well without a significant decrease in admin power.
   }






This is what i put in data/ulib/users.txt:
"Precision shot.exe"
{
   "id" "STEAM_0:1:8488699"
   "type" "steamid"
   "pass" "Password"
   "pass_req" "0"
   "groups"
   {
      "1"   "superadmin"
      "2"   "immunity"
   }
   "allow"
   {
      "1"   "ulx kick"
      "2"   "ulx ban"
   }
   "deny"
   {
      "1"   "ulx cexec"
   }
}







Help me out please.....

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Access Help-I Have Read The Sticky to!
« Reply #1 on: February 03, 2007, 06:57:42 AM »
It appears you are missing a closing } bracket on the end of your settings/users.txt, and you don't need the extra users if it's just you so comment them out.

settings/users.txt
Code: [Select]
"Users"
{
   "superadmin" //This is a user group. Groups are useful to LUA coders.
   {
      "Precision shot.exe"         "STEAM_0:1:8488699"    //Precision shot.exe 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_XXXXXXXXX"    //Your ID could go here as well without a significant decrease in admin power.
   }
}
Your data/ULib/users.txt is correct except that it needs to be enclosed in an "Out" table.

data/ULib/users.txt
Code: [Select]
"Out"
{
   "Precision shot.exe"
   {
      "id" "STEAM_0:1:8488699"
      "type" "steamid"
      "pass" "Password"
      "pass_req" "0"
      "groups"
      {
         "1"   "superadmin"
         "2"   "immunity"
      }
      "allow"
      {
         "1"   "ulx kick"
         "2"   "ulx ban"
      }
      "deny"
      {
         "1"   "ulx cexec"
      }
   }
}

In future cases of problems with scripts, be it a Ulysses team project or any other, please post any errors that apperar in console on startup, and durring the game. This helps track down problems much easier.
« Last Edit: February 03, 2007, 09:41:20 AM by Megiddo »
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

My name is need help

  • Guest
Re: Access Help-I Have Read The Sticky to!
« Reply #2 on: February 03, 2007, 12:32:12 PM »
Thanks a ton, its working now!