Giter VIP home page Giter VIP logo

dayz-private-server's Introduction

Requirements

Installation Instructions

Install - ArmA2: Combined Operations

  1. Create a path with no spaces somewhere near the root of your drive. (Example: C:\Servers\DayZ1)
  2. Download SteamCMD and extract it.
  3. Download this batch file and place it in your SteamCMD extracted directory.
    • Edit update_server.bat's variables to match your settings
      1. Set STEAM_DIR to the directory you created in step 1.
      2. Set STEAM_USERNAME and STEAM_PASSWORD to your Steam login with ArmA 2: Combined Operations
  4. Run update_server.bat and wait for it to complete. This will download ArmA2 and ArmA2: Operation Arrowhead into the same directory to make ArmA2: Combined Operations.

Install - DayZMod Server

  1. Download the latest stable release of this server pack or the latest development version.
  2. Extract the server pack you have just downloaded into the directory you created in the previous step (C:\Servers\DayZ1).
  3. After you have completed all of the previous install instructions you can now move on to changing the config. Navigate in your DayZ server directory, then to cfgdayz. Inside you'll find a server.cfg which will allow you to change the default settings of the server to your liking, such as the server name, password and much more. For any questions regarding the server.cfg file, please follow this guide here.
  4. Download BE Server for Windows - ARMA 2: OPERATION ARROWHEAD (INCLUDING DAYZ MOD) and place it inside the cfgdayz\BattlEye folder.

