Results 1 to 1 of 1
  1. #1
    System4z
    System4z is offline
    New member
    Join Date
    2011 Sep
    Posts
    6
    Thanks Thanks Given 
    14
    Thanks Thanks Received 
    1
    Thanked in
    1 Post
    Rep Power
    0

    [Release] Warrior King Online (YBTX or Mercenary Online) Source!

    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:

    1. Go to folder code\home\all, open complete.sln with VS2005 (VC8).
    2. 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)
    3. Change the compile mode to Release (Debug is OK too, have a try yourself).
    4. 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.

    1. You have to install Cygwin, and make sure the Cygwin path is in the first place in the windows %PATH%. Or
      1. Fire up cmd (do not close it, it will be used later)
      2. Type:

    Set PATH=<path_to_your_cygwin_bin_folder>;%PATH%

    1. Fire up cmd (skip if you’ve done this in above step)
    2. Change directory to code\bin
    3. Type and enter:

    sh AutoConfig.sh
    After that, change the directory path settings in code\etc\common\Directory.xml.This is very important, otherwise the server would fail to start.

    1. Type and enter:

    sh ReCreateDB_cygwin.sh
    This will initialize the database, such creating schemas, tables, and inserting data records.

    1. Type and enter:

    sh AddGameDBUser.sh
    This will add a new db user ybtx and grant full privileges.

    1. 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:

    1. MySQL
    2. gcc
    3. 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:

    1. Change directory to code\bin
    2. Type and enter:

    ./AutoConfig.sh
    After that, change the directory path settings in code\etc\common\Directory.xml.This is very important, otherwise the server would fail to start.

    1. Type and enter:

    ./ReCreateDB.sh
    This will initialize the database, such creating schemas, tables, and inserting data records.

    1. Type and enter:

    ./AddGameDBUser.sh
    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.


    Attachment 111562

    Credits: loveomg from ragezone.

  2. The Following User Says Thank You to System4z For This Useful Post:


Similar Threads

  1. [Release] AutoIt Offset Finder + Source
    By MrSmith in forum Perfect World
    Replies: 5
    Last Post: 2013-09-26, 06:01 PM
  2. Replies: 5
    Last Post: 2012-09-10, 10:50 PM
  3. [Release] Crossfire hack source codes
    By herman in forum CrossFire
    Replies: 0
    Last Post: 2012-09-05, 10:58 AM
  4. Replies: 3
    Last Post: 2012-05-27, 11:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •