ok lets start with the first step to host an a3 server ..but first of all .. this guide is for one who is setting up the server for the first time so u have to compermise with some facts to get 100% sucess.. (eg the pass used) u can change it later but believe me .. i faced many problems in making my own server run but i m sure if u ll follow all the steps i mentioned here u ll get ur server running in an hour...
u need some files ...
1. a3 client...
2. a3server files
3. sql 2000
4. sql 2000 servicepack3
here are the links for all files
1. a3 client
http://files.filefront.com/A3ThriceS.../fileinfo.html
(password= sunrise)
2. a3server files(2.02)
http://hosted.filefront.com/protbhai (search for the files in the page.. i ll upload it after making the guide..)
3. sql 2000
http://www.microsoft.com/downloads/d...displaylang=en
4. sql 2000 service pack3
http://download.microsoft.com/downlo...2/sql2ksp3.exe
5. A hex editor
http://www.chmaas.handshake.de/delph...vi32/xvi32.htm
(better search for ultraedit32 using google)
first of all install sql 2000 & its service pack...
i m trying to explain the process in brief..
double click the sql 2000 setup file(SQLEVAL.exe)
extract it to c:\ or watever location u want...
then go to the location & double click the setup.exe
press next> next> next>
then put the name as "sa" (without ")..
next> yes> next> next> next>
select the "use the local system account"..
next>
select the mixed mode & put password as ley (u can choose any other password too but u have to change some file`s content if u choose other password..so i recommend u to choose this password for the first time & after u become an expert use ur own password)
next> next>Finish.
now double click the sql 2000 service pack3 & just click next next (dont change any selection)..
now restart ur computer once..
second step is to place the server files to the correct place
extract the a3server files to e:\
be sure that the location must be as e:\server\a3server\..... not e:\a3server\server\a3server\...
now extract the files provided to put in C:\ drive (obiously extract it to c:\)
now go to start>program files>Microsoft SQL server>Service Manager
& click start server..
be sure to remember the server name there coz u ll need the name later..
now go to start>all programs>Microsoft SQL Server>Enterprise Manager
now go to microsoft SQL Servers>SQL server group>(local)(Windows NT)>Databases
now u have to create some new databases here by going to action>new database..
1.ASD
2.Character
3.itemstorage
4.Clan
5.A3ItemEvent
6.FriendDB
7.HSDB
after making these all databases u have to restore some databases by this process
Go to Tools>Restore Database
select A3ItemEvent
choose "from devices" option
click on select devices
click add
click "..."
provide the location e:\server\A3server\Part3SQL\A3ItemEvent
now press ok ok ok ok
now u have to do the same process with all these databases
1.A3ItemEvent (done)
2.ASD
3.clan
4.FriendDB
5.HSDB
6.itemstorage
7.character
now go to security tab (found in left hand side)
press Action>New Login
this is the process where many do a mistake ..... do this process carefully]
put
name = a3serial
Password = dkdlxpawprhdnpc
Database = A3ItemEvent
select the database access tab & tick the a3ItemEvent, then tick the db_owner
& press ok
it will ask for the password again put dkdlxpawprhdnpc & press ok
(some times it gives an error "Login serial already exists" .. if u too get this error message then go to Databases>A3itemEvent>users & delete the a3serial there... then again do the process mentioned above)
the next step is ODBC
the next process is to make a .reg file..
use the ODBC.reg file provided in the server file`s "important files & shortcuts"
or
copy the text which i m giving below
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI]
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\A3Friend]
"Driver"="C:\\WINDOWS\\System32\\SQLSRV32.dll"
"Server"="A"
"Database"="FriendDB"
"LastUser"="sa"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\A3RcvResult]
"Driver"="C:\\WINDOWS\\System32\\SQLSRV32.dll"
"Server"="A"
"Database"="A3Itemevent"
"LastUser"="sa"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\A3SerialList]
"Driver"="C:\\WINDOWS\\System32\\SQLSRV32.dll"
"Server"="A"
"Database"="A3Itemevent"
"LastUser"="sa"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\EventA3]
"Driver"="C:\\WINDOWS\\System32\\SQLSRV32.dll"
"Server"="A"
"Database"="ASD"
"LastUser"="sa"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\FriendDB]
"Driver"="C:\\WINDOWS\\System32\\SQLSRV32.dll"
"Server"="A"
"Database"="FriendDB"
"LastUser"="sa"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\HSDB]
"Driver"="C:\\WINDOWS\\System32\\SQLSRV32.dll"
"Server"="A"
"Database"="HSDB"
"LastUser"="sa"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\LETTERDB]
"Driver"="C:\\WINDOWS\\System32\\SQLSRV32.dll"
"Server"="A"
"Database"="FriendDB"
"LastUser"="sa"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\LocalServer]
"Description"=""
"Server"="A"
"Trusted_connection"=""
"UseProcForPrepare"="Yes"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\Login202]
"Driver"="C:\\WINDOWS\\System32\\SQLSRV32.dll"
"Server"="A"
"Database"="ASD"
"LastUser"="sa"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\NEWASD]
"Driver"="C:\\WINDOWS\\System32\\SQLSRV32.dll"
"Server"="A"
"Database"="ASD"
"LastUser"="sa"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources]
"LocalServer"="SQL Server"
"A3RcvResult"="SQL Server"
"A3SerialList"="SQL Server"
"FriendDB"="SQL Server"
"NEWASD"="SQL Server"
"Login202"="SQL Server"
"LETTERDB"="SQL Server"
"EventA3"="SQL Server"
"A3Friend"="SQL Server"
"HSDB"="SQL Server"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC File DSN]
"DefaultDSNDir"="C:\\Program Files\\Common Files\\ODBC\\Data Sources"
now go to start>run
type notepad
press enter
now paste the text in it & save it on the desktop by putting its name as ODBC.reg
now go to your desktop & just double click on the ODBC.reg file... press yes ok ..
& u r almost done
the server is now ready to run....
but its only for ur own pc... if u want it to run on lan then u have to change some .ini files...i ll tell later that which files to edit to run it in lan or net...
1 more thing u have to edit some .ini files to make ur char a GM char...
first go to e:\server\a3server\Battleserver\Gminfo.ini & delete protbhai & put ur Id(i ll tell later that how to make id.. so just put the id u wanna create for ur char)
do the same in e:\server\a3server\Mainserver\Gminfo.ini & e:\server\a3server\Zoneserver\Gminfo.ini
your server is ready to run...
but first u have to make ur id
for this i m giving u a text
put id inplace of xxx & password in place of yyy(copy full text given below)
INSERT INTO account (c_id, c_sheadera, c_sheaderb, c_sheaderc, c_headera, c_headerb, c_headerc, d_cdate, c_status, m_body) VALUES ('xxx','yyy','yyy','yyy','yyy','yyy','yyy','1/1/2003 12:00:00','A','yyy')
copy this full text & go to start>all programs>Microsoft SQL Server>Query Analyzer
put ur server name
Login ID : sa
Password : ley
now paste the copied text in the notepad provided there
select ASD in the selection window shown(there will be a selection box at the top of the window, by default its written Master.. change it to ASD)....
then press ctrl+f5 then press f5
your account is created
create some accounts for ur friends too :P
ok .................
now time to start the server
go to e:\server\a3server\a3links
the first time u start the server u ll need to run the exe file in the folder named "first time"
double click the second sourtcut in that folder too (it makes 1000 folders in Accounts folder)
come back to e:\server\a3server\a3links & run all the shoutrcuts carefully
first run the 01account.. press click...press click.. start
same in 02Character & 03ItemStorage
then double click login server....
now double click login agent... wait till it run properly....( u may have to try 3-4 times coz it hangs some times)
run zoneagent ,mainserver, accountserver, zoneserver & battleserver ( u may have to wait for zoneserver to run as it takes some time to run)
last process is to hex ur ARA3`s A3client ip to your ip or 127.0.0.1 if u wanna play it alone in ur pc (remember, use the ip u used erlier i.e.if u used ur wan ip then put ur wan ip & if u used 127.0.0.1 then use this one only)
hope u know how to hex A3client`s ip....
for those who dont know i m giving some tips..
open the hex editor... open the location of ur A3client.exe
if u r using the client that i mentioned above then press ctrl+f & search for 208.98.56.21 & replace it with your ip or 127.0.0.1 watever u r using.. remember that dont use less letters then it was used erlier..
e.g. if u r replacing 208.98.56.21 with 127.0.0.1 then u have to put 3 spaces after 127.0.0.1 coz 208.98.56.21 is a 12 digit ip & 127.0.0.1 is a 9 digit ip .. u have to balance both ... hope u can understand wat i wanna tell :P
now u can connect to ur server through ur ARA3 client
Enjoy!!!!!
thanx to Legendry , Akruz and all.....
special thanx to my friend Ravi (charlie_ravi)
Sorry for my bad English :)
-Prot
EDIT:-
1 thing i forgot to mention that how to host it in lan or net...
just u have to do is to edit some ip address....
Put ur lan or wan ip in place of 127.0.0.1 in these places
1.e:\server\a3server\Loginagent\LoginAgent.ini
;//////////////////////////////////////////////////////////////////////////////////////////
;//GameServer ȯ°æ º¯¼ö ¼³Á¤ ÆÄÀÏ
;//////////////////////////////////////////////////////////////////////////////////////////
[VersionInfo]
HighVersion = 300 ;//CurrVersion <= HighVersion
LowVersion = 136 ;//CurrVersion > LowVersion
[LoginAgent] ;//tcp
IPADDR = 127.0.0.1
PORT = 3550
2.e:\server\a3server\Loginserver\Loginserver.ini
[STARTUP]
APPNAME=LOGINSERVER
ZONEAGENTLISTENPORT=3200
LOGINAGENTLISTENPORT=3210
STARTID=3
[LOGINASD]
COUNT=1
IP0=127.0.0.1
PORT0=7770
3.e:\server\a3server\Zoneagent\ZoneAgent.ini
[STARTUP]
APPNAME=ZONEAGENT
SERVERID=0
AGENTID=0
#ZONE AGENT ³o¸Ì«ü¥»¾÷ªº IP
IP=127.0.0.1
PORT=3300
be sure .. dont change any other ip instead of above mentioned 3 ips...
Enjoy!!!!