<?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=Jay.thirteen</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=Jay.thirteen"/>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php/Special:Contributions/Jay.thirteen"/>
		<updated>2026-04-27T01:18:12Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=Configuring_Your_Client&amp;diff=6916</id>
		<title>Configuring Your Client</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=Configuring_Your_Client&amp;diff=6916"/>
				<updated>2012-10-23T18:47:25Z</updated>
		
		<summary type="html">&lt;p&gt;Jay.thirteen: /* mXI Boot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is NOT intended for people with buddypass, or illegally downloaded versions of FFXI. We have the bought and paid for the game, and will never recommend that you use anything different. If you somehow managed to get it to work using the buddypass or an illegal version of FFXI then keep it to yourself. Discussion of obtaining software through illegal means is not tolerated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing FFXI ==&lt;br /&gt;
&lt;br /&gt;
'''In this section we will install and update Final Fantasy XI from Retail Discs.'''&lt;br /&gt;
&lt;br /&gt;
For users on Windows Vista or newer, download the Vista PlayOnline client from the [http://www.playonline.com/ff11us/download/media/vista01.html PlayOnline Support Site] and install that instead of the version on the retail discs.&lt;br /&gt;
&lt;br /&gt;
Install PlayOnline, Final Fantasy XI, and then ALL of the expansions up to and including Wings of the Goddess. You do not need to have the mini-addon packs installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run PlayOnline and let it update.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Close PlayOnline viewer.&lt;br /&gt;
&lt;br /&gt;
Download the following file: [http://kile.dyndns.info:8765/bak/PXI-FFXI-UpdatePatch.zip FFXI Patch]&lt;br /&gt;
&lt;br /&gt;
Extract its contents to your PlayOnline/Squareenix/Final Fantasy XI directory.&lt;br /&gt;
&lt;br /&gt;
Run PlayOnline again and choose For PlayOnline Members&lt;br /&gt;
&lt;br /&gt;
At the Add Member page enter anything you like for the Member Name.&lt;br /&gt;
&lt;br /&gt;
Enter ABCD1234 for the PlayOnline ID&lt;br /&gt;
&lt;br /&gt;
Select Register, Yes, OK.&lt;br /&gt;
&lt;br /&gt;
Select Check Files on the left of the screen.&lt;br /&gt;
&lt;br /&gt;
=== Updating FFXI via the PlayOnline Viewer ===&lt;br /&gt;
&lt;br /&gt;
This option is safer and is the one supported by Dark Star Project&lt;br /&gt;
&lt;br /&gt;
Go back to your Check Files screen and select Final Fantasy XI from the drop-down menu.&lt;br /&gt;
&lt;br /&gt;
After 7 hours or so of updating, FFXI should be up to date.&lt;br /&gt;
&lt;br /&gt;
Close the PlayOnline Viewer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Updating FFXI via manual patch download ===&lt;br /&gt;
&lt;br /&gt;
This option isn't supported by Dark Star Project, but may be faster than updating through PlayOnline&lt;br /&gt;
&lt;br /&gt;
If you don't have something that can extract RAR archives, download and install [http://www.7-zip.org/download.html 7zip].&lt;br /&gt;
&lt;br /&gt;
Close the PlayOnline Viewer&lt;br /&gt;
&lt;br /&gt;
Go to [http://tehkrizz.net/FFXI/downloads.php tehkrizz's FFXI Patch Download Page]&lt;br /&gt;
&lt;br /&gt;
Download the MOV, ROM, and Sound archives.&lt;br /&gt;
Extract the files into your FFXI install folder. Usually C:\Program Files (x86)\PlayOnline\SquareEnix\FINAL FANTASY XI on 64-bit Windows or C:\Program Files\PlayOnline\SquareEnix\FINAL FANTASY XI on 32-bit Windows&lt;br /&gt;
Extract the contents of the FFXI Patch you downloaded earlier into the FFXI install folder again, overwriting all files. If you skip this step, your client probably will not update properly.&lt;br /&gt;
&lt;br /&gt;
Run the PlayOnline Viewer&lt;br /&gt;
&lt;br /&gt;
Select Check Files on the left of the screen.&lt;br /&gt;
&lt;br /&gt;
Click on PlayOnline Viewer then select Final Fantasy XI from the drop down, then Check Files. If there have been any updates since the archives posted on tehkrizz's site, this may take an hour or more.&lt;br /&gt;
&lt;br /&gt;
Close the PlayOnline Viewer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== After updating ===&lt;br /&gt;
&lt;br /&gt;
Copy the data folder at PlayOnline\SquareEnix\PlayOnlineViewer\data to the Final Fantasy XI directory at PlayOnline\SquareEnix\FINAL FANTASY XI.&lt;br /&gt;
&lt;br /&gt;
Afterwards you should have the directory PlayOnline\SquareEnix\FINAL FANTASY XI\data.&lt;br /&gt;
&lt;br /&gt;
== Setting up the Launcher ==&lt;br /&gt;
&lt;br /&gt;
'''In this section you will configure FFXI to connect to a DarkStar Server'''&lt;br /&gt;
&lt;br /&gt;
You can use either FFXI-Boot or mXI to connect to a Dark Star server. mXI has more features, but is harder to configure. FFXI-Boot usually works with minimal configuration. Both can co-exist on your system, so if in doubt, try both!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FFXI-Boot ===&lt;br /&gt;
&lt;br /&gt;
Download [http://www.filedropper.com/ffxi-boot FFXI-Boot]&lt;br /&gt;
&lt;br /&gt;
Extract the FFXI-Boot files (ffxi-boot.exe &amp;amp; ffxi-boot.ini) into the PlayOnline\SquareEnix\FINAL FANTASY XI directory.&lt;br /&gt;
&lt;br /&gt;
Open ffxi-boot.ini in a text editor.&lt;br /&gt;
&lt;br /&gt;
Change SERVIP to the IP address of the DarkStar server you wish to use. See the [[DarkStar Servers]] page for this info, or put in 127.0.0.1 if you are hosting your own server on the same system.&lt;br /&gt;
&lt;br /&gt;
An example ffxi-boot.ini is below.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SERVIP = 67.41.45.115&lt;br /&gt;
AUTOLOGIN = 1&lt;br /&gt;
USERNAME    = username&lt;br /&gt;
PASSWORD = password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== mXI Boot ===&lt;br /&gt;
&lt;br /&gt;
If you prefer the MXI FFXI Loader, this should be compatible with DarkStar servers as well. mXI windower features (light luggage, distance, etc.) can potentially cause you problems while playing. If you have issues, this is the first thing to disable. Windower itself seams to work fine on Dark Star.&lt;br /&gt;
&lt;br /&gt;
Download [http://46.38.63.32/downloads.php mXI 0.91_Darkstar version]&lt;br /&gt;
&lt;br /&gt;
Extract the contents of the archive into the PlayOnline\SquareEnix\FINAL FANTASY XI directory.&lt;br /&gt;
&lt;br /&gt;
Open Client.ini in a text editor.&lt;br /&gt;
&lt;br /&gt;
Change SERVIP to the IP address of the DarkStar server you wish to use. See the [[DarkStar Servers]] page for this info, or put in 127.0.0.1 if you are hosting your own server on the same system.&lt;br /&gt;
&lt;br /&gt;
You will also need to set X_RES and Y_RES to the resolution your game will be running at or it will look streteched or squashed.&lt;br /&gt;
&lt;br /&gt;
'''If you plan to play on someone else's server, you MUST disable the Light Luggage plugin in scripts/init.txt or YOU WILL LIKELY BE BANNED. This plugin unnecessarily spams auto-sort on the server and can disrupt play for everyone.'''&lt;br /&gt;
&lt;br /&gt;
If you have any problems, set WINDOWERMODE to 2, which will disable all of the windower plugins. If it works, try disabling all of your windower plugins in scripts/init.txt and then re-enable them one at a time to determine which one is causing a crash. It may also help to DISABLE windowed mode the the FFXI configuration utility and/or extract mXI to a directory other than the PlayOnline\SquareEnix\FINAL FANTASY XI directory and run it from that location instead.&lt;br /&gt;
&lt;br /&gt;
An example Client.ini is below.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[SERVER]&lt;br /&gt;
SERVIP 		=  67.41.45.115&lt;br /&gt;
AUTOLOGIN  	=  1&lt;br /&gt;
USERNAME	=  username&lt;br /&gt;
PASSWORD	=  password&lt;br /&gt;
[CLIENT]&lt;br /&gt;
LANGUAGE 	= 1&lt;br /&gt;
## VERSION can be NA,EU or JP. This needs to reflect the POL version you have.&lt;br /&gt;
VERSION 	= NA&lt;br /&gt;
## MODE 0 = no windower, 1 = normal windower, 2 = windower light&lt;br /&gt;
WINDOWERMODE	= 1&lt;br /&gt;
X_RES 		= 1024&lt;br /&gt;
Y_RES 		= 768&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create an Account and Login ===&lt;br /&gt;
&lt;br /&gt;
Run ffxi-boot.exe or mXI.exe and choose option 2; Create a new account.&lt;br /&gt;
&lt;br /&gt;
The username and password should be at least 6 alphanumeric characters long.&lt;br /&gt;
&lt;br /&gt;
You can now save the username and password into the ffxi-boot.ini or Client.ini if you wish to use auto-login.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose option 1; Login using existing account&lt;br /&gt;
&lt;br /&gt;
Login with username and password.&lt;br /&gt;
&lt;br /&gt;
FFXI should load and be on the splash screen. Choose Accept.&lt;br /&gt;
&lt;br /&gt;
Create a Character, Select a Country, then choose Yes to Register and begin play.&lt;br /&gt;
&lt;br /&gt;
Select the newly created character then login.&lt;br /&gt;
&lt;br /&gt;
It should login all the way to the Country you selected.&lt;/div&gt;</summary>
		<author><name>Jay.thirteen</name></author>	</entry>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=Configuring_Your_Client&amp;diff=6915</id>
		<title>Configuring Your Client</title>
		<link rel="alternate" type="text/html" href="http://wiki.dspt.info/index.php?title=Configuring_Your_Client&amp;diff=6915"/>
				<updated>2012-10-23T18:41:54Z</updated>
		
		<summary type="html">&lt;p&gt;Jay.thirteen: /* mXI Boot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is NOT intended for people with buddypass, or illegally downloaded versions of FFXI. We have the bought and paid for the game, and will never recommend that you use anything different. If you somehow managed to get it to work using the buddypass or an illegal version of FFXI then keep it to yourself. Discussion of obtaining software through illegal means is not tolerated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing FFXI ==&lt;br /&gt;
&lt;br /&gt;
'''In this section we will install and update Final Fantasy XI from Retail Discs.'''&lt;br /&gt;
&lt;br /&gt;
For users on Windows Vista or newer, download the Vista PlayOnline client from the [http://www.playonline.com/ff11us/download/media/vista01.html PlayOnline Support Site] and install that instead of the version on the retail discs.&lt;br /&gt;
&lt;br /&gt;
Install PlayOnline, Final Fantasy XI, and then ALL of the expansions up to and including Wings of the Goddess. You do not need to have the mini-addon packs installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run PlayOnline and let it update.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Close PlayOnline viewer.&lt;br /&gt;
&lt;br /&gt;
Download the following file: [http://kile.dyndns.info:8765/bak/PXI-FFXI-UpdatePatch.zip FFXI Patch]&lt;br /&gt;
&lt;br /&gt;
Extract its contents to your PlayOnline/Squareenix/Final Fantasy XI directory.&lt;br /&gt;
&lt;br /&gt;
Run PlayOnline again and choose For PlayOnline Members&lt;br /&gt;
&lt;br /&gt;
At the Add Member page enter anything you like for the Member Name.&lt;br /&gt;
&lt;br /&gt;
Enter ABCD1234 for the PlayOnline ID&lt;br /&gt;
&lt;br /&gt;
Select Register, Yes, OK.&lt;br /&gt;
&lt;br /&gt;
Select Check Files on the left of the screen.&lt;br /&gt;
&lt;br /&gt;
=== Updating FFXI via the PlayOnline Viewer ===&lt;br /&gt;
&lt;br /&gt;
This option is safer and is the one supported by Dark Star Project&lt;br /&gt;
&lt;br /&gt;
Go back to your Check Files screen and select Final Fantasy XI from the drop-down menu.&lt;br /&gt;
&lt;br /&gt;
After 7 hours or so of updating, FFXI should be up to date.&lt;br /&gt;
&lt;br /&gt;
Close the PlayOnline Viewer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Updating FFXI via manual patch download ===&lt;br /&gt;
&lt;br /&gt;
This option isn't supported by Dark Star Project, but may be faster than updating through PlayOnline&lt;br /&gt;
&lt;br /&gt;
If you don't have something that can extract RAR archives, download and install [http://www.7-zip.org/download.html 7zip].&lt;br /&gt;
&lt;br /&gt;
Close the PlayOnline Viewer&lt;br /&gt;
&lt;br /&gt;
Go to [http://tehkrizz.net/FFXI/downloads.php tehkrizz's FFXI Patch Download Page]&lt;br /&gt;
&lt;br /&gt;
Download the MOV, ROM, and Sound archives.&lt;br /&gt;
Extract the files into your FFXI install folder. Usually C:\Program Files (x86)\PlayOnline\SquareEnix\FINAL FANTASY XI on 64-bit Windows or C:\Program Files\PlayOnline\SquareEnix\FINAL FANTASY XI on 32-bit Windows&lt;br /&gt;
Extract the contents of the FFXI Patch you downloaded earlier into the FFXI install folder again, overwriting all files. If you skip this step, your client probably will not update properly.&lt;br /&gt;
&lt;br /&gt;
Run the PlayOnline Viewer&lt;br /&gt;
&lt;br /&gt;
Select Check Files on the left of the screen.&lt;br /&gt;
&lt;br /&gt;
Click on PlayOnline Viewer then select Final Fantasy XI from the drop down, then Check Files. If there have been any updates since the archives posted on tehkrizz's site, this may take an hour or more.&lt;br /&gt;
&lt;br /&gt;
Close the PlayOnline Viewer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== After updating ===&lt;br /&gt;
&lt;br /&gt;
Copy the data folder at PlayOnline\SquareEnix\PlayOnlineViewer\data to the Final Fantasy XI directory at PlayOnline\SquareEnix\FINAL FANTASY XI.&lt;br /&gt;
&lt;br /&gt;
Afterwards you should have the directory PlayOnline\SquareEnix\FINAL FANTASY XI\data.&lt;br /&gt;
&lt;br /&gt;
== Setting up the Launcher ==&lt;br /&gt;
&lt;br /&gt;
'''In this section you will configure FFXI to connect to a DarkStar Server'''&lt;br /&gt;
&lt;br /&gt;
You can use either FFXI-Boot or mXI to connect to a Dark Star server. mXI has more features, but is harder to configure. FFXI-Boot usually works with minimal configuration. Both can co-exist on your system, so if in doubt, try both!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FFXI-Boot ===&lt;br /&gt;
&lt;br /&gt;
Download [http://www.filedropper.com/ffxi-boot FFXI-Boot]&lt;br /&gt;
&lt;br /&gt;
Extract the FFXI-Boot files (ffxi-boot.exe &amp;amp; ffxi-boot.ini) into the PlayOnline\SquareEnix\FINAL FANTASY XI directory.&lt;br /&gt;
&lt;br /&gt;
Open ffxi-boot.ini in a text editor.&lt;br /&gt;
&lt;br /&gt;
Change SERVIP to the IP address of the DarkStar server you wish to use. See the [[DarkStar Servers]] page for this info, or put in 127.0.0.1 if you are hosting your own server on the same system.&lt;br /&gt;
&lt;br /&gt;
An example ffxi-boot.ini is below.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SERVIP = 67.41.45.115&lt;br /&gt;
AUTOLOGIN = 1&lt;br /&gt;
USERNAME    = username&lt;br /&gt;
PASSWORD = password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== mXI Boot ===&lt;br /&gt;
&lt;br /&gt;
If you prefer the MXI FFXI Loader, this should be compatible with DarkStar servers as well. mXI windower features (light luggage, distance, etc.) can potentially cause you problems while playing. If you have issues, this is the first thing to disable. Windower itself seams to work fine on Dark Star.&lt;br /&gt;
&lt;br /&gt;
Download [http://46.38.63.32/downloads.php mXI 0.91_Darkstar version]&lt;br /&gt;
&lt;br /&gt;
Extract the contents of the archive into the PlayOnline\SquareEnix\FINAL FANTASY XI directory.&lt;br /&gt;
&lt;br /&gt;
Open Client.ini in a text editor.&lt;br /&gt;
&lt;br /&gt;
Change SERVIP to the IP address of the DarkStar server you wish to use. See the [[DarkStar Servers]] page for this info, or put in 127.0.0.1 if you are hosting your own server on the same system.&lt;br /&gt;
&lt;br /&gt;
You will also need to set X_RES and Y_RES to the resolution your game will be running at or it will look streteched or squashed.&lt;br /&gt;
&lt;br /&gt;
'''If you plan to play on someone else's server, you MUST disable the Light Luggage plugin in scripts/init.txt or YOU WILL LIKELY BE BANNED. This plugin unnecessarily spams auto-sort on the server and can disrupt play for everyone.'''&lt;br /&gt;
&lt;br /&gt;
If you have any problems, set WINDOWERMODE to 2, which will disable all of the windower plugins. If it works, try disabling all of your windower plugins in scripts/init.txt and then re-enable them one at a time to determine which one is causing a crash. It may also help to DISABLE windowed mode the the FFXI configuration utility or extract mXI to a directory other than the PlayOnline\SquareEnix\FINAL FANTASY XI directory and run it from that location instead.&lt;br /&gt;
&lt;br /&gt;
An example Client.ini is below.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[SERVER]&lt;br /&gt;
SERVIP 		=  67.41.45.115&lt;br /&gt;
AUTOLOGIN  	=  1&lt;br /&gt;
USERNAME	=  username&lt;br /&gt;
PASSWORD	=  password&lt;br /&gt;
[CLIENT]&lt;br /&gt;
LANGUAGE 	= 1&lt;br /&gt;
## VERSION can be NA,EU or JP. This needs to reflect the POL version you have.&lt;br /&gt;
VERSION 	= NA&lt;br /&gt;
## MODE 0 = no windower, 1 = normal windower, 2 = windower light&lt;br /&gt;
WINDOWERMODE	= 1&lt;br /&gt;
X_RES 		= 1024&lt;br /&gt;
Y_RES 		= 768&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create an Account and Login ===&lt;br /&gt;
&lt;br /&gt;
Run ffxi-boot.exe or mXI.exe and choose option 2; Create a new account.&lt;br /&gt;
&lt;br /&gt;
The username and password should be at least 6 alphanumeric characters long.&lt;br /&gt;
&lt;br /&gt;
You can now save the username and password into the ffxi-boot.ini or Client.ini if you wish to use auto-login.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose option 1; Login using existing account&lt;br /&gt;
&lt;br /&gt;
Login with username and password.&lt;br /&gt;
&lt;br /&gt;
FFXI should load and be on the splash screen. Choose Accept.&lt;br /&gt;
&lt;br /&gt;
Create a Character, Select a Country, then choose Yes to Register and begin play.&lt;br /&gt;
&lt;br /&gt;
Select the newly created character then login.&lt;br /&gt;
&lt;br /&gt;
It should login all the way to the Country you selected.&lt;/div&gt;</summary>
		<author><name>Jay.thirteen</name></author>	</entry>

	<entry>
		<id>http://wiki.dspt.info/index.php?title=Building_the_Server&amp;diff=6899</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=6899"/>
				<updated>2012-10-10T22:11:22Z</updated>
		
		<summary type="html">&lt;p&gt;Jay.thirteen: /* Visual Studio 2010 */&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://www.microsoft.com/en-us/download/details.aspx?id=23691 Visual Studio Service Pack 1]&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;
