How to Convert Single-Player Save Data to Multiplayer Save Data and Back

When you upload a Singleplayer world to your server or vice-versa, your player data such as your inventory and player statistics won't transfer without making any changes.

Without converting your world or deleting the players.db file, you may notice you won't be able to join your world or your server is crashing. This is because the way Multiplayer and Singleplayer loads player data is stored differently.

If you haven't already, first read our Knowledgebase guide on uploading or downloading your world.

You can convert your world between Singleplayer and Multiplayer by following these instructions:

How to Convert Your Singleplayer World to Multiplayer

  1. Stop your server from the Control Panel.
  2. Upload your Singleplayer world to your server by following our guide here.
  3. Create a workspace folder at any location you'd like on your computer. This isn't required but it will make it easier to work on converting your player data.
  4. Navigate to Files > FTP File Access on your control panel and login to this via an FTP client such as Filezilla or WinSCP.
  5. Click on the /Zomboid folder, then navigate to `/Saves/Multiplayer` in your servers FTP directory.
  6. Keep note of the World Name on your control panel. By navigating to Files > Config Files > Project Zomboid Server Settings.
  7. Click on the world name that matches the world field on your control panel. Download the players.db file and place it in your workspace folder. You can also grab the players.db file from the Singleplayer world instead if you haven't replaced the file yet.
  8. Rename the players.db file you've moved to oldPlayers.db
    Note: You don't need to rename the players.db file to the name mentioned in our Knowledgebase. You can use any name but you are only renaming the file temporarily so it's easier to work with.
  9. Download SQLite Database Browser (DB Browser) from https://sqlitebrowser.org/dl/
  10. Open DB Browser, then click File > Open Database
  11. Locate the workspace folder you've created, then open oldPlayers.db
  12. Click Browse Data, then select the localPlayers table. If there's any player data in the table, you can confirm the oldPlayers.db file is using the Singleplayer format.
  13. Delete the players.db file on your server from the FTP directory.
  14. Start your server to regenerate a multiplayer compatible players.db file.
  15. Join your server and create a new character. It doesn't matter what statistics you choose for the player as this will be reset after transferring the data.
  16. Leave, then stop your server from the control panel.
  17. Navigate to your world folder in your servers FTP directory.
  18. Download the players.db file to the workspace folder on your computer.
  19. Rename the players.db file to newPlayers.db
  20. Open DB Browser, then click File > Open Database
  21. Locate the workspace folder, then open newPlayers.db
  22. Click Browse Data, then select the networkPlayers table. If there's any player data in the table, you can confirm the newPlayers.db file is using the Multiplayer format.
  23. Open the oldPlayers.db file with DB browser.
  24. Click Browse Data and open the localPlayers table.
  25. Keep a reference of the X, Y, and Z values. Copy and paste this to any note-taking software of your choice.
  26. Right click on the field in the data column for your player and press Copy as SQL. Paste this in the document with your X, Y, and Z values.

  27. Open the newPlayers.db file with DB browser.
  28. Click Execute SQL, then run the SQL command mentioned at the bottom of this Knowledgebase article. Replace the values in the SQL command with the values you've taken note of previously. You will want to modify the networkPlayers table.
  29. Click the Execute all/selected SQL button. This looks like a play button and is located near the top left of DB Browser.
  30. Click Browse Data and confirm the changes were applied.
  31. Press the File button, then click Write Changes and Save All. Exit DB Browser.
  32. Navigate to your workspace folder and rename newPlayers.db to players.db
  33. Upload the newly renamed players.db file to /Zomboid/Saves/Multiplayer/YOUR_WORLD_NAME
  34. Start your server and connect to join with your Singleplayer character data.

