Jump to content

Question

THIS GUIDE IS OUTDATED, PLEASE USE OUR WIKI GUIDES

This guide is for Release 21 (0.21.0) version of Mangos.

This guide is aimed to explain how to get the source code from our git repositories and compile and run with a default config.

This guide assumes you have set-up a database and user accounts for it.

Before you can run your server you will need to of course run an extractor and put the DBC, vmaps and mmaps(if you have mmaps) in the folder with all the server core files.

Required Files

  • Git for windows - Git - Downloads
    Install making sure the following options are selected Windows explorer intergration - Simple context menu (Git bash, Git GUI)
  • Microsoft Visual Studio Community 2015 - Free Dev Tools - Visual Studio Community 2015
    Install with default options selecting C++ when it asks you what programming language you are using
  • Notepad++ - http://notepad-plus-plus.org
    Useful for editing .conf files and any other editable files.
  • Additional required files are downloaded while cloning the repo

Getting the source code

Mangos Zero will be used for this guide.

  • Browse to where you would like to clone the files
  • Right click inside a blank area in the folder and select "Git Bash Here"
  • In the black command box type git clone --recursive https://github.com/mangoszero/server
    This will clone the latest Sever source into a folder called server - Including the --recursive is very important!
    git-clone.jpg

Installing the additional requirements

  • Go into the new Server / win folder
    It should have these files listed
    Server-winfolder.jpg
  • Install: Cmake, mysql and openSSL (which version depends on if you are running x32 or x64 [x32 being more stable]).
    • Default options are fine in most cases.

MaNGOS EasyBuild

  • Run MaNGOS_EasyBuild.exe located in server/win
  • Easy Build main screen
    Mangos_easybuild.jpg
  • Click the "check now" button
    EasyBuild_checked.jpg
    You should see green ticks and if you have everything done correctly you should be able to go to the build options page.
  • Once on the build options page tick the "Include PlayerBot AI", if you are certain you are not going to use this feature then leave unticked.
    EasyBuild_ProjectOptions.jpg
  • Clicking generate project will run cmake but inside of the EasyBuild application, you will see the output.
  • Visual studio should be started when it is finished generating.

Output showing EasyBuild with the option to automatically open visual studio unticked

EasyBuild_output.jpg

If you wish to compile at a later time the built files will be under /server_build/ you just need to double click on MaNGOS.sln

Compiling the source code

  • Visual studio
    Visual_stuio.jpg
  • Once the project has loaded go to the drop down just below the team menu and select Release and Win32
    Build_option.jpg
  • Press F7 or go to the Build menu and select Build Solution
     

The Mangos server is now compiling and time to go get a coffee, this process should take around 5-30 minutes depending on your system. Older single core systems will take longer.

sucessful_build.jpg

That's it! now head into the /server_build/bin / Win32_Release folder and your server files will be there.

Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Nice, thanks again.

 

There is a small bug in MaNGOS_EasyBuild.exe.

MySQL Server 32Bit Path is (as in the Picture) "C:\Program Files (x86)\MySQL\MySQL Server 5.6"

The current Version of MySQL Server 32Bit is Version "5.7". MaNGOS_EasyBuild.exe does not count Version 5.7 as a valid Folder.

If you change the Foldername from "MySQL Server 5.7" to "MySQL Server 5.6" MaNGOS_EasyBuild.exe says its OK. :)

Just wanted to let you know.. :)

 

DrKane

 

Link to post
Share on other sites
  • 0
11 minutes ago, drkane said:

Nice, thanks again.

 

There is a small bug in MaNGOS_EasyBuild.exe.

MySQL Server 32Bit Path is (as in the Picture) "C:\Program Files (x86)\MySQL\MySQL Server 5.6"

The current Version of MySQL Server 32Bit is Version "5.7". MaNGOS_EasyBuild.exe does not count Version 5.7 as a valid Folder.

If you change the Foldername from "MySQL Server 5.7" to "MySQL Server 5.6" MaNGOS_EasyBuild.exe says its OK. :)

Just wanted to let you know.. :)

 

DrKane

 

I think thats because the path is hard coded, @antz may know more as he built easybuild.

  • Like 1
Link to post
Share on other sites
  • 0

@drkane Thanks for posting !


Mangos does not currently support MySQL 5.7 due to some needed libraries being omitted by Oracle.

I have not checked recently to see whether they have rectified this, but this is the reason Easybuild ignores 5.7.

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use