Server files:
You must be registered to see links
--> The server files same as Eperty123's files, I just reorganize the files to fit my tutorial.
Client files:
You must be registered to see links
Step by step tutorials - Rewrite of Eperty's tutorial
TOOL REQUIREMENTS
VMWare Workstation / VirtualBox
7-Zip
Navicat
Notepad++
SecureCRT
WinSCP
Use google to find the tool.
INSTALL CENTOS
1. Start up Virtual Box or VMWare
2. Install
You must be registered to see links
3. Login to CentOS, then type
to get server IP address
WORKING WITH POSTGRESQL
4. Start SecureCRT and connect to your server with the IP.
To paste in SecureCRT use Shift + Insert.
5. Install PostGreSQL
Code:
yum install http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
yum install postgresql93-server postgresql93-contrib
6. Start WinSCP and connect to your server with the IP, then navigate to your "root" directory.
7. Extract "Aura Server Files" & upload "hxsy" folder to "root" directory.
8. Make sure to give it a permission of 777, type this in SecureCRT
9. Goto SecureCRT and start PostGreSQL
Code:
service postgresql-9.3 initdb
service postgresql-9.3 start
10. Change password of user "postgres" (Ex: xxxxxxxx)
Code:
sudo -u postgres psql -c "ALTER user postgres WITH password 'xxxxxxxx';"
11. Connect to user "postgres"
12. Create all database
Code:
create database ffaccount encoding 'UTF8' template template0;
create database ffdb1 encoding 'UTF8' template template0;
create database ffmember encoding 'UTF8' template template0;
create database itemmall encoding 'UTF8' template template0;
13. Import SQL to database
Code:
\c ffaccount
\i '/root/hxsy/SQL/FFAccount.sql';
\c ffdb1
\i '/root/hxsy/SQL/FFDB1.sql';
\c ffmember
\i '/root/hxsy/SQL/FFMember.sql';
\c itemmall
\i '/root/hxsy/SQL/Itemmall.sql';
14. Disconnect user "postgres"
EDIT SOME FILES WITH WINSCP
15. Goto WinSCP, navigate to /var/lib/pgsql/9.3/data
16. Open "pga_hba.conf" and edit
Code:
.....
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 0.0.0.0/0 md5
# IPv6 local connections:
host all all ::1/128 ident
.....
17. Open "postgresql.conf" and edit
Code:
.....
listen_addresses = '*'
.....
18. Navigate to /etc/sysconfig/iptables, open "iptables" and edit
Code:
.....
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 6543 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5567 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5568 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 10021 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 10022 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
.....
19. Goto SecureCRT, and type
CREATE ACCOUNT IN DATABASE
20. Start Navicat and connect to your Database
21. Goto ff_member -> tb_user -> Query -> New Query
Code:
INSERT INTO tb_user (mid, password, pwd) VALUES ('test', 'test', '098f6bcd4621d373cade4e832627b4f6')
pwd is MD5 of your password
22. Goto ff_account -> accounts -> Query -> New Query
Code:
INSERT INTO accounts (username, password) VALUES ('test', 'test')
CHANGE SERVER IP ADDRESS
23. In Navicat, goto ff_account -> worlds, change IP "192.168.198.129" to your server IP
24. Goto ff_db1 -> serverstatus, change IP "192.168.198.129" to your server IP
25. In WinSCP, navigate to "hsxy" folder, open all files "setup.ini", find and replace "192.168.198.129" to your server IP
26. Find and replace DB password "xxxxxxxx" to your DB password
27. In client, open connect.ini, change IP "192.168.198.129" to your server IP
28. Patch your server files LoginServer, MissionServer, TicketServer, WorldServer, ZoneServer with AKTools
START SERVER
29. To start server, goto SecureCRT, and type
Everything done!!!
EXTRA TUTORIALS
- To stop server, goto SecureCRT, and type
- To use AKTools, copy all server files to "Fix" folder, open AKTools, enter your server IP -> Convert -> Hex Files
- To extract .pkg files in client, goto AuraExtractor, open quickbms, choose "quickbms.bms", then choose pkg.idx in Client\pkg
.....