Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Tutorials/Howto's

Archive::Tutorials/Howto's Archive area for Tutorials/Howto's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2004, 03:48 PM
paleequinox
Fire Beetle
 
Join Date: Apr 2004
Posts: 18
Default Brief 5.8 Server Setup Instructions

Ok here is a brief run through on setting up a 5.8 Server. I made this for a bud, but figured I would upload this in hopes it helps others. Most of this has been pieced together from some excellent posts already on the boards, and most of the credit needs to go out to all those folks and especially to the hard work all the DEVS do! Thanks for all your hard work!

There is NO SUPPORT for this, it is all use at your own risk! Sorry I just don't have the time to support. I didn't go into editing many of the misc files needed once it was compiled so I leave that up to you to research.

First thing is to get a Windows CVS client to download the latest build. There are various clients out there now, use the one that suits you. Having experimented with a few I selected TortoiseCVS for this.

Download and Install
TortoiseCVS
http://www.tortoisecvs.org/
http://prdownloads.sourceforge.net/t...CVS-1.6.14.exe
1)Follow all defaults on install.

Configure TortiseCVS
1)Right Click the folder you wish to checkout the latest source to.
2)Select CVS Checkout from the popup menu.
3)Fill in the following information...
Protocol: Password server (:pserver)
Server: cvs.sourceforge.net
Port: Leave blank
Repository folder: /cvsroot/eqemulator
User name: anonymous
Module: EQEmuCVS

Note: Verify that the CVSROOT: contains the following :pserver:anonymous@cvs.sourceforge.net:/cvsroot/eqemulator

4)Hit the ok button to checkout the latest source from cvs. If you recieve a password prompt just leave it blank and hit the ok button.
5)After a few minutes the source should be completely downloaded from cvs into the directory.

CVS Update
1)Right Click the folder you performed the CVS check out on.
2)Select CVS Update from the popup menu.
3)CVS files will be scanned and updates brought down to your local folder.

Download and Install Activestate Perl (Optional)
http://www.activestate.com/Products/ActivePerl/
http://downloads.activestate.com/Act...SWin32-x86.msi
http://www-124.ibm.com/developerwork...pplication/exe
1)Follow the defaults to install to c:\perl ***Reboot after this install.***
2)Download and copy nmake.exe to c:\perl\bin
3)Double click nmake.exe to run it.
4)In the dos box type the following.
perl -MCPAN -e shell
***When asked to configure manually, type "no".
5)Next type.
install IO::Scalar
6)Once the install has finished type the following to exit.
exit
7)Type the following to test the install of Scalar.
perl -MIO::Scalar -e "print 'Installed'"
***A good installation will return the word Installed.***

Download SQL Database
http://projecteq.net/index.php
http://www.peqserver.com/
1)Download a database. ***Just remember where you put it as we will need it later to source after installing MySQL.

Download and Install MySQL (Required)
http://dev.mysql.com/downloads/
1)Follow the defaults to install to c:\mysql
2)Browse to c:\mysql\bin
3)Double Click winmysqladmin.exe
4)Select a User Name and Password (Write them down you will need them later).
5)Browse to the location you saved the database .sql file to and copy it into c:\mysql\bin
6)Browse to c:\mysql\bin
7Create a "New" "Text Document" and Name it "MySQL.bat".
Copy and Paste the following into it.
cd\mysql\bin
mysql -b -f -s -u root mysql
9)Save the file.
10)Double click the MySQL.bat file to run it. ***I usually create a shortcut by right clicking and dragging to my desktop and "Select create Shortcut here.***
11)Once the Dos box pops up type in the following.
grant all privileges on *.* to username@localhost identified by 'password' with grant option;
***Change username and password with the username/password you chose when you ran winmysqladmin for the first time.***
12)Next type in the following.
create database eq;
13)Type in the following.
use eq;
source db.sql;
***Change db.sql with the name of the database file that we downlaoded and copied into c:\mysql\bin. Note : It may take multiple sourcing of various databases before you get your database to a point your satisified with.***
14)Type the following to Exit MySQL.
exit

Database Updates
1)Copy your new database into c:\mysql\bin
2)Double click your MySQL.bat file
3)Type the following into the dos box.
use eq;
source db.sql;
***Change db.sql with the name of the database you wish to source in.***
4)Type the following to Exit MySQL.
exit

Download and Install Zlib (Required)
http://www.gzip.org/zlib/
http://www.zlib.net/zlib121-dll.zip
1)Extract Zip file to c:\EQEmu\Zlib.

Setup Visual Studio .net
1)Open the Server.dsw workspace
2)Select "Tools" "Options" from the menu.
3)Select "Projects" "VC++ Directories"
4)Select "Include Files" from the Show directories pull down.
5)add the following to the include files.
c:\mysql\include
c:\EQEmu\Zlib\include
c:\EQEmu\Zlib
c:\Perl\lib\CORE (optional if you want Perl enabled)
6)Select "Library files" from the Show directories pull down.
7)add the following to the Library files.
c:\mysql\lib\opt
c:\Perl\lib\CORE (optional if you want Perl enabled)
Hit "OK" to exit

Visual Studio Perl Setup (optional if you want Perl enabled)
1)Right click "Zone" in the Solution Explorer.
2)Select "Properties" from the menu.
3)Change the configuration pull down to "Release"
4)Select "c/c++" "Preprocessor"
5)Add the following to Preprocessor Definitions.
EMBPERL
EMBPERL_PLUGIN
6)Hit "OK" for changes to take effect.
7)In the Solution Explorer expand "Zone"
Right click "Source Files" and add the following using the Add Existing Item from the Add Menu.
embparser.cpp
embperl.cpp
embxs.cpp
9)Right click "Header Files" and add the following using the Add Existing Item from the Add Menu.
embparser.h
embperl.h
embxs.h