=== 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 the default installation options. You may be forced to restart (sometimes twice) during the installation.&lt;br /&gt;
You should have Visual Studio Service Pack 1 (requiring another restart). It depends on your OS.&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 bat 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.bat 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 =============================================================================&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 all .sql tables from its run dir to =========&lt;br /&gt;
REM ====== the the DB.                                                  =========&lt;br /&gt;
REM ======                                                              =========&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 ====== Update -p with MySQL password. If you password is 'foo',     =========&lt;br /&gt;
REM ====== then change '-pMYSQLPASS' to '-pfoo' (3 places).             =========&lt;br /&gt;
REM ======                                                              =========&lt;br /&gt;
REM ====== If you want to use a different database name, change 'dspdb' =========&lt;br /&gt;
REM ====== with a database name of your choosing.                       =========&lt;br /&gt;
REM ======                                                              =========&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM ======                                                              =========&lt;br /&gt;
REM ====== by Thrydwolf 9/8/2012                                        =========&lt;br /&gt;
REM ====== Updated with status by bluekirby0 3/30/2012                  =========&lt;br /&gt;
REM ====== Updated by Thrydwolf 9/18/2012                               =========&lt;br /&gt;
REM ======                                                              =========&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
REM =============================================================================&lt;br /&gt;
&lt;br /&gt;
ECHO Creating Database dspdb&lt;br /&gt;
mysqladmin -h localhost -u root -pMYSQLPASS DROP dspdb&lt;br /&gt;
&lt;br /&gt;
ECHO Creating Database dspdb&lt;br /&gt;
mysqladmin -h localhost -u root -pMYSQLPASS CREATE dspdb&lt;br /&gt;
&lt;br /&gt;
ECHO Loading dspdb with tables&lt;br /&gt;
REM FOR %%X IN (*.sql) DO mysql dspdb -h localhost -u root -pMYSQLPASS &amp;lt; %%X&lt;br /&gt;
FOR %%X IN (*.sql) DO ECHO Importing %%X &amp;amp; mysql dspdb -h localhost -u root -pMYSQLPASS &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;
   DELETE FROM `accounts_banned` WHERE `accid` = OLD.id;&lt;br /&gt;
   DELETE FROM `chars` WHERE `accid` = OLD.id;&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;
   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;
