Author Topic: Nothing Saving After Map Changes or Server Restarts  (Read 4014 times)

0 Members and 4 Guests are viewing this topic.

Offline ryan722

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Nothing Saving After Map Changes or Server Restarts
« on: April 30, 2015, 05:31:25 PM »
Hey all,

I apologize in advance if this has already been asked or solved, I've done a fair share of research, and personally have been unable to find a solution to this problem.

I'm hosting my own TTT server using SteamCMD, and am currently in the process of configuring ranks, permissions, addons, etc.

What I noticed, however, is that, each time after setting myself to superadmin, when the map is changed or the server reset, it goes away. I've reinstalled ULX, both beta and stable release, a few times. In addition, I've made sure to give Windows write access to the server folders. I've set myself as superadmin in the users.txt file, but even then, new groups don't save.

Looking in my server folder, I was unable to find a data folder, which I know is supposed to be there. While I suppose I could just copy the folders from ULX and ULib into a data folder, I'd much prefer to find the problem here, so I can add the ranks and change permissions directly from XGUI.

I have tried doing Step 4), located here, although it didn't seem to work. What I did is create a data folder in GarrysModDS\garrysmod and copy the data contents from both ULX and ULib into it. Then, as per the instructions of Step 4), I changed the name of the group.txt file (I wasn't able to find the misc_registered.txt, for some reason). As I said, however, for some reason this didn't work.

Any help solving this problem would be much appreciated. Please let me know if I messed something up or missed something blatantly obvious.

Thanks

EDIT: Forgot to add, I did try to do ulx debuginfo in the serve console, and it said it was written to garrysmod\data\ulx, but I looked in there and was unable to find it. I think this may have something to do with how I created the data folder, but I'm not sure.
« Last Edit: April 30, 2015, 05:51:31 PM by ryan722 »

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #1 on: April 30, 2015, 08:25:32 PM »
Can you show us a screenshot of what your server's data folder looks like right now?  Also, you haven't messed with anything in addons/ulib/data right?

Do you see any errors in your server console?

Offline ryan722

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #2 on: April 30, 2015, 09:17:28 PM »
Can you show us a screenshot of what your server's data folder looks like right now?  Also, you haven't messed with anything in addons/ulib/data right?

Do you see any errors in your server console?

Hey, Aaron. Thanks for responding.




