Difference between revisions of "Admins:Windows Server"
(Database Server updates) |
(Added configure the server) |
||
| Line 144: | Line 144: | ||
Alternatively you can use [https://dev.mysql.com/downloads/mysql/ MySQL]. Any MySQL distribution at, or above, 5.0.27 should work fine. Visit [https://downloads.mysql.com/archives/community/ MySQL archive] to find 5.0.27 and above. | Alternatively you can use [https://dev.mysql.com/downloads/mysql/ MySQL]. Any MySQL distribution at, or above, 5.0.27 should work fine. Visit [https://downloads.mysql.com/archives/community/ MySQL archive] to find 5.0.27 and above. | ||
| − | Download and install [http://www.heidisql.com/? HeidiSQL], [http://www.webyog.com/en/ SQLYog] or any [http://dev.mysql.com/downloads/gui-tools/5.0.html MySQL (official) GUI Tools]. | + | Download and install [http://www.heidisql.com/? HeidiSQL], [http://www.webyog.com/en/ SQLYog] or any [http://dev.mysql.com/downloads/gui-tools/5.0.html MySQL (official) GUI Tools]. This guide uses HeidiSQL. Interpret this for your own GUI if you do not use HeidiSQL. |
| − | *Once it is installed, connect to MySQL with username: root no password. | + | *Once it is installed, connect to MySQL with username: root and the password for root. I think default is no password. |
| + | *Create a database by clicking Tools, Create Database. | ||
| + | *Enter a name for the database. I used eq2world as the name of the database that will house my world content. | ||
| + | |||
| + | |||
| + | It's wise to create a user to access the database besides root. Also you need to set a password for root if you have not already done so. | ||
| + | *Click on Tools, User-Manager and under credentials enter a username and password that you would like to use for your server. If you will be accessing the database from multiple computers then leave it %. Otherwise set it to either your computer's IP address or localhost. | ||
| + | *Click on the "All Privileges" checkbox and in the "Allow access to:" box, click on the eq2world database. Then click create. | ||
| + | *While in the User-Manager go ahead and change the password for root. | ||
| + | |||
| + | |||
| + | {{Header|Configuring the server|BackgroundColor=3d78b4|FontColor=ffffff}} | ||
| + | |||
| + | Time to configure your server to use your database and loginserver. | ||
| + | |||
| + | Set up you world_db.ini to connect you server with a database. | ||
| + | *Open world_db.ini | ||
| + | *Edit the information in this file to match your host (localhost if it is being run from the same machine you are using), your MySQL username and password you created in HeidiSQL, and the name of the database (eq2world). | ||
| + | |||
| + | Save and close out of world_db.ini | ||
| + | |||
| + | |||
| + | Configure the LoginServer.ini to point your server at the public login server provided by Eq2emulator.net. | ||
| + | *Open LoginServer.ini | ||
| + | *Replace WORLD_NAME_HERE with the World Server Name you created in My Servers tab of the Account Management page. | ||
| + | *Replace EXTERNAL_IP_HERE with either localhost if you want to only allow yourself to login, or replace it with your external ip address. You can get this by browsing to [http://www.whatismyip.com/ http://www.whatismyip.com] | ||
| + | *Add the username and password you used to register your server with in the My Servers tab of the Account Management page. | ||
| + | *Set, or check, the update server part of the ini. | ||
| + | **[UpdateServer] | ||
| + | **updateserveraddress=updates.eq2emulator.net | ||
| + | **updateserverport=9104 | ||
| + | Save and close out of LoginServer.ini | ||
| + | |||
| + | |||
| + | Visit the minilogin page if you plan to use a local login server. | ||
| + | |||
| + | |||
| + | |||
| + | If you would like to know more about the config files, visit the [[Admins:LogSystem | log_config.ini page]] or the [[LoginServer.ini | LoginServer.ini page]]. | ||
| + | |||
| + | |||
| Line 154: | Line 194: | ||
</center> | </center> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
* 10. Start eq2world.exe. If everything starts correctly, your almost ready to play. | * 10. Start eq2world.exe. If everything starts correctly, your almost ready to play. | ||
| Line 180: | Line 207: | ||
Coming Soon | Coming Soon | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 14:34, 25 January 2018
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.
Required
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.
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.
This is safe as long as the certificate is from MMO, MMOE, Phoenix, AZ, US.
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
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.
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.
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.
Move all three of these to the worldserver folder. Once this is complete, let's get some content before we move to configuring our server.
Register Your Server
You need to register your server for the public login server to recognize it, providing you want to use the public login server.
Database Server
Install latest MariaDB. If you are experienced with mysql you may run the commands directly instead of following the GUI setup (HeidiSQL). Alternatively you can use MySQL. Any MySQL distribution at, or above, 5.0.27 should work fine. Visit MySQL archive to find 5.0.27 and above. Download and install HeidiSQL, SQLYog or any MySQL (official) GUI Tools. This guide uses HeidiSQL. Interpret this for your own GUI if you do not use HeidiSQL.
Configuring the server
Set up you world_db.ini to connect you server with a database.
Save and close out of world_db.ini
Save and close out of LoginServer.ini
If you would like to know more about the config files, visit the log_config.ini page or the LoginServer.ini page.
==Information below this line is still being added. ==
cl_ls_address eq2emulator.net
Getting Content
Coming Soon
==Original guide taken from EQ2Emu Forums posted by Razmalone
Origional Post Here
== |