&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;
==== 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. If you use the site you must put the IP in reverse order to get the required value (i.e. instead of 127.0.0.1 which gives 2130706433 put in 1.0.0.127 to get 16777343).&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;
    UPDATE zone_settings SET zoneip = '16777343';&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;
TCP Ports:&lt;br /&gt;
54230&lt;br /&gt;
54231&lt;br /&gt;
54001&lt;br /&gt;
54002&lt;br /&gt;
&lt;br /&gt;
UDP Port:&lt;br /&gt;
54230&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;
== Installing &amp;amp; Setting up the DS Server on Linux ==&lt;br /&gt;
&lt;br /&gt;
The server is known to build in recent [http://www.debian.org/ Debian] GNU/Linux, [http://www.ubuntu.com/ Ubuntu], and [http://fedoraproject.org/ Fedora] versions, and is tested regularly against all three platforms. It is also known to build on [http://www.gentoo.org/ Gentoo].&lt;br /&gt;
&lt;br /&gt;
Fedora-specific instructions may be found on the page: [[Fedora Linux Setup]]&lt;br /&gt;
&lt;br /&gt;
Generic build instructions for most POSIX (GNU/Linux, and possibly FreeBSD, NetBSD, UNIX or even OSX with some additional work) systems follow. Some knowledge of how to compile software on your distribution is assumed. You may find it helpful to reference the Windows guide above if something is unclear.&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites: ===&lt;br /&gt;
A compiler with C++11 support. Currently tested with GCC and G++, and requires a minimum version of 4.6&lt;br /&gt;
&lt;br /&gt;
Subversion to retrieve the source code.&lt;br /&gt;
&lt;br /&gt;
patch to apply the search server patch (should be installed with subversion if your system lacks it)&lt;br /&gt;
&lt;br /&gt;
Autotools (automake autoconf m4sh) and pkg-config to generate the configure script and Makefile&lt;br /&gt;
&lt;br /&gt;
mysql server&lt;br /&gt;
&lt;br /&gt;
mysql client library (select the developer version if your distro has one)&lt;br /&gt;
&lt;br /&gt;
lua library version 5.1 or higher (select the developer version if your distro has one)&lt;br /&gt;
&lt;br /&gt;
If you plan to run from a console, you may also wish to install &amp;quot;screen&amp;quot; as there is no daemon mode for the servers yet.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the Source Code ===&lt;br /&gt;
&lt;br /&gt;
Once you have everything mentioned above installed, grab the latest source from the repository via the command:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;svn co http://onetimexi.googlecode.com/svn/trunk/ dsp/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, find the latest version of the search server patch at [http://forums.dspt.info/viewtopic.php?f=11&amp;amp;t=38 The Darkstar Project Forums]. Extract the diff file into the dsp folder and apply it using the command:&lt;br /&gt;
 patch -p0 -i dssearchv6.diff&lt;br /&gt;
&lt;br /&gt;
=== Compiling ===&lt;br /&gt;
&lt;br /&gt;
Next is a typical autotools build. Run the autogen script, followed by configure, and then make:&lt;br /&gt;
 sh autogen.sh&lt;br /&gt;
 ./configure --enable-debug&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
You can choose not to configure with debug enabled, but there is very little potential gain in this and it prevents many useful break statements from triggering. The Makefile also has separate targets to build each server named &amp;quot;dsconnect&amp;quot; &amp;quot;dsgame&amp;quot; and &amp;quot;dssearch&amp;quot; but will build all 3 if none are specified.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Compiling on 64-bit ===&lt;br /&gt;
These steps were done on Ubuntu 12.04.&lt;br /&gt;
First you need to install the relevant packages:&lt;br /&gt;
 sudo apt-get install libc-dev-i386&lt;br /&gt;
 sudo apt-get install g++-multilib&lt;br /&gt;
 sudo apt-get install libmysqlclient-dev:i386&lt;br /&gt;
 sudo apt-get install liblua5.1-dev:i386 &lt;br /&gt;
&lt;br /&gt;
You'll note that these are 32-bit packages which are needed to build in 32-bit mode. &lt;br /&gt;
If you already have the 64-bit mysql client libraries already installed, you have to uninstall them. Sadly the 32-bit version and 64-bit version can not coexist. NOTE: This is not advised if you have applications relying on the sql libraries!&lt;br /&gt;
In order to get rid of it you can do:&lt;br /&gt;
 sudo apt-get remove --purge libmysqlclient-dev&lt;br /&gt;
&lt;br /&gt;
At this point you should be all set up but there is one more thing that needs to be addressed. The source is looking for a liblua.so library which didn't exist from the liblua5.1 installation. To manually set it up do:&lt;br /&gt;
 cd /usr/lib/i386-linux-gnu/&lt;br /&gt;
 sudo ln -s liblua5.1.so liblua.so&lt;br /&gt;
&lt;br /&gt;
Now the environment is set up so you can run the configure script. We have to force it into 32-bit mode using CPPFLAGS and CXXFLAGS:&lt;br /&gt;
 CPPFLAGS=-m32 CXXFLAGS=-m32 ./configure&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
At this point it should complete the build and you can continue on to the next section.&lt;br /&gt;
&lt;br /&gt;
=== Setting Up the Database ===&lt;br /&gt;
&lt;br /&gt;
If you do not know your mysql root password, the default on most systems is blank. It is a good idea to change this for security reasons, as your mysql root user has full permissions on all databases. The first time you run the mysql client, you should be prompted to change the password. After doing so, you will want to create a user specifically for dealing with the darkstar server database. Run mysql as follows:&lt;br /&gt;
 mysql -u root -p&lt;br /&gt;
&lt;br /&gt;
Enter your root password at the prompt. Next, create a new user as follows:&lt;br /&gt;
 CREATE USER 'darkstar'@'localhost' IDENTIFIED BY 'password';&lt;br /&gt;
&lt;br /&gt;
Substitute &amp;quot;password&amp;quot; with a password of your choice. Next, we want to create a database, and set up our new user with permissions to work with it.&lt;br /&gt;
 CREATE DATABASE dspdb;&lt;br /&gt;
 USE dspdb;&lt;br /&gt;
 GRANT ALL PRIVILEGES ON dspdb.* TO 'darkstar'@'localhost';&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
This will make it to where your new user can do anything necessary, but can only connect from localhost, so even if your password is compromised, it will be difficult to mess with the database remotely. If you need to be able to access the database remotely (like if the database is stored on a separate machine from the server), change the configuration according to the host that will be accessing the database.&lt;br /&gt;
&lt;br /&gt;
Now, you need to populate the database.&lt;br /&gt;
 cd sql&lt;br /&gt;
 for f in *.sql&lt;br /&gt;
   do&lt;br /&gt;
      echo -n &amp;quot;Importing $f into the database...&amp;quot;&lt;br /&gt;
      mysql dspdb -u darkstar -ppassword &amp;lt; $f &amp;amp;&amp;amp; echo &amp;quot;Success&amp;quot;      &lt;br /&gt;
   done&lt;br /&gt;
 cd ..&lt;br /&gt;
&lt;br /&gt;
To set up your ZoneIP, see the related windows section [[Building_the_Server#Configure_the_ZoneIP_for_the_Map_Server]] above for how to calculate it, and then run:&lt;br /&gt;
 mysql -u darkstar -ppassword&lt;br /&gt;
 USE dspdb;&lt;br /&gt;
 UPDATE zone_settings SET zoneip = '16777343';&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
replacing &amp;quot;16777343&amp;quot; with the value you determined in your calculation. You should see a message that 256 changes have occured after the update command.&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Server ===&lt;br /&gt;
Before running your new servers, you will need to update the configuration files to tell it how to talk to the database. You will need to update the files in the conf/ sub-folder named &amp;quot;login_darkstar.conf&amp;quot; &amp;quot;map_darkstar.conf&amp;quot; and &amp;quot;search_server.conf&amp;quot; at a minimum. Find the mysql settings in each and change as appropriate, using the new user, password and database you created earlier.&lt;br /&gt;
&lt;br /&gt;
You may also wish to browse through the various configuration files for any settings that might be of interest to you, but more details on server customization can be found at [[Customizing Your Server]].&lt;br /&gt;
&lt;br /&gt;
=== Starting the Servers ===&lt;br /&gt;
You may now start your new servers. If you are using a desktop environment, you may wish to open 3 separate terminals and run each server in a separate one to monitor them efficiently. Otherwise, you will want to run them in screen sessions as follows:&lt;br /&gt;
 screen -d -m -S dsconnect ./dsconnect&lt;br /&gt;
 screen -d -m -S dsgame ./dsgame&lt;br /&gt;
 screen -d -m -S dssearch ./dssearch&lt;br /&gt;
&lt;br /&gt;
This will start and auto-detach all three servers, assigning them meaningful names to make it easy to reattach later by using the commands:&lt;br /&gt;
 screen -r dsconnect&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
 screen -r dsgame&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
 screen -r dssearch&lt;br /&gt;
&lt;br /&gt;
to monitor a given server. Once you've attached to a screen, you can detach by first pressing &amp;quot;ctrl+a&amp;quot; and then &amp;quot;d&amp;quot;. There are many other useful ways to use screen, so do whatever suits yoru preference.&lt;br /&gt;
&lt;br /&gt;
Your server is now up-and-running, and a client should be able to connect as long as there are no obvious errors on any of the server screens. If the search server is having issues, it is not vital for basic game functionality, but you will be unable to use search functions or the auction house. If you have run into any major issues, contact bluekirby0 (the current maintainer of the linux port as of the time of this writing) on IRC #darkstar@irc.rizon.net or in the [http://forums.dspt.info forums].&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>Jay.thirteen</name></author>	</entry>

	</feed>