10)Save and Compile.

Directory Structure
C:\EQEmu
C:\EQEmu\zlib
C:\EQEmu\cfg
C:\EQEmu\plugins
C:\EQEMU\quests
Boot5zones.bat
addon.ini
db.ini
EMuShareMem.dll
eqtime.cfg
LoginServer.ini
spells_en.txt
spells_us.txt
World.exe
Zone.exe
Reply With Quote
  #2  
Old 09-12-2004, 05:58 AM
Malignus Wingnut
Hill Giant
 
Join Date: Sep 2004
Posts: 233
Default

Quote:
Right click "Source Files" and add the following using the Add Existing Item from the Add Menu.
embparser.cpp
embperl.cpp
9)Right click "Header Files" and add the following using the Add Existing Item from the Add Menu.
embparser.h
embperl.h
You forgot to add embxs.cpp and embxs.h, otherwise you'll get an unresolved external error when compiling. Otherwise, great guide.

I couldnt figure out how to get the cvs from the new site..heh (i didnt wanna copy + paste every file one by one...hehe)
Reply With Quote
  #3  
Old 09-12-2004, 12:12 PM
paleequinox
Fire Beetle
 
Join Date: Apr 2004
Posts: 18
Default

Oopps! Missed those couple of adds...all fixed in the guide now.

Thanks for the heads up Malignus Wingnut!

As I get some free time I will try to update this with info on the misc file configs needed also...

Happy Happy! Joy Joy!
Reply With Quote
  #4  
Old 09-12-2004, 05:08 PM
Malignus Wingnut
Hill Giant
 
Join Date: Sep 2004
Posts: 233
Default

You also might want to add how to edit loginserver.ini, db.ini, and boot5zones.bat =).
Reply With Quote
  #5  
Old 09-13-2004, 01:33 AM
samandhi's Avatar
samandhi
Demi-God
 
Join Date: Aug 2003
Posts: 1,056
Default

Not sure what was up with this, but just to let everyone know, that if you get this error:
Code:
Linking... 
client.obj : error LNK2001: unresolved external symbol "public: __thiscall PTimerList::~PTimerList(void)" (??1PTimerList@@QAE@XZ) 
client.obj : error LNK2001: unresolved external symbol "public: __thiscall PTimerList::PTimerList(unsigned int)" (??0PTimerList@@QAE@I@Z) 
client.obj : error LNK2001: unresolved external symbol "public: bool __thiscall PTimerList::Store(void)" (?Store@PTimerList@@QAE_NXZ) 
client_process.obj : error LNK2001: unresolved external symbol "public: bool __thiscall PTimerList::Load(void)" (?Load@PTimerList@@QAE_NXZ) 
command.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall PersistentTimer::GetRemainingTime(void)" (?GetRemainingTime@PersistentTimer@@QAEIXZ) 
command.obj : error LNK2001: unresolved external symbol "public: void __thiscall PTimerList::ToVector(class std::vector<struct std::pair<unsigned short,class PersistentTimer *>,class std::allocator<struct std::pair<unsigned short,class PersistentTim 
er *> > > &)" (?ToVector@PTimerList@@QAEXAAV?$vector@U?$pair@GPAVPersistentTimer@@@std@@V?$allocator@U?$pair@GPAVPersistentTimer@@@std@@@2@@std@@@Z) 
../Build/Zone.exe : fatal error LNK1120: 6 unresolved externals 
Error executing link.exe. 

Zone.exe - 7 error(s), 0 warning(s)
You will have to manually add common files ptimer.h and ptimer.cpp as they were NOT added automatically.... This was using the newest CVS as of last night (not sure when the files were updated last on CVS havent checked)...
__________________

Quote:
Analysis paralysis will keep you from failing, but it will also keep you from succeeding.
  • L.L. CoolJ
Reply With Quote
  #6  
Old 09-17-2004, 03:54 AM
phasepuma
Sarnak
 
Join Date: Jun 2004
Posts: 69
Default

Thanks samandhi, that helped.
Reply With Quote
  #7  
Old 10-25-2004, 07:23 AM
resnovich
Fire Beetle
 
Join Date: Oct 2004
Posts: 6
Default

Love the guide... props. i am a newbie to perl and i get an error stating that my plugin.pl file is missing when i run boot5zones.bat. ideas?
Reply With Quote
  #8  
Old 10-25-2004, 08:54 AM
zephyr325
Hill Giant
 
Join Date: Sep 2004
Posts: 117
Default

Check out the 6.0 server setup post here:

http://www.eqemulator.net/forums/viewtopic.php?t=17531

Use the initial setup in that post, but then look at page 6 in there for a listing of other files that will need to get sourced into the database.

You're going to need to grab the perl build of the emulator that is linked in this post:

http://www.eqemulator.net/forums/viewtopic.php?t=17924
__________________
"Like what you like, enjoy what you enjoy, and don't take crap from anybody."
Reply With Quote
  #9  
Old 10-25-2004, 09:18 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Quote:
Originally Posted by resnovich
i get an error stating that my plugin.pl file is missing when i run boot5zones.bat. ideas?
If you mean this warning:

Code:
[Status] Warning - plugin.pl: Perl runtime error: open 'plugin.pl' No such file or directory at (eval 3) line 1.
You can ignore it, or just create an empty plugin.pl in your EQEMu server directory to make the warning go away. It won't affect your server or your ability to run Perl quests.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:12 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3