7 Days To Die

From TRUgaming Wiki
Jump to navigation Jump to search

Main Page | All Supported Games

7 Days To Die
7days2die.jpg In the near future where the a third world war leaves the Earth in ruins but the worst was yet to come. Nobody knows for sure if it was the radiation, the biochemical weapons or an act of god but an unknown virus soon transforms the surviving humans into an army of the animated dead, acting as a single-minded being.

You play a survivor trapped in the savage zombie infested world of Navezgane County Arizona one of the last true Eden’s on Earth. Ironically Navezgane means “Killer of Monsters” to the Apache who have inhabited the land for centuries, and that’s pretty much what you’ll do as you fight to survive and search for the truth behind what really happened.

NOTE:
  Alpha 19 files are NOT compatible with Alpha 18 files.  
  We will providing NEW servers with the release of Alpha 19 as we needed to make some configuration
  file changes to simplify things.
  We will also be updating this wiki page to remove Alpha 18 information and tweak it towards Alpha 19.
General Help Server Admin Info
Noob.png * Noobs Admin.png * Server Config
Admin.png * General Notes Admin.png * Making Yourself Admin
Important.png * Random World Generation Admin.png * Modding Your Server
Important.png * Map Packs Admin.png * Wiping your server

Server Config

New Servers

By default 7D2D uses serverconfig.xml for server configuration on startup.
With the latest Alpha16 release of the game, any time you run the Steam Update command from your Game Control Panel,
it wipes out the serverconfig.xml file setting it back to default. This may change at any time depending on the number of
complaints the developers get.

To this end we have implemented a custom command line that uses TRUserverconfig.xml, ** Alpha 19 ** changed to: serverconfigmain.xml

  • NOTE: in the TRUserverconfig.xml/serverconfigmain.xml config file GameName variable.
    <property name="GameName" value="trugaming"/>
    The VALUE may only contain the following characters: A-Z, a-z, 0-9, and/or the space ( ). Avoid other special characters.
    If you use anything else in this field, it may cause problems.

Existing Servers

For our existing customers, before you run the Steam Update in your Game Control Panel, we suggest you make a backup copy of your
serverconfig.xml file. After the update replace the serverconfig.xml file with your backup copy. Make sure you take a few
extra minutes and verify the file contents to make sure you have the right file active.

Top

Wipe Server

Option 1

  1. Stop server
  2. Using your File Manager, delete the map folder (whichever one you have set to save the world in)
    • By default on the TRUgaming servers, look under your 7dtdsaves,<Gameworld> (**Alpha 19*** , Saves ) folder.
    • You will see a trugaming (our default) folder or the name of the folder you created if you changed the GameName variable, delete this.
    • This should delete Player profiles as well as any maps that have been saved on the server
  3. Start server

Option 2

  1. Stop your server.
  2. Using the Configuration Editor or the Text Editor, edit the serverconfigmain.xml file
    • Find the line:
    • <property name="GameName" value="trugaming"/>
  3. Change the name to something else instead of "trugaming" or whatever is currently there on your server.
    • This method will preserve the files for your old game, so by changing the name back, you can go back to the old game as well.
  4. Start the server back up and it should create a new game / map.

Top

Make Yourself an admin

Method 1 - Manually via config file

  1. Login to your game control panel
  2. Click "Configuration Files"
  3. Open "7dtdsaves\serveradmin.xml" ( ** Alpha 19 :** serveradmincustom.xml - located in the \Saves folder. ) by click "Text Editor" to the right.
  4. Find the line that looks like this : "<admin steamID="XX" permission_level="0" />"
  5. Replace XX with your Steam64ID.
  6. Once added, you will need to remove the comment codes so that the line looks like this "<admin steamID="xx" permission_level="0" />

