Hosting an EQ2 Server

Support forum for questions about compiling and running EQ2Emulator on a Microsoft Windows OS.

Moderator: Team Members

Post Reply
Ultanamesis
Posts: 9
Joined: Mon Jul 20, 2009 12:32 pm
EQ2Emu Server: Nemesis

Hosting an EQ2 Server

Post by Ultanamesis » Tue Jul 21, 2009 9:55 am

Hello,

I need help hosting a Windows 32 Sever for EQ2. So far regarding the steps I have been taking to host this website I have been doing everything accordingly. Ill go through step by step what I have been doing.


1.)
How to compile a windows server
* Download zlib code and extract it to C:\zlib.
o zlib download
* Download and install MySql
o MySql 5.0.45
* Download latest source release
o EQ2Emu0.4.0


* Open World.sln and run through the conversion wizard.

* In Visual Studio 2005 or 2008(will probably work the same with 2003), click Tools-> Options-> Projects and Solutions then choose VC++ Directories.

* Under the Show Directories For: click on the drop down box and choose Include Files

* Click the new line button (Ctrl+Insert) and find C:\zlib\include

* Repeat the previous step and add C:\Program Files\MySql\MySql Server 5.0\Include

* Now click on the Show Directories For: drop down box again and choose reference files and add C:\Program Files\MySql\MySql Server 5.0\lib\opt.

* Then click on the Show Directories For: drop down box again and choose library files and add C:\Program Files\MySql\MySql Server 5.0\lib\opt.

* Rename zlib1.dll (found in C:\zlib) to zlib.dll and copy it into your EQ2Emu folder

This part is easy enough, I went through and made all the changes the only question I have is that I downloaded the newest EQ2EMU from the link at the top and instead of 4.0 its 6.5 , would I place it in the World folder inside the EQ2EMU folder or just directly into the Eq2EMU folder?

2.)
WIN 32 Setup

1. Go to the Player Registration Page found on the Portal main menu under For Players. EASY

2. Complete the Login Account Registration and verify that your account was created successfully. Easy enough

3. Go to the Server Account Registration Page and complete this form to register your game server with the public Login Server (You will need to provide the Login Account information from step 2 as well).

3.1 Login Account Name - This is your Login Account Name that you created in step 2.
3.2 Login Account Password - This is your Login Account Password that you created in step 2.
3.3 World Account Name - Account name that will be used by the server to login.
3.4 World Account Password - Password that will be used by the server to login.
3.5 Verify Password - Verify the password in 3.4 is correct - type it again
3.6 World Server Name - Name used to identify your server.
3.7 World Description - Brief description describing your world.

And easy
4. Download the latest Stable Win32 binary from one of the links on our SVN Links page. I got Tortuise which was recommended

5. Once you have it downloaded, use a zip utility to extract all the files into a work directory of your choice. Which files would I extract? Because if Im extracting Tortuise i dont need to, I installed it directly

6. Install MySQL 5.0.27 if possible, but any MySQL distribution after 5.0 should work fine. Visit mysql.com locations or for helping in installation/configuration. If you are experienced with mysql you may run the commands directly instead of following Step 7's GUI setup.

Otherwise:
7. Download and install HeidiSQL, SQLYog or any MySQL (official) GUI Tools.

Using HeidiSQL as an example tool (interpret this for your own GUI if you do not use HeidiSQL):

7.1 Once it is installed, login to your MySQL database using the root login that you created when you installed MySQL in step 6.

7.2 Create a database by clicking Tools, Create Database. Use eq2 as the database name.

7.3 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.

7.3 Click on the "All Privileges" checkbox and in the "Allow access to:" box, click on the eq2 database.

7.4 Click create.

I created a Database inside HeidiSQL, that was pretty easy

8. Open world_db.ini in the work directory that you created in step 5.

8.1 Edit the information in this file to match the user that you created in step 7. Host in the database server address. It will be localhost if it is being run from the same machine you are using.

I opened it using Tortuise and i set it to my external address

9. Open LoginServer.ini in the work directory that you created in step 5.

9.1 Replace WORLD_NAME_HERE with the World Server Name you created in step 3.1.
9.2 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
9.3 Update account and password with the information that you created in step 3.2 and 3.3 respectively.
9.4 Make sure the [UpdateServer] section of the ini file looks like this:

