A3 Guides

The following guide is quoted from RageZone. Credits to cvrdheeraj.

202/205 Server Guide

Thanks to Legendary and Akaruz for their Initial Guides

Akaruz Guide
http://forum.ragezone.com/showthread.php?t=97099

Legendary Guide
http://forum.ragezone.com/showthread.php?t=150577

Things that you need:

Server Files
Recommended Server Files:

Filefront:
http://files.filefront.com/My+A3+Ser.../fileinfo.html
Rapidshare
http://rapidshare.com/files/11856947...Server_205.rar

Additional Server Files can be found at:
http://forum.ragezone.com/showthread.php?t=244175

Client
Client is uploaded into 5 parts:

http://files.filefront.com/ARA3PARTI.../fileinfo.html
http://files.filefront.com/ARA3PARTI.../fileinfo.html
http://files.filefront.com/ARA3PARTI.../fileinfo.html
http://files.filefront.com/ARA3PARTI.../fileinfo.html
http://files.filefront.com/ARA3PARTI.../fileinfo.html

Microsoft SQL Server 2000
http://www.microsoft.com/downloads/d...displaylang=en

Microsoft SQL Server Service Pack 4 Update
http://www.microsoft.com/downloads/d...displaylang=en

Setting Up server:
I have writen the Guide in accordance with the Recommended server files keeping in mind the

default configs. If you use any other server files, you need to edit some basic stuff first!

First of all, we must install the SQL Server 2000.
SQL Server is Structured Query Language, which is a database software which stores the data

pertaining to our A3 Server. Hence we need to configure it to store our Server's data!
The Installation of SQL Server is depicted in the following Screenshots!

http://img405.imageshack.us/img405/6231/SQLInstall1.jpg

Select Local Computer if you are installing databases on the same computer.

http://img405.imageshack.us/img405/3290/SQlInstall2.jpg

Select Create a new instance

http://img405.imageshack.us/img405/8384/SQLInstall3.jpg

Provide your Personal Information

http://img405.imageshack.us/img405/778/SQLInstall4.jpg

Accept the License Agreement

http://img405.imageshack.us/img405/4564/SQLInstall5.jpg

Select Server and Client Tools

http://img405.imageshack.us/img405/8435/SQLInstall6.jpg

Check the Default Instance and Click Next

http://img405.imageshack.us/img405/4500/SQLInstall7.jpg

Select the Installation type

http://img405.imageshack.us/img405/4383/SQLInstall8.jpg

Check the "Use Local System Account button"

http://img405.imageshack.us/img405/2634/SQLInstall9.jpg

Now this is the Important Step! Select Mixed Authentication Mode and now Enter User ID as

"sa" and password is your wish.

http://img405.imageshack.us/img405/5...LInstall10.jpg

Once you have finished installing SQL Server, you need to start the SQL Server Service. To

Start this,

Start -> Programs -> Microsoft SQL Server -> Service Manger

Service Manager will look like this:
http://img405.imageshack.us/img405/7...iceManager.jpg

Under Services, select SQL Server and then click on the Play(Start) button to start the

service. Once the service is started, a Play button is indication near the server figure!

Now, you need to Create and Restore databases! To do this,
Start -> Programs -> Microsoft SQL Server -> Enterprise Manager

Now in the Enterprise Manager, on the left hand side of Hirarichal window, Expand the Local

System key, and then expand the Databases Key

Now right click on the Right hand side of the Enterprise Manager and select "New Database"
The following window will Pop up!

http://img250.imageshack.us/img250/5793/CreateDB.jpg

In the Database Name, just enter ASD and click OK. A new Database is now created.
In the same way, you need to create a total of

ASD (already created)

Character

A3ItemEvent

Itemstorage

FriendDB

HSDB

Once you have finished creating the databases, you need to restore the databases!
To restore the databases, follow the following steps!

Right Click on the ASD Database. Select "All tasks" and then select "Restore Database"
A Window Pops up! Now Select "From Device". Click on "Select Devices" and then click on

"Add". The following window pops up!

http://img250.imageshack.us/img250/9...ectRestore.jpg
Now You need to select the ASD.bak file which is present in the Database Backup folder of

the A3Server files.

In the same way, you need to restore all the databases

ASD - ASD.bak (already restored)

Character - Character.bak

A3ItemEvent - A3Itemevent.bak

Itemstorage - Itemstorage.bak

FriendDB - FriendDB.bak

HSDB - HSDB.bak

