Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: nzkfc on April 03, 2014, 11:24:22 PM

Title: Bulk Upload of steamID's to ULX Group
Post by: nzkfc 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.
Title: Re: Bulk Upload of steamID's to ULX Group
Post by: Neku 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.
Title: Re: Bulk Upload of steamID's to ULX Group
Post by: Bytewave 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...
Title: Re: Bulk Upload of steamID's to ULX Group
Post by: Neku 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.
Title: Re: Bulk Upload of steamID's to ULX Group
Post by: Bytewave 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
Title: Re: Bulk Upload of steamID's to ULX Group
Post by: JamminR 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",
}
}
Title: Re: Bulk Upload of steamID's to ULX Group
Post by: nzkfc 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
Title: Re: Bulk Upload of steamID's to ULX Group
Post by: LuaTenshi 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.
Title: Re: Bulk Upload of steamID's to ULX Group
Post by: nzkfc 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 (http://imgur.com/rhf2gk1)
Title: Re: Bulk Upload of steamID's to ULX Group
Post by: nzkfc on June 06, 2014, 06:43:55 PM
Anyone?
Title: Re: Bulk Upload of steamID's to ULX Group
Post by: Valgoid on June 11, 2014, 09:21:20 AM
Have you tried the code yet?
Title: Re: Bulk Upload of steamID's to ULX Group
Post by: nzkfc 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.