Linux dedicated server question

SiliconPenguin

New member
I set up a dedicated server on my local machine to get better performance. Works fine. I then tried an experiment - I created a soft link to my saved game that I would normally use without the server. Now that's working great. Now, I can play solo outside of the server, or play on the server with friends, and everything works great, except for one small issue: What ever portion of the map is revealed goes away when switching between the two methods of access. All the map markers are still present, but the fog of war fills the entire map except the immediate surrounding area...  Any ideas on how to keep it persistent?

 
Set a differerent userdata folder for server using the serverconfig.xml

Specifically, this line:  <property name="UserDataFolder"                value="C:/111" />

Name the folder whatever you like.

 
C:/ <--- That's not going to work on my Linux box.  But how is this supposed to keep the fog of war on the map from resetting? The server accesses the correct files via the soft link. And why would I want to name the folder whatever I like??? I'm literally accessing the exact same saved game directory.

 
I didn't see a specific file where the fog-info is stored when one plays locally, maybe it is stored in main.ttw or more likely in players/*.map. In the latter case it might be possible to copy over before you change the mode, just using a soft link seems a recipe for disaster.

Sorry, nothing specific, I only did a cursory check as I don't have access to a working setup of 7days at the moment.

 
Last edited by a moderator:
Thanks for the reply.  The soft link is to the actual saved game directory itself. All of those files are in that directory.

I should explain this a little better.

By default, these are the original directories:

Saved games: /home/username/.local/share/Steam/steamapps/compatdata/251570/pfx/drive_c/users/steamuser/AppData/Roaming/7DaysToDie/Saves/

Worlds:            /home/username/.local/share/Steam/steamapps/compatdata/251570/pfx/drive_c/users/steamuser/AppData/Roaming/7DaysToDie/GeneratedWorlds/

I installed the server to:  /home/username/7d2d_server/

And the server sets up a world directory: /home/username/7d2d_server/Data/Worlds/

And a saves directory: /home/username/.local/share/7DaysToDie/Saves

I copied the world folder over from the default install to the server worlds directory. 

I originally copied the saved game folder from the default install to the server saves directory. Everything went well, but I didn't want to have 2 different versions of the same saved game. I wanted to try an experiment. So I removed the copied saved game folder, and replaced it with a symlink to the original saved game directory like this: 'ln -s "/home/username/.local/share/Steam/steamapps/compatdata/251570/pfx/drive_c/users/steamuser/AppData/Roaming/7DaysToDie/Saves/Old Veyigu  Mountains/OffKilter3/" .'  <-- That's a space, then a dot for the current directory.

Now we're working with a single set of saved game files. Everything BUT the fog of war is working perfectly. I could only "Join" the game after starting the server, and I wouldn't "Continue" the game while the server is running. The server hasn't modified anything in the Worlds directory since I set it up. But it works with the saved game files just fine.

Could it be the profiles.sdf files? There's one in each saved game location - outside of the individual saved game folders... I doubt it's that, it's only 1.1 kb. But perhaps if they're different, the game just wipes the uncovered part of the map? That's the only thing I see that might be causing it.

And yeah, seems to be the same issue.

 
Last edited by a moderator:
My guess is that you are accessing the same savegame with your single player game and your server saved game, which is why I suggested that you separate the save folders. One save folder for your local games and a different one for your server game.

 
My guess is that you are accessing the same savegame with your single player game and your server saved game, which is why I suggested that you separate the save folders. One save folder for your local games and a different one for your server game.
Dude, that is literally what I'm doing. I want to access the same files from the server, and from the stand alone client. If I just wanted to access different files, I would have been done before this started. If you get my meaning. But your first comment really made me think a lot about the profiles.sdf files. This is the only file "outside" of the saved game directory itself that is both separate and existent on both installs. I think a portion of the beginning of that file might provide a hash(an index if you please) into the players/*.map file which then probably determines the areas of the map that are uncovered. That's my working hypotheses.

I'm going to copy the profiles.sdf from the default dir into the server saves dir(after making a backup), and give it a go. Wish me luck.

 
Okay, I did what I said, and for the first time a large portion of the map remained revealed... Very interesting. I guess I should go back into the game and give some time for the server to "sync" with the client.This would be fair, but I seriously have doubts as to whether this is really a thing in this case. But at any rate, I think I'll make a symlink between the profiles.sdf on my stand alone side, and the profiles.sdf on my server side.

 
Gave it a bit of time... nothing. Made the file a symlink... nothing. No revealed map... Oh well. No ideas. Game works just fine, just the fog of war issue

 
Back
Top