Author Topic: Recycling Parts of users.txt  (Read 2244 times)

0 Members and 3 Guests are viewing this topic.

Offline Bryantdl7

  • Jr. Member
  • **
  • Posts: 86
  • Karma: -2
Recycling Parts of users.txt
« on: December 18, 2014, 02:54:55 PM »
My users.txt is massive as I use apromote to add people to custom ranks. I was wondering if there is a way to easily delete all users from rank eg. vault-guardian without using notepad++ and deleting one at a time for the next 30 years.



Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Recycling Parts of users.txt
« Reply #1 on: December 18, 2014, 04:15:36 PM »
Wouldn't XGUI allow removing users from groups be quicker?
Though it might still have to be done one at a time, would be easier to 'select group' 'select player' 'click remove button' than it would be to manually edit text.

I know of no ULX command to remove mass at once (and, with good reason!)

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline xXthatNAVYguyXx

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Recycling Parts of users.txt
« Reply #2 on: December 18, 2014, 10:27:42 PM »
If you wanted to remove all users from a single rank, you could just delete the rank through the in-game GUI. Make sure you make a rank just like it and make that rank have all the same features. Then once you delete the original, replace it with the "copy" so you still have the rank. :)

Offline Bryantdl7

  • Jr. Member
  • **
  • Posts: 86
  • Karma: -2
Re: Recycling Parts of users.txt
« Reply #3 on: December 20, 2014, 03:43:58 PM »
Wouldn't XGUI allow removing users from groups be quicker?
Though it might still have to be done one at a time, would be easier to 'select group' 'select player' 'click remove button' than it would be to manually edit text.

I know of no ULX command to remove mass at once (and, with good reason!)

I have approx. 3,000 in some ranks. That would be impossible lol



Offline Bryantdl7

  • Jr. Member
  • **
  • Posts: 86
  • Karma: -2
Re: Recycling Parts of users.txt
« Reply #4 on: December 20, 2014, 03:45:01 PM »
If you wanted to remove all users from a single rank, you could just delete the rank through the in-game GUI. Make sure you make a rank just like it and make that rank have all the same features. Then once you delete the original, replace it with the "copy" so you still have the rank. :)
I don't want to delete the people in the rank. I just want less then a million people in my users.txt. I doubt deleting the rank would affect the file at all



Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Recycling Parts of users.txt
« Reply #5 on: December 21, 2014, 06:36:11 PM »
Compression is the obvious answer to this question, but unfortunately that's not a supported solution by Garry. :P

The development team has been working on a SQLite version of the user database, but there's no ETA on this.
Experiencing God's grace one day at a time.