Method 2 - Via the web console

  1. Login to your game control panel
  2. Log into your 7DTD Web Control Panel (details are configured from the config file)
  3. Type "admin add <playerID> <permission level>" (replace playerID with player's Steam64ID and 0 for admin or 1 for moderator)

Other Notes

Prevent your server from restarting at day 0 after a server restart

  1. Open console in game and type "sa"
  2. Restart your server via the game panel

Top

Random World Generation (RWG)

NOTE:

There are several things to note if you want to use a Random World Generated (RWG) map on your server:

  • Server side RWG is VERY resource intensive, as a result you may receive Query Failures and your server may stop mid process.
    The process can use up to 100% of all available CPU space available, impacting all users/servers on the host.
    Additionally, it can take a VERY LONG time because you are sharing resources with other on the host.
    For this reason we RECOMMEND generating any RWG world/maps on your local PC.
  • If you want to run a server side RWG, please contact Support (open a Support ticket), so we can make the necessary adjustments to your server to allow for the extra resources required.
  • or use one of our Map Packs that we have created for you.
  • When using an RWG world/map, remember the bigger the map, the longer it will take the client to download the first time they connect.

Local RWG Generation

You can generate your own RWG world for uploading to your server by:

  1. Starting your 7 Days To Die game
  2. Clicking on the Editing Tools option from the Main menu
  3. Creating a new World can be done in one of two ways:
    1. Random Gen Preview
      1. Under the Generate World pane, enter:
        1. Enter in a World Seed
        2. Enter in a World Size (Remember, the larger the world, the longer it takes to generate and the longer it takes to download from the server the first time you connect)
          This will generate a World Name for you, displayed on the top of the frame, next to the GENERATE WORLD title.
      2. Click on GENERATE WORLD and wait for it to finish.....
      3. Once complete, click on Back
        NOTE: This option will only generate the new world template files it will not actually create the game files for you.
        The generated files can be found on your local PC in the <drive>:\Users\<username>\AppData\Roaming\7DaysToDie\GeneratedWorld\<world name> folder. (1)
      4. Click on New Game and complete your character (if you do not already have one) (2)
      5. Enter a Game Name:
      6. Using the "<" or ">" arrows to select the Game World: you created previously
      7. Click on Start to start the game.
        This will build the necessary game files in the <drive>:\Users\<username>\AppData\Roaming\7DaysToDie\Saves\<world name>\<game name> folder. (1)
    2. World Editor
      1. At the bottom of the Create World options, check the Create New World checkbox
      2. Enter a name for your new world in the Name: box
      3. Using the "<" or ">" arrows to select the Size: of the world you wist to create
      4. Click Start
        NOTE: This option will generate the would files and start the game in Editor mode allowing you to make any changes you want.
      5. Exit the game
      6. Click on New Game and complete your character (if you do not already have one) (2)
      7. Enter a Game Name:
      8. Using the "<" or ">" arrows to select the Game World: you created previously
      9. Click on Start to start the game.
        This will build the necessary game files in the <drive>:\Users\<username>\AppData\Roaming\7DaysToDie\Saves\<world name>\<game name> folder. (1)


  • (1) You may have to enable 'View Hidden items' in your File Explorer to view this folder
  • (2) These steps are need to complete the generation of all the necessary data files.
    If you skip this, the server will not start. You will see the following error message in the 7days_log.txt log file:
    Error starting dedicated server: GameWorld "<gameworld> not found!

Top

Uploading To Your Server

Alpha 19

  1. Stop your server
  2. Using your favorite FTP client, connect to your server
    Random Gen Preview Created
    Transfer the folder/files from your <drive>:\Users\<username>\AppData\Roaming\7DaysToDie\Saves\<worldname> folder to your \Saves folder.
    Transfer the folder/files from your <drive>:\Users\<username>\AppData\Roaming\7DaysToDie\Saves\GeneratedWorlds\<worldname> folder to your \Saves\GeneratedWorlds folder.
    World Editor Created
    Transfer the folder/files from your <drive>:\Users\<username>\AppData\Roaming\7DaysToDie\Saves\<worldname> folder to your \Saves folder.
    Transfer the folder/files from your <drive>:<...\Steam\steamapps\common\7 Days to Die\Data\Worlds\<world name> folder to your \Saves\GeneratedWorlds folder. (1)
  3. Edit your server configuration file (TRUserverconfig.xml), replacing vales for the following variables with the information you generated:
    1. <property name="GameWorld"> value="<world name>" />
    2. <property name="GameName"> value="<game name>" />
      For Example: If you generated a world/game set that has the following folder structure:
      ...\7DaysToDie\Saves\Old Genoda Valley\My Game
      Your replacement lines would look like:
      <property name="GameWorld"> value="Old Genoda Valley" />
      <property name="GameName"> value="My Game" />
    3. Replace the value for the variables:
      <property name="WorldGenSeed"> with the what you used to generate your world
      <property name="WorldGenSize"> with the what you used to generate your world
  4. Save you configuration file
  5. Start your server
  • (1) This step is necessary as the World Editor option does not generate the 'map' information in the GeneratedWorlds folder, but in the game apps folder along with the 'shipped' worlds.

Alpha 18

( Will be removed once all our Alpha 18 are replaced )

  1. Stop your server
  2. Using your favorite FTP client, connect to your server
    Transfer the files from your <drive>:\Users\<username>\AppData\Roaming\7DaysToDie\Saves\ folder to your \7dtdsaves folder
  3. Edit your server configuration file (TRUserverconfig.xml), replacing vales for the following variables with the information you generated:
    1. <property name="GameWorld"> value="<world name>" />
    2. <property name="GameName"> value="<game name>" />
      For Example: If you generated a world/game set that has the following folder structure:
      ...\7DaysToDie\Saves\Old Genoda Valley\My Game
      Your replacement lines would look like:
      <property name="GameWorld"> value="Old Genoda Valley" />
      <property name="GameName"> value="My Game" />
    3. Replace the value for the variables:
      <property name="WorldGenSeed"> with the what you used to generate your world
      <property name="WorldGenSize"> with the what you used to generate your world
  4. Save you configuration file
  5. Start your server

Top

Map Packs

Exciting News!!!!

 We have generated a few worlds/maps for you..
 If you have some more you want to share.. send us the Seed info and we will gladly add them.
  

Installing Map Packs

  • Because it can take so long to generate Random Worlds (RWG), we have pregenerated a few for you.
    They have been added under the Map Packs menu option in the Game Control Panel.
    Currently we have two worlds/maps generated
    4K - Old Genoda Valley & Giyoso Mountains
    8K - New Itami Valley & East Rebidi County
    More to follow
  • To use install either or both of these:
  1. Stop your server
  2. Click on the Map Packs link
  3. This will open the Map Pack dropdown list
  4. Select the Map Pack you want to install
    Before clicking on the Install button, make sure you take note of the information on the Comments block. You will need it to update your server configuration file.
    The WorldGameSeed and GameName values are our Default settings and used when setting up all servers.
  5. Click on the Install button
    This will download and install the Map Pack to your server
  6. Once you see the Completed message show on the progress bar, you can close the window by clicking on the X on the top right of the window.
  7. Navigate to the Configuration Files menu to edit your Main Server Config file.
    1. Text Editor option
      1. Scroll down until you find the GAMEPLAY / WORLD section in the config file.
      2. Replace the four value field contents with the associated information from the Map Pack Comments block.
        Example:
        <property name="GameWorld" value="Navezgane"/> changes to value="RWG"
        <property name="WorldGenSize" value="4096"/>, either stays the same or changes to value="8192"
        WorldGenSeed and GameName use our default trugaming value, so will not need to be changed
      3. Save your changes
    2. Configuration Editor
      1. Scroll down to the World section.
      2. Locate the Game World field. If you are not currently using the Random World Gen option, click on the dropdown list and select it from the list.
      3. This will open another set of options
        Enter the World Gen Seed, World Gen Size and Game Name values from the Map Pack Comments block.
        WorldGenSeed and GameName use our default trugaming value, so will not need to be changed
      4. Save your changes
  8. Start your server back up ( You can open the Web Console to monitor the startup process).

Top

Map Pack Info

Map Pack Name GameWorld WorldGenSeed WorldGenSize GameName
Default Installed Navezgane trugaming 4096 trugaming
Old Genoda Valley RWG trugaming 4096 trugaming
New Itami Valley RWG trugaming 8192 trugaming
East Rebidi County RWG TRUgaming 4096 trugaming
Giyoso Mountains RWG TRUgaming 8192 trugaming

Top

NitroGen Tool

NOTE:
    * We provide this for informational purposes only.  We do not support (provide support for it) or endorse the use of this product.

This tool, will generate the basic files needed, but can still take a while to generate all the necessary files on on your server.

  • NitroGen Tool: (Please note: We provide this for information purposes only, we DO NOT provide support for this tool)
    7 Days To Die Forums Tools

To use NitroGen:

  1. Run the program as per the instructions
  2. Generate your map
  3. Copy the map folder from the NitroGen output folder to your <drive>:\Users\<username>\AppData\Roaming\7DaysToDie\GeneratedWorld\ folder.
  4. Start your 7 Days To Die Game
  5. From the Main Menu, Select Editor Tools
  6. Select World Editor
  7. Under the Create World, make sure the Load World checkbox is checked
  8. Highlight, you Nirtogen map name
  9. Click Start
    This will start the folder/file creation process under your <drive>:\Users\<username>\AppData\Roaming\7DaysToDie\Saves\<world name> folder.
    Once complete your game will start in Editor mode.
  10. Save your map and Exit
  11. Return to the Main Menu and click on New Game
  12. Enter a new Game Name
  13. If not already prompted to, use the "<" or ">" arrows to select the NitroGen Game World: you created previously.
  14. Click on Start
  15. Once the game load, Exit the game
  16. Transfer the folder/files from your <drive>:\Users\<username>\AppData\Roaming\7DaysToDie\Saves\<worldname> folder to your \Saves folder.
  17. Transfer the folder/files from your <drive>:\Users\<username>\AppData\Roaming\7DaysToDie\Saves\GeneratedWorlds\<worldname> folder to your \Saves\GeneratedWorlds folder.
  18. Edit your server configuration file (TRUserverconfig.xml), replacing vales for the following variables with the information you generated:
    <property name="GameWorld"> value="<world name>" />
    <property name="GameName"> value="<game name>" />
    For Example: If you generated a world/game set that has the following folder structure:
    ...\7DaysToDie\Saves\NitroGenMap\My Game
    Your replacement lines would look like:
    <property name="GameWorld"> value="NitroGenMap" />
    <property name="GameName"> value="My Game" />


Top