Install - MySQL Server (Windows)

  1. Download MySQL Community Server Installer (offline installer is preferred)
  2. Accept the license terms and press Next.
  3. Select the type of setup you would like. (Server only is preferred)
  4. After the installer completes it is time to configure the new MySQL instance with the installer
    1. Config Type => Server Machine or Dedicated Machine
    2. TCP/IP => Checked
    3. Port Number => 3306
    4. Open Firewall port for network access => Checked
    5. Click Next
    6. MySQL Root Password => Set it to a STRONG_PASSWORD
    7. MySQL User Accounts => Click Add User
      1. Username => dayzhivemind
      2. Host => REMOTE_GAME_SERVER_IP
      3. Role => DB Admin (temporary)
      4. Password => STRONG_PASSWORD
    8. Press Next and hit Execute, wait for your service to be configured and hit Finish
  5. Download and run the HeidiSQL Installer.
  6. Run HeidiSQL and connect to your MySQL server under root privileges. HeidiSQL Session Manager Dialogue
  7. Create a database named hivemind and use your servers default charset. HeidiSQL Database Creation Dialogue
  8. Download the latest SQL file (https://raw.githubusercontent.com/Pwnoz0r/DayZ-Private-Server/master/SQL/CURRENT_DAYZ_VERSION.sql), press Ctrl + O in HeidiSQL and load the SQL file. Make sure your hivemind database is selected and press F9 or the blue triangle button up in the toolbar that says Execute SQL...
  9. After the SQL file executes, you may receive warnings - this is okay to ignore.
  10. Once the SQL file is finished, click on the User manager and edit your dayzhivemind user to only have full permissions to your hivemind database and nothing else. It is also a good practice to only allow this user to connect from your REMOTE_GAME_SERVER_IP. HeidiSQL User Manager Dialogue
  11. If you followed all of the previous steps properly, you should now be able to connect to your MySQL service from your game server.

Install - MySQL Server (Linux)

  • The flavor of Linux used in this tutorial was Ubuntu 15.10 x64
  1. Connect to your machine via SSH and run the following commands:
    • If you would like to confirm everything prior to installing the commands, remove the -y switch from each command.
    1. sudo apt-get update -y && sudo apt-get upgrade -y
    2. sudo apt-get install mysql-server -y
  2. Set your root password in the following prompt: MySQL Root Password GUI
  3. After your root password has been successfully set, run the following command: sudo mysql_secure_installation and follow the steps in securing your new MySQL service properly.
    1. Create database
      1. mysql -u root -p
      2. CREATE DATABASE hivemind;
    2. Create a remote user for non-SSH access:
      • Root access is temporarily required to execute the SQL file in a few steps.
      1. CREATE USER 'dayzhivemind'@'REMOTE_GAME_SERVER_IP' IDENTIFIED BY 'STRONG_PASSWORD';
      2. GRANT ALL PRIVILEGES ON *.* TO 'dayzhivemind'@'REMOTE_GAME_SERVER_IP' WITH GRANT OPTION;
      3. FLUSH PRIVILEGES;
  4. If you have an issue connecting remotely to your new user, make sure to add your MySQL port to your iptables and bind your remote address to the mysqld.cnf file.
    1. iptables -A INPUT -i eth0 -p tcp -m tcp --dport 3306 -j ACCEPT
    2. nano /etc/mysql/mysql.conf.d/mysqld.cnf
    3. Find and change bind-address = 127.0.0.1 to bind-address = REMOTE_MYSQL_SERVER_IP
    4. service mysql restart
  5. Execute SERVER_INSTANCE\SQL\CURRENT_DAYZ_VERSION.sql on your new hivemind database. Make sure to change CURRENT_DAYZ_VERSION to the latest version that is currently supported.
    1. wget https://raw.githubusercontent.com/Pwnoz0r/DayZ-Private-Server/master/SQL/CURRENT_DAYZ_VERSION.sql
    2. mysql -u root -p hivemind < ~/CURRENT_DAYZ_VERSION.sql;
  6. If that successfully executes, we want to revoke the root access we granted this user and grant it only full permissions to the hivemind database.
    1. REVOKE ALL PRIVILEGES ON *.* FROM 'dayzhivemind'@'REMOTE_GAME_SERVER_IP';
    2. GRANT ALL PRIVILEGES ON hivemind.* TO 'dayzhivemind'@'REMOTE_GAME_SERVER_IP' WITH GRANT OPTION; (grant the user full permissions only to the one database)
    3. FLUSH PRIVILEGES;
  7. At this point your MySQL Server on Linux should be ready for production. Make sure to remove all unnecessary users that you will not be using. It is also a good idea to only allow the remote machine you will be using for your DayZ Mod game server to connect to the database.

Configure - HiveExt.ini

MySQL Settings

With the new MySQL server you have just set up, it's time to configure your game server to be able to connect to it. Here is a working example of what we just set up:

[Database]
;Hostname or IP of the server to connect to
;You can use the value "." (without quotes) to indicate named-pipe localhost connection
;If you leave this line commented or blank, HiveExt will connect to the OFFICIAL Hive, which requires registration
;See support.dayzmod.com for more information on what OFFICIAL Hive means, what are the rules, etc.
;If using OFFICIAL hive, the rest of the settings in this section have no effect
Host = MYSQL_SERVER_IP

;The default is MySql, which is better supported than Postgre (completely untested)
Type = MySql

;Port to connect to. The default is the default listening port of a server of the selected Type
;Instead of specifying Port, you can specify Socket and set Value to the socket name
Port = 3306

;Database name to connect to (you must supply this if private).
Database = hivemind

;Username to connect with
Username = dayzhivemind
;Password to authenticate with (default is blank)
Password = STRONG_PASSWORD

Time Config

Configuring time can be great if you want to play DayZ without the hassle of night time, you can make the mission constantly day time. An example of making the time constant day would be to change the type setting in the Time section, for example:

[Time]
;Possible values: Local, Custom, Static
;You cannot use Static on OFFICIAL Hive, it will just revert to Local
Type = Static
;If using Custom type, offset from UTC in hours (can be negative as well)
;Offset = 0
;If using Static type (Hour value always the same on every server start), the value (0-24) to set the Hour to
Hour = 8

Start Server (Batch - Windows)

  1. Download the following batch file and extract it into your STEAM_DIR you set up earlier.
  2. Run the batch file and your server should start right up and become joinable.

Community

Join the community! Remember to visit OpenDayZ where you can suggest new ideas and help out other community members.

Author

DayZ-Private-Server Created by @Pwnoz0r. Original GitHub README by RazorFlint - updated by @Pwnoz0r - 03/29/2016

dayz-private-server's People

Contributors

jonrainier avatar rajkosto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dayz-private-server's Issues

bad version

ok i installed the dayz private server and all i get is bad version server rejected connection

dead bodies disappear!

I got a problem with my server when someone die you can't go and check the items because the body disappears any idea of the problem?

pMain

Current code:

DECLARE iSpawnNumVeh SMALLINT(3) DEFAULT 11;        

CALL pCleanup();
CALL pFixMaxNum;

SELECT SUM(MaxNum) FROM object_classes INTO @iMaxNumTotal;
IF (iSpawnNumVeh > @iMaxNumTotal) THEN
    SET iSpawnNumVeh = @iMaxNumTotal;
END IF;

WHILE (fGetVehCount() < iSpawnNumVeh) DO
    CALL pSpawn();
END WHILE;

That's some pretty funky code man. Essentially, the code will never allow for users to have MORE then 11 vehicles, and only have less then that. Should instead be:


DECLARE iSpawnNumVeh SMALLINT(3) DEFAULT 0;     

CALL pCleanup();
CALL pFixMaxNum;

SELECT SUM(MaxNum) FROM object_classes INTO @iMaxNumTotal;
IF (iSpawnNumVeh < @iMaxNumTotal) THEN
    SET iSpawnNumVeh = @iMaxNumTotal;
END IF;

WHILE (fGetVehCount() < iSpawnNumVeh) DO
    CALL pSpawn();
END WHILE;

This way, user's have the ability to set NO vehicles on the map if they want, but otherwise the code will pick up the amount of vehicles correctly.

ghille suit broken/vehicle question

People get kicked when putting on ghillie suits and arent wearing it when they log back in.
As well Im using the server to allow my friends to learn Day Z enough to go into the more public servers and im wondering how I would add more vehicle spawns and higher amounts of spawns. So far nobody has seen any vehicles and I cant figure out how to add more spawns. Any help would be great.

Mysql

Are your Really that a few objects are included ?!

like MH6J_EP1
or AN2_TK_EP1 (AN2_DZ is the real name)
or HMMWV_Ambulance_CZ_DES_EP1
or policecar ?
can you pls check this

Bugs

I don't know if this happens to everyone but server randomly crashes. Installed on 2 different computers with different specs, same issue. "OA has stopped responding". I click OK and closes server.

OS: Win7 64 bit

no vehicles spawning, and maxdamage error

i'm sure you've been told about this a million times, but i get the same error as this guy. and no vehicles spawn.

"Hey Guys,

i always get the same Error Message

1054 - Unknown column 'MaxDamage' in 'field list'

So that must mean anything with the Vehicles, cause nothing spawns, the object_data Table stays clear...

Could you please help me to fix this, i cant find a field List in the Database...

Thank you very much
Best Regards
Andy"

one of the posters seems to have an answer you might want to look into.

"You need to change some lines in the Stored Procedure called pSpawn, and/or add some columns to the object_classes table. Basic instructions for what needs to be changed are in one of my previous posts.
If you need info on altering stored procedures and changing table (columns) I would advise you to google some, as it's largely depending on the software you use to manage your database.

You could also wait until pwnoz0r updates the code, as the error you are getting is caused by a little error in (on of the) latest release(s) of the server code, and hopefully he will update/fix that soon."

Thanks for your time, and for the great server pack. Hope to see the update soon...

bad version?

Hey man i did everything you said but when i tried to get on my server it said bad version connection refused whats up with that?

Vehicles in SQL database missing fields

object_classes table appears to be missing columns, and the inventory has been entered into the hitpoints column. This of course is causing the pmain function to throw an error and not spawn vehicles at all.

debc4c7

Backpack Bug on latest release

Hi P,

I'm having an issue with the latest github release, backpacks, once you change them, are not saving items placed in them. They just loose any item once shut.

The clients are running the latest beta, should I update the server to the latest beta to test or get the clients to run the server beta?

Mac (ibastavd)

Skoda

I made the change I noted in the pMain issue, but noticed the script get's "stuck" at a certain point. I determined this is from when the server attempts to spawn the "Skoda%" classname in object_classes. The script stopped failing as soon as I made "Skoda%" into just "Skoda".

Sure, no green/blue skoda's, but whatev's

Vehicle Limit/Custom?

Where can i find the max/min files to change how many vehicles are spawned from the database?

Also, i was wondering if it would be possible to unblacklist vehicles that are banned from spawning in the dayz server, such as the Humvee and others. The banned list is withing the dayz.anim.pbo > config.bin

If not, is there a way that i may spawnscript those vehicles into my server myself?
(After turning battleye off)

ping

how to remove ping limit?

Random Crashing

Hi I've been having crashes on the server when attempting to join after a few seconds. I make it into the game then it crashes.

New database issue

Hey m8 great work on the server packages first of all ive use ur files for all my servers

the new 1.7.5 update when i import my old Object_classes / Object_Data ect server wipes out the vehicles and tents seems a few people have the same issue any ideas? or does 1.7.5 require us to bite the bullit and restart fresh

[email protected]

Cheers

Brian

DAYZSUPERHIVE

Bad Version Error

I just setup a server using your files and im pretty sure I did all that right but when I try to connect I get bad version error. I checked the server version and it says 1.62.97771 so i reinstalled my arma 2 patch to the 97771/71 on day z commander as they just came out with a new one and I have the latest 1.7.2.6 Day Z patch since your files say you updated them already. Very new to this server stuff but I dont think I did anything wrong yet which means I must be missing something.

Any help would be awesome thanks.

Vehicles Not Spawning

Hello Pwnoz0r,

I am running a DayZ server with my friends and we can't find any vehicles. I used Navicat to browse the object_data table and I visited every location one by one, however I seem to be unable to have the vehicles spawned. Would you mind helping me out?

Thanks a lot!
Funstein

Help with server

Hi Pwnoz0r, I am Diego.. from Chile.

I know about the problem with the vehicles in Fallujah, phantera.. etc.

I need set the vehicles asap in my server.. U can help me. I can pay u for this work my friend.

addme to skype. Diego.orellana5

I'm having a very serious problem with the server files.

Whenever I leave the server up for longer than two hours, it will crash. It's very obnoxious, because it makes it impossible to drive or fly because the server may go down at any moment. I found a thread where a few people had the same issue as me, but I got no answers, some people there were suggesting that it was an issue with the database.dll, but I tried re-downloading yours and some from a few other server file packs and nothing happened, except different types of errors or a continuation of crashing.

  • Shimshamshow

Vehicle repairing bug

Hi Pwnoz0r. i have noticed that in your last server file pack vehicle repairing is bugged. is this dayz but or server. once you have fixed like a wheel you cant repair it, even if its damaged.

thanks Dirty Harry FI

Port forwarding

Hey I fixed my other problem relating to the bad version error. But now that i've got it running over here i cant get my server over the internet i port fowarded and everything but still no avail

How do i update to 100296?

not sure how to update the server to build to 100296

i changed required build to 100296 in server.cfg and downloaded the latest BE client and server files and put them in the battleye directory that the server runs from, matter of fact i put it in every battleye folder i coudl find but it still says the build that came with the download.

also i would like to setup multiple server would be willing to pay for the help

Thanks in advance,
Mike

vehicles

Hi
My problem is there are no vehicles in server but i dont know why.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.