================================================== =======
UPDATED on 8th June 2017
I am trying to write a complete Guide for Newbie's who likes to Setup their own P-Server for WOI -Legendary Crusade.
I will be installing and testing at the same time in my New PC. So do like my Post and I'll be updating everything I did in a simple way for you all.
I'll try my best to put ALL-IN-ONE place; Here ♥
Please like it, this will show that it is worth doing it.
FYI: I'll explain everything in a plain text and NO video.
◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥◘◘◘◘◘◘◘◘◘◘ ◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘
Requirements:
♥ Decent PC
♥ Decent Internet
♥ Basic Programming Knowledge & a Brain
◘ Simple Static IP : (
)◘ Download VirtualBox (
)◘ Download MS SQL 2008 R2 (
)◘ WOI Client: Client:
.◘ Windows Server Files

◘ Linux Server Files:

◘ MSSQL 2008 R2 Datbase Backup:

◘ MySql Dump:

Preconfigured CentOS (Parts):
1 -

2 -

3 -

4 -

5 -

6 -

TASK ONE: Install all of the files you download. (MSSQL, Vbox & WOI Client)
TASK TWO: Copy Linux Server Files to Centos Distro (Vbox)
TASK THREE: Install SSIP and make ur IP Static.
♥ Find and Note Down your WINDOWS IP & LINUX IP (Vbox)
♥ Use ipconfig (Window cmd) & ifconfig (Linux console)
♥ Windows IP = 192.168.0.100 While Linux IP = 192.168.0.103 (Linux > Windows)
♥ Select "Bridged" in your Network Setting (Vbox)
◘....................................♥♥♥.......... .................................................. ..........◘
TASK FOUR: Configuring Windows Firewall & SQL Server
♥ Open Sql Server Configuration Manager
♥ Click SQL Server Network Configuration
♥ Click Protocols for SQLEXPRESS
♥ Now Enable (Shared Memory),(Named Pipes) & (TCP/IP)
♥ Double click on TCP/IP
♥ Under Protocol Setting:
••• Enabled Yes
••• Keep Alive 30000
••• Listen All Yes
♥ Under IP Addresses setting:
••• IP1
○○○ Active Yes
○○○ Enabled Yes
○○○ IP Address Windows IP
○○○ TCP Dynamic Ports
○○○ TCP Port 1433
••• IP2
○○○ Active Yes
○○○ Enabled Yes
○○○ IP Address Linux IP
○○○ TCP Dynamic Ports
○○○ TCP Port 1433
••• IP ALL
○○○ TCP Dynamic Ports
○○○ TCP Port 1433
◘◘◘◘◘◘◘◘◘◘ Firewall Configuration ◘◘◘◘◘◘◘◘◘◘
♥ Open Windows Firewall (From Control Panel)
♥ Click on Advance Setting
♥ Click on Inbound Rules
♥ Click on Action --> New Rules
♥ Select Port and Click Next
♥ Select TCP & Specific Local Port: 1433 and Click NEXT
♥ Select Allow Connection and click Next
♥ Select Domain, Private and Public. Click Next
♥ Enter Name: WOI
♥ Enter Description: WOI-Private-Server
♥ Click Finish.
◘◘◘◘◘◘◘◘◘◘◘◘ Restoring MSSQL Backup file ◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘
◘◘ Open Microsoft SQL Server Management Studio and log in as Authenticated User (Not Windowed mode)
◘◘ Connect to Local Database
◘◘ Select Database -> Sytem Database -> master ->Right Click (Task ->Restored Database)
◘◘ Select from Device -> Add ->Select the File (Keep in D drive for easy navigation)
◘◘ After that, click restore to PassportBOIOLD. CLick OK ! (Done !!)
◘◘ Check back your MSSQL, you will find New Database call PassportBOIOLD
◘....................................♥♥♥.......... .................................................. ..........◘
TASK FIVE: Windows Server Configuration Part:
♥◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘making .bat file to start windows server◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘♥
♥ -----Open your Start Test.bat file with Notepad and paste the following----♥
@
offStart /D Auagent run.bat
ping 1.1.1.1 -n 1 -w 1000
start /d DBServerSimulator ./DBServerSimulator.exe
ping 1.1.1.1 -n 1 -w 1000
start /D DetectCheatServer ./DetectCheatServer/DetectCheatServerR
ping 1.1.1.1 -n 1 -w 1000
start /D ServerGuarder ./ServerGuarder/ServerGuarder.exe
ping 1.1.1.1 -n 1 -w 1000
start /D GateServer ./GateServer/Gate
ping 1.1.1.1 -n 1 -w 1000
start /D ManagerServer ManagerServer/ManagerServerR
ping 1.1.1.1 -n 1 -w 1000
start /D LocalSaveServer LocalSaveServer/LocalSaveServerR
ping 1.1.1.1 -n 1 -w 1000
start /D ShareMemProc ./ShareMemProc/ShareMemProcR
ping 1.1.1.1 -n 1 -w 1000
start /D GameServer ./GameServer/Line.exe
♥-------Similarly-creating-for Stop test------------------------♥
@
offtaskkill /f /im line.exe
taskkill /f /im compactau.exe
taskkill /f /im DBServerSimulator.exe
taskkill /f /im Gate.exe
taskkill /f /im LocalSaveServerR.exe
taskkill /f /im ManagerServerR.exe
taskkill /f /im ShareMemProcR.exe
taskkill /f /im Java.exe
taskkill /f /im DetectCheatServerR.exe
taskkill /f /im ServerGuarder.exe
taskkill /f /im cmd.exe
_________________________________________________
◘ Configuring run.bat (Inside Auagent folder in Windows)
♥ Open with Notepad and Edit.
♥ Find the location of java installed in your PC. (Default: C:\Program Files\Java\jre6\bin\java)
♥ If you don't have Java, download from here (
)♥ Install Java7 and copy the full path. Place in the run.bat file.
@
offstart compactau.exe
"C:\Program Files (x86)\Java\jre7\bin\java" -Xms512m -Xmx768m -cp jio.jar;log4j-1.2.9.jar;auagent.jar Auagent auagent.conf
Pause
************************************************
◘ Editing auagent file (Notepad)
[AuAgentServer]
zoneid = 904
aid = 9
type = tcp
port = 29250
address = WINDOWS IP
so_sndbuf = 131072
so_rcvbuf = 131072
ibuffermax = 409600
obuffermax = 819200
tcp_nodelay = 1
listen_backlog = 10
mtrace = /tmp/m_trace.link
[GameDBClient]
type = tcp
port = 29251
address = LINUX IP
so_sndbuf = 131072
so_rcvbuf = 131072
ibuffermax = 409600
obuffermax = 819200
tcp_nodelay = 1
;listen_backlog = 10
mtrace = /tmp/m_trace.link
cashfile = d:\cash_backup.data
[GAuthClient]
type = tcp
port = 29200
address = WINDOWS IP
so_sndbuf = 131072
so_rcvbuf = 131072
ibuffermax = 409600
obuffermax = 819200
;so_broadcast = 1
tcp_nodelay = 1
osec = 2
oseckey = rdppjtaki1MxoHnsnaltiiwfjszs9l
isec = 2
iseckey = n1hxpxztozyxnsvk6RaycpmrCnrdds
shared_key = 4khdwAAcjrg0eqfzazqcemdpgulnje
;if use certverify between au,1:use,0:not use,default use
issupport_cert = 0
[ThreadPool]
config = (1,1)(2,4)(3,2)
max_queuesize = 1048576
;prior_strict = 1
[SpeedLimit]
window = 20
high = 2
[TimeoutLimit]
;window > 60
window = 180
high = 200
[CouponLimit]
;GetUserCoupon limit
window = 300
high = 2
[CouponExchangeLimit]
;CouponExchange limit
window = 120
high = 2
♣................................................. ............................♣
◘ Editing compactau (Note Pad)
[GCompactAUServer]
type = tcp
port = 29200
address = WINDOWS IP
osec = 2
oseckey = n1hxpxztozyxnsvk6RaycpmrCnrdds
isec = 2
iseckey = rdppjtaki1MxoHnsnaltiiwfjszs9l
shared_key = 4khdwAAcjrg0eqfzazqcemdpgulnje
♠................................................. ............................♠
◘ Editing server.ini (Inside GameServer Folder in Windows)
[Default]
Version = 0
ManagerServerIP = WINDOWS IP
ManagerServerPort = 20021
ListenGatePort = 40003
LineID = 2
ShowLoginIP = 0
[LogServer]
Port = 9008
ServerIP = LINUX IP
[SharedMem]
SharedMemCount=1
SharedMemName1=Global\ShareMem1
SharedMemSize1=100
♦................................................. ............................♦
◘ Editing gateserver.ini (Inside GateServer in Windows)
[Default]
ManagerIP = WINDOWS IP
ManagerPort = 21020
AuAgentIP = WINDOWS IP
AuAgentPort = 29250
OnlineMax = 5000
//±¾µØ¼àÌý¶Ë¿ÚΪ±ÜÃâÓë·þÎñ¶Ë¿Ú³åÍ»£¬Ê¹ÓÃ30000ÒÔÉ϶˿ Ú
GatePort=30002
[LogServer]
ServerIP = LINUX IP
Port = 9008
☻................................................. ......................☻
◘ Editing LocalSaveServer.ini (Inside LocalSaveServer in Windows)
[Network]
DBServerIP = WINDOWS IP
DBServerPort = 21021
ManagerIP = WINDOWS IP
ManagerPort = 21023
[Log]
//ČŐÖľµČĽ¶
LogLevel=4
//¸÷µČĽ¶ĘäłöŔŕĐÍ
Wrong = 3
Warning = 3
Normal = 3
Debug = 3
//ą˛ĎíÄÚ´ć
[SharedMem]
//ČËĘýĎŢÖĆ
BlockMax=3000
//±Ł´ćĽä¸ô
SaveInterval=1000
//GSĎěӦʱĽä
ResponseInterval=10000
//ą˛ĎíÄÚ´ćżéĘýÁż
SharedMemCount=4
SharedMemName1=Global\ShareMem1
SharedMemSize1=100
SharedMemName2=Global\ShareMem2
SharedMemSize2=100
SharedMemName3=Global\ShareMem3
SharedMemSize3=100
SharedMemName4=Global\ShareMem4
SharedMemSize4=100
☺................................................. ...............☺
◘ Editing ManagerIP.ini (Inside ManagerServer in Windows)
[Default]
ManagerNum = 3
ManagerIP1 = WINDOWS
ManagerIP2 = WINDOWS
ManagerIP3 = WINDOWS
♥................................................. ..................♥
◘ Editing ManagerServer.ini (Inside ManagerServer in Windows)
[Default]
LocalIP = 127.0.0.1 (or WINDOWS IP)
OnlineMax = 1000
DefWallowOnlineTime = 10800
DefWallowOfflineTime = 18000
LootTimes = 100.0
ExpTimes = 100.0
[GameServer]
ServerIP = WINDOWS (To Verify)
Port = 20021
[DBServer]
ServerIP = LINUX (To Verify)
#ListenPort = 21022 TW
#ListenPort = 21032 VN
ListenPort = 21042 US
[GateServer]
ServerIP = WINDOWS
Port = 21020
[LocalDBThread]
#DBListenPort = 21024 TW
#DBListenPort = 21034 VN
ServerIP = LINUX (To Verify)
DBListenPort = 21044 US
LocalListenPort = 21023
[NameServer]
ServerIP = LINUX
ServerPort = 50050
#ServerPort = 10080
[LogServer]
ServerIP = LINUX
Port = 9008
[DetectCheatServer]
ServerIP = WINDOWS
ServerPort = 55000
[GACD]
ServerIP = LINUX
ServerPort = 29705
[CardServer]
ServerIP = LINUX
ServerPort = 10080
•................................................. ............•
◘ Editing config.ini (Inside ServerGurader in Windows)
[Default]
LocalIP = WINDOWS
○○○○○............................................○ ○○○○○
◘ Editing ManagerConfig.ini (Inside ServerGurader in Windows)
<root>
<item name="WOI TEST (Or whatever u want)" IP="WINDOWS" />
</root>
Θ.......................FINALLY WINDOWS PART IS OVER.......................................Θ
◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘LINUX PART◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘
•• The Login Password for Pre-Configured Centos is Bugged. Below is how to reset root password:
1) Start ur Centos and interrupt by pressing any key Eg.Tab or Enter.
2) When ur in GRUB menu, Select the VM line n hit "e" button.
3) Append "init 1" at the end of the VM line.
4) Now press "b" to reboot..
5) Now u'll be in level1, Prompt:
6) Type "passwd" and hit Enter.
7) Type in you "New" password and retype again after hitting enter.
8) Type "reboot".
◘◘◘◘◘ Login to you Centos (Vbox)
◘◘◘◘◘ Copy WOI from Desktop to Home Directory. (You have 3folders: BOI, Centos and WOI)
◘◘◘◘◘ Change Permission of your WOI (chmod -R 777 WOI)
••••••••••••••••• Editing start.sh (Inside WOI folder)••••••••••••••••••
◘◘◘◘◘ Edit start.sh by replacing all BOI to WOI
••••••••••••••••• auth folder ••••••••••••••••••
1) authd.conf (/home/WOI/authd/build/
◘◘◘◘◘ Change address: Windows (To be confirm)
2) table.xml (/home/WOI/auth/build)
◘◘◘◘◘ Change sqlserver:// Windows IP
◘◘◘◘◘ Change Username & Password to your MSSQL credentials.
3) authd.conf (/home/WOI/authd/config)
◘◘◘◘◘ Change address: Linux
4) 5) 6) 7) on the way...
••••••••••••••••• /etc/table.xml ••••••••••••••••••
◘◘◘◘◘ ln -s /home/WOI/auth/build/table.xml /etc/table.xml
••••••••••••••••• /etc/authd.conf ••••••••••••••••••
◘◘◘◘◘ ln -s /home/WOI/auth/build/authd.conf /etc/authd.conf
••••••••••••••••• IMPORTING SQL DUMP ••••••••••••••••••
◘◘◘◘◘ CLick Application -> Programming -> MySQL Workbench
◘◘◘◘◘ Password for keyring is: reverse
◘◘◘◘◘ CLick Manage Import / Export
◘◘◘◘◘ Select Data Import/Restore
◘◘◘◘◘ Select Import from Self-Contained File
◘◘◘◘◘ Give File Path (/home/Desktop/sql.sql)
◘◘◘◘◘ Click Start Import
◘◘◘◘◘ Check the Status. Once completed, you are good to go !
••••••••••••••••• Too tired ! taking rest
------------FINALLY WORKING P-SERVER COMPLETED !!--------






