GHOST .. a common dota player, certainly knew about the bots that are now widely used to create room. By using bots that run on servers that have a strong connection (eg in building cyber vps) then the lag will be reduced because of the possibility of serving players from the server. The program used to create rooms that are known by the name of GHOST.
GHOST can run in windows and linux. Installer files for both are not separated, can be downloaded at http://code.google.com/p/ghostplusplus/. But that will be discussed here is the installation process for Linux, especially DEBIAN 5 Lenny.
For the OS, we recommend installing DEBIAN with minimal install or use the network install cd, just SSH the direct road. This is to save resources. If we suppose VPS lease, ask to his provider to be installed at a minimum, enough to SSH and SFTP do not install Apache, MySQL etc. first. Not be discussed here how to install DEBIAN 5, so here will begin with the assumption DEBIAN 5 has been installed and can be accessed via SSH.
GHOST can run in windows and linux. Installer files for both are not separated, can be downloaded at http://code.google.com/p/ghostplusplus/. But that will be discussed here is the installation process for Linux, especially DEBIAN 5 Lenny.
For the OS, we recommend installing DEBIAN with minimal install or use the network install cd, just SSH the direct road. This is to save resources. If we suppose VPS lease, ask to his provider to be installed at a minimum, enough to SSH and SFTP do not install Apache, MySQL etc. first. Not be discussed here how to install DEBIAN 5, so here will begin with the assumption DEBIAN 5 has been installed and can be accessed via SSH.
Utility that need to be prepared:Putty can be downloaded here. Used to access SSH. I will not discuss here the basic use of putty.WinSCP can be downloaded here. Used to transfer files via SSH, as well as for editing than we edit via vi ...In order for the installation process GHOST smoothly there are a few libraries and software that must be installed.Library and software required are:
libboost, minimal version 1:38
Build Essential
zlib1g
libbz2
libmysql
libgmp3
MySQL
GHOST which we will install is the GHOST version 15.0, for other versions customize some commands for the current version.Installation on DEBIAN Step 5:Edit the source update, the edit is needed because some libraries require a higher version than those in the standard repository DEBIAN 5:
Access using WinSCP to your server, open the sources.list file in / etc / apt
Add source: deb http://http.us.debian.org/debian/ unstable main contrib non-free, then save.
SSH access using PuTTY and type the command: apt-get update
Wait until the update process is complete
Install the library:
SSH access using PuTTY
Run the following command to install LIBBOOST:
apt-get install libboost-date-time-dev libboost-date-time1.40.0 libboost-dev libboost-doc libboost-filesystem-dev libboost-filesystem1.40.0 libboost-graph-dev libboost-graph1.40.0 libboost-iostreams-dev libboost -iostreams1.40.0 libboost-program-options-dev libboost-program-options1.40.0 libboost-python-dev libboost-python1.40.0 libboost-regex-dev libboost-regex1.40.0 libboost-signals-dev libboost-libboost-signals1.40.0 test-dev libboost-thread-test1.40.0 libboost-dev libboost-thread1.40.0
If you have questions YES OR NO confirmation, select YES
Run the following command to install other libraries:
apt-get install build-essential m4-dev zlib1g-dev libbz2-dev libmysql-dev libgmp3Install MySQL:
SSH access using PuTTY
Use the following command to install MySQL: apt-get install mysql-server mysql-common mysql-client
If you have questions YES OR NO confirmation, select YES
When prompted enter the root password for MySQL, enter the password you want used.
Install Unzip:
SSH access using PuTTY
Use the command: apt-get install unzip
Install Screen:
SSH access using PuTTY
Use the command: apt-get install screen
Download GHOST:
SSH access using PuTTY
Browse to the folder where the ghost will be installed, for example to / usr / local: cd / usr / local
Download ghost version 15.0: wget http://ghostplusplus.googlecode.com/...splus_15.0.zip
ghost unzip: unzip ghostplusplus_15.0.zip
Install lib BNCSUTIL:
bncsutil browse to the folder: cd / usr / local / ghost / bncsutil / src / bncsutil
make
if the process make a success, no error (if only a warning, let it) then do: make install
Install lib stormlib:
Browse to the folder Stormlib: cd / usr / local / ghost / Stormlib / stormlib
make
make install
Install Ghost:
Browse to the Ghost folder: cd / usr / local / ghost / ghost
make
make install
if no error, it means a ghost is properly tercompile
move the file ghost: ghost cp .. /
runing test: / usr / local / ghost / ghost
when the ghost was called correctly, the program has been running live we configure
Configure GHOST:Upload files warcraft:
Access server using WinSCP and browse to / usr / local / ghost
Create a new folder (press the F7 key) and name war3
Log into the new folder
Of Warcraft folder on your PC (must have the version that will be used on the server - the last version 1.24b), upload the files: war3.exe, storm.dll, game.dll and war3patch.mpq
Configure Database:
Access the server using putty
Access to MySQL: mysql-u root-p
enter the root password that is used during installation
Create new database: create database bot;
Log into the new database: use the bot;
import sql command: source / usr/local/ghost/mysql_create_tables_v2.sql
out of mysql: quit;
Upload maps:
Access server using WinSCP and browse to / usr / local / ghost / maps
Upload maps-maps that you want to use into that folder
Edit the file GHOST.CFG:Here I will not discuss all the existing config, just the essentials only.
bot_war3path = / usr/local/ghost/war3 /
bot_hostport = 6112 => can be replaced with another
bot_maxgames = 5 => how many in one room when the bot can handle
bot_commandtrigger =! => Triger for the command to the bot (! Pub etc)
bot_mapcfgpath = mapcfgs /
bot_mappath = maps /
replay_war3version = 24
replay_buildnumber = 6059
bot_virtualhostname = | cFF4080C0NAMA => The name can be replaced with the bot id you or any other name, the previous code is the hex code for colors
bot_defaultmap = dota6_63b => config name of the default file folder, then discussed how to create a config file
db_type = mysql
db_mysql_server = localhost
db_mysql_database = bot => contents with a database name
db_mysql_user = root
db_mysql_password = password => contents with mysql password
bnet_server = 122.144.2.38 => contents with the server's IP
bnet_serveralias = IDGSPublic => content with whatever alias
bnet_username = idbot => content with id login bot
bnet_password = password => contents with a password login bot
bnet_firstchannel = BOT => contents with a channel name will be entered at login bot
bnet_rootadmin = idadmin => content with id which will be superadmin bot
bnet_custom_war3version = 24
bnet_custom_passwordhashtype = pvpgn
Save the file ghost.cfg.Configure mapconfig:To be able to create room ghost with a particular folder will require a map config files for 1 folder. Map config files are located in the folder / usr / local / ghost / mapcfgs. For example making a complete map config file, can open the file wormwar.cfg.Here I will give examples of map-making for DotA 6.63B config file:map_path = Maps \ Download \ DotA Allstars v6.63b.w3xmap_numplayers = 10map_numteams = 2map_speed = 3map_visibility = 4map_observers = 1map_flags = 3map_gametype = 1map_localpath = DotA Allstars v6.63b.w3xTesting Running GHOST:
Use the putty to access the server
Run ghost: / usr / local / ghost / ghost
wrong after loading, use the Warcraft III which is on your PC and log into PVPGN
Create a test room with Whisp way to the bot: / w! Pub
If the bot reply by saying the room was created, it means that the bot was able to walk.
The test went into the room, and see if there was something strange or not.
When the results of tests already done well, close the program first GHOST with CTRL C in putty.Start the BOT in the background:The purpose of running the bot in the background is to let the bot can still run even if putty / ssh access we have closedway is to run the command: screen / usr / local / ghost / ghostthen press the CTRL A and CTRL Dputty can we close the root shell re-emerged.
Tidak ada komentar:
Posting Komentar