- Joined
- May 26, 2007
- Messages
- 5,545
- Reaction score
- 1,315
[SIZE=-2]Duplication of MiKE / SiK original guide, without some of the corruption which has happened to it over the years.[/SIZE]
All your credits are belonging for him.
[SIZE=+2]Server Setup Guide[/SIZE]
All your credits are belonging for him.
[SIZE=+2]Server Setup Guide[/SIZE]
There are a few server setup guides around but some are badly worded or outdated so I got bored and decided to make this. This will be revised and updated as time moves on to accommodate for new features and files. I would like to thank Redhunt for a lot of the pictures used in this guide.
Right off the bat I would suggest not running a PT server for the public on anything under 2GB of ram, a 100mbit line and a 3Ghz+ Processor and Windows Server 2003 (Dedicated Hosting is the best idea) along with a good understanding of how PT works.
[size=+1]Downloading Needed Files[/size]
1.) Download and install WinRar.
(Used for unzipping most of the server files)
2.) Download MsSQL 2005 Express Edition
(SQL is used to store a lot of the player data, mainly clan information and login information)
3.) Download MsSQL Server Managment Studio
(Used to manipulate SQL much easier.)
4.) If your running the server off of Windows XP ensure you have .NET Framework 2.0 installed.
5.) Download any of the the files under the ---[Server Files]--- section in the RFT Thread, I would suggest the McMadness Repack or the 1855 Server & Client. I might pack a couple sets of pre-configured server files with different rates later on.
(The in fact server software used for players to login and play, etc etc)
6.) Download the View attachment PT_SQL.zip.
7.) Download the clan files from the RFT Thread under the ---[Clan Files]--- section, I would suggest the Sandurr 2.0 Files *Help topic here* or *HappHardcore's General Clan Troubleshooting Guide*
(Only if you plan on having working clans)
[size=+1]Installing of SQL & Manager[/size]
6.) Start the install for the MsSQL Server 2005 Express Edition, continue pressing the next button until you reach the Features screen.
7.) Click Client Components like in this picture and select "Entire Feature will be installed on local hard drive"
[Image now missing]
8.) Continue pressing next until the screen prompting you to decide between "SQL Server Authentication" or "Windows Authentication".9.) Choose SQL Server Authentication and choose a good password and right it down you will need to know this password later.
10.) Continue pressing next until the installer is finished.
11. Find the MsSQL Server Managment Studio installer you downloaded earlier. Just press next until the installer is done, no need to change any settings.
[size=+1]Setting Up SQL Database[/size]
12.) Go to your start menu and run SQL Server Management.
( Start > All Programs >Microsoft SQL Server 2005 > SQL Server Management Studio Express)
13.) You should arrive at this screen, don't touch the login name. Enter the password from step 9 created while installing SQL. Press connect and you'll arrive at this screen.
14.) Unzip (right click, extract to folder) the PT SQL Files to any folder.
15.) Click the expand tab "+" next to Databases, right click Database and select "Create New Database" the names of all 11 Databases are the same names as the PT SQL Files names. List:
Account_DB
AccountDB
BillingDB
BillingLogDB
ClanDb
GamelogDb
ItemLogDb
PCRoom
SoD2Db
SoDDb
It should look like this when done.
17.) Copy and paste the entire text files contents into the Query window and press "! Execute"
18.) Repeat steps 16 & 17 for all 11 Database's. When it asks you to save for all of the query's you can either pick yes or no, it makes no difference.
19.) When done check back on your DB's to make sure when expanded they look like t his.
[size=+1]Setting up ODBC or SQL.dll[/size]
This step is a little optional because you have a choice, either use ODBC or setup the SQL.dll properly, for this guide I will list the ODBC method, for the SQL.dll method I might make a guide later on, or look around the forums for it (Searching never hurt anyone)
20.) Click Start > Programs > Accessories > Administrative Tools > (ODBC)Data Source. (Administrative Tools can also be reached via the Control Panel)
21.) Choose the "DSN System" tab and then proceed to click "Add", scroll down to the very bottom and pick "SQL Server" and then finish.
[Image now missing]
22.) After finish is pressed a window should pop up asking for: Name, Description and SQL Server Name.Name: c8master
Description: Whatever you want.
Name: The name of your SQL Server Instance (Should look like XXXXX\SQLEXPRESS)
(If you forget just open your Studio Manager and look at the server name)
23.) Click next twice until you reach this screen, change the default Database to AccountDB (Not Account_DB theres a difference) and click next until done.
[size=+1]Connecting to Your Server[/size]
24.) Create a registry file using this code (Use notepad):
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Triglow Pictures]
[HKEY_LOCAL_MACHINE\SOFTWARE\Triglow Pictures\PristonTale]
"Version"="3096"
"Account"=""
"CameraInvert"="false"
"CameraSight"="OFF"
"ColorBPP"="32"
"Graphic"="1"
"MicOption"="OFF"
"MotionBlur"="false"
"Network"="1"
"ScreenSize"="0"
"Server1"="xxx.xxx.xxx.xxx"<---your IP here
"Server2"="xxx.xxx.xxx.xxx"<---your IP here
"Server3"="xxx.xxx.xxx.xxx"<---your IP here
"ServerName"="Server Name"
"Sound"="On"
25.) Create a .bmp using this code (Use notepad to edit it)
Code:
A8ת $1@Qšy�©( *Graphic 1
*Network 1
*ColorBPP 32
*MotionBlur false
*CameraSight OFF
*ScreenSize 0
*MicOption OFF
*Sound On
*CameraInvert false
*Server1 xxx.xxx.xxx.xxx<---YOUR IP
*Server2 xxx.xxx.xxx.xxx<---YOUR IP
*Server3 xxx.xxx.xxx.xxx<---YOUR IP
*ServerName YOUR PT NAME
*Version 3096
*TestVersion 0
26.) Make sure you have the correct client for the server version your using: kPT = 1840 - 1860 and 2331 (for older kPT servers), jPT = 3096 - 3100.
[size=+1]Configuring Your Server[/size]
27.) Extract your choice of server files (McMadness Repack, dPT, 1855, whatever) to a folder on the desktop named "PT Server"
28.) Go into your PT Client folder and copy the "Field" and "Char" folders into your "PT Server" folder (Make sure to COPY and not CUT)
29.) After thats done, open up the file called Hotuk.ini and go to this line:
*GAMSERVER
First parameter is the name that appears when players are connecting like this:
*GAMESERVER WhateverPT
The next 3 parameters are your Lan/Wan/Local IP
*GAMSERVER WhateverPT 127.0.0.1 127.0.0.1 127.0.0.1
30.) While your here you may want to set your exp rate on with the *EVENT_EXPUP command.
Setting the number decides the exp multiplier. Such as:
*EVENT_EXPUP 400 would be something around "40x" rates
*EVENT_EXPUP 500 would be something around "50x" rates
*EVENT_EXPUP 600 would be...well you get the idea.
30.) I'll post some pre-configured Hotuk.ini's below somewhere.
Thats the end of the basic server setup guide, continue to the next post for the FAQ's
[SIZE=+2]Frequently Asked Questions (FAQ)[/SIZE]
Q: Question
A: Answer
Mostly importantly I would just like to reiterate Search is your friend, use it when questions arise!
______________________________________________
Q: Why does my server crash every hour on the dot?
A: Remove daeth_night.ini from your monster folder. Also may be a lack of ram.
----------------------------------------------------------------------
Q: I did everything the guide said but can't connect!
A: Make sure you edited your Idata.bmp and your registry.
-----------------------------------------------------------------------
Q: I keep getting "Conn. Failed", whats wrong?
A: You forgot to edit the *GAMESERVER parameter or forgot to change the IP's in the registry / Idata.bmp
------------------------------------------------------------------------
Q: Why do I get the message "Version does not match"?
A: Your using the incorrect version for your server, or you have the *VERSION parameter with the wrong client value there.
-------------------------------------------------------------------------
Q: I've been messing with clans for DAYS and can't get them to work!
A: Here or Here
-------------------------------------------------------------------------
Q: Uh, how do I make an account!?
A: Use a register script, makes your day much easier.
--------------------------------------------------------------------------
Q: Where do I get a register script?
A: The RFT Thread
---------------------------------------------------------------------------
Q: Well how do I use a register script?
A: Install a Webserver (HTTP)
---------------------------------------------------------------------------
Q: A webserver!?
A: Yes a webserver, I would suggest Apache or IIS, you could also try Baby Webserver
----------------------------------------------------------------------------
Q: How do I make uber super cool items!
A: You shouldn't, but if your going to anyway go here.
----------------------------------------------------------------------------
Q: What are the GM Commands?
A: Search for things in the future, commands here.
-----------------------------------------------------------------------------
Q: Why doesn't everyone help me!
A: Because their here to share, and if your just taking, why help you?
------------------------------------------------------------------------------
Q: If I want to seriously host a server, what should I do?
A: Get a dedicated team, either get dedicated hosting or get a good computer at home (2GB+ Ram, 3Ghz+ processor) on its own DSL (30 - 40 people), T1 (50 - 80 people) or a FiOS line (100+ people).
-------------------------------------------------------------------------------
Q: I've read all the guides, I've read this FAQ, I even bugged 30 people to death on MSN and I can't figure any of this out!
A: May I suggest you give up?
--------------------------------------------------------------------------------
Q: I do not know of these "files" and "resources" of which you speak.
A: Amazingly enough, the thread tagged [Resources] contains, resources! (Reading is a wonderful skill)
Last edited: