offcial website : 《佣兵天下》最新资料片“战意沸腾� �今日火爆公测
english website : Warrior King - Epic 3D MMORPG - Game Online Indonesia - Free to Play!
SVN link : http://xp-dev.com/svn/YBTX_Public
use SVN client program like tortoisesSVN...
and cmb is our leader. he manage the tbyx SVN developement.
if you want to join SVN developement group, send a private message to cmb
download link for resource with DB/server/client resource
Link 1 : DepositFiles , DepositFiles
Link 2 : ybtx_modified.zip - 4shared.com - обмен, хранение, загрузка файлов - Expert Games Network
.
.
.
don't forget click 'Like' ^^
.
.
---------------------------------- Setup guide --------------------------
This guide will show you how to compile the 佣兵天下 (refered to ybtx below) game, setup the server in Windows or Linux, and play the game in local.
Compile
I compiled the code in VC2005(VC8). There are a lot of compilation errors in VC2008, most are attributable to c++ templates (or you can disable the security check for STL in VC2008 by specifying /D_SECURE_SCL). I just reverted the .sln and .vcproj files from VC2008 to match VC2005 (seems someone messed this up using VC2008).
Step:
- Go to folder code\home\all, open complete.sln with VS2005 (VC8).
- Go to ToolsàOptionsàProjects and SolutionsàVC++ Directories, add DXSDK Include and Lib paths (use this one I included in the pack: code\dxsdk_mar2008)
- Change the compile mode to Release (Debug is OK too, have a try yourself).
- Compile the RunModule, GameGac, GameGas projects:
5. The compiled binaries are in code\bin\Release. GameGac is the client binary, and GameGas is the server binary. RunModule is the invokers for both the server and client, that it calls LoadLibrary to get the exposed entry point SqrMain (of GameGac or GameGas) to execute the client or server logic.
Setup the Server in Windows
Let’s start MySQL first. I’ve made one copy in code\bin\DB, so just double click the 0.Start_MySQL.bat in code\bin folder (root account password: 123456).
The following steps only need to be done for the first time before you can start up your server. You don’t have to do it again since I’ve done it already.
- You have to install Cygwin, and make sure the Cygwin path is in the first place in the windows %PATH%. Or
- Fire up cmd (do not close it, it will be used later)
- Type:
Set PATH=<path_to_your_cygwin_bin_folder>;%PATH%
- Fire up cmd (skip if you’ve done this in above step)
- Change directory to code\bin
- Type and enter:
After that, change the directory path settings in code\etc\common\Directory.xml.This is very important, otherwise the server would fail to start.
sh AutoConfig.sh
- Type and enter:
This will initialize the database, such creating schemas, tables, and inserting data records.
sh ReCreateDB_cygwin.sh
- Type and enter:
This will add a new db user ybtx and grant full privileges.
sh AddGameDBUser.sh
- NOTE: I’ve made other changes to the configuration files in code\etc, please use a diff tool to see the detail. I just don’t remember all.
Up to now and later, you only need to double click the 1.StartGameServer.bat file to start the server. Wait about 1 minute, the server will be started.
Compile and Setup the Server in Linux
First you need to install a 64bit version of Linux. The product server must be of 64bit, otherwise the code could not compile (BTW, the 3rd party shared library files are of 64bit). I’ve installed CentOS 5.8 x86_64 in my VM box.
Ensure the following are also installed:
- MySQL
- gcc
- uuid-dev
Create your workspace and copy two folders to it: cfg and code.
Change directory to the code folder, type make to compile the code (I’ve made minor changes to the Makefile scripts so it could be compiled successfully).
The following steps are similar to those in Windows:
- Change directory to code\bin
- Type and enter:
After that, change the directory path settings in code\etc\common\Directory.xml.This is very important, otherwise the server would fail to start.
./AutoConfig.sh
- Type and enter:
This will initialize the database, such creating schemas, tables, and inserting data records.
./ReCreateDB.sh
- Type and enter:
This will add a new db user ybtx and grant full privileges.
./AddGameDBUser.sh
It’s time to start the server:
./rungame.sh
Don’t forget to open the ports in iptables: 52520, 52530 and 10077. (if you don’t know how, google it)
Start the Game in Windows
Simple, double click the 2.StartGame.bat under code\bin.
The startup parameters are in this file: code\etc\gac\GacConfig.lua
After you start up the client, type any name and password to enter the game. If the name you entered is not existed in database (tbl_user_static), the server would create one for you. After all this is a dev box settingJ
Now please enjoy the game.
Attachment 111562
Credits: loveomg from ragezone.