No categories assigned

Admins:Windows Server

Revision as of 17:26, 22 January 2018 by Cynnar (talk | contribs)

Admins - How to compile a windows server

Return to: Admins | Tutorials | Portal | Forum | Project Manager | Bug Tracker


This is a guide on getting the source code and compiling it using a windows environment.


Currently being updated January 2018


Required


  • Database Server
    • MariaDB is preferred and what we use


  • Database Management Tool
    • HeidiSQL is free and what some of us use


  • Subversion Client


*** SVN Access ***

  • username anonymous
  • no password



Setting up the folder structure

Create a folder in the root of your drive c: named EQ2. Inside the EQ2 folder create a folder named Source. Go ahead and create another folder named Server as well. Additionally you should create another folder called EQ2client (where the backup copy of your client should go).


Getting the source

In order to download the source a GUI subversion client such as TortoiseSVN is recommended to retrieve the source code. TortoiseSVN will be used in this guide.


Once TortoiseSVN is installed right click on your newly created Source folder and choose SVN Checkout. The following URL is required in the window that pops up. Enter it in the URL of repository.

 https://svn.eq2emulator.net/svn/eq2server

Also make sure the Checkout Directory is the directory you want to download the source to (C:\EQ2\Source). It should look similar to this image.


SVNCheckoutBox.png


If this is your first visit to the SVN, you will be greeted by a Certificate validation failed popup. You will have to validate the certificate before you can proceed. Choose either the Accept the certificate or the Accept the certificate permanently. The latter option will not prompt you again to validate the certificate.

This is safe as long as the certificate is from MMO, MMOE, Phoenix, AZ, US.


CertFailed.png


Once you are past that...

It's time to enter the login credentials.

SVN Access Username: anonymous (no password required)

Sit back and let the source code download.


Compiling the source


This guide is going to be using Visual Studio 2017 Community Edition.

  • Open EQ2WorldVC10.sln in the win folder and run through the conversion wizard.
  • In Visual Studio 2010, 2012, or 2013 right click the project and select properties
  • Under the VC++ Directories: ensure the following are included (should be configured already) (the same x64 equivalents if compiling x64)
    • Include directories
      • $(SolutionDir)..\source\depends\mariadb-10.1.19\include;
      • $(SolutionDir)..\source\depends\zlib\include
    • Library directories
      • $(SolutionDir)..\source\depends\mariadb-10.1.19\lib;
      • $(SolutionDir)..\source\depends\zlib\lib
  • Choose Debug or Release and the architecture you want to build for 32 or 64
  • Compile and enjoy.


Setting up the Server folder

Remember that Server folder you created way back at the beginning of this guide? Now we are going to use it.

Once you have navigated to your Server folder, create a new folder "worldserver" inside the Server folder. If you plan on using the minilogin (local login server) create another folder "loginserver" there as well.


We will need to move our compiled binaries over along with some other files. Let's go ahead and open our worldserver folder. To make things easier, open up a new window and navigate to C:\EQ2\Source\trunk\bin. Depending on the architecture you choose to build for will be the file you need to move to your worldserver folder. If you built for a 32-bit system then you will want to move EQ2World.exe. If you built for a 64-bit system then you will want to move EQ2World_x64.exe. Go ahead and move the file over to your worldserver folder now.

Head over to the structs folder located in C:\EQ2\Source\trunk\structs. We need to copy (not move) these files to our worldserver folder also.

  • CommonStructs.xml
  • ItemStructs.xml
  • SpawnStructs.xml
  • WorldStructs.xml

Time to copy config files to the worldserver folder. Locate the config files in C:\EQ2\Source\trunk\configs. There should be three files located there.

  • log_config.xml
  • LoginServer.ini
  • world_db.ini

Move all three of these to the worldserver folder.


Getting Content

Coming Soon

You can visit the SVN Page for source, content, and tools.


==

Original guide taken from EQ2Emu Forums posted by Razmalone Origional Post Here
Updated here by theFoof 3/10/13
Updated again by Cynnar 1/10/18
Update is in progress

==