[UpdateServer]
updateserveraddress=updates.eq2emulator.net
updateserverport=9103

Note: As of the 0.6.5 release, the packaged LoginServer.ini is incorrect and requires this manual adjustment. This will be fixed in the 0.7.0 release.

I opened it using Tortuise and made all the changes they told me to

10. Start World.exe. If everything starts correctly you will get a ton of information as it populates your database. After it stops downloading, close it and reopen it a few more times. Once it stops downloading information it is ready to go.

You must restart it each time it downloads information to ensure that you are using the correct data!!!!

This part doesnt make sense, Where is the World.exe file located? the only one I found was in EQ2EMU and it didnt run like an EXE file, it ran inside Visual studio and when I build it it gives me 6 errors. What am I supposed to do?

11. Edit the eq2_default.ini file in your EverQuest2 client directory and set the cl_ls_address to:

cl_ls_address eq2emulator.net


12. If everything was setup correctly, you should be able to run the EQ2 client and connect to your world. NOTE: Be sure to run EverQuest2.exe!!! If you run EQ2.exe, it will patch all your files including eq2_default.ini.

Everything else is easy to do

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Hosting an EQ2 Server

Post by John Adams » Tue Jul 21, 2009 1:38 pm

Why don't you just download the exe (binary) package and skip compiling completely?

or

Download the ServerPack we provided which is a turn-key server complete with everything (except data)?

Ultanamesis
Posts: 9
Joined: Mon Jul 20, 2009 12:32 pm
EQ2Emu Server: Nemesis

Re: Hosting an EQ2 Server

Post by Ultanamesis » Tue Jul 21, 2009 2:39 pm

I did download it, and I ran the World.exe like I was supposed to. I made a database and i set my external and put it according to what it says. I will redo the steps again, and recreate everything. It's just Tortoise just opens my explorer and allows me to edit stuff accordingly correct? am i supposed to set tortoise up any way special?

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: Hosting an EQ2 Server

Post by Zcoretri » Tue Jul 21, 2009 4:21 pm

Ultanamesis wrote:I did download it, and I ran the World.exe like I was supposed to. I made a database and i set my external and put it according to what it says. I will redo the steps again, and recreate everything. It's just Tortoise just opens my explorer and allows me to edit stuff accordingly correct? am i supposed to set tortoise up any way special?
Tortoise is a SVN tool, and only needed if you plan on making changes to the sever code, for either your benefit or the benefit of the project, otherwise just download the binary file.

Ultanamesis
Posts: 9
Joined: Mon Jul 20, 2009 12:32 pm
EQ2Emu Server: Nemesis

Re: Hosting an EQ2 Server

Post by Ultanamesis » Tue Jul 21, 2009 5:06 pm

Alright, So apparently with the version of EQ2 that I own, I need to use the direct (binary) of EQEMU which would be this.

EQ2Emulator-ServerPack_1.1

I cannot update my version because if I update I have to update to patch 5771L, when the new client supports 5740L. This EQ2EMU is said to support 5709L and lower. Now I am lost because I registered as a server and a player. Now since obviously in the set up I can just skip the whole downloading SQL and Tortoise part. Now if I want to run a server, using an older version of EQ2 (obviously I am a beginner at this) what steps would I have to take in order to get this to work, because obviously some of the steps listed in the WIN32 server setup would not effect me. Please let know.

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: Hosting an EQ2 Server

Post by Zcoretri » Tue Jul 21, 2009 5:57 pm

Ultanamesis wrote:Alright, So apparently with the version of EQ2 that I own, I need to use the direct (binary) of EQEMU which would be this.

EQ2Emulator-ServerPack_1.1

I cannot update my version because if I update I have to update to patch 5771L, when the new client supports 5740L. This EQ2EMU is said to support 5709L and lower. Now I am lost because I registered as a server and a player. Now since obviously in the set up I can just skip the whole downloading SQL and Tortoise part. Now if I want to run a server, using an older version of EQ2 (obviously I am a beginner at this) what steps would I have to take in order to get this to work, because obviously some of the steps listed in the WIN32 server setup would not effect me. Please let know.
So what client version do you own?

Ultanamesis
Posts: 9
Joined: Mon Jul 20, 2009 12:32 pm
EQ2Emu Server: Nemesis