How to Convert Your Multiplayer World to Singleplayer

  1. Stop your server from the Control Panel.
  2. Download your world by following our guide here.
  3. Make sure you've replaced the players.db file as mentioned in the previous Knowledgebase guide.
  4. Create a workspace folder at any location you'd like on your computer. This isn't required but it will make it easier to work on converting your player data.
  5. Navigate to the location you've downloaded your world to in your Project Zomboid game directory.
  6. Locate the players.db file that contains your multiplayer player data to the workspace folder you've created. You can find this directly on your server in the world directory.
  7. Move the players.db file to the workspace folder you've created, then rename this to oldPlayers.db
    Note: You don't need to rename the players.db file to the name mentioned in our Knowledgebase. You can use any name but you are only renaming the file temporarily so it's easier to work with.
  8. Download SQLite Database Browser (DB Browser) from https://sqlitebrowser.org/dl/
  9. Open DB Browser, then click File > Open Database
  10. Locate the workspace folder you've created, then open oldPlayers.db
  11. Click Browse Data, then select the networkPlayers table. If there's any player data in the table, you can confirm the oldPlayers.db file is using the Multiplayer format.
  12. In the networkPlayers table, keep a reference of the X, Y, and Z values. Copy and paste this to any note-taking software of your choice.
  13. Right click on the field in the data column for your player and press Copy as SQL. Paste this in the document with your X, Y, and Z values.
  14. Open the players.db file located in the Project Zomboid game directory with DB Browser. This would be the world folder on your computer located under C:/Users/YOUR_USERNAME/Zomboid/Saves
  15. Click Execute SQL, then run the SQL command mentioned at the bottom of this Knowledgebase article. Replace the values in the SQL command with the values you've taken note of previously. You will want to modify the localPlayers table.
  16. Click the Execute all/selected SQL button. This looks like a play button and is located near the top left of DB Browser.
  17. Click Browse Data and confirm the changes were applied.
  18. Press the File button, then click Write Changes and Save All. Exit DB Browser.
  19. Start Project Zomboid on your computer, then press the LOAD button.
  20. Select the world you've just uploaded and press PLAY

SQL Command Cheatsheet

When running the command, replace the text REPLACE_WITH_TABLE with the table you're updating.

If you're converting your world from singleplayer to multiplayer, the table you will be modifying is networkPlayers.

If you're converting your world from multiplayer to singleplayer, the table you will be modifying is localPlayers.

You can find the full command below. Don't forget to replace all values indicated in the comments!

-- Update player data
UPDATE "main"."REPLACE_WITH_TABLE" -- Select which table you'd like to modify.
SET data = NULL -- Replace “NULL” with value inside the copied SQL command VALUES(); method
WHERE id = 1; -- The ID is the row you're replacing the value of for the character you created earlier.

-- Update player X coord
UPDATE "main"."REPLACE_WITH_TABLE" -- Select which table you'd like to modify.
SET x = 0 -- Replace with the X coordinate of the player.
WHERE id = 1; -- The ID is the row you're replacing the value of for the character you created.

-- Update player Y coord
UPDATE "main"."REPLACE_WITH_TABLE" -- Select which table you'd like to modify.
SET y = 0 -- Replace with the Y coordinate of the player.
WHERE id = 1; -- The ID is the row you're replacing the value of for the character you created.

-- Update player Z coord
UPDATE "main"."REPLACE_WITH_TABLE" -- Select which table you'd like to modify.
SET z = 0 -- Replace with the Z coordinate of the player.
WHERE id = 1; -- The ID is the row you're replacing the value of for the character you created.

If you require any further assistance, please contact our support at: https://shockbyte.com/billing/submitticket.php

Mitchell Smith

Managing Director @ Shockbyte

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

How to Make Your Project Zomboid Server Private

If you are looking to run a Project Zomboid server for a small group of people, we recommend...

How to Kick or Ban a Player From Your Project Zomboid Server

Sometimes it is incredibly useful to ban/kick disruptive or unwanted players from your Project...

All Console Commands for Your Project Zomboid Server

Console commands allow users to modify the game’s settings, spawn items, or run functions that...

How to Become an Admin on Your Project Zomboid Server

Granting a user Admin access on your Project Zomboid server allows the user to execute Admin...

How to Change the Name and Description of Your Project Zomboid server

Changing your Project Zomboid server name and description is a great way to make your server...