Difference between revisions of "Admins:Windows Server"
(Minor fixes) |
(Added DB Patcher information) |
||
| Line 186: | Line 186: | ||
| + | {{Header|Patching the database|BackgroundColor=3d78b4|FontColor=ffffff}} | ||
| + | |||
| + | We provide a database patching system that creates and updates the database your server needs to operate. | ||
| + | |||
| + | For those that use the patcher for the first time, ie your blank database you created earlier, this will create all the required tables world.exe will need to run. It also adds the data needed that allows players to connect their clients to your server. | ||
| + | |||
| + | After the initial setup, the patcher system will update your database with core changes and add support for clients as it becomes available. | ||
| + | |||
| + | |||
| + | Take note that this system is not a content patching system. It is only to update core data if and when it is needed. | ||
| + | |||
| + | |||
| + | If you have been following this tutorial then you have already verified that the [UpdateServer] information has been filled in along with your server name, login, and password. | ||
| + | |||
| + | If you have not done so, it will need to be completed before moving on. [[UpdateLoginServer.ini | DB Loginserver.ini page]] has details on setting it up to connect to the db patcher. | ||
| + | |||
| + | After the Loginserver.ini verification, launch your server by running EQ2World.exe (EQ2World_x64.exe) to start the patching process. | ||
| + | |||
| + | If everything went well you should now be able to login to your server using the public login. | ||
| + | |||
| + | |||
| + | If you get a MySQL error 2006 then max allow packets is set too low. | ||
| + | |||
| + | 05:59:56 E Database: Error running MySQL queries from file 'eq2-updates.sql' (2006): MySQL server has gone away | ||
| + | |||
| + | 05:59:56 I Patcher: Failed to update database | ||
| + | |||
| + | You need to locate the my.cnf (my.ini) file in your MariaDB install. Default should be C:\Program Files\MariaDB 10\bin. Open the my.ini in your favorite text editor and find ''max_allowed_packet''. Change the default value to 256M or higher. Restart the MySQL server and relaunch Eq2world.exe. | ||
| + | |||
| + | If the ''max_allowed_packet'' line doesn't exist then add it to the bottom of the [mysqld] section. | ||
| + | |||
| + | max_allowed_packet = 256M | ||
<center> | <center> | ||
====== | ====== | ||
Revision as of 15:08, 31 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
Getting the source
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
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. Your world.exe will not work without them. Before moving on, you should make one more folder inside your worldserver folder named Maps. This is for level geometry maps and is in development.
Register Your Server
Database Server
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.
Patching the database
For those that use the patcher for the first time, ie your blank database you created earlier, this will create all the required tables world.exe will need to run. It also adds the data needed that allows players to connect their clients to your server. After the initial setup, the patcher system will update your database with core changes and add support for clients as it becomes available.
If you have not done so, it will need to be completed before moving on. DB Loginserver.ini page has details on setting it up to connect to the db patcher. After the Loginserver.ini verification, launch your server by running EQ2World.exe (EQ2World_x64.exe) to start the patching process. If everything went well you should now be able to login to your server using the public login.
05:59:56 E Database: Error running MySQL queries from file 'eq2-updates.sql' (2006): MySQL server has gone away 05:59:56 I Patcher: Failed to update database You need to locate the my.cnf (my.ini) file in your MariaDB install. Default should be C:\Program Files\MariaDB 10\bin. Open the my.ini in your favorite text editor and find max_allowed_packet. Change the default value to 256M or higher. Restart the MySQL server and relaunch Eq2world.exe. If the max_allowed_packet line doesn't exist then add it to the bottom of the [mysqld] section. max_allowed_packet = 256M ==Information below this line is still being added. ==
cl_ls_address eq2emulator.net
Getting Content
In your EQ2 directory you should have created a Content folder. If you didn't, do so now. Right click on the newly created Content folder and select SVN Checkout. It is the same process you used to get the source code, only this time we are going to get content instead. In the URL of repository enter this URL. https://svn.eq2emulator.net/svn/eq2content
==Original guide taken from EQ2Emu Forums posted by Razmalone
Origional Post Here
== |