Re: Hosting an EQ2 Server

Post by Ultanamesis » Tue Jul 21, 2009 6:22 pm

Zcoretri wrote:
So what client version do you own?

I own ROK with client 5709L. So I was told to download this:

Download: EQ2Emulator-ServerPack_1.1.zip

and use this:

Docs Preview: ServerPackAdminGuide.html

I was also told to update my EQ2 to client patch 5771L and wait until the site supports it because I can't go from 5709L to 5740L. The patch auto updates to 5771L.

Can older versions of EQ2 host servers using this server pack? for instance if ROK isn't working...cant REG EQ2 use this server pack to host a server? I am doing this just to get a hang of hosting an EQ2 server so when the Serverpack is updated to support client patch 5771L I can actually host a legit server later on. If you have any ideas or feedback please let me know asap.

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: Hosting an EQ2 Server

Post by Zcoretri » Tue Jul 21, 2009 6:31 pm

Ultanamesis wrote:
I own ROK with client 5709L. So I was told to download this:

Download: EQ2Emulator-ServerPack_1.1.zip
No one TOLD you to download this it was suggested. All you need is your 5709L client to work with the emulator hosted by yourself or someone elses server.
I was also told to update my EQ2 to client patch 5771L and wait until the site supports it because I can't go from 5709L to 5740L. The patch auto updates to 5771L.

Again, no one TOLD you to update, if you read what it says, it says not to PATCH beyond such and such date or you risk making your client incompatible.
Can older versions of EQ2 host servers using this server pack? for instance if ROK isn't working...cant REG EQ2 use this server pack to host a server? I am doing this just to get a hang of hosting an EQ2 server so when the Serverpack is updated to support client patch 5771L I can actually host a legit server later on. If you have any ideas or feedback please let me know asap.
Yes older version work with the server pack.

Ultanamesis
Posts: 9
Joined: Mon Jul 20, 2009 12:32 pm
EQ2Emu Server: Nemesis

Re: Hosting an EQ2 Server

Post by Ultanamesis » Tue Jul 21, 2009 6:41 pm

Yes you are correct, no one told me to anything, it was a suggestion. Well, currently right now if you can see my server is up. It is the one called Nemesis. When I go into EQ2 and try to connect to my server nothing shows up except a box with no name in it. I don't know what I am doing wrong?

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: Hosting an EQ2 Server

Post by Zcoretri » Tue Jul 21, 2009 6:44 pm

Post a screen shot of what you are seeing

Ultanamesis
Posts: 9
Joined: Mon Jul 20, 2009 12:32 pm
EQ2Emu Server: Nemesis

Re: Hosting an EQ2 Server

Post by Ultanamesis » Tue Jul 21, 2009 6:51 pm

This is what I am seeing. That blank spot in there is my server. It wont let me connect and when i click on it it pushed the highlight down to the next server.
You do not have the required permissions to view the files attached to this post.

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: Hosting an EQ2 Server

Post by Zcoretri » Tue Jul 21, 2009 7:22 pm

Your LoginServer.ini file should look similar to this...

Code: Select all

### --- This file tells world.exe what loginserver to connect to.
### --- Change the account and password fields to the information you used when you created your SERVER account.

### --- NOTE: the word "Server" is added to each server automaticly.

# READ README.TXT

[LoginServer]
loginserver=eq2emulator.net
loginport=9100
worldname=Zebuxoruk  <---------------This is your world name that will show up on the server selection screen
worldaddress=127.0.0.1
#internalworldaddress=INTERNAL_IP_HERE (If used, otherwise blank)
worldport=9000
locked=false
account=xxxxxxx
password=xxxxxxxx
#autotableupdates retrieves the latest table updates and applies them to your database
#autotableupdates valid options=always, ask, and never
autotableupdates=always
#autotableverbose displays detailed information about the updates; options=true or false
autotableverbose=false
#autotabledata retrieves the latest data for tables like the opcodes table; options=true or false
autotabledata=true

[WorldServer]
Defaultstatus=
Unavailzone=

[UpdateServer]
updateserveraddress=updates.eq2emulator.net
updateserverport=9103

[LoginConfig]
ServerMode=StandAlone
ServerPort=9100

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests