- Joined
- Mar 25, 2007
- Messages
- 660
- Reaction score
- 309
offcial website :
english website :
SVN link :
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 :
Link 2 :
.
.
.
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:
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.
After that, change the directory path settings in code\etc\common\Directory.xml.This is very important, otherwise the server would fail to start.
This will initialize the database, such creating schemas, tables, and inserting data records.
This will add a new db user ybtx and grant full privileges.
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:
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:
After that, change the directory path settings in code\etc\common\Directory.xml.This is very important, otherwise the server would fail to start.
This will initialize the database, such creating schemas, tables, and inserting data records.
This will add a new db user ybtx and grant full privileges.
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.
------------------------- added for packaging and translation -----------------------------
How to make .pkg files
1. make .log file using DIR command and notepad - ex: dir chinese_simple /b /s > shinese_simple.log --> then edit with notepad
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/fonts
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/gui
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/guitex
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/table
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/fonts/dis_youyuan
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/fonts/FontConfig.xml
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/fonts/fz26.TTF
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/fonts/fzzhunyuan.TTF
.
.
2. make .pkg file using MakePackage.exe - ex: MakePackage.exe chinese_simple.log --> chinese_simple.pkg
ofcourse chinese_simple folder must exist in same folder
for english translation, you can use bellow indonesian language files
it was extracted from indonesian.pkg rhen arranged into Lang folder
You must be registered to see links
english website :
You must be registered to see links
SVN link :
You must be registered to see links
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 :
You must be registered to see links
,
You must be registered to see links
Link 2 :
You must be registered to see links
.
.
.
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:
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:
sh AutoConfig.sh |
- Type and enter:
sh ReCreateDB_cygwin.sh |
- Type and enter:
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:
./AutoConfig.sh |
- Type and enter:
./ReCreateDB.sh |
- Type and enter:
./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.
------------------------- added for packaging and translation -----------------------------
How to make .pkg files
1. make .log file using DIR command and notepad - ex: dir chinese_simple /b /s > shinese_simple.log --> then edit with notepad
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/fonts
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/gui
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/guitex
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/table
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/fonts/dis_youyuan
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/fonts/FontConfig.xml
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/fonts/fz26.TTF
chinese_simple###D:/BERESIS/MakePackage/chinese_simple/fonts/fzzhunyuan.TTF
.
.
2. make .pkg file using MakePackage.exe - ex: MakePackage.exe chinese_simple.log --> chinese_simple.pkg
ofcourse chinese_simple folder must exist in same folder
for english translation, you can use bellow indonesian language files
it was extracted from indonesian.pkg rhen arranged into Lang folder
You must be registered to see links
Attachments
You must be registered for see attachments list
Last edited: