<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.dspt.info/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JonLimitless</id>
		<title>DSP Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.dspt.info/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JonLimitless"/>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php/Special:Contributions/JonLimitless"/>
		<updated>2026-04-26T23:51:32Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=Building_the_Server&amp;diff=718</id>
		<title>Building the Server</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=Building_the_Server&amp;diff=718"/>
				<updated>2012-04-16T09:54:58Z</updated>
		
		<summary type="html">&lt;p&gt;JonLimitless: /* MySql */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing &amp;amp; Setting up the DS Server on Windows ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In this section we will download every program/tool we will need to setup and maintain the servers. Do not install these yet.&lt;br /&gt;
&lt;br /&gt;
[http://dev.mysql.com/downloads/mysql/ MySQL Community Server]&lt;br /&gt;
&lt;br /&gt;
[http://70.226.47.159/downloads.php Navicat Lite]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express Visual Studio 2010 (Full or Express)]&lt;br /&gt;
&lt;br /&gt;
[http://tortoisesvn.net/downloads.html Tortoise SVN]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=5555 Visual C++ Redistributable Runtimes 2010]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=21 .Net 3.5 Runtime] (already comes with Win 7)&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=22 .Net 3.5sp1 Runtime] (already comes with Win 7)&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=17851 .Net 4 Runtime]&lt;br /&gt;
&lt;br /&gt;
[http://code.google.com/p/onetimexi/downloads/detail?name=MySQL.rar&amp;amp;can=2&amp;amp;q= SQL Developer Package]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
==== MySql ====&lt;br /&gt;
&lt;br /&gt;
Choose Typical Installation&lt;br /&gt;
&lt;br /&gt;
After the main installation, select Launch the MySQL Instance Configuration Wizard&lt;br /&gt;
&lt;br /&gt;
Select Detailed Configuration&lt;br /&gt;
&lt;br /&gt;
Select Developer Machine&lt;br /&gt;
&lt;br /&gt;
Select Multifunctional Database&lt;br /&gt;
&lt;br /&gt;
Standard Installation Directory&lt;br /&gt;
&lt;br /&gt;
Select Manual Setting and 1000 Concurrent connections&lt;br /&gt;
&lt;br /&gt;
Select Enable TCP/IP Networking, Port Number 3306, and Enable Strict Mode&lt;br /&gt;
&lt;br /&gt;
Select Best Support for Multilingualism&lt;br /&gt;
&lt;br /&gt;
Select Install as Windows Service, Launch the MySQL Server automatically, and Include Bin Directory in Windows PATH.&lt;br /&gt;
&lt;br /&gt;
Select Modify Security Settings, and enter a new password twice. Write down the MySQL password.&lt;br /&gt;
(DO NOT LEAVE BLANK.)&lt;br /&gt;
&lt;br /&gt;
Select Next, Execute, then Finish&lt;br /&gt;
&lt;br /&gt;
==== Navicat Lite ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options.&lt;br /&gt;
&lt;br /&gt;
==== Visual Studio 2010 ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options. You may be forced to restart (sometimes twice) during the installation.&lt;br /&gt;
&lt;br /&gt;
==== Tortoise SVN ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options. You can skip the step to reboot since we'll reboot once everything else is installed.&lt;br /&gt;
&lt;br /&gt;
==== Visual C++ Redistributable Runtime 2010 ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options.&lt;br /&gt;
&lt;br /&gt;
==== .Net 3.5, 3.5 SP1, and 4.0 ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options.&lt;br /&gt;
&lt;br /&gt;
==== SQL Developer Package ====&lt;br /&gt;
&lt;br /&gt;
Don't lose it, as we'll come back to it later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point everything should be installed that needs to be and you can restart your PC to finalize them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downloading the Server Source Code ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will use Tortoise SVN to download the latest SVN source code for the server.'''&lt;br /&gt;
&lt;br /&gt;
Open Windows Explorer (right click the start button and choose Windows Explorer)&lt;br /&gt;
&lt;br /&gt;
Right click on any folder select SVN Checkout&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;URL of repository&amp;quot; put in the following url: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://onetimexi.googlecode.com/svn/trunk/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the &amp;quot;Checkout directory&amp;quot; to &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\dsp.&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Click OK.&lt;br /&gt;
&lt;br /&gt;
Wait for the download to finish.&lt;br /&gt;
&lt;br /&gt;
Click OK to close Tortoise SVN.&lt;br /&gt;
&lt;br /&gt;
Close windows explorer&lt;br /&gt;
&lt;br /&gt;
At this point you have downloaded all of the source code for the latest version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Database ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will use the data that you downloaded to build a database in MySQL.'''&lt;br /&gt;
&lt;br /&gt;
==== Using a command script ====&lt;br /&gt;
&lt;br /&gt;
If you follow this step, you may skip the next one. &lt;br /&gt;
&lt;br /&gt;
Paste the following into notepad and save it as DSP_Import.cmd in your dsp\sql folder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@ECHO OFF&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM ====== THis script will drop the DB specificed, then create the DB  =========&lt;br /&gt;
REM ====== specified, and then load the DS tables into the DB. This     =========&lt;br /&gt;
REM ====== file needs to be run from within the \dsp\sql folder (same   =========&lt;br /&gt;
REM ====== folder with all the .sql files. Please edit as needed. By    =========&lt;br /&gt;
REM ====== default it WILL DROP the standard dspdb DB, loosing all      =========&lt;br /&gt;
REM ====== accounts and characters. If this is not desired, then update =========&lt;br /&gt;
REM ====== the file to load the new DB into a new DB name.              =========&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM ======                                                              =========&lt;br /&gt;
REM ======                     by Thrydwolf   11/5/2011                 =========&lt;br /&gt;
REM ====== Updated with status on the last step by bluekirby0 3/30/2012 =========&lt;br /&gt;
REM ======                                                              =========&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ECHO Creating Database dspdb&lt;br /&gt;
REM ================================================&lt;br /&gt;
REM ====== Update &amp;quot;-p&amp;quot; with MySQL password =========&lt;br /&gt;
REM ====== Update dspdb with MySQL Databse =========&lt;br /&gt;
REM ================================================&lt;br /&gt;
mysqladmin -h localhost -u root -proot DROP dspdb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ECHO Creating Database dspdb&lt;br /&gt;
REM ================================================&lt;br /&gt;
REM ====== Update &amp;quot;-p&amp;quot; with MySQL password =========&lt;br /&gt;
REM ====== Update dspdb with MySQL Databse =========&lt;br /&gt;
REM ================================================&lt;br /&gt;
mysqladmin -h localhost -u root -proot CREATE dspdb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ECHO Loading dspdb with tables&lt;br /&gt;
REM ================================================&lt;br /&gt;
REM ====== Update &amp;quot;-p&amp;quot; with MySQL password =========&lt;br /&gt;
REM ====== Update dspdb with MySQL Databse =========&lt;br /&gt;
REM ================================================&lt;br /&gt;
FOR %%X IN (*.sql) DO ECHO Importing %%X &amp;amp; mysql dspdb -h localhost -u root -proot &amp;lt; %%X&lt;br /&gt;
&lt;br /&gt;
ECHO Finished!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At a minimum you will need to change -proot in the script to where root is your mysql root password. If your password is 'foo' then you would use -pfoo instead.&lt;br /&gt;
&lt;br /&gt;
You can use this script any time the svn is updated, but it will drop the table and thus delete all your player data. You may want to make manual changes instead unless you are using it purely as a test server.&lt;br /&gt;
&lt;br /&gt;
==== Using Navicat ====&lt;br /&gt;
&lt;br /&gt;
This is the more hands-on approach, and being comfortable doing it this way may make it easier to update individual tables later without having to learn the mysql command-line interface.&lt;br /&gt;
&lt;br /&gt;
Open Navicat&lt;br /&gt;
&lt;br /&gt;
Click Connection (or File, New Connection)&lt;br /&gt;
&lt;br /&gt;
Connection name: DarkStar&lt;br /&gt;
&lt;br /&gt;
Host Name/IP: localhost&lt;br /&gt;
&lt;br /&gt;
Port: 3306&lt;br /&gt;
&lt;br /&gt;
User Name: root&lt;br /&gt;
&lt;br /&gt;
Password: Enter the password you wrote down during the mySQL installation.&lt;br /&gt;
&lt;br /&gt;
Check Save Password&lt;br /&gt;
&lt;br /&gt;
Click OK&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the connections pane double click DarkStar&lt;br /&gt;
&lt;br /&gt;
Right click on DarkStar and select New Database...&lt;br /&gt;
&lt;br /&gt;
Name it dspdb&lt;br /&gt;
&lt;br /&gt;
Use the Default character set&lt;br /&gt;
&lt;br /&gt;
Select OK.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Double click dspdb&lt;br /&gt;
&lt;br /&gt;
Right click on dspdb and select Execute SQL File...&lt;br /&gt;
&lt;br /&gt;
Browse to C:\dsp\sql and select abilities.sql&lt;br /&gt;
&lt;br /&gt;
Click Start&lt;br /&gt;
&lt;br /&gt;
Continue this process for each file in the folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have an issue with the triggers.sql file then follow this step. If not, proceed to the next step (IP address for the map server):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Navicat Open accounts table&lt;br /&gt;
&lt;br /&gt;
Click File, Design Table&lt;br /&gt;
&lt;br /&gt;
Click the Triggers tab&lt;br /&gt;
&lt;br /&gt;
There should a line already listed with account_delete in the Name field&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If not:&lt;br /&gt;
&lt;br /&gt;
click Add Trigger&lt;br /&gt;
&lt;br /&gt;
Name column should be account_delete&lt;br /&gt;
&lt;br /&gt;
Fires column should be Before&lt;br /&gt;
&lt;br /&gt;
Check the box in the Delete column&lt;br /&gt;
&lt;br /&gt;
In the definition box below add the following code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BEGIN&lt;br /&gt;
   DELETE FROM `accounts_banned` WHERE `accid` = OLD.id;&lt;br /&gt;
   DELETE FROM `chars` WHERE `accid` = OLD.id;&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select Save and then close the table.&lt;br /&gt;
&lt;br /&gt;
Open the chars table&lt;br /&gt;
&lt;br /&gt;
Click File, Design Table&lt;br /&gt;
&lt;br /&gt;
Click the Triggers tab&lt;br /&gt;
&lt;br /&gt;
There should already be a line listed with char_delete in the name field.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If not:&lt;br /&gt;
&lt;br /&gt;
click Add Trigger&lt;br /&gt;
&lt;br /&gt;
Name column should be char_delete&lt;br /&gt;
&lt;br /&gt;
Fires column should be Before&lt;br /&gt;
&lt;br /&gt;
Check the box in the Delete column&lt;br /&gt;
&lt;br /&gt;
In the definition box below add the following code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BEGIN&lt;br /&gt;
   DELETE FROM `char_exp` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_jobs` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_equip` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_effects` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_look` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_stats` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_skills` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_titles` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_inventory` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_vars` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_bazaar_msg` WHERE `charid` = OLD.charid;&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select Save and then close the table.&lt;br /&gt;
&lt;br /&gt;
Note: Leave Navicat open for the next section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Configure the ZoneIP for the Map Server ====&lt;br /&gt;
&lt;br /&gt;
Now you need to determine what IP address that will be used for the Map Server, then update MySQL with it.&lt;br /&gt;
&lt;br /&gt;
Most devs &amp;amp; enthusiasts will not have a separate map server, but will run both map server and login server on the same PC. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Determine what IP address will be used for the map server.&lt;br /&gt;
&lt;br /&gt;
If the server will be public, then use your external IP in the next step.&lt;br /&gt;
&lt;br /&gt;
If the server will be internal and you want it available on other PCs in your internal network, use the internal network IP (192.168.x.x) in the next step.&lt;br /&gt;
&lt;br /&gt;
If you only plan to run the client and the server on the same PC, you can use the localhost address (127.0.0.1) in the next step.&lt;br /&gt;
&lt;br /&gt;
Calculate the new form from the IP address.&lt;br /&gt;
&lt;br /&gt;
The IP must be entered in different form, so first we must calculate the new form. Use the formula below or [http://www.allredroster.com/iptodec.htm This Handy Site] to calculate it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Formula = 1st Octet + 2nd Octet * 256 + 3rd Octet *256 (squared) + 4th Octet * 256 (cubed)&lt;br /&gt;
&lt;br /&gt;
Example: 127.0.0.1 = 127 + 0 + 0 + 1*256(cubed) = 16777343&lt;br /&gt;
&lt;br /&gt;
Example: 192.168.1.102 = 192 + 168*256 + 1*256(squared) + 102*256(cubed) = 1711384768&lt;br /&gt;
&lt;br /&gt;
Example: 67.41.45.115 = 67 + 41*256 + 45*256(squared) + 115*256(cubed) = 1932339523&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Navicat double click on the table dspdb and expand&lt;br /&gt;
&lt;br /&gt;
Click on Query&lt;br /&gt;
&lt;br /&gt;
Right click and select New Query&lt;br /&gt;
&lt;br /&gt;
Add the following code into the empty space, inserting the value calculated above. The value in the code below (16777343) would be used if only running the client from the same PC as the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BEGIN&lt;br /&gt;
    UPDATE zone_settings SET zoneip = '16777343';&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select Run. &amp;quot;256 queries should be successful!&amp;quot; should be the result.&lt;br /&gt;
&lt;br /&gt;
I recommend you save the Query in case you need to run it again later after updating the server.&lt;br /&gt;
&lt;br /&gt;
Close Navicat.&lt;br /&gt;
&lt;br /&gt;
=== Building the Servers ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will be building the Dark Star servers.'''&lt;br /&gt;
&lt;br /&gt;
Dark Star uses 3 separate servers. A Login server, a Map/Game server, and an optional Search/Auction House server. Using the ZoneIP mentioned earlier, every map could run on its own server at a different IP address. If you have 4 computers each computer could run different areas, as long as they were all connected to the same MySQL database server.&lt;br /&gt;
&lt;br /&gt;
==== Installing the MySQL Development Files ====&lt;br /&gt;
&lt;br /&gt;
Extract the MySQL development package we downloaded earlier.&lt;br /&gt;
&lt;br /&gt;
Copy the MySQL folder that was extracted. There should be a &amp;quot;mysql&amp;quot; folder inside with many files.&lt;br /&gt;
&lt;br /&gt;
Paste that MySQL into either&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
32bit windows: C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
64bit windows: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Afterwords the folder structure should be ...Microsoft SDKs\Windows\v7.0A\Include\MySQL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Build the Login Server ====&lt;br /&gt;
&lt;br /&gt;
Open Visual Studio&lt;br /&gt;
&lt;br /&gt;
Click File, Open, Project/Solution (or Ctrl+Shift+O)&lt;br /&gt;
&lt;br /&gt;
Navigate to C:\dsp\win32\DSConnect-Server&lt;br /&gt;
&lt;br /&gt;
Select DSConnect-server.sln (usually the first one)&lt;br /&gt;
&lt;br /&gt;
It may take a few minutes to load files.&lt;br /&gt;
&lt;br /&gt;
Click Debug then Build Server (or F7, or Ctrl+Shift+B)&lt;br /&gt;
&lt;br /&gt;
Building will take a few minutes.&lt;br /&gt;
&lt;br /&gt;
Once complete, validate that there are no Errors listed in the summary line at the bottom. It should look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there are any SQL errors it is probably caused by the SQL dev package was extracted to the wrong folder.&lt;br /&gt;
&lt;br /&gt;
If there is a #include error, change that #include to say #include &amp;lt;mysql/mysql.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Build the Map Server ====&lt;br /&gt;
&lt;br /&gt;
Click File, Open, Project/Solution (or Ctrl+Shift+O)&lt;br /&gt;
&lt;br /&gt;
Navigate to C:\dsp\win32\DSGame-Server&lt;br /&gt;
&lt;br /&gt;
Select DSGame-server.sln (usually the first one)&lt;br /&gt;
&lt;br /&gt;
It may take a few minutes to load files.&lt;br /&gt;
&lt;br /&gt;
Click Debug then Build Server (or F7, or Ctrl+Shift+B)&lt;br /&gt;
&lt;br /&gt;
Building will take a few minutes.&lt;br /&gt;
&lt;br /&gt;
Once complete, validate that there are no Errors listed in the summary line at the bottom. It should look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there are any SQL errors it is probably caused by the SQL dev package was extracted to the wrong folder.&lt;br /&gt;
&lt;br /&gt;
If there is a #include error, change that #include to say #include &amp;lt;mysql/mysql.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Building the Optional Search Server ====&lt;br /&gt;
&lt;br /&gt;
Navigate to C:\dsp\win32\DSSearch-server&lt;br /&gt;
&lt;br /&gt;
Select DSSearch-server.sln (usually the first one)&lt;br /&gt;
&lt;br /&gt;
It may take a few minutes to load files.&lt;br /&gt;
&lt;br /&gt;
Click Debug then Build Server (or F7, or Ctrl+Shift+B)&lt;br /&gt;
&lt;br /&gt;
Building will take a few minutes.&lt;br /&gt;
&lt;br /&gt;
Once complete, validate that there are no Errors listed in the summary line at the bottom. It should look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there are any SQL errors it is probably caused by the SQL dev package was extracted to the wrong folder.&lt;br /&gt;
&lt;br /&gt;
If there is a #include error, change that #include to say #include &amp;lt;mysql/mysql.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== When all of the Servers are built ====&lt;br /&gt;
&lt;br /&gt;
Verify in the C:\dsp directory that the servers you built are there: &lt;br /&gt;
&lt;br /&gt;
DSConnect-server.exe for the Login Server&lt;br /&gt;
&lt;br /&gt;
DSGame-server.exe for the Map Server&lt;br /&gt;
&lt;br /&gt;
DSSearch-server.exe for the Search Server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Servers ===&lt;br /&gt;
&lt;br /&gt;
'''Now you will configure the Login Server and Map Server to connect to the MySQL database.'''&lt;br /&gt;
&lt;br /&gt;
Do not mess with any other settings in these files unless you know what they are for and what they do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Login Server Settings ====&lt;br /&gt;
&lt;br /&gt;
In windows explorer navigate to c:\dsp\conf&lt;br /&gt;
&lt;br /&gt;
Open login_darkstar.conf in a text editer (notepad)&lt;br /&gt;
&lt;br /&gt;
Scroll down to the bottom and validate/update the following lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql_host: 127.0.0.1&lt;br /&gt;
mysql_port: 3306&lt;br /&gt;
mysql_login: root&lt;br /&gt;
mysql_password: root &amp;lt;-- change this to your password you wrote down during the MySQL install&lt;br /&gt;
mysql_database: dspdb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Map Server Settings ====&lt;br /&gt;
&lt;br /&gt;
In windows explorer navigate to c:\dsp\conf&lt;br /&gt;
&lt;br /&gt;
Open map_darkstar.conf in a text editer (notepad)&lt;br /&gt;
&lt;br /&gt;
Scroll down to the bottom and validate/update the following lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql_host: 127.0.0.1&lt;br /&gt;
mysql_port: 3306&lt;br /&gt;
mysql_login: root&lt;br /&gt;
mysql_password: root &amp;lt;-- change this to your password you wrote down during the MySQL install&lt;br /&gt;
mysql_database: dspdb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Search Server Settings ====&lt;br /&gt;
&lt;br /&gt;
In windows explorer navigate to c:\dsp\conf&lt;br /&gt;
&lt;br /&gt;
Open search_server.conf in a text editer (notepad)&lt;br /&gt;
&lt;br /&gt;
Scroll down to the bottom and validate/update the following lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql_host: 127.0.0.1&lt;br /&gt;
mysql_port: 3306&lt;br /&gt;
mysql_login: root&lt;br /&gt;
mysql_password: root &amp;lt;-- change this to your password you wrote down during the MySQL install&lt;br /&gt;
mysql_database: dspdb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point we have configured the servers to connect to the SQL database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Starting the Servers ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will launch our new servers.'''&lt;br /&gt;
&lt;br /&gt;
Navigate to c:\dsp&lt;br /&gt;
&lt;br /&gt;
Run DSConnect-server.exe as Admin&lt;br /&gt;
&lt;br /&gt;
Run DSGame-server.exe as Admin&lt;br /&gt;
&lt;br /&gt;
(Optional) Run DSSearch-server.exe as Admin&lt;br /&gt;
&lt;br /&gt;
At this point if your servers fail to load, you probably missed a step. Go back through the steps and try to find out what you missed. It may also be helpful to look at the log files located in c:\dsp\log.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Forward Ports to Allow Others to Join (&amp;amp; Firewall) ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will provide the port numbers that need to be forwarded to the server. This is only needed to allow people outside your local intranet to join your server.'''&lt;br /&gt;
&lt;br /&gt;
In your router and firewall the following ports need to be opened/forwarded to your server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
54230&lt;br /&gt;
54231&lt;br /&gt;
54001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still having trouble, disable any firewall software completely for testing. This includes the Windows firewall that comes on all modern Windows systems, which can be found in the Control Panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing &amp;amp; Setting up the DS Server on Linux ==&lt;br /&gt;
&lt;br /&gt;
To be filled in as I find a reliable way of building newer revisions on linux systems.&lt;br /&gt;
&lt;br /&gt;
== Credits ==&lt;br /&gt;
The original windows guide was written by thrydwolf, and has been formatted for the wiki and updated by bluekirby0&lt;/div&gt;</summary>
		<author><name>JonLimitless</name></author>	</entry>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=Building_the_Server&amp;diff=717</id>
		<title>Building the Server</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=Building_the_Server&amp;diff=717"/>
				<updated>2012-04-16T09:54:45Z</updated>
		
		<summary type="html">&lt;p&gt;JonLimitless: /* MySql */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing &amp;amp; Setting up the DS Server on Windows ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In this section we will download every program/tool we will need to setup and maintain the servers. Do not install these yet.&lt;br /&gt;
&lt;br /&gt;
[http://dev.mysql.com/downloads/mysql/ MySQL Community Server]&lt;br /&gt;
&lt;br /&gt;
[http://70.226.47.159/downloads.php Navicat Lite]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express Visual Studio 2010 (Full or Express)]&lt;br /&gt;
&lt;br /&gt;
[http://tortoisesvn.net/downloads.html Tortoise SVN]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=5555 Visual C++ Redistributable Runtimes 2010]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=21 .Net 3.5 Runtime] (already comes with Win 7)&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=22 .Net 3.5sp1 Runtime] (already comes with Win 7)&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=17851 .Net 4 Runtime]&lt;br /&gt;
&lt;br /&gt;
[http://code.google.com/p/onetimexi/downloads/detail?name=MySQL.rar&amp;amp;can=2&amp;amp;q= SQL Developer Package]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
==== MySql ====&lt;br /&gt;
&lt;br /&gt;
Choose Typical Installation&lt;br /&gt;
&lt;br /&gt;
After the main installation, select Launch the MySQL Instance Configuration Wizard&lt;br /&gt;
&lt;br /&gt;
Select Detailed Configuration&lt;br /&gt;
&lt;br /&gt;
Select Developer Machine&lt;br /&gt;
&lt;br /&gt;
Select Multifunctional Database&lt;br /&gt;
&lt;br /&gt;
Standard Installation Directory&lt;br /&gt;
&lt;br /&gt;
Select Manual Setting and 1000 Concurrent connections&lt;br /&gt;
&lt;br /&gt;
Select Enable TCP/IP Networking, Port Number 3306, and Enable Strict Mode&lt;br /&gt;
&lt;br /&gt;
Select Best Support for Multilingualism&lt;br /&gt;
&lt;br /&gt;
Select Install as Windows Service, Launch the MySQL Server automatically, and Include Bin Directory in Windows PATH.&lt;br /&gt;
&lt;br /&gt;
Select Modify Security Settings, and enter a new password twice. Write down the MySQL password.&lt;br /&gt;
(Make sure to make a password and DO NOT LEAVE BLANK.)&lt;br /&gt;
&lt;br /&gt;
Select Next, Execute, then Finish&lt;br /&gt;
&lt;br /&gt;
==== Navicat Lite ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options.&lt;br /&gt;
&lt;br /&gt;
==== Visual Studio 2010 ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options. You may be forced to restart (sometimes twice) during the installation.&lt;br /&gt;
&lt;br /&gt;
==== Tortoise SVN ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options. You can skip the step to reboot since we'll reboot once everything else is installed.&lt;br /&gt;
&lt;br /&gt;
==== Visual C++ Redistributable Runtime 2010 ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options.&lt;br /&gt;
&lt;br /&gt;
==== .Net 3.5, 3.5 SP1, and 4.0 ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options.&lt;br /&gt;
&lt;br /&gt;
==== SQL Developer Package ====&lt;br /&gt;
&lt;br /&gt;
Don't lose it, as we'll come back to it later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point everything should be installed that needs to be and you can restart your PC to finalize them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downloading the Server Source Code ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will use Tortoise SVN to download the latest SVN source code for the server.'''&lt;br /&gt;
&lt;br /&gt;
Open Windows Explorer (right click the start button and choose Windows Explorer)&lt;br /&gt;
&lt;br /&gt;
Right click on any folder select SVN Checkout&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;URL of repository&amp;quot; put in the following url: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://onetimexi.googlecode.com/svn/trunk/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the &amp;quot;Checkout directory&amp;quot; to &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\dsp.&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Click OK.&lt;br /&gt;
&lt;br /&gt;
Wait for the download to finish.&lt;br /&gt;
&lt;br /&gt;
Click OK to close Tortoise SVN.&lt;br /&gt;
&lt;br /&gt;
Close windows explorer&lt;br /&gt;
&lt;br /&gt;
At this point you have downloaded all of the source code for the latest version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Database ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will use the data that you downloaded to build a database in MySQL.'''&lt;br /&gt;
&lt;br /&gt;
==== Using a command script ====&lt;br /&gt;
&lt;br /&gt;
If you follow this step, you may skip the next one. &lt;br /&gt;
&lt;br /&gt;
Paste the following into notepad and save it as DSP_Import.cmd in your dsp\sql folder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@ECHO OFF&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM ====== THis script will drop the DB specificed, then create the DB  =========&lt;br /&gt;
REM ====== specified, and then load the DS tables into the DB. This     =========&lt;br /&gt;
REM ====== file needs to be run from within the \dsp\sql folder (same   =========&lt;br /&gt;
REM ====== folder with all the .sql files. Please edit as needed. By    =========&lt;br /&gt;
REM ====== default it WILL DROP the standard dspdb DB, loosing all      =========&lt;br /&gt;
REM ====== accounts and characters. If this is not desired, then update =========&lt;br /&gt;
REM ====== the file to load the new DB into a new DB name.              =========&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM ======                                                              =========&lt;br /&gt;
REM ======                     by Thrydwolf   11/5/2011                 =========&lt;br /&gt;
REM ====== Updated with status on the last step by bluekirby0 3/30/2012 =========&lt;br /&gt;
REM ======                                                              =========&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ECHO Creating Database dspdb&lt;br /&gt;
REM ================================================&lt;br /&gt;
REM ====== Update &amp;quot;-p&amp;quot; with MySQL password =========&lt;br /&gt;
REM ====== Update dspdb with MySQL Databse =========&lt;br /&gt;
REM ================================================&lt;br /&gt;
mysqladmin -h localhost -u root -proot DROP dspdb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ECHO Creating Database dspdb&lt;br /&gt;
REM ================================================&lt;br /&gt;
REM ====== Update &amp;quot;-p&amp;quot; with MySQL password =========&lt;br /&gt;
REM ====== Update dspdb with MySQL Databse =========&lt;br /&gt;
REM ================================================&lt;br /&gt;
mysqladmin -h localhost -u root -proot CREATE dspdb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ECHO Loading dspdb with tables&lt;br /&gt;
REM ================================================&lt;br /&gt;
REM ====== Update &amp;quot;-p&amp;quot; with MySQL password =========&lt;br /&gt;
REM ====== Update dspdb with MySQL Databse =========&lt;br /&gt;
REM ================================================&lt;br /&gt;
FOR %%X IN (*.sql) DO ECHO Importing %%X &amp;amp; mysql dspdb -h localhost -u root -proot &amp;lt; %%X&lt;br /&gt;
&lt;br /&gt;
ECHO Finished!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At a minimum you will need to change -proot in the script to where root is your mysql root password. If your password is 'foo' then you would use -pfoo instead.&lt;br /&gt;
&lt;br /&gt;
You can use this script any time the svn is updated, but it will drop the table and thus delete all your player data. You may want to make manual changes instead unless you are using it purely as a test server.&lt;br /&gt;
&lt;br /&gt;
==== Using Navicat ====&lt;br /&gt;
&lt;br /&gt;
This is the more hands-on approach, and being comfortable doing it this way may make it easier to update individual tables later without having to learn the mysql command-line interface.&lt;br /&gt;
&lt;br /&gt;
Open Navicat&lt;br /&gt;
&lt;br /&gt;
Click Connection (or File, New Connection)&lt;br /&gt;
&lt;br /&gt;
Connection name: DarkStar&lt;br /&gt;
&lt;br /&gt;
Host Name/IP: localhost&lt;br /&gt;
&lt;br /&gt;
Port: 3306&lt;br /&gt;
&lt;br /&gt;
User Name: root&lt;br /&gt;
&lt;br /&gt;
Password: Enter the password you wrote down during the mySQL installation.&lt;br /&gt;
&lt;br /&gt;
Check Save Password&lt;br /&gt;
&lt;br /&gt;
Click OK&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the connections pane double click DarkStar&lt;br /&gt;
&lt;br /&gt;
Right click on DarkStar and select New Database...&lt;br /&gt;
&lt;br /&gt;
Name it dspdb&lt;br /&gt;
&lt;br /&gt;
Use the Default character set&lt;br /&gt;
&lt;br /&gt;
Select OK.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Double click dspdb&lt;br /&gt;
&lt;br /&gt;
Right click on dspdb and select Execute SQL File...&lt;br /&gt;
&lt;br /&gt;
Browse to C:\dsp\sql and select abilities.sql&lt;br /&gt;
&lt;br /&gt;
Click Start&lt;br /&gt;
&lt;br /&gt;
Continue this process for each file in the folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have an issue with the triggers.sql file then follow this step. If not, proceed to the next step (IP address for the map server):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Navicat Open accounts table&lt;br /&gt;
&lt;br /&gt;
Click File, Design Table&lt;br /&gt;
&lt;br /&gt;
Click the Triggers tab&lt;br /&gt;
&lt;br /&gt;
There should a line already listed with account_delete in the Name field&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If not:&lt;br /&gt;
&lt;br /&gt;
click Add Trigger&lt;br /&gt;
&lt;br /&gt;
Name column should be account_delete&lt;br /&gt;
&lt;br /&gt;
Fires column should be Before&lt;br /&gt;
&lt;br /&gt;
Check the box in the Delete column&lt;br /&gt;
&lt;br /&gt;
In the definition box below add the following code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BEGIN&lt;br /&gt;
   DELETE FROM `accounts_banned` WHERE `accid` = OLD.id;&lt;br /&gt;
   DELETE FROM `chars` WHERE `accid` = OLD.id;&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select Save and then close the table.&lt;br /&gt;
&lt;br /&gt;
Open the chars table&lt;br /&gt;
&lt;br /&gt;
Click File, Design Table&lt;br /&gt;
&lt;br /&gt;
Click the Triggers tab&lt;br /&gt;
&lt;br /&gt;
There should already be a line listed with char_delete in the name field.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If not:&lt;br /&gt;
&lt;br /&gt;
click Add Trigger&lt;br /&gt;
&lt;br /&gt;
Name column should be char_delete&lt;br /&gt;
&lt;br /&gt;
Fires column should be Before&lt;br /&gt;
&lt;br /&gt;
Check the box in the Delete column&lt;br /&gt;
&lt;br /&gt;
In the definition box below add the following code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BEGIN&lt;br /&gt;
   DELETE FROM `char_exp` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_jobs` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_equip` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_effects` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_look` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_stats` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_skills` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_titles` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_inventory` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_vars` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_bazaar_msg` WHERE `charid` = OLD.charid;&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select Save and then close the table.&lt;br /&gt;
&lt;br /&gt;
Note: Leave Navicat open for the next section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Configure the ZoneIP for the Map Server ====&lt;br /&gt;
&lt;br /&gt;
Now you need to determine what IP address that will be used for the Map Server, then update MySQL with it.&lt;br /&gt;
&lt;br /&gt;
Most devs &amp;amp; enthusiasts will not have a separate map server, but will run both map server and login server on the same PC. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Determine what IP address will be used for the map server.&lt;br /&gt;
&lt;br /&gt;
If the server will be public, then use your external IP in the next step.&lt;br /&gt;
&lt;br /&gt;
If the server will be internal and you want it available on other PCs in your internal network, use the internal network IP (192.168.x.x) in the next step.&lt;br /&gt;
&lt;br /&gt;
If you only plan to run the client and the server on the same PC, you can use the localhost address (127.0.0.1) in the next step.&lt;br /&gt;
&lt;br /&gt;
Calculate the new form from the IP address.&lt;br /&gt;
&lt;br /&gt;
The IP must be entered in different form, so first we must calculate the new form. Use the formula below or [http://www.allredroster.com/iptodec.htm This Handy Site] to calculate it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Formula = 1st Octet + 2nd Octet * 256 + 3rd Octet *256 (squared) + 4th Octet * 256 (cubed)&lt;br /&gt;
&lt;br /&gt;
Example: 127.0.0.1 = 127 + 0 + 0 + 1*256(cubed) = 16777343&lt;br /&gt;
&lt;br /&gt;
Example: 192.168.1.102 = 192 + 168*256 + 1*256(squared) + 102*256(cubed) = 1711384768&lt;br /&gt;
&lt;br /&gt;
Example: 67.41.45.115 = 67 + 41*256 + 45*256(squared) + 115*256(cubed) = 1932339523&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Navicat double click on the table dspdb and expand&lt;br /&gt;
&lt;br /&gt;
Click on Query&lt;br /&gt;
&lt;br /&gt;
Right click and select New Query&lt;br /&gt;
&lt;br /&gt;
Add the following code into the empty space, inserting the value calculated above. The value in the code below (16777343) would be used if only running the client from the same PC as the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BEGIN&lt;br /&gt;
    UPDATE zone_settings SET zoneip = '16777343';&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select Run. &amp;quot;256 queries should be successful!&amp;quot; should be the result.&lt;br /&gt;
&lt;br /&gt;
I recommend you save the Query in case you need to run it again later after updating the server.&lt;br /&gt;
&lt;br /&gt;
Close Navicat.&lt;br /&gt;
&lt;br /&gt;
=== Building the Servers ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will be building the Dark Star servers.'''&lt;br /&gt;
&lt;br /&gt;
Dark Star uses 3 separate servers. A Login server, a Map/Game server, and an optional Search/Auction House server. Using the ZoneIP mentioned earlier, every map could run on its own server at a different IP address. If you have 4 computers each computer could run different areas, as long as they were all connected to the same MySQL database server.&lt;br /&gt;
&lt;br /&gt;
==== Installing the MySQL Development Files ====&lt;br /&gt;
&lt;br /&gt;
Extract the MySQL development package we downloaded earlier.&lt;br /&gt;
&lt;br /&gt;
Copy the MySQL folder that was extracted. There should be a &amp;quot;mysql&amp;quot; folder inside with many files.&lt;br /&gt;
&lt;br /&gt;
Paste that MySQL into either&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
32bit windows: C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
64bit windows: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Afterwords the folder structure should be ...Microsoft SDKs\Windows\v7.0A\Include\MySQL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Build the Login Server ====&lt;br /&gt;
&lt;br /&gt;
Open Visual Studio&lt;br /&gt;
&lt;br /&gt;
Click File, Open, Project/Solution (or Ctrl+Shift+O)&lt;br /&gt;
&lt;br /&gt;
Navigate to C:\dsp\win32\DSConnect-Server&lt;br /&gt;
&lt;br /&gt;
Select DSConnect-server.sln (usually the first one)&lt;br /&gt;
&lt;br /&gt;
It may take a few minutes to load files.&lt;br /&gt;
&lt;br /&gt;
Click Debug then Build Server (or F7, or Ctrl+Shift+B)&lt;br /&gt;
&lt;br /&gt;
Building will take a few minutes.&lt;br /&gt;
&lt;br /&gt;
Once complete, validate that there are no Errors listed in the summary line at the bottom. It should look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there are any SQL errors it is probably caused by the SQL dev package was extracted to the wrong folder.&lt;br /&gt;
&lt;br /&gt;
If there is a #include error, change that #include to say #include &amp;lt;mysql/mysql.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Build the Map Server ====&lt;br /&gt;
&lt;br /&gt;
Click File, Open, Project/Solution (or Ctrl+Shift+O)&lt;br /&gt;
&lt;br /&gt;
Navigate to C:\dsp\win32\DSGame-Server&lt;br /&gt;
&lt;br /&gt;
Select DSGame-server.sln (usually the first one)&lt;br /&gt;
&lt;br /&gt;
It may take a few minutes to load files.&lt;br /&gt;
&lt;br /&gt;
Click Debug then Build Server (or F7, or Ctrl+Shift+B)&lt;br /&gt;
&lt;br /&gt;
Building will take a few minutes.&lt;br /&gt;
&lt;br /&gt;
Once complete, validate that there are no Errors listed in the summary line at the bottom. It should look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there are any SQL errors it is probably caused by the SQL dev package was extracted to the wrong folder.&lt;br /&gt;
&lt;br /&gt;
If there is a #include error, change that #include to say #include &amp;lt;mysql/mysql.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Building the Optional Search Server ====&lt;br /&gt;
&lt;br /&gt;
Navigate to C:\dsp\win32\DSSearch-server&lt;br /&gt;
&lt;br /&gt;
Select DSSearch-server.sln (usually the first one)&lt;br /&gt;
&lt;br /&gt;
It may take a few minutes to load files.&lt;br /&gt;
&lt;br /&gt;
Click Debug then Build Server (or F7, or Ctrl+Shift+B)&lt;br /&gt;
&lt;br /&gt;
Building will take a few minutes.&lt;br /&gt;
&lt;br /&gt;
Once complete, validate that there are no Errors listed in the summary line at the bottom. It should look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there are any SQL errors it is probably caused by the SQL dev package was extracted to the wrong folder.&lt;br /&gt;
&lt;br /&gt;
If there is a #include error, change that #include to say #include &amp;lt;mysql/mysql.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== When all of the Servers are built ====&lt;br /&gt;
&lt;br /&gt;
Verify in the C:\dsp directory that the servers you built are there: &lt;br /&gt;
&lt;br /&gt;
DSConnect-server.exe for the Login Server&lt;br /&gt;
&lt;br /&gt;
DSGame-server.exe for the Map Server&lt;br /&gt;
&lt;br /&gt;
DSSearch-server.exe for the Search Server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Servers ===&lt;br /&gt;
&lt;br /&gt;
'''Now you will configure the Login Server and Map Server to connect to the MySQL database.'''&lt;br /&gt;
&lt;br /&gt;
Do not mess with any other settings in these files unless you know what they are for and what they do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Login Server Settings ====&lt;br /&gt;
&lt;br /&gt;
In windows explorer navigate to c:\dsp\conf&lt;br /&gt;
&lt;br /&gt;
Open login_darkstar.conf in a text editer (notepad)&lt;br /&gt;
&lt;br /&gt;
Scroll down to the bottom and validate/update the following lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql_host: 127.0.0.1&lt;br /&gt;
mysql_port: 3306&lt;br /&gt;
mysql_login: root&lt;br /&gt;
mysql_password: root &amp;lt;-- change this to your password you wrote down during the MySQL install&lt;br /&gt;
mysql_database: dspdb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Map Server Settings ====&lt;br /&gt;
&lt;br /&gt;
In windows explorer navigate to c:\dsp\conf&lt;br /&gt;
&lt;br /&gt;
Open map_darkstar.conf in a text editer (notepad)&lt;br /&gt;
&lt;br /&gt;
Scroll down to the bottom and validate/update the following lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql_host: 127.0.0.1&lt;br /&gt;
mysql_port: 3306&lt;br /&gt;
mysql_login: root&lt;br /&gt;
mysql_password: root &amp;lt;-- change this to your password you wrote down during the MySQL install&lt;br /&gt;
mysql_database: dspdb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Search Server Settings ====&lt;br /&gt;
&lt;br /&gt;
In windows explorer navigate to c:\dsp\conf&lt;br /&gt;
&lt;br /&gt;
Open search_server.conf in a text editer (notepad)&lt;br /&gt;
&lt;br /&gt;
Scroll down to the bottom and validate/update the following lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql_host: 127.0.0.1&lt;br /&gt;
mysql_port: 3306&lt;br /&gt;
mysql_login: root&lt;br /&gt;
mysql_password: root &amp;lt;-- change this to your password you wrote down during the MySQL install&lt;br /&gt;
mysql_database: dspdb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point we have configured the servers to connect to the SQL database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Starting the Servers ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will launch our new servers.'''&lt;br /&gt;
&lt;br /&gt;
Navigate to c:\dsp&lt;br /&gt;
&lt;br /&gt;
Run DSConnect-server.exe as Admin&lt;br /&gt;
&lt;br /&gt;
Run DSGame-server.exe as Admin&lt;br /&gt;
&lt;br /&gt;
(Optional) Run DSSearch-server.exe as Admin&lt;br /&gt;
&lt;br /&gt;
At this point if your servers fail to load, you probably missed a step. Go back through the steps and try to find out what you missed. It may also be helpful to look at the log files located in c:\dsp\log.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Forward Ports to Allow Others to Join (&amp;amp; Firewall) ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will provide the port numbers that need to be forwarded to the server. This is only needed to allow people outside your local intranet to join your server.'''&lt;br /&gt;
&lt;br /&gt;
In your router and firewall the following ports need to be opened/forwarded to your server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
54230&lt;br /&gt;
54231&lt;br /&gt;
54001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still having trouble, disable any firewall software completely for testing. This includes the Windows firewall that comes on all modern Windows systems, which can be found in the Control Panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing &amp;amp; Setting up the DS Server on Linux ==&lt;br /&gt;
&lt;br /&gt;
To be filled in as I find a reliable way of building newer revisions on linux systems.&lt;br /&gt;
&lt;br /&gt;
== Credits ==&lt;br /&gt;
The original windows guide was written by thrydwolf, and has been formatted for the wiki and updated by bluekirby0&lt;/div&gt;</summary>
		<author><name>JonLimitless</name></author>	</entry>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=Building_the_Server&amp;diff=716</id>
		<title>Building the Server</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=Building_the_Server&amp;diff=716"/>
				<updated>2012-04-16T09:54:35Z</updated>
		
		<summary type="html">&lt;p&gt;JonLimitless: /* MySql */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Installing &amp;amp; Setting up the DS Server on Windows ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
&lt;br /&gt;
In this section we will download every program/tool we will need to setup and maintain the servers. Do not install these yet.&lt;br /&gt;
&lt;br /&gt;
[http://dev.mysql.com/downloads/mysql/ MySQL Community Server]&lt;br /&gt;
&lt;br /&gt;
[http://70.226.47.159/downloads.php Navicat Lite]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express Visual Studio 2010 (Full or Express)]&lt;br /&gt;
&lt;br /&gt;
[http://tortoisesvn.net/downloads.html Tortoise SVN]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=5555 Visual C++ Redistributable Runtimes 2010]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=21 .Net 3.5 Runtime] (already comes with Win 7)&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=22 .Net 3.5sp1 Runtime] (already comes with Win 7)&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=17851 .Net 4 Runtime]&lt;br /&gt;
&lt;br /&gt;
[http://code.google.com/p/onetimexi/downloads/detail?name=MySQL.rar&amp;amp;can=2&amp;amp;q= SQL Developer Package]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
==== MySql ====&lt;br /&gt;
&lt;br /&gt;
Choose Typical Installation&lt;br /&gt;
&lt;br /&gt;
After the main installation, select Launch the MySQL Instance Configuration Wizard&lt;br /&gt;
&lt;br /&gt;
Select Detailed Configuration&lt;br /&gt;
&lt;br /&gt;
Select Developer Machine&lt;br /&gt;
&lt;br /&gt;
Select Multifunctional Database&lt;br /&gt;
&lt;br /&gt;
Standard Installation Directory&lt;br /&gt;
&lt;br /&gt;
Select Manual Setting and 1000 Concurrent connections&lt;br /&gt;
&lt;br /&gt;
Select Enable TCP/IP Networking, Port Number 3306, and Enable Strict Mode&lt;br /&gt;
&lt;br /&gt;
Select Best Support for Multilingualism&lt;br /&gt;
&lt;br /&gt;
Select Install as Windows Service, Launch the MySQL Server automatically, and Include Bin Directory in Windows PATH.&lt;br /&gt;
&lt;br /&gt;
Select Modify Security Settings, and enter a new password twice. Write down the MySQL password.&lt;br /&gt;
(Make sure to make a password and DO NOT LEAVE BLANK.)&lt;br /&gt;
Select Next, Execute, then Finish&lt;br /&gt;
&lt;br /&gt;
==== Navicat Lite ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options.&lt;br /&gt;
&lt;br /&gt;
==== Visual Studio 2010 ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options. You may be forced to restart (sometimes twice) during the installation.&lt;br /&gt;
&lt;br /&gt;
==== Tortoise SVN ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options. You can skip the step to reboot since we'll reboot once everything else is installed.&lt;br /&gt;
&lt;br /&gt;
==== Visual C++ Redistributable Runtime 2010 ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options.&lt;br /&gt;
&lt;br /&gt;
==== .Net 3.5, 3.5 SP1, and 4.0 ====&lt;br /&gt;
&lt;br /&gt;
Use default installation options.&lt;br /&gt;
&lt;br /&gt;
==== SQL Developer Package ====&lt;br /&gt;
&lt;br /&gt;
Don't lose it, as we'll come back to it later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point everything should be installed that needs to be and you can restart your PC to finalize them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downloading the Server Source Code ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will use Tortoise SVN to download the latest SVN source code for the server.'''&lt;br /&gt;
&lt;br /&gt;
Open Windows Explorer (right click the start button and choose Windows Explorer)&lt;br /&gt;
&lt;br /&gt;
Right click on any folder select SVN Checkout&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;URL of repository&amp;quot; put in the following url: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://onetimexi.googlecode.com/svn/trunk/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the &amp;quot;Checkout directory&amp;quot; to &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;C:\dsp.&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Click OK.&lt;br /&gt;
&lt;br /&gt;
Wait for the download to finish.&lt;br /&gt;
&lt;br /&gt;
Click OK to close Tortoise SVN.&lt;br /&gt;
&lt;br /&gt;
Close windows explorer&lt;br /&gt;
&lt;br /&gt;
At this point you have downloaded all of the source code for the latest version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the Database ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will use the data that you downloaded to build a database in MySQL.'''&lt;br /&gt;
&lt;br /&gt;
==== Using a command script ====&lt;br /&gt;
&lt;br /&gt;
If you follow this step, you may skip the next one. &lt;br /&gt;
&lt;br /&gt;
Paste the following into notepad and save it as DSP_Import.cmd in your dsp\sql folder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
@ECHO OFF&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM ====== THis script will drop the DB specificed, then create the DB  =========&lt;br /&gt;
REM ====== specified, and then load the DS tables into the DB. This     =========&lt;br /&gt;
REM ====== file needs to be run from within the \dsp\sql folder (same   =========&lt;br /&gt;
REM ====== folder with all the .sql files. Please edit as needed. By    =========&lt;br /&gt;
REM ====== default it WILL DROP the standard dspdb DB, loosing all      =========&lt;br /&gt;
REM ====== accounts and characters. If this is not desired, then update =========&lt;br /&gt;
REM ====== the file to load the new DB into a new DB name.              =========&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM ======                                                              =========&lt;br /&gt;
REM ======                     by Thrydwolf   11/5/2011                 =========&lt;br /&gt;
REM ====== Updated with status on the last step by bluekirby0 3/30/2012 =========&lt;br /&gt;
REM ======                                                              =========&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ECHO Creating Database dspdb&lt;br /&gt;
REM ================================================&lt;br /&gt;
REM ====== Update &amp;quot;-p&amp;quot; with MySQL password =========&lt;br /&gt;
REM ====== Update dspdb with MySQL Databse =========&lt;br /&gt;
REM ================================================&lt;br /&gt;
mysqladmin -h localhost -u root -proot DROP dspdb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ECHO Creating Database dspdb&lt;br /&gt;
REM ================================================&lt;br /&gt;
REM ====== Update &amp;quot;-p&amp;quot; with MySQL password =========&lt;br /&gt;
REM ====== Update dspdb with MySQL Databse =========&lt;br /&gt;
REM ================================================&lt;br /&gt;
mysqladmin -h localhost -u root -proot CREATE dspdb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ECHO Loading dspdb with tables&lt;br /&gt;
REM ================================================&lt;br /&gt;
REM ====== Update &amp;quot;-p&amp;quot; with MySQL password =========&lt;br /&gt;
REM ====== Update dspdb with MySQL Databse =========&lt;br /&gt;
REM ================================================&lt;br /&gt;
FOR %%X IN (*.sql) DO ECHO Importing %%X &amp;amp; mysql dspdb -h localhost -u root -proot &amp;lt; %%X&lt;br /&gt;
&lt;br /&gt;
ECHO Finished!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At a minimum you will need to change -proot in the script to where root is your mysql root password. If your password is 'foo' then you would use -pfoo instead.&lt;br /&gt;
&lt;br /&gt;
You can use this script any time the svn is updated, but it will drop the table and thus delete all your player data. You may want to make manual changes instead unless you are using it purely as a test server.&lt;br /&gt;
&lt;br /&gt;
==== Using Navicat ====&lt;br /&gt;
&lt;br /&gt;
This is the more hands-on approach, and being comfortable doing it this way may make it easier to update individual tables later without having to learn the mysql command-line interface.&lt;br /&gt;
&lt;br /&gt;
Open Navicat&lt;br /&gt;
&lt;br /&gt;
Click Connection (or File, New Connection)&lt;br /&gt;
&lt;br /&gt;
Connection name: DarkStar&lt;br /&gt;
&lt;br /&gt;
Host Name/IP: localhost&lt;br /&gt;
&lt;br /&gt;
Port: 3306&lt;br /&gt;
&lt;br /&gt;
User Name: root&lt;br /&gt;
&lt;br /&gt;
Password: Enter the password you wrote down during the mySQL installation.&lt;br /&gt;
&lt;br /&gt;
Check Save Password&lt;br /&gt;
&lt;br /&gt;
Click OK&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the connections pane double click DarkStar&lt;br /&gt;
&lt;br /&gt;
Right click on DarkStar and select New Database...&lt;br /&gt;
&lt;br /&gt;
Name it dspdb&lt;br /&gt;
&lt;br /&gt;
Use the Default character set&lt;br /&gt;
&lt;br /&gt;
Select OK.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Double click dspdb&lt;br /&gt;
&lt;br /&gt;
Right click on dspdb and select Execute SQL File...&lt;br /&gt;
&lt;br /&gt;
Browse to C:\dsp\sql and select abilities.sql&lt;br /&gt;
&lt;br /&gt;
Click Start&lt;br /&gt;
&lt;br /&gt;
Continue this process for each file in the folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have an issue with the triggers.sql file then follow this step. If not, proceed to the next step (IP address for the map server):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Navicat Open accounts table&lt;br /&gt;
&lt;br /&gt;
Click File, Design Table&lt;br /&gt;
&lt;br /&gt;
Click the Triggers tab&lt;br /&gt;
&lt;br /&gt;
There should a line already listed with account_delete in the Name field&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If not:&lt;br /&gt;
&lt;br /&gt;
click Add Trigger&lt;br /&gt;
&lt;br /&gt;
Name column should be account_delete&lt;br /&gt;
&lt;br /&gt;
Fires column should be Before&lt;br /&gt;
&lt;br /&gt;
Check the box in the Delete column&lt;br /&gt;
&lt;br /&gt;
In the definition box below add the following code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BEGIN&lt;br /&gt;
   DELETE FROM `accounts_banned` WHERE `accid` = OLD.id;&lt;br /&gt;
   DELETE FROM `chars` WHERE `accid` = OLD.id;&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select Save and then close the table.&lt;br /&gt;
&lt;br /&gt;
Open the chars table&lt;br /&gt;
&lt;br /&gt;
Click File, Design Table&lt;br /&gt;
&lt;br /&gt;
Click the Triggers tab&lt;br /&gt;
&lt;br /&gt;
There should already be a line listed with char_delete in the name field.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If not:&lt;br /&gt;
&lt;br /&gt;
click Add Trigger&lt;br /&gt;
&lt;br /&gt;
Name column should be char_delete&lt;br /&gt;
&lt;br /&gt;
Fires column should be Before&lt;br /&gt;
&lt;br /&gt;
Check the box in the Delete column&lt;br /&gt;
&lt;br /&gt;
In the definition box below add the following code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BEGIN&lt;br /&gt;
   DELETE FROM `char_exp` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_jobs` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_equip` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_effects` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_look` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_stats` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_skills` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_titles` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_inventory` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_vars` WHERE `charid` = OLD.charid;&lt;br /&gt;
   DELETE FROM `char_bazaar_msg` WHERE `charid` = OLD.charid;&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select Save and then close the table.&lt;br /&gt;
&lt;br /&gt;
Note: Leave Navicat open for the next section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Configure the ZoneIP for the Map Server ====&lt;br /&gt;
&lt;br /&gt;
Now you need to determine what IP address that will be used for the Map Server, then update MySQL with it.&lt;br /&gt;
&lt;br /&gt;
Most devs &amp;amp; enthusiasts will not have a separate map server, but will run both map server and login server on the same PC. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Determine what IP address will be used for the map server.&lt;br /&gt;
&lt;br /&gt;
If the server will be public, then use your external IP in the next step.&lt;br /&gt;
&lt;br /&gt;
If the server will be internal and you want it available on other PCs in your internal network, use the internal network IP (192.168.x.x) in the next step.&lt;br /&gt;
&lt;br /&gt;
If you only plan to run the client and the server on the same PC, you can use the localhost address (127.0.0.1) in the next step.&lt;br /&gt;
&lt;br /&gt;
Calculate the new form from the IP address.&lt;br /&gt;
&lt;br /&gt;
The IP must be entered in different form, so first we must calculate the new form. Use the formula below or [http://www.allredroster.com/iptodec.htm This Handy Site] to calculate it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Formula = 1st Octet + 2nd Octet * 256 + 3rd Octet *256 (squared) + 4th Octet * 256 (cubed)&lt;br /&gt;
&lt;br /&gt;
Example: 127.0.0.1 = 127 + 0 + 0 + 1*256(cubed) = 16777343&lt;br /&gt;
&lt;br /&gt;
Example: 192.168.1.102 = 192 + 168*256 + 1*256(squared) + 102*256(cubed) = 1711384768&lt;br /&gt;
&lt;br /&gt;
Example: 67.41.45.115 = 67 + 41*256 + 45*256(squared) + 115*256(cubed) = 1932339523&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Navicat double click on the table dspdb and expand&lt;br /&gt;
&lt;br /&gt;
Click on Query&lt;br /&gt;
&lt;br /&gt;
Right click and select New Query&lt;br /&gt;
&lt;br /&gt;
Add the following code into the empty space, inserting the value calculated above. The value in the code below (16777343) would be used if only running the client from the same PC as the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BEGIN&lt;br /&gt;
    UPDATE zone_settings SET zoneip = '16777343';&lt;br /&gt;
END&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select Run. &amp;quot;256 queries should be successful!&amp;quot; should be the result.&lt;br /&gt;
&lt;br /&gt;
I recommend you save the Query in case you need to run it again later after updating the server.&lt;br /&gt;
&lt;br /&gt;
Close Navicat.&lt;br /&gt;
&lt;br /&gt;
=== Building the Servers ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will be building the Dark Star servers.'''&lt;br /&gt;
&lt;br /&gt;
Dark Star uses 3 separate servers. A Login server, a Map/Game server, and an optional Search/Auction House server. Using the ZoneIP mentioned earlier, every map could run on its own server at a different IP address. If you have 4 computers each computer could run different areas, as long as they were all connected to the same MySQL database server.&lt;br /&gt;
&lt;br /&gt;
==== Installing the MySQL Development Files ====&lt;br /&gt;
&lt;br /&gt;
Extract the MySQL development package we downloaded earlier.&lt;br /&gt;
&lt;br /&gt;
Copy the MySQL folder that was extracted. There should be a &amp;quot;mysql&amp;quot; folder inside with many files.&lt;br /&gt;
&lt;br /&gt;
Paste that MySQL into either&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
32bit windows: C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
64bit windows: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Afterwords the folder structure should be ...Microsoft SDKs\Windows\v7.0A\Include\MySQL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Build the Login Server ====&lt;br /&gt;
&lt;br /&gt;
Open Visual Studio&lt;br /&gt;
&lt;br /&gt;
Click File, Open, Project/Solution (or Ctrl+Shift+O)&lt;br /&gt;
&lt;br /&gt;
Navigate to C:\dsp\win32\DSConnect-Server&lt;br /&gt;
&lt;br /&gt;
Select DSConnect-server.sln (usually the first one)&lt;br /&gt;
&lt;br /&gt;
It may take a few minutes to load files.&lt;br /&gt;
&lt;br /&gt;
Click Debug then Build Server (or F7, or Ctrl+Shift+B)&lt;br /&gt;
&lt;br /&gt;
Building will take a few minutes.&lt;br /&gt;
&lt;br /&gt;
Once complete, validate that there are no Errors listed in the summary line at the bottom. It should look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there are any SQL errors it is probably caused by the SQL dev package was extracted to the wrong folder.&lt;br /&gt;
&lt;br /&gt;
If there is a #include error, change that #include to say #include &amp;lt;mysql/mysql.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Build the Map Server ====&lt;br /&gt;
&lt;br /&gt;
Click File, Open, Project/Solution (or Ctrl+Shift+O)&lt;br /&gt;
&lt;br /&gt;
Navigate to C:\dsp\win32\DSGame-Server&lt;br /&gt;
&lt;br /&gt;
Select DSGame-server.sln (usually the first one)&lt;br /&gt;
&lt;br /&gt;
It may take a few minutes to load files.&lt;br /&gt;
&lt;br /&gt;
Click Debug then Build Server (or F7, or Ctrl+Shift+B)&lt;br /&gt;
&lt;br /&gt;
Building will take a few minutes.&lt;br /&gt;
&lt;br /&gt;
Once complete, validate that there are no Errors listed in the summary line at the bottom. It should look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there are any SQL errors it is probably caused by the SQL dev package was extracted to the wrong folder.&lt;br /&gt;
&lt;br /&gt;
If there is a #include error, change that #include to say #include &amp;lt;mysql/mysql.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Building the Optional Search Server ====&lt;br /&gt;
&lt;br /&gt;
Navigate to C:\dsp\win32\DSSearch-server&lt;br /&gt;
&lt;br /&gt;
Select DSSearch-server.sln (usually the first one)&lt;br /&gt;
&lt;br /&gt;
It may take a few minutes to load files.&lt;br /&gt;
&lt;br /&gt;
Click Debug then Build Server (or F7, or Ctrl+Shift+B)&lt;br /&gt;
&lt;br /&gt;
Building will take a few minutes.&lt;br /&gt;
&lt;br /&gt;
Once complete, validate that there are no Errors listed in the summary line at the bottom. It should look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there are any SQL errors it is probably caused by the SQL dev package was extracted to the wrong folder.&lt;br /&gt;
&lt;br /&gt;
If there is a #include error, change that #include to say #include &amp;lt;mysql/mysql.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== When all of the Servers are built ====&lt;br /&gt;
&lt;br /&gt;
Verify in the C:\dsp directory that the servers you built are there: &lt;br /&gt;
&lt;br /&gt;
DSConnect-server.exe for the Login Server&lt;br /&gt;
&lt;br /&gt;
DSGame-server.exe for the Map Server&lt;br /&gt;
&lt;br /&gt;
DSSearch-server.exe for the Search Server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Servers ===&lt;br /&gt;
&lt;br /&gt;
'''Now you will configure the Login Server and Map Server to connect to the MySQL database.'''&lt;br /&gt;
&lt;br /&gt;
Do not mess with any other settings in these files unless you know what they are for and what they do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Login Server Settings ====&lt;br /&gt;
&lt;br /&gt;
In windows explorer navigate to c:\dsp\conf&lt;br /&gt;
&lt;br /&gt;
Open login_darkstar.conf in a text editer (notepad)&lt;br /&gt;
&lt;br /&gt;
Scroll down to the bottom and validate/update the following lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql_host: 127.0.0.1&lt;br /&gt;
mysql_port: 3306&lt;br /&gt;
mysql_login: root&lt;br /&gt;
mysql_password: root &amp;lt;-- change this to your password you wrote down during the MySQL install&lt;br /&gt;
mysql_database: dspdb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Map Server Settings ====&lt;br /&gt;
&lt;br /&gt;
In windows explorer navigate to c:\dsp\conf&lt;br /&gt;
&lt;br /&gt;
Open map_darkstar.conf in a text editer (notepad)&lt;br /&gt;
&lt;br /&gt;
Scroll down to the bottom and validate/update the following lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql_host: 127.0.0.1&lt;br /&gt;
mysql_port: 3306&lt;br /&gt;
mysql_login: root&lt;br /&gt;
mysql_password: root &amp;lt;-- change this to your password you wrote down during the MySQL install&lt;br /&gt;
mysql_database: dspdb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Search Server Settings ====&lt;br /&gt;
&lt;br /&gt;
In windows explorer navigate to c:\dsp\conf&lt;br /&gt;
&lt;br /&gt;
Open search_server.conf in a text editer (notepad)&lt;br /&gt;
&lt;br /&gt;
Scroll down to the bottom and validate/update the following lines:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql_host: 127.0.0.1&lt;br /&gt;
mysql_port: 3306&lt;br /&gt;
mysql_login: root&lt;br /&gt;
mysql_password: root &amp;lt;-- change this to your password you wrote down during the MySQL install&lt;br /&gt;
mysql_database: dspdb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point we have configured the servers to connect to the SQL database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Starting the Servers ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will launch our new servers.'''&lt;br /&gt;
&lt;br /&gt;
Navigate to c:\dsp&lt;br /&gt;
&lt;br /&gt;
Run DSConnect-server.exe as Admin&lt;br /&gt;
&lt;br /&gt;
Run DSGame-server.exe as Admin&lt;br /&gt;
&lt;br /&gt;
(Optional) Run DSSearch-server.exe as Admin&lt;br /&gt;
&lt;br /&gt;
At this point if your servers fail to load, you probably missed a step. Go back through the steps and try to find out what you missed. It may also be helpful to look at the log files located in c:\dsp\log.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Forward Ports to Allow Others to Join (&amp;amp; Firewall) ===&lt;br /&gt;
&lt;br /&gt;
'''In this section we will provide the port numbers that need to be forwarded to the server. This is only needed to allow people outside your local intranet to join your server.'''&lt;br /&gt;
&lt;br /&gt;
In your router and firewall the following ports need to be opened/forwarded to your server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
54230&lt;br /&gt;
54231&lt;br /&gt;
54001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still having trouble, disable any firewall software completely for testing. This includes the Windows firewall that comes on all modern Windows systems, which can be found in the Control Panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing &amp;amp; Setting up the DS Server on Linux ==&lt;br /&gt;
&lt;br /&gt;
To be filled in as I find a reliable way of building newer revisions on linux systems.&lt;br /&gt;
&lt;br /&gt;
== Credits ==&lt;br /&gt;
The original windows guide was written by thrydwolf, and has been formatted for the wiki and updated by bluekirby0&lt;/div&gt;</summary>
		<author><name>JonLimitless</name></author>	</entry>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=Troubleshooting_Guide&amp;diff=715</id>
		<title>Troubleshooting Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=Troubleshooting_Guide&amp;diff=715"/>
				<updated>2012-04-16T08:55:14Z</updated>
		
		<summary type="html">&lt;p&gt;JonLimitless: /* FFXI-3322 error/ffxi-boot or mXI error 10093 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problems with the Server ==&lt;br /&gt;
=== Why can I not connect to my own server? ===&lt;br /&gt;
&lt;br /&gt;
First, check and see if you can connect on the same machine using SERVIP = 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
If you can connect using that, but not using your LAN or Internet IP address, you probably need to forward ports on your router. The ports you need to open are TCP: 54230 54231 54001 54002 UDP 54230&lt;br /&gt;
&lt;br /&gt;
=== &amp;quot;Client cannot receive packet or Key is invalid&amp;quot; in DSGame-server ===&lt;br /&gt;
&lt;br /&gt;
Make certain that your zoneip is set correctly in the database. See [[Building the Server#Configure the ZoneIP for the Map Server]] for more information on how to set this properly.&lt;br /&gt;
&lt;br /&gt;
=== Cannot find msvc100.dll error ===&lt;br /&gt;
&lt;br /&gt;
This missing file may be solved by downloading and installing one of the appropriate links below&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=5555 Microsoft Visual C++ 2010 Redistributable Package (x86)]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=14632 Microsoft Visual C++ 2010 Redistributable Package (x64)]&lt;br /&gt;
&lt;br /&gt;
== Problems with the Client ==&lt;br /&gt;
&lt;br /&gt;
=== Any time I attack a monster or cast a spell, the game crashes! ===&lt;br /&gt;
&lt;br /&gt;
The March 26th 2012 patch broke compatibility with Darkstar servers until revision 940. If your server is revision 940 or higher, you will need to update your client using the PlayOnline Viewer's File Repair option. If you updated, but your play server is not using revision 940 or higher, encourage the maintainer to update whenever possible.&lt;br /&gt;
&lt;br /&gt;
=== PlayOnline Viewer crashes on Windows Vista/7 ===&lt;br /&gt;
&lt;br /&gt;
You need to install the Vista compatible PlayOnline viewer from [http://www.playonline.com/ff11us/download/media/vista01.html The PlayOnline Site] and not from the discs. You will still install the game and expansions as normal using the discs.&lt;br /&gt;
&lt;br /&gt;
=== POL-1160 Error when trying to update/repair ===&lt;br /&gt;
&lt;br /&gt;
Check that PlayOnline viewer is allowed through your firewall and router. If you have PeerGuardian, PeerBlock, or similar programs, you may want to check and see if those are blocking responses from the PlayOnline servers.&lt;br /&gt;
&lt;br /&gt;
=== FFXI-3322 error/ffxi-boot or mXI error 10093 ===&lt;br /&gt;
This is known as a 'anything can be wrong' error. Note: If the first solution does not fix this, it could be anything on your computer causing this error.&lt;br /&gt;
&lt;br /&gt;
Make certain that you have copied the data folder at PlayOnline\SquareEnix\PlayOnlineViewer\data to the Final Fantasy XI directory at PlayOnline\SquareEnix\FINAL FANTASY XI.&lt;br /&gt;
Afterwards you should have the directory PlayOnline\SquareEnix\FINAL FANTASY XI\data&lt;br /&gt;
&lt;br /&gt;
If that is not your problem and your still getting the Accept Fail 10093 error. Make sure your drivers are installed and updated. Check through all of the other solutions on this page such as the distribution packages are downloaded. &lt;br /&gt;
&lt;br /&gt;
After all these fixes and its still not working. You may need to reinstall FFXI on your computer to help solve your problem.&lt;/div&gt;</summary>
		<author><name>JonLimitless</name></author>	</entry>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=Troubleshooting_Guide&amp;diff=714</id>
		<title>Troubleshooting Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=Troubleshooting_Guide&amp;diff=714"/>
				<updated>2012-04-16T08:49:25Z</updated>
		
		<summary type="html">&lt;p&gt;JonLimitless: /* FFXI-3322 error/ffxi-boot or mXI error 10093 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problems with the Server ==&lt;br /&gt;
=== Why can I not connect to my own server? ===&lt;br /&gt;
&lt;br /&gt;
First, check and see if you can connect on the same machine using SERVIP = 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
If you can connect using that, but not using your LAN or Internet IP address, you probably need to forward ports on your router. The ports you need to open are TCP: 54230 54231 54001 54002 UDP 54230&lt;br /&gt;
&lt;br /&gt;
=== &amp;quot;Client cannot receive packet or Key is invalid&amp;quot; in DSGame-server ===&lt;br /&gt;
&lt;br /&gt;
Make certain that your zoneip is set correctly in the database. See [[Building the Server#Configure the ZoneIP for the Map Server]] for more information on how to set this properly.&lt;br /&gt;
&lt;br /&gt;
=== Cannot find msvc100.dll error ===&lt;br /&gt;
&lt;br /&gt;
This missing file may be solved by downloading and installing one of the appropriate links below&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=5555 Microsoft Visual C++ 2010 Redistributable Package (x86)]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=14632 Microsoft Visual C++ 2010 Redistributable Package (x64)]&lt;br /&gt;
&lt;br /&gt;
== Problems with the Client ==&lt;br /&gt;
&lt;br /&gt;
=== Any time I attack a monster or cast a spell, the game crashes! ===&lt;br /&gt;
&lt;br /&gt;
The March 26th 2012 patch broke compatibility with Darkstar servers until revision 940. If your server is revision 940 or higher, you will need to update your client using the PlayOnline Viewer's File Repair option. If you updated, but your play server is not using revision 940 or higher, encourage the maintainer to update whenever possible.&lt;br /&gt;
&lt;br /&gt;
=== PlayOnline Viewer crashes on Windows Vista/7 ===&lt;br /&gt;
&lt;br /&gt;
You need to install the Vista compatible PlayOnline viewer from [http://www.playonline.com/ff11us/download/media/vista01.html The PlayOnline Site] and not from the discs. You will still install the game and expansions as normal using the discs.&lt;br /&gt;
&lt;br /&gt;
=== POL-1160 Error when trying to update/repair ===&lt;br /&gt;
&lt;br /&gt;
Check that PlayOnline viewer is allowed through your firewall and router. If you have PeerGuardian, PeerBlock, or similar programs, you may want to check and see if those are blocking responses from the PlayOnline servers.&lt;br /&gt;
&lt;br /&gt;
=== FFXI-3322 error/ffxi-boot or mXI error 10093 ===&lt;br /&gt;
This is known as a 'anything can be wrong' error. Note: If the first solution does not fix this, it could be anything on your computer causing this error.&lt;br /&gt;
&lt;br /&gt;
Make certain that you have copied the data folder at PlayOnline\SquareEnix\PlayOnlineViewer\data to the Final Fantasy XI directory at PlayOnline\SquareEnix\FINAL FANTASY XI.&lt;br /&gt;
Afterwards you should have the directory PlayOnline\SquareEnix\FINAL FANTASY XI\data&lt;br /&gt;
&lt;br /&gt;
If that is not your problem and your still getting the Accept Fail 10093 error. Make sure your drivers are installed and updated. Check through all of the other solutions on this page such as the distribution packages are downloaded. Try using a dll or driver search/fix that will scan your computer for missing files.&lt;br /&gt;
&lt;br /&gt;
After all these fixes and its still not working. You may need to reinstall FFXI on your computer to help solve your problem.&lt;/div&gt;</summary>
		<author><name>JonLimitless</name></author>	</entry>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=Troubleshooting_Guide&amp;diff=713</id>
		<title>Troubleshooting Guide</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=Troubleshooting_Guide&amp;diff=713"/>
				<updated>2012-04-16T08:48:58Z</updated>
		
		<summary type="html">&lt;p&gt;JonLimitless: /* FFXI-3322 error/ffxi-boot or mXI error 10093 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problems with the Server ==&lt;br /&gt;
=== Why can I not connect to my own server? ===&lt;br /&gt;
&lt;br /&gt;
First, check and see if you can connect on the same machine using SERVIP = 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
If you can connect using that, but not using your LAN or Internet IP address, you probably need to forward ports on your router. The ports you need to open are TCP: 54230 54231 54001 54002 UDP 54230&lt;br /&gt;
&lt;br /&gt;
=== &amp;quot;Client cannot receive packet or Key is invalid&amp;quot; in DSGame-server ===&lt;br /&gt;
&lt;br /&gt;
Make certain that your zoneip is set correctly in the database. See [[Building the Server#Configure the ZoneIP for the Map Server]] for more information on how to set this properly.&lt;br /&gt;
&lt;br /&gt;
=== Cannot find msvc100.dll error ===&lt;br /&gt;
&lt;br /&gt;
This missing file may be solved by downloading and installing one of the appropriate links below&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=5555 Microsoft Visual C++ 2010 Redistributable Package (x86)]&lt;br /&gt;
&lt;br /&gt;
[http://www.microsoft.com/download/en/details.aspx?id=14632 Microsoft Visual C++ 2010 Redistributable Package (x64)]&lt;br /&gt;
&lt;br /&gt;
== Problems with the Client ==&lt;br /&gt;
&lt;br /&gt;
=== Any time I attack a monster or cast a spell, the game crashes! ===&lt;br /&gt;
&lt;br /&gt;
The March 26th 2012 patch broke compatibility with Darkstar servers until revision 940. If your server is revision 940 or higher, you will need to update your client using the PlayOnline Viewer's File Repair option. If you updated, but your play server is not using revision 940 or higher, encourage the maintainer to update whenever possible.&lt;br /&gt;
&lt;br /&gt;
=== PlayOnline Viewer crashes on Windows Vista/7 ===&lt;br /&gt;
&lt;br /&gt;
You need to install the Vista compatible PlayOnline viewer from [http://www.playonline.com/ff11us/download/media/vista01.html The PlayOnline Site] and not from the discs. You will still install the game and expansions as normal using the discs.&lt;br /&gt;
&lt;br /&gt;
=== POL-1160 Error when trying to update/repair ===&lt;br /&gt;
&lt;br /&gt;
Check that PlayOnline viewer is allowed through your firewall and router. If you have PeerGuardian, PeerBlock, or similar programs, you may want to check and see if those are blocking responses from the PlayOnline servers.&lt;br /&gt;
&lt;br /&gt;
=== FFXI-3322 error/ffxi-boot or mXI error 10093 ===&lt;br /&gt;
This is known as a 'anything can be wrong' error. Note: If the first solution does not fix this, it could be anything on your computer causing this error.&lt;br /&gt;
&lt;br /&gt;
1. Make certain that you have copied the data folder at PlayOnline\SquareEnix\PlayOnlineViewer\data to the Final Fantasy XI directory at PlayOnline\SquareEnix\FINAL FANTASY XI.&lt;br /&gt;
Afterwards you should have the directory PlayOnline\SquareEnix\FINAL FANTASY XI\data&lt;br /&gt;
2. If that is not your problem and your still getting the Accept Fail 10093 error. Make sure your drivers are installed and updated. Check through all of the other solutions on this page such as the distribution packages are downloaded. Try using a dll or driver search/fix that will scan your computer for missing files.&lt;br /&gt;
3. After all these fixes and its still not working. You may need to reinstall FFXI on your computer to help solve your problem.&lt;/div&gt;</summary>
		<author><name>JonLimitless</name></author>	</entry>

	</feed>