Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
John Mccalum

two servers

Recommended Posts

Hello everyone
Here I create 2 servers and I would like to put one in Slave. I open ports 2302 2402, 27015 and 27016 on each of the two servers (server 1 = 2302 and 27015) (server 2 =2402 and 27016), but they are not mandatory between them :( What else do I need to do? ? Thank you in advance

Share this post


Link to post
Share on other sites

1. If they run on the same machine you can set the instanceID of server 1 to 1 and of server 2 to 2.

2. then you need to start them both once and stop them again and delete the players.db in storage_2.

3. Start the windows cmd as administrator (search cmd and rightclick, start as administrator)

4. enter the following command: mklink "DAYZ_SERVER_FOLDER\mpmissions\MISSION_NAME.chernarusplus\storage_2\players.db" "DAYZ_SERVER_FOLDER\mpmissions\MISSION_NAME.chernarusplus\storage_1\players.db" and replace the DAYZ_SERVER_FOLDER with your DayZ Server Folder and the MISSION_NAME with the fitting mission name.

Share this post


Link to post
Share on other sites

then you need to start them both once and stop them again and delete the players.db in storage_2      in server 1 or 2?

replace the DAYZ_SERVER_FOLDER with your DayZ Server Folder and the MISSION_NAME with the fitting mission name.     which server is the number 1 or the number 2?

Share this post


Link to post
Share on other sites

You need to set one server as server 1 and the other server with instanceID 2. You need two different Servers.cfg. in the missions folder you then have storage_1 and storage_2

Share this post


Link to post
Share on other sites

in fact I can not do the command in cmd :( it tells me access denied

I write: mklink G:\jeux\steamapps\common\DayZServer\mpmissions\dayzOffline.chernarusplus\storage_1 G:\jeux\steamapps\common\DayZServer2\mpmissions\dayzOffline.chernarusplus\storage_1

 

where is the concern? please

 

Share this post


Link to post
Share on other sites

John, right now, there is not a supported or viable method of producing a Hive at the moment. The method that you are being recommended, is wildly outrageous and a terrible risk for one server or the other not working properly.

Share this post


Link to post
Share on other sites

Sqlite files are locked to a single program when being used by the server. If you use both servers on the same file as suggested, only one server can access the database file. But through my thorough testing, it actually can cause loss if data on both servers. It is not coded to handle this scenario.

Share this post


Link to post
Share on other sites

Could be right. I haven't tested it myself. Maybe if two Players Connect to the different servers at the same time, both want to access the DB. When MySQL Databases or something different is supported, it should be pretty easy to do.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×