Author Topic: Bulk Upload of steamID's to ULX Group  (Read 3811 times)

0 Members and 2 Guests are viewing this topic.

Offline nzkfc

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Bulk Upload of steamID's to ULX Group
« on: April 03, 2014, 11:24:22 PM »
Hi,

I know there is a file containing users in their respective ULX groups.

Is there a way to bulk add a range of users to a group, I have 300+ users I need to add in and don't want to do it maunally.

I used a script to copy them into a file but it didn't work.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Bulk Upload of steamID's to ULX Group
« Reply #1 on: April 03, 2014, 11:43:12 PM »
Why and how do you have 300+ users to add into ULib?

Don't get me wrong, I do want to help, but there's no way for me to do so
with only this amount of information.
Out of the Garry's Mod business.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Bulk Upload of steamID's to ULX Group
« Reply #2 on: April 04, 2014, 03:58:55 PM »
Why and how do you have 300+ users to add into ULib?
Possibly changing things around on his server, most likely.

Quote
Don't get me wrong, I do want to help, but there's no way for me to do so
with only this amount of information.
I'm confused as to what you need from him- he has a bunch of SteamIDs that he wants to move form one group to another. I interpreted that fine... hmmm...
« Last Edit: April 06, 2014, 11:32:29 PM by Stickly Man! »
bw81@ulysses-forums ~ % whoami
Homepage

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Bulk Upload of steamID's to ULX Group
« Reply #3 on: April 04, 2014, 05:58:59 PM »
I'm asking how he has obtained 300+ Steam IDs.

And if he is moving from another admin mod.
Out of the Garry's Mod business.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Bulk Upload of steamID's to ULX Group
« Reply #4 on: April 04, 2014, 06:09:45 PM »
I'm asking how he has obtained 300+ Steam IDs.

And if he is moving from another admin mod.
Ahhhhhh, okay. That makes more sense.
I'm tired today- ignore my stupidity. :P
bw81@ulysses-forums ~ % whoami
Homepage

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Bulk Upload of steamID's to ULX Group
« Reply #5 on: April 04, 2014, 09:45:35 PM »
ULX has no default method to add many at once.
Though Ulib's users.txt file is easy to see what it does, the simplest method would be to use Gmod's normal user.txt file and format.
Issue is, I don't remember if we(ULX) will store them in ULX own user files, so that you could remove them from Gmod's, and change/promote them later using only ULX.
(I know we load Gmod's at startup)

As for the amount, yeah, just crazy, but, to each their own.

Gmod users.txt file is this format, in gmod_server_path/settings/users.txt
Code: [Select]
"Users"
{

"<groupname01>"
{
"<playername01" "STEAM_0:1:###1",
"<playername02" "STEAM_0:1:###2",
}
"<groupname02>"
{
"<playername03" "STEAM_0:1:###3",
"<playername04" "STEAM_0:1:###4",
}
}
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline nzkfc

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Bulk Upload of steamID's to ULX Group
« Reply #6 on: April 10, 2014, 06:34:11 PM »
Hi,

300+ users are donators to the server, so I need to add them to donator rank so they can use jobs/tools etc.

OK so manual is the only way, I can write a script to automate that from a excel sheet.

Question I have though, do I HAVE to have a player name or can I leave it blank (e.g. what happens when you add a steamID to a rank and they have not connected, I assume it updates the file once he connects with a player name to his already added steamID.

Cheers

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Bulk Upload of steamID's to ULX Group
« Reply #7 on: April 11, 2014, 10:25:27 AM »
Hi,

300+ users are donators to the server, so I need to add them to donator rank so they can use jobs/tools etc.

OK so manual is the only way, I can write a script to automate that from a excel sheet.

Question I have though, do I HAVE to have a player name or can I leave it blank (e.g. what happens when you add a steamID to a rank and they have not connected, I assume it updates the file once he connects with a player name to his already added steamID.

Cheers

Yes you are correct, it will add the name once they connect. As for adding those 300 users try using a for loop.
I cry every time I see that I am not a respected member of this community.

Offline nzkfc

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Bulk Upload of steamID's to ULX Group
« Reply #8 on: May 29, 2014, 12:39:42 AM »
Sorry to necro the thread.

I just wanted to check if this code layout would still be read correctly?

http://imgur.com/rhf2gk1

Offline nzkfc

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Bulk Upload of steamID's to ULX Group
« Reply #9 on: June 06, 2014, 06:43:55 PM »
Anyone?

Offline Valgoid

  • Full Member
  • ***
  • Posts: 103
  • Karma: -15
  • Wanna Be Lua King
Re: Bulk Upload of steamID's to ULX Group
« Reply #10 on: June 11, 2014, 09:21:20 AM »
Have you tried the code yet?

Offline nzkfc

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Bulk Upload of steamID's to ULX Group
« Reply #11 on: June 17, 2014, 12:47:49 AM »
Yeah but I think it caused a bunch of issues so I stopped using it.

We made a automatic donation system instead. Ulx really needs a bulk group add tool.