First you must install MySQL as well as the required dependencies needed from the repositories.
Code: Select all
sudo apt-get install mysql-server libmysqlclient15-dev build-essential subversionCode: Select all
sudo apt-get install liblua5.1-0-devCode: Select all
sudo apt-get install lua5.1Download the source
To compile and run the server you must install download the source code. For this example we are going to run our server in a folder called eq2server and download the code into a folder called eq2emulator.
Code: Select all
mkdir eq2server
cd eq2server
svn co https://eq2emulator.svn.sourceforge.net/svnroot/eq2emulator eq2emulatorError validating server certificate for 'https://eq2emulator.svn.sourceforge.net:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
- Hostname: *.svn.sourceforge.net
- Valid: from Tue, 09 Oct 2007 14:15:07 GMT until Mon, 08 Dec 2008 15:15:07 GMT
- Issuer: Equifax Secure Certificate Authority, Equifax, US
- Fingerprint: fb:75:6c:40:58:ae:21:8c:63:dd:1b:7b:6a:7d:bb:8c:74:36:e7:8a
(R)eject, accept (t)emporarily or accept (p)ermanently?
Type P and enter, it will then download the SVN
Compile it
Now we have downloaded the source we need to compile it. If you are compiling the source on a 64 bit OS then you will need to change the makefile located in the Source/World folder.
Code: Select all
cd eq2emulator/Source/World/
makeSetting it up
Now you have built the program you need to put all the pieces together. Copy the following files into the eq2server folder.
/eq2emulator/Source/World/eq2world
/eq2emulator/Config Files/EQ2_Structs.xml
/eq2emulator/Config Files/LoginServer.ini
/eq2emulator/Config Files/world_db.ini
/eq2emulator/Config Files/World Structs/WorldStructs.xml
/eq2emulator/Config Files/World Structs/charactersheet_struct.txt
/eq2emulator/Config Files/Common Structs/CommonStructs.xml
/eq2emulator/Config Files/SpawnScripts <--entire Directory
/eq2emulator/Config Files/Spells <-- Entire Directory
Once you have done that you will now have to edit a few files. First open LoginServer.ini
worldname=WORLD_NAME_HERE
worldaddress=EXTERNAL_IP_HERE
#internalworldaddress=INTERNAL_IP_HERE (If used, otherwise blank)
* worldname should be the name you registered your server as on eq2emulator.net.
* worldaddress should be your IP address as seen by other people. If you do not know your IP address you can get it from whatismyip.com
* internalworldaddress is your internal IP address in cases where you are behind a router you may have a different IP address as seen from the outside.
After that you must then edit world_db.ini which holds your database information.
host=ip address
user=username
password=password
database=eq2
* host refers to your MySQL IP address. If your MySQL database is on the same computer that is running that server then put "localhost" (without quotes)
* user is your MySQL username that you want the login server to connect to your database with
* password is your MySQL password
* database is the name of the database on your MySQL server. You must create this database before you start the server.
Starting Your World
After you have completed the entire compilation process without error the following will start your world
Code: Select all
cd eq2server
sudo ./eq2world((To stop your world.. sometimes ctrl C works.. others hit F2 to open a new terminal and type
Code: Select all
pkill eq2worldIf you need help with an Ubuntu install.. and I missed something in this Walkthrough.. just yell at me.. and I will remember what I did.. i just drink to much and end up forgetting half the shit I do untill someone reminds me.