Move a local save game to dedicated server

Mike Burgoon

New member
Nov 23, 2018
12
0
0
54
Ok. I have been reading a while on this. 4 of us play locally in our house. We always have to wait for one person who set up the game to start it and play it. We found out about dedicated server and got that set up. Now what we need to do is transfer our saved game to the dedicated server from his PC. I think I have done it correctly, but RAT does not see the new settings. I pulled over the entire save game directory from the appdata folder, and also the player .pdb files and put them in the steamcmd\7_days_to_die_server1 folder. Also the serverconfig.xml file and placed it in the steamcmd\7_days_to_die_server1 folder.

I hit the import button, but nothing seems to have changed in the settings for the game in RAT to match our game settings.

What am I missing?

Thanks
 
If you are hitting the Import button and RAT isn't importing the setting you expect, that usually means that the Server Path on the Server Configuration tab isn't set right.

Nothing for the 7d2d game should go into the SteamCMD folder. That is specifically for that application "SteamCMD". The easiest way to install the dedicated server is through Steam itself (From the Tools section). Then, copy your game files into %appdata%\7daystodie (match up the folders how they need to from your previous install).
 
ok. deleted everything except RAT off of the server. installed 7dtd from steam. Copied the old appdata files to the new appdata folder. installed dedicated server from steam, copied those files into that directory under steamapps\common\7 Days to Die Dedicated Server. launch RAT. import settings. still no settings are changed from the default on the game settings tabs. I don't want to launch the server without seeing the settings that are from our game.

I did launch and run the game real quick locally and it looks good on this new system. So i know it is right there.

But when I point everything in RAT, tell it to import server config, it does not look right. the game settings tabs do not contain the same information as what the game is set up as. I wish I knew what I was doing wrong. I just copied in the entire save game folder, so there are several. Do I need to trim that down to just 1 save game in the appdata folder? Not sure how to tell it which save game to use. Or where to get the correct serverconfig.xml file that has those settings under the game settings tabs.

running 0.2.00.8 version of RAT. This is a random gen world.

thanks
 
It still sounds like what I said in my earlier reply: If you are hitting the Import button and RAT isn't importing the setting you expect, that usually means that the Server Path on the Server Configuration tab isn't set right.

Meaning, as you expect, when you do that import, the values from your serverconfig.xml are read and RAT is updated to display them. So it sounds like, where the value for "Server Path" is pointing to, there is a serverconfig.xml there, and its being read. Assuming when you do the import, RAT pops up a message saying the import was successful? It's also possible its a bug in RAT, but I haven't seen this bug before.

If possible, please join Discord (click is on the main page here, on the righthand side) and maybe we can do a Teamviewer session if you're ok with that. Let me know!
 
  • Like
Reactions: Mike Burgoon
Ok, I did some more testing. I deleted all save games except for the one I want to keep on this server. I then launched the server, then steam, then 7DTD. so server and client were on same machine. went to LAN and saw my server. But the settings were totally wrong. Biggest being it had us back on day 1, and had us playing Navezgane and not our random gen world. how do I import my saved game into RAT so we can continue playing it on a dedicated server? On the server, if I launch 7 days to die and select my save game, everything is right and correct. If I go to connect to server\LAN, it is not correct. So I know I got the game there and it works....
 
would love a teamviewer session. Where is the serverconfig file for each game saved? I guess that may be the correct question. I can't do a team viewer at the moment, but maybe later I can if I can't figure it out.
 
serverconfig.xml should be in the same folder as your 7DaysToDieServer.exe file. It sounds like I'm right in that you have different EXEs and serverconfig files, and that's what is causing the confusion.
 
Another bit of information. we have always played private local games. Even though we started this game only about a month ago, the server config file is really old. so the settings for a local save game must not be stored in the serverconfig.xml file? I say this because
 
But there is no 7daystodieserver.exe file when you install 7 days to die. I am trying to move a local game to a server game. I am not moving from a server to server. I am trying to move from a local game to a server based game. I don't think 7 days local games uses the .XML file. I did find a .sdf file in the save games that contains the info I need, but it is odd format.
 
That's a good point on the serverconfig.xml not being there from a local game. I've not done what you are doing so not entirely sure what the same game structure looks like from a local game to a dedicated server. I assumed they are the same since I can't think of any real reason they wouldn't be, but... I'm really not sure. Sorry I can't help more, but like I said, I have no idea what the file structure looks like, in order to try and make it fit with the dedicated server. I'm pretty sure its possible, but don't know that 100%.
 
ok. FIgured it out. You have to manually enter the settings to match exactly the local save game that was moved. the most important settings are game name, the map setting for either Navezgane or Random Gen, and the exact map seed setting. once all the settings are manually entered, it will then pull the correct game and you can continue. but it is a manual process. I think it would be so much better if The Fun Pimps used the serverconfig.xml file under each saved game, then just a config file for where save games are located. I know why they don't (so it is harder to mess with a saved game outside of the game I guess), but it would make things much easier overall.

Thanks for the help.
 
Also, under the save game in %appdata%\7DaysToDie\Saves\Random Gen\GameName, there is a database file called gameOptions.sdf that contains the information that can be imported into the .xml file. It says the type is SQL Server Compact Edition Database file.

Maybe you could eventually add the ability to import from that file some how as well in the future. Just an Idea. Not sure if it contains all the same info or not, but from what I can read in it, that file has a LOT of the same information.
 
ok, I thought I had it figured out. Rat is not updating the serverconfig.xml file at all. so any changes I make in RAT are not being updated in the .xml file. I have RAT pointing to C:\Program Files (x86)\Steam\steamapps\common\7 Days to Die Dedicated Server directory. but the server config file in that directory (or any directory) is being updated or created. If I delete the .xml file and try to import, I get an error saying unable to locate config file. if I put it back, I get Success. So I know I got the directory correct. The server is not running, so the file is not locked. But yet RAT will not update the config file. This is so freaking frustrating.
 
ok. I see now. RAT does not actually SAVE the values to the .xml file until you start the server. don't know where it save them then when I hit save on every screen of the configs in rat.....
 
OK, one other thing to note is that local random gen games save to %APPDATA%\7DaysToDie\Saves\Random Gen while the dedicated server games get saved to %APPDATA%7DaysToDie\Saves\RWG. So that makes a difference in where you need to copy your saved game files to.
 
ok. I see now. RAT does not actually SAVE the values to the .xml file until you start the server. don't know where it save them then when I hit save on every screen of the configs in rat.....

RAT uses an internal database, and when you "Save", you are saving to that database. You are correct in that RAT doesn't write the new config until you start the server (which it does every time you start the server). But if you want to write out the config prior to that, there's a "Write Config" button just under the Import button you've been clicking on. Sorry for the confusion.

OK, one other thing to note is that local random gen games save to %APPDATA%\7DaysToDie\Saves\Random Gen while the dedicated server games get saved to %APPDATA%7DaysToDie\Saves\RWG. So that makes a difference in where you need to copy your saved game files to.

Thank you, this is helpful. Sounds like the local random gen, the paths weren't updated to match the new path of RWG for A17.