ULX

Author Topic: Admin  (Read 2148 times)

0 Members and 1 Guest are viewing this topic.

Offline McDonaldTrump

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Admin
« on: May 02, 2016, 06:07:58 PM »
This sub-forum is only for help or discussion regarding projects created by Team Ulysses. If you are requesting help, please search the forums FIRST to make sure your question has not already been answered. If you still need help, fill in the following information.

My ULib/ULX versions (run "ulx version" in console): 3.70


Game mode(s) I am having this problem on: Sandbox

i am having trouble giving my self admin on my own server, i have followed all of the FAQ and it didnt help so i have linked the debug dump so someone could help.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Admin
« Reply #1 on: May 02, 2016, 08:11:32 PM »
I'm not sure which FAQs you've tried, but you've not used server console to adduser yourself, nor have you edited manually your server's \config\users.txt file.
Either would work, but your debug file doesn't show you've done either.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline McDonaldTrump

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Admin
« Reply #2 on: May 02, 2016, 09:09:42 PM »
I have changed the users.txt to my name. this is under garrysmod/settings

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Admin
« Reply #3 on: May 02, 2016, 09:20:56 PM »
If you could post the contents of garrysmod/settings/users.txt here that would be helpful. I assume you only added your name, and not your SteamID, to the file. Without your SteamID the server will not correctly interpret the file and will not make you a superadmin because as anyone can change their name on Steam a name is not sufficient for authentication.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline McDonaldTrump

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Admin
« Reply #4 on: May 02, 2016, 10:01:21 PM »
i already did but i will attach it again.

"Users"
{
   //
   // This is your users file
   //
   // You can use this file to add people as admins on your server
   // Add them to the relevant section
   //
   // If you're a Lua coder you can add your own sections and use them
   // in your script by doing pl:IsUserGroup( "admin" ) etc
   //

   "superadmin"
   {
      //"McDonaldTrump"         "STEAM_0:0:118213447"
   }
   
   "admin"
   {
      //"McDonaldTrump"         "STEAM_0:0:118213447"
   }

}

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Admin
« Reply #5 on: May 02, 2016, 11:11:31 PM »
i already did but i will attach it again.

"Users"
{
   //
   // This is your users file
   //
   // You can use this file to add people as admins on your server
   // Add them to the relevant section
   //
   // If you're a Lua coder you can add your own sections and use them
   // in your script by doing pl:IsUserGroup( "admin" ) etc
   //

   "superadmin"
   {
      //"McDonaldTrump"         "STEAM_0:0:118213447"
   }
   
   "admin"
   {
      //"McDonaldTrump"         "STEAM_0:0:118213447"
   }

}

Simple fix you have a typo, remove the // beside your name under where it says "superadmin". (I don't think you have to set your self as admin also, but I may be wrong.)

What is happening is that because you have the // in there it thinks that you are just making a comment (like the help text in the file) and not reading that line.
I cry every time I see that I am not a respected member of this community.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Admin
« Reply #6 on: May 03, 2016, 05:54:45 AM »
Yeah remove/keep commented (keep the // in front of) the admin one because I don't think adding yourself to both will work out well. If Garry's Mod interprets the file sequentially then you'll end up as admin because it will set you to superadmin first and then admin.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline McDonaldTrump

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Admin
« Reply #7 on: May 03, 2016, 07:53:30 AM »
Thank you I didn't think of that

Sent from my SM-G930V using Tapatalk