(Excuse the poor quality, I didn't want to take up the whole page)

In the data folder, I simply copied and pasted the data folders from ULX and ULib. In the ULib folder, you can see that the groups.txt folder is spelled grouys.txt. This was my attempt at getting ULX to rebuild the data folder.

Addons\ULib\data is completely untouched.

There are errors, but none I can remember from ULX.

Any ideas?

EDIT: Here are logs from the server console. I have some broken stuff, but I don't know what would be causing the ULX problem.


« Last Edit: April 30, 2015, 10:18:11 PM by ryan722 »

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #3 on: April 30, 2015, 10:04:15 PM »
You copied the text files?  They should have been automatically generated.  Perhaps this is your problem?

 Otherwise a peak in groups.txt should give us some answers.

Offline ryan722

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #4 on: April 30, 2015, 10:20:14 PM »
You copied the text files?  They should have been automatically generated.  Perhaps this is your problem?

 Otherwise a peak in groups.txt should give us some answers.

That's what I'm thinking. Nothing was automatically put in the data folder. In fact, there wasn't even a data folder there until I created one.

Code: [Select]
//ATTENTION! This is a default file. DO NOT EDIT THIS FILE!!!
//Instead, edit the version in <garrysmod root>/data/ULib/groups.txt if it exists. If it doesn't, copy this file over to create it.
//IF YOU MAKE CHANGES TO THIS FILE THEY WILL BE ERASED!

"operator"
{
"allow"
{
}
"can_target"    "!%admin"
}

"admin"
{
"allow"
{
}
"inherit_from" "operator"
"can_target"    "!%superadmin"
}

"superadmin"
{
"allow"
{
}
"inherit_from" "admin"
}

"user"
{
"allow"
{
}
}

Here's the groups.txt file from addons\ulib\data\ulib

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #5 on: April 30, 2015, 10:22:57 PM »
Yeah, you are going to have to delete any files you may have copied into the data folder yourself.  Theoretically, that should fix the problem.

Offline ryan722

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #6 on: April 30, 2015, 10:29:34 PM »
Yeah, you are going to have to delete any files you may have copied into the data folder yourself.  Theoretically, that should fix the problem.

Well, I deleted all content in the data folder, leaving the folder itself. I went on the server and created a new group, "manager", which inherits permission from superadmin. I then force changed the map from the server, and the rank was gone.

Looking in the files, the data folder is still empty.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #7 on: April 30, 2015, 10:31:50 PM »
Can you try a reinstall as well?  It seems like you edited something you shouldn't have... if that doesn't work, something else is going on.

Offline ryan722

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #8 on: April 30, 2015, 10:38:57 PM »
Can you try a reinstall as well?  It seems like you edited something you shouldn't have... if that doesn't work, something else is going on.

I've tried a few ULX reinstalls, but I'll try another one just to make sure.

I did a fresh install from Ulysses, using the latest stable versions of ULX and ULib.

After starting the server and joining, I set myself to superadmin, and forced a map change. Upon rejoining, my rank was once again gone.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #9 on: May 01, 2015, 08:17:13 AM »
With a fresh install of ULX/ULib and no existing data files, you should not be having any problems.  As long as you are not editing anything manually and you are using the commands.

My next guess would be a conflicting addon.  Perhaps removing them one by one and restarting the server each time would solve the issue.

I propose you remove ALL addons first and see if you still have the issue.  Then you know it isn't addons if you still have the issue.

Offline ryan722

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #10 on: May 01, 2015, 10:45:41 AM »
With a fresh install of ULX/ULib and no existing data files, you should not be having any problems.  As long as you are not editing anything manually and you are using the commands.

My next guess would be a conflicting addon.  Perhaps removing them one by one and restarting the server each time would solve the issue.

I propose you remove ALL addons first and see if you still have the issue.  Then you know it isn't addons if you still have the issue.

I actually don't have any addons currently. I'm not at home at the moment, but if I remember correctly, the only things I edited are:

-Added a rank column to the scoreboard
-Added a file to the main directory with the text "4000" inside
-Changed knife damage to 200
-Added a file in lua/autorun for chat tags

I may have added more, I'll recheck when I get home in a few hours.

If it comes down to it, I may just reinstall the whole server. Would the batch file possibly be causing this problem?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #11 on: May 01, 2015, 08:23:30 PM »
I've no clue what your original issue is, but the fact I saw you mention your server did not have a data folder until you created it tells me there is a major issue, likely beyond ULib's control.
It sounds like Gmod doesn't have permissions to modify the server folder as it should. (It needs more than just access to create /data, it creates a /downloads and some other folders while it's running/starting up too)
The only files we ever might recommend copying and then editing are some of the behind the scenes configuration text files.
Even that now though is often discouraged, as a majority of the settings allowed in those can now be done through XGUI (once you have ULX running proper)
« Last Edit: May 01, 2015, 08:25:30 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ryan722

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #12 on: May 01, 2015, 10:34:18 PM »
I've no clue what your original issue is, but the fact I saw you mention your server did not have a data folder until you created it tells me there is a major issue, likely beyond ULib's control.
It sounds like Gmod doesn't have permissions to modify the server folder as it should. (It needs more than just access to create /data, it creates a /downloads and some other folders while it's running/starting up too)
The only files we ever might recommend copying and then editing are some of the behind the scenes configuration text files.
Even that now though is often discouraged, as a majority of the settings allowed in those can now be done through XGUI (once you have ULX running proper)

Thanks for your insight. It is a weird situation, I have no idea what the problem would be. Do you have any suggestions as to what I could do to fix this?

Offline ryan722

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #13 on: May 01, 2015, 10:55:41 PM »
Welp, I've found the solution.

I looked once more at permissions, and, while it said "Full Control", it turns out that the actual user didn't have full access. So, upon granting it and restarting the server, ULX and ULib folders were placed in \data.

Anyway, thanks to anyone who helped. Sorry to trouble you guys.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Nothing Saving After Map Changes or Server Restarts
« Reply #14 on: May 02, 2015, 07:36:17 AM »
Glad you found it.
No trouble for this community.
We enjoy questions with legitimacy that require some thinking.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming