ULX

Author Topic: Symbolic links to share groups in ulx?  (Read 4146 times)

0 Members and 1 Guest are viewing this topic.

Offline bran92don

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Symbolic links to share groups in ulx?
« on: August 26, 2013, 06:55:28 PM »
I am trying to see if this is possible, or if I am doing something wrong. Basically I host 4 garrys mod servers and was trying to make it easier to add admins. I have no clue how to do this with sql. I tried doing a symbolic link with the main server and to all of the other data folders, but when I go to other servers it does not work. Can this not be done, or would this require a server restart every time? To me it seems like this should work no problem.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Symbolic links to share groups in ulx?
« Reply #1 on: August 26, 2013, 07:14:03 PM »
I'm pretty sure the fact that each server requires write access to the /data/ folder, meaning there would be 4 arguing for contention, would prevent this from working.
You MIGHT have better luck pointing to a read only file.
Try adding your admins/superadmins using the old fashioned way (notepad + Gmodsettings/users.txt).
TBH, I don't even know if it's used anymore in Gmod13.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Symbolic links to share groups in ulx?
« Reply #2 on: August 26, 2013, 08:47:47 PM »
If you're running multiple servers off of the same server box why not just run multiple instances of the same srcds.exe.

That's what I did and the servers shared the same addons and data folder. Making ULX essentially cross server. There might be some side effects to doing it this way though.

Offline bran92don

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Symbolic links to share groups in ulx?
« Reply #3 on: August 26, 2013, 09:50:52 PM »
Yea I can't do this, because it doesn't seem to wise to me. Also some addons should not really, be together. Like its a ttt, darkrp, deathrun, and slender man server. I have a environment mod that does not need to be on the slender man server. Also it limits me on the loading screen. Like I might need too have different loading screens set up. Also the server name would be a issue, but  I guess I could put that in the launch parameters.

BAH if I knew mysql I would try to do it that way. I might just end up learning it anyways, I like to learn stuff early,and by myself.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Symbolic links to share groups in ulx?
« Reply #4 on: August 26, 2013, 11:08:54 PM »
All the important things could be done in launch parameters. The only thing would be the addons. You'd have to write in a check to only enable certain ones on certain servers.

The SQL method is much easier.

Offline bran92don

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Symbolic links to share groups in ulx?
« Reply #5 on: August 27, 2013, 11:44:33 AM »
I don't even know where to begin with sql, and every time I try to look up one for ulx I read stuff about " It is to much of a headache", or "you need to code it yourself. I am fine with coding stuff myself, but sorta hard when you have never attempted sql. It also baffles me that not many admin mods have sql in them. You'd think servers would have run into this issue before and decided to make it apart of the admin mod.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Symbolic links to share groups in ulx?
« Reply #6 on: August 27, 2013, 12:13:19 PM »
We've said it a thousand times:

ULX will not have SQL support because Garrys Mod does not have SQL support.

Sure you can add SQL functionality through 3rd party addons, but then there are any number of things that could go wrong. Such as the author of the 3rd party addon losing interest and not maintaining it through garry's updates, or Garry breaking compatibility with the external module (because we all know garry is the best with compatibility).

That's ultimately why no admin mods have SQL support built in. I hope this at least sheds some light as to why it's not built in.

Offline bran92don

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Symbolic links to share groups in ulx?
« Reply #7 on: August 27, 2013, 06:24:31 PM »
I got this working, but I do not like how it does not allow me to edit the permission on the fly. Also I have to read myself to superadmin on every server.  http://forums.ulyssesmod.net/index.php/topic,5738.0.html

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given