After finishing the database restore, you need to create a new user login!

On the Left pane of the Enterprise Manager, Expand Security Key and then click on Logins.
Right click in the right pane and click on New Login. The procedure is depicted in the

screenshot

http://img250.imageshack.us/img250/6217/newlogin.jpg

In the Name, type "a3serial". Select SQL Authentication and in the Password box, type the

following password "dkdlxpawprhdnpc". The procedure is depiced in the Screenshot

http://img250.imageshack.us/img250/256/newlogin1.jpg
Once done, click on the Database Access Tab.
Tick Pemit Check Box for the A3ItemEvent Database. In the bottom window check mark

"db_owner". The procedure is depicted in the screenshot.

http://img250.imageshack.us/img250/8931/newlogin2.jpg

Now, You need to create ODBC for your SQL Server Databases. This can be done either by

adding values directly to Registry or by adding them manually. Inorder to Make it easy, I

have included a ODBCSetup.reg file in A3Server folder of the Server Files. Just execute it

and all the ODBC are created automatically.

You need to install Borland Database Engine, which is needed by the server to connect to the

SQL Database. This Library is present in the Server Files (BDESetup)

Open the Drive C folder in the A3 Server Files that you have downloaded. Copy all those

directories and paste them in C:\ root directory.

Starting The server.

Inorder to start a server, you need to run different servers in a particular order!

Setting Up 7770, 8880, 9990
In the Server Files, you will find 3 folders named 7770, 8880 and 9990. They have 2 files in

them!

Now, Open the tbd.ini present in the 7770 folder
It contains the following;

Quote:
[main]
title=A3ASD 7770
keepalive=10

[dbconnection]
00=h3db00 A3ASD sa sa account 0 1
01=h3db01 A3ASD sa sa account 0 1
02=h3db02 A3ASD sa sa account 0 1
03=h3db03 A3ASD sa sa account 0 1
04=h3db04 A3ASD sa sa account 0 1
05=h3db05 A3ASD sa sa account 0 1
06=h3db06 A3ASD sa sa account 0 1
07=h3db07 A3ASD sa sa account 0 1
08=h3db08 A3ASD sa sa account 0 1
09=h3db09 A3ASD sa sa account 0 1
10=h3db10 A3ASD sa sa account 0 1
11=h3db11 A3ASD sa sa account 0 1
12=h3db12 A3ASD sa sa account 0 1
13=h3db13 A3ASD sa sa account 0 1
14=h3db14 A3ASD sa sa account 0 1
15=h3db15 A3ASD sa sa account 0 1

[socket]
port=7770
Here, you need to replace the second "sa" with the sa password that you have provided during

your SQL Server Installation. Suppose you have provided the password "mania", then the

config file should look like this!

Quote:
[main]
title=A3ASD 7770
keepalive=10

[dbconnection]
00=h3db00 A3ASD sa mania account 0 1
01=h3db01 A3ASD sa mania account 0 1
02=h3db02 A3ASD sa mania account 0 1
03=h3db03 A3ASD sa mania account 0 1
04=h3db04 A3ASD sa mania account 0 1
05=h3db05 A3ASD sa mania account 0 1
06=h3db06 A3ASD sa mania account 0 1
07=h3db07 A3ASD sa mania account 0 1
08=h3db08 A3ASD sa mania account 0 1
09=h3db09 A3ASD sa mania account 0 1
10=h3db10 A3ASD sa mania account 0 1
11=h3db11 A3ASD sa mania account 0 1
12=h3db12 A3ASD sa mania account 0 1
13=h3db13 A3ASD sa mania account 0 1
14=h3db14 A3ASD sa mania account 0 1
15=h3db15 A3ASD sa mania account 0 1

[socket]
port=7770
Save the File and then run the asd_mw_v1.1.19a.exe which is present in the same folder.
Click on the first "Click" button. Then click on second "Click" button and then click on

"Start". If you have followed the guide fine, it will look as follows

http://img250.imageshack.us/img250/7111/ASD.jpg

Similarly you need to edit tbd.ini files in both 8880 as well as 9990.

7770 - Account
8880 - Character
9990 - Itemstorage
These servers are responsible to connect the Mainservers to the Database!

Open the Loginagent folder and then open the Loginagent.ini
It will be as follows
Quote:
;//////////////////
;GameServer ȯ°æ º¯¼ö ¼³Á¤ ÆÄÀÏ
;
////////////////////

[VersionInfo]

HighVersion = 600 ;CurrVersion <= HighVersion
LowVersion = 100 ;
CurrVersion > LowVersion

[LoginAgent] ;//tcp

IPADDR = 127.0.0.1 //ip wan o lans
PORT = 3550

IO_MODE = 1 ;// iocp = 1, block = -1

APPNAME = LOGINAGENT
AGENTID = 1

[LoginServer] ;//tcp

IPADDR = 127.0.0.1 //ip wan o lan
PORT = 3210

IO_MODE = -1 ;// iocp = 1, block = -1

[LOG_FILE] ;//log set

GS_LOGFILE_NAME = ./LogFile/gs_log
LC_LOGFILE_NAME = ./LogFile/lc_log
DB_LOGFILE_NAME = ./LogFile/db_log
MAINPROCESS_LOGFILE_NAME = ./LogFile/mp_log
In the place of 127.0.0.1, you need to replace your Internal IP or WAN IP. You need to make

changes in 2 places. Once you are done, just save the file and then run Loginagent.exe.
This may take some time to load depending on the Amount of RAM you are using!

Now go to the Loginserver Folder and open the Loginserver.ini
It will look as follows;
Quote:
[STARTUP]
APPNAME=LOGINSERVER
ZONEAGENTLISTENPORT=3200
LOGINAGENTLISTENPORT=3210s
STARTID=151959

[LOGINASD]
COUNT=1
IP0=127.0.0.1
PORT0=7770

[PAYASD]
COUNT=0
IP0=127.0.0.1
PORT0=3450

[SERVER_GROUP]
COUNT=1

ID0=0
NAME0=Mania
You need to change the first IP 127.0.0.1 to your Internal IP or WAN IP. You can change the

name "Mania" to any other name desired so that the name is displayed in the server select

window while logging into the game!
Save the File and then run Loginserver.exe

Now Open the Zoneagent folder and Open the Zoneagent.ini
It will look as follows
Quote:
[STARTUP]
APPNAME=ZONEAGENT
#¥Nªí²Ä´X²Õ,²Ä 5 ²Õ´N¶ñ 5
SERVERID=0
#¥Nªí³o²Õ²Ä´X? ZONE AGAIN, 0 ~ 3
AGENTID=0
#ZONE AGENT ³o¸Ì??¾÷ªº IP
IP=127.0.0.1
PORT=3300

[ZONESERVER]
#¥Nªí ZONE SERVER ªº¼Æ¶q
COUNT=3

#³o¬O©T©wªº*n³s¨ì ACCOUNT SERVER
ID0=255
IP0=127.0.0.1
PORT0=5589

#ZONE SERVER ?©w
#¥Nªí²Ä 1 ²Õ
ID1=0
IP1=127.0.0.1
PORT1=6689
#¥Nªí²Ä 2 ²Õ
ID2=1
IP2=127.0.0.1
PORT2=6999

#ID3=2
#IP3=127.0.0.1
#PORT3=6689

#ID4=3
#IP4=127.0.0.1
#PORT4=6999

#ID5=4
#IP5=127.0.0.1
#PORT5=6699

[LOGINSERVER]
#³o¬O©T©wªº*n³s¨ì LOGINSERVER §Ú?³o¸Ì¬O 211.105.139.79
IP=127.0.01
PORT=3200
Here, you need to change the First and the Last IP. The first IP should be replaced by your

External IP (www.whatismyip.com - the IP that you see there). The last IP should be replaced

by your Internal IP.
Save the file and then run the EnZa_v2.0.16a.exe.

Once the above 3 servers(Loginagent, Loginserver, Zoneagent) are run, they should look like

the following image:

http://img250.imageshack.us/img250/8224/LALSZA.jpg

If you check the Loginserver, it should show that Loginagent, Zoneagent and ASD are

connected. It will show numerically "1" depicting that they are connected!

Once done, Open the Mainserver folder and Open the SvrInfo.ini
It will look like this

Quote:
#Main Server Info.
[SvrInfo]
#?ªA¾¹²Õ»¼¼W,²Ä 1 ²Õ¬O 0
WorldIndex=23
#?ªA¾¹²Õ»¼¼W,¸òµÛÅÜ
WorldName=Mania

#Main Server information ( ?©w MAIN SERVER )
ThisServerIP=127.0.0.1
ThisServerPort=7789

#ASD Middlware Info. to connect
CharacDBServerNum=1
CharacDBIP=127.0.0.1
CharacDBPort=8880
StorageDBServerNum=1
StorageDBIP=127.0.0.1
StorageDBPort=9990

#WGS setting
WGSIP=127.0.0.1
WGSPORT=9017

#World Info.
ZoneServerNum=7
BattleServerID=1
#[SvrInfo]
#Game log receiver info.
#³o¬O©T©wªº*n³s¨ì LOG RECEIVER ³o¸Ì¬O 127.0.0.1
;GameLogServerIP=127.0.0.1
;GameLogServerPort=8000

#Map count
MaxMap=26

[MapZone]
Map0=0
Map1=0
Map2=0
Map3=0
Map4=0
Map5=0
Map6=0
Map7=0
Map8=0
Map9=0
Map10=0
Map11=0
Map12=0
Map13=0
Map14=0
Map15=0
Map16=0
Map17=0
Map18=0
Map19=0
Map20=0
Map21=0
Map22=0
Map23=1
Map24=0
Map25=0

[ODBC]
ODBCNAME=A3Friend
ODBCID=sa
ODBCPASS=sa

[Update Log Info]
ClanPath=C:\A3Server\Clan
LogPath=C:\A3Server\Clan\LOG

[Clan Web DB Info]
SourceName=ASD
UserName=sa
PassWd=sa

[ClanInfo]
;bInitNameTable=1
;nSaveClanLog=1

[HSDB]
ODBCNAME=HSDB
ODBCID=sa
ODBCPASS=sa
You need to edit "ODBCPASS=sa" and change it to the password that you have provided during

installation. Once you have finished editing, just run the Mainserver.exe

Now, Open the Accountserver Folder and open the SvrInfo.ini
It will look as follows
Quote:
#Account Server Info.
[SvrInfo]
ServerVersion=202

#Worlld Information
#«ö·Ó MAIN SERVER ªº CONFIG ÅܰÊ
WorldIndex=23
WorldName=Mania

#This Server Information ( ?©w ACCOUNT SERVER )
ThisServerID=255
ThisServerIP=127.0.0.1
ThisServerPort=5589

#MainServer Information ( ?©w MAIN SERVER)
MainServerIP=127.0.0.1
MainServerPort=7789

#Gate count ( ?©w ZONE AGENT ªº¼Æ¥Ø )
GateServerNum=1

#Account File DB Path
AccountRootPath=D:\A3server\Account

#DB ( comment temporarily )
AccntCharDBServer=A3GameCharDB
AccntCharDBLogin=sa
AccntCharDBPasswd=sa

  1. For monitoring service

UDPPort=9000
ServicePort=9500
You need to change "AccntCharDBServer=A3GameCharDB" as depicted above and change your SA

password in the third column in place of "sa". Then you need to change the AccountRootPath

to the location where you have extracted the A3Server Files. Suppose if you have extracted

in C: drive, then you need to make it "C:\A3Server\Account".
Save and Close the file and run the Accountserver.exe

Now, Open the Zoneserver folder and run the Zoneserver.exe. There is no much config required

for Zoneserver.

For the Battle Arena to work, you need to run the Battleserver.exe which is present in the

Battleserver folder.

Configuring the Client.

You need to first bypass the Updater of the A3 Client. To do that, you can download an

Updater Bypasser available here:

http://files.filefront.com/A3+Launch.../fileinfo.html

Once done, you need to HEX edit the A3Client.exe inorder to connect to your server.
In the A3 Server Files, there is a hex editor called "Xvi32" which is present in the Tools

folder. Open that A3Client.exe with hex editor.

Now, From the Menu, click on Search and then click on Find.
Select Text String and enter "setup.ini" and press OK.
On the right hand side, scroll down slowly and you will find 6 IP addressed. You need to HEX

edit them to the IP that you have given in the Zoneagent.

In the picture below, you can find 6 IPS.

http://img338.imageshack.us/img338/4750/hexpv7.jpg

Now you need to type over the existing IP, your new IP address and fill up the left over blanks(if any) with blank spaces(can be done using space bar). Once all the 6 IPs are edited, just save the file and run the game.

You may get stuck at Connecting….. When you login for the first time! Keep trying to login.

Creating an account

In the Tools folder of the A3 Server Files, there is a file called A3acc.bat. Just run that and provide an id and password. A file called A3acc.txt is created. Open that file and copy the entire line.
Now go to Enterprise Manager and select the ASD Database. Now click on tools and click on Query Analyser. Paste the code and then press F5. Your account is created!

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License