PDA

View Full Version : Ghost Random Disconnect



darkless
21st July 2009, 02:32 PM
I'm having some problems with Ghost One since I made it functional, as many times it randomly disconnects people at the beginning of the game. Sometimes it disconnects all players, including me and other times it disconnects no one and I can play in perfect conditions.

Just wondering if you guys know what's going on or if you ever saw some similiar situation and how to solve it. Because it is really disturbing for me and the people that play with me in public games (the ones who get disconnected and the others as well).

Thanks in advice =D

Regards,

Darkless, =D

Mitsuki
21st July 2009, 03:07 PM
Ghost version?
Post ghost.cfg after you remove passwords.
In what maps?
Include .cfg of maps where this issue exists.

darkless
23rd July 2009, 06:12 PM
Well, I just tried in DotA (actual version , 6.61b).

Ghost is version 1.6.232, but it was already happenning in older versions.

The ghost.cfg is here (sorry for being so long):

#####################
# BOT CONFIGURATION #
#####################

### set to 1 if you are using warcraft 3 patch 1.21
bot_patch21 = 0

### the bot will auto rehost the game as gamename + 1 if 60 seconds have passed since last player joined, 0 = disable
bot_autorehostdelay = 0

### the bot will auto rehost the game as gamename + 1 if game name is taken
bot_rehostifnametaken = 1

### default access for admins
bot_adminaccess = 4294963199

### default access for owners
bot_owneraccess = 3965

# WaaaghTV Observer Name
wtv_playername = Waaagh!TV

# Path to your WC3TVRecorder ex: c:\Program Files\waaaghTV Recorder\
wtv_path = C:\Program Files\WaaaghTV Recorder\

# Use WC3TVRecorder, 1 to enable
wtv_enabled = 0

### if host counter goes over this number it will reset to 1, set to 0 to disable the feature
bot_maxhostcounter = 6

bot_autohostallowedcountries =

### these words will be edited/censored in game/lobby chat.
bot_censorwords =

### UDP port on which the bot communicates with GHost One GUI, 5868 default
udp_guiport = 5868

# for ex: BR, these countries will not be allowed to join a game
bot_deniedcountries = BR

# for ex: RO, only these countries will be allowed to join a game
bot_allowedcountries =

# milliseconds to wait before sending big sized packets to bnet when using PVPGN
bot_bnetpacketdelaybigpvpgn = 2500

# milliseconds to wait before sending medium sized packets to bnet when using PVPGN
bot_bnetpacketdelaymediumpvpgn = 2000

# milliseconds to wait before sending big sized packets to bnet (official)
bot_bnetpacketdelaybig = 4000

# milliseconds to wait before sending medium sized packets to bnet (official)
bot_bnetpacketdelaymedium = 3200

### handle ip bans: 0 = do nothing, 1 = kick, 2 = announce only (no kick).
bot_ipbanning = 2

### make the ban announcement on one line ( = 0) (if possible) or on two ( = 1)
bot_twolinesbanannouncement = 1

### use new refresh (0) or old refresh code (1)
bot_oldrefresh = 0

### custom text to add to version.
bot_customversiontext =

### the log file

bot_log =

### Allowed variables: totgames, kills, deaths, assists, creepkills, creepdenies, neutralkills,
### towerkills, raxkills, courierkills, wins, losses, killstotal, deathstotal, creepkillstotal,
### creepdeniestotal,assiststotal, neutralkillstotal, towerkillstotal, raxkillstotal, courierkillstotal
### default formula:
### (((wins-losses)/totgames)+(kills-deaths+assists/2)+(creepkills/100+creepdenies/10+neutralkills/50)+(raxkills/6)+(towerkills/11))

bot_scoreformula = (((wins-losses)/totgames)+(kills-deaths+assists/2)+(creepkills/100+creepdenies/10+neutralkills/50)+(raxkills/6)+(towerkills/11))

### Only players having played this many number of games will be ranked
bot_scoremingames = 5

### load in game feature will be enabled for every map (if set to 1)
bot_forceloadingame = 0

### After a game has ended, if mysql is used, ghost will run update_dota_elo.exe
bot_updatedotaeloaftergame = 1

### After a game has ended, if mysql is used, ghost will recalculate scores (use either this or elo)
bot_updatedotascoreaftergame = 0

### set to 1 if you are using warcraft 3 patch 1.23 or newer
bot_patch23ornewer = 1

### show .sd of anyone who enters the lobby (and has played games with the bot before)
bot_showscoresonjoin = 1

### setting bot_autohostmaximumgames > 0 will make ghost begin autohosting on startup
bot_autohostmaximumgames = 0
bot_autohostautostartplayers = 10
bot_autohostallowstart = 0
bot_autohostlocal = 0
bot_autohostowner = one
bot_autohostmapcfg = map.cfg
bot_autohostgamename = auto -sd EU pros

### If you autohost a even playered two team map and want to auto ban leavers that make the game uneven turn this on. Will not ban admins or root admins. An example map would be DotA or Battleships.
### 0 = off 1 = on
bot_autoban = 0

### set to 1 if you want LAN players to be considered admins
bot_lanadmins = 0

### the language file

bot_language = language.cfg

### the path to your local Warcraft III directory
### this path must contain war3.exe, storm.dll, and game.dll
### this path must end in your system's path seperator (i.e. "\" on Windows or "/" on Linux)
### if this path contains War3Patch.mpq the bot will attempt to extract "Scripts\common.j" and "Scripts\blizzard.j" on startup and write them to bot_mapcfgpath (which is defined later in this file)
### common.j and blizzard.j are only required for automatically calculating map_crc, you do not need them if your map config files already contain map_crc

bot_war3path = C:\Program Files\Warcraft III\

### the port GHost++ will host battle.net games on (this must be different from your admingame_port)

bot_hostport = 6113

### maximum number of games to host at once

bot_maxgames = 5

### command trigger for ingame only (battle.net command triggers are defined later)

bot_commandtrigger = .

### the path to the directory where you keep your map config files (must end in your system's path seperator)
### this directory can also contain common.j and blizzard.j (extracted from War3Patch.mpq)
### common.j and blizzard.j are only required for automatically calculating map_crc, you do not need them if your map config files already contain map_crc

bot_mapcfgpath = mapcfgs\

### the path to the directory where you keep your savegame files (must end in your system's path seperator)

bot_savegamepath = savegames\

### the path to the directory where you keep your map files (must end in your system's path seperator)
### GHost++ doesn't require map files but if it has access to them it can send them to players and automatically calculate most map config values
### GHost++ will search [bot_mappath + map_localpath] for the map file (map_localpath is set in each map's config file)

bot_mappath = c:\program files\Warcraft III\Maps\Download\

### whether to save replays or not

bot_savereplays = 1

### the path to the directory where you want GHost++ to save replays (must end in your system's path seperator)

bot_replaypath = replays\

### whether to require spoof checks or not
### disabling spoof checks just turns off automatic spoof checks and requiring players to be spoof checked before starting the game
### spoof checks need to be enabled if you want GHost++ to detect which realm each player came from (use the !check command to see the realm)
### you can always manually spoof check by whispering the bot (and in fact is required before running admin commands)

bot_spoofchecks = 1

### whether to display game refresh messages by default
### this can always be changed for a particular game with the !refresh command

bot_refreshmessages = 0

### whether to automatically lock games when the owner joins

bot_autolock = 0

### whether to automatically save games when a player disconnects
### this can always be changed for a particular game with the !autosave command

bot_autosave = 0

### whether to allow map downloads or not
### set to 0 to disable map downloads
### set to 1 to enable map downloads
### set to 2 to enable conditional map downloads (an admin must start each map download with the !download or !dl command)

bot_allowdownloads = 1

### whether to ping players during map downloads or not
### GHost++ will always stop pinging any players who are downloading the map
### this config value determines whether GHost++ should stop pinging *all* players when at least one player is downloading the map

bot_pingduringdownloads = 0

### kicked banned people when they enter the channel
bot_kickbannedfromchannel = 0

### use LC style pings (divide actual pings by two)

bot_lcpings = 1

### auto kick players with ping higher than this

bot_autokickping = 100

### the game latency
### this can always be changed for a particular game with the !latency command (which enforces a minimum of 50 and a maximum of 500)

bot_latency = 100

### the maximum number of packets a player is allowed to get out of sync by before starting the lag screen
### before version 8.0 GHost++ did not have a lag screen which is the same as setting this to a very high number
### this can always be changed for a particular game with the !synclimit command (which enforces a minimum of 10 and a maximum of 10000)

bot_synclimit = 90

### whether votekicks are allowed or not

bot_votekickallowed = 1

### the percentage of players required to vote yes for a votekick to pass
### the player starting the votekick is assumed to have voted yes and the player the votekick is started against is assumed to have voted no
### the formula for calculating the number of votes needed is votes_needed = ceil( ( num_players - 1 ) * bot_votekickpercentage / 100 )
### this means it will round UP the number of votes required
### if you set it to 100 it will require 2/3, 3/4, 4/5, 5/6, 6/7, 7/8, 8/9, 9/10, 10/11, and 11/12 votes to pass
### if you set it to 90 it will require 2/3, 3/4, 4/5, 5/6, 6/7, 7/8, 8/9, 9/10, 9/11, and 10/12 votes to pass
### if you set it to 80 it will require 2/3, 3/4, 4/5, 4/6, 5/7, 6/8, 7/9, 8/10, 8/11, and 9/12 votes to pass
### if you set it to 70 it will require 2/3, 3/4, 3/5, 4/6, 5/7, 5/8, 6/9, 7/10, 7/11, and 8/12 votes to pass
### if you set it to 60 it will require 2/3, 2/4, 3/5, 3/6, 4/7, 5/8, 5/9, 6/10, 6/11, and 7/12 votes to pass

bot_votekickpercentage = 100

### Just before a game is hosted the creator is added to the bots friends list and removed soon after
bot_addcreatorasfriendonhost = 0

### lobby/game commands are displayed as chat (or hidden)
bot_relaychatcommands = 1

### display information on current downloads (speed, ETA)
bot_showdownloadsinfo = 1

### interval in seconds between download info message
bot_showdownloadsinfotime = 5

### maximum players allowed to download at once, the rest will have almost KB/s until someone finishes downloading
bot_maxdownloaders = 3

### set total download speed (KB/s) available for all clients at once, if set to 1024, 4 people will get 256 each
bot_totaldownloadspeed = 1024

### set max download speed (KB/s) available for one client
bot_clientdownloadspeed = 512

### initiate game over timer if remaining players are less than this number (and at least a player left) - 0 to disable
bot_gameoverminplayers = 0

### initiate game over timer if remaining player percentage is less than this number (and at least a player left) - 0 to disable
bot_gameoverminpercent = 0

### initiate game over timer if team difference is bigger than this number, 0 - to disable
bot_gameovermaxteamdifference = 0

### redirect console output to udp
bot_udpconsole = 1

### whether to automatically add the players from last game to the next game's reserved list
bot_holdplayersforrmk = 1

### non admin commands, 1 enable, 0 disable
bot_nonadmincommands = 1

### root admins are required to spoof check if 1, or not if 0
bot_rootadminsspoofcheck = 0

### admins are required to spoof check if 1, or not if 0
bot_adminsspoofcheck = 0

### banned players will be notified with a whisper.
bot_notifybannedplayers = 1

### ghost will find its external ip on startup, disable if you want to play on LAN only
bot_findexternalip = 1

### specify your external ip here if you don't want ghost to auto find it.
bot_externalip =

### use alternative site for external ip finding (if you experience lag (30s) on ghost startup)
bot_altfindip = 0

### bot's additional rootadmins separated by space ex: userone usertwo userthree
bot_rootadmins = drogado

### bot's UDP password
bot_udppassword =

### show autokick denied country or banned player messages
bot_verbose = 0

### bot's virtual host name
bot_virtualhostname = |cFF000000Slave

### ignore drop request for the first x seconds of lagging.
bot_dropvotetime = 30

### Time limit for hosting a game where no admins enter it
bot_lobbytimelimit = 10

### udp ip
udp_cmdbindip = 0.0.0.0

### udp port
udp_cmdport = 6969

### udp spoof target
udp_cmdspooftarget =

############################
# ADMIN GAME CONFIGURATION #
############################

### whether to create the admin game or not (see readme.txt for more information)

admingame_create = 0

### the port GHost++ will host the admin game on (this must be different from your bot_hostport)

admingame_port = 6114

### the admin game password

admingame_password =

##########################
# DATABASE CONFIGURATION #
##########################

### database type
### use "sqlite3" for a local SQLite database
### use "mysql" for any MySQL database

db_type = sqlite3

### sqlite3 database file

db_sqlite3_file = ghost.dbs

### this is only used if your database type is MySQL

db_mysql_server = localhost
db_mysql_database = ghost
db_mysql_user = YOUR_USERNAME
db_mysql_password = YOUR_PASSWORD
db_mysql_port = 0

############################
# BATTLE.NET CONFIGURATION #
############################

### which battle.net server to connect to
### 1.) useast.battle.net
### 2.) uswest.battle.net
### 3.) asia.battle.net
### 4.) europe.battle.net
### note that each banned player is tied to the realm it was created on and the realm is case sensitive
### so if you change your realm from useast.battle.net to USEAST.BATTLE.NET it'll still connect but anyone previously banned will not be counted as banned until you change it back

bnet_server = server.eurobattle.net

### your Warcraft III: Reign of Chaos CD key

bnet_cdkeyroc = FFFFFFFFFFFFFFFFFFFFFFFFFF

### your Warcraft III: The Frozen Throne CD key

bnet_cdkeytft = FFFFFFFFFFFFFFFFFFFFFFFFFF

### your battle.net username

bnet_username = Darkless

### your battle.net password

bnet_password = ********

### the first channel to join upon entering battle.net

bnet_firstchannel = Portugal

### the root admin on this battle.net server only

bnet_rootadmin = Craft

### command trigger for this battle.net server only

bnet_commandtrigger = .

### whether to automatically add your friends list to each game's reserved list

bnet_holdfriends = 1

### whether to automatically add your clan members list to each game's reserved list

bnet_holdclan = 1

### you will need to edit this section of the config file if you're connecting to a PVPGN server
### your PVPGN server operator will tell you what to put here

bnet_custom_war3version = 23
bnet_custom_exeversion = 208 0 23 1
bnet_custom_exeversionhash = 5 188 217 250
bnet_custom_passwordhashtype = pvpgn

#bnet_bnlsserver = 127.0.0.1
#bnet_bnlsport = 9367
#bnet_bnlswardencookie = 0

###
### example configuration for connecting to a second official battle.net server
###

# bnet2_server = uswest.battle.net
# bnet2_cdkeyroc = FFFFFFFFFFFFFFFFFFFFFFFFFF
# bnet2_cdkeytft = FFFFFFFFFFFFFFFFFFFFFFFFFF
# bnet2_username =
# bnet2_password =
# bnet2_firstchannel = The Void
# bnet2_rootadmin =
# bnet2_commandtrigger = !
# bnet2_holdfriends = 1
# bnet2_holdclan = 1

###
### example configuration for connecting to a third PVPGN battle.net server
###

# bnet3_server = pvpgn.boredaussie.com
# bnet3_cdkeyroc = FFFFFFFFFFFFFFFFFFFFFFFFFF
# bnet3_cdkeytft = FFFFFFFFFFFFFFFFFFFFFFFFFF
# bnet3_username =
# bnet3_password =
# bnet3_firstchannel = The Void
# bnet3_rootadmin =
# bnet3_commandtrigger = !
# bnet3_holdfriends = 1
# bnet3_holdclan = 1
# bnet3_custom_war3version = 22
# bnet3_custom_exeversion = 184 0 22 1
# bnet3_custom_exeversionhash = 219 152 153 144
# bnet3_custom_passwordhashtype = pvpgn
bnet2_server = europe.battle.net
bnet3_server = europe.battle.net
bnet4_server = europe.battle.net
bnet5_server = europe.battle.net
bnet6_server = europe.battle.net
bnet7_server = europe.battle.net
bnet8_server = europe.battle.net
bnet9_server = europe.battle.net
bnet10_server = europe.battle.net

---------------------------------------

DotA 6.61.cfg is here:

#####################################
# map file for DotA Allstars v6.61b #
#####################################

# the map path tells Warcraft III clients where to find the map on their system
# it is NOT the path to the map on the GHost++ system, in fact GHost++ doesn't need the map at all

map_path = Maps\Download\DotA Allstars v6.61b.w3x
map_size =
map_info =
map_crc =
map_sha1 =

# map speed
# 1 = slow
# 2 = normal
# 3 = fast

map_speed = 3

# map visibility
# 1 = hide terrain
# 2 = explored
# 3 = always visible
# 4 = default

map_visibility = 4

# map observers
# 1 = none
# 2 = on defeat
# 3 = allowed
# 4 = referees

map_observers = 1

# map flags
# - you can combine these flags by adding together all the options you want to use
# - for example to have teams together and fixed teams you would use "3"
# 1 = teams together
# 2 = fixed teams
# 4 = unit share
# 8 = random hero
# 16 = random races

map_flags = 3

# map game type
# 1 = custom

map_gametype = 1

# map dimensions

map_width =
map_height =

# map players and teams

map_numplayers =
map_numteams =

#
# slot structure
# [PID] [Download Status] [Slot Status] [Computer] [Team] [Colour] [Race] [Skill] [Handicap]
# - PID is always 0
# - Download Status is always 255
# - Slot Status is 0 for open, 1 for closed, 2 for occupied
# - Computer is 0 for no, 1 for yes
# - Team
# - Colour
# - Race is 1 for human, 2 for orc, 4 for night elf, 8 for undead, 32 for random (add 64 to any of these for fixed)
# - Skill is 0 for easy computer, 1 for normal computer or human, 2 for hard computer
# - Handicap is 50/60/70/80/90/100
#

map_slot1 = 0 255 0 0 0 1 4 1 100
map_slot2 = 0 255 0 0 0 2 4 1 100
map_slot3 = 0 255 0 0 0 3 4 1 100
map_slot4 = 0 255 0 0 0 4 4 1 100
map_slot5 = 0 255 0 0 0 5 4 1 100
map_slot6 = 0 255 0 0 1 7 8 1 100
map_slot7 = 0 255 0 0 1 8 8 1 100
map_slot8 = 0 255 0 0 1 9 8 1 100
map_slot9 = 0 255 0 0 1 10 8 1 100
map_slot10 = 0 255 0 0 1 11 8 1 100

# map type (for map specific stats)

map_type = dota

# map local path (for map downloads)
# GHost++ doesn't require map files but if it has access to them it can send them to players
# GHost++ will search bot_mappath + map_localpath for the map file (bot_mappath is set in the main config file)

map_localpath = DotA Allstars v6.61b.w3x

----------------------------------------



It would be good if you could help me, sorry for bothering =D.

Regards,


Darkless, =D

darkless
25th July 2009, 01:26 PM
Somebody there? =P

_Dead_Shoot_
25th July 2009, 02:00 PM
Somebody there? =P
Yes I'm here.
:read: Here is Dota Allstars v6.61b and I saw what's your problem
You didn't have: map_numplayers , map_numteams , map_width and map_height
So here is all:
#####################################
# map file for DotA Allstars v6.61b #
#####################################

# the map path tells Warcraft III clients where to find the map on their system
# it is NOT the path to the map on the GHost++ system, in fact GHost++ doesn't need the map at all

map_path = Maps\Download\DotA Allstars v6.61b.w3x
map_size = 138 195 58 0
map_info = 136 242 180 230
map_crc = 153 213 185 48
map_sha1 = 210 44 50 147 16 252 163 222 118 245 224 44 108 207 100 138 114

# map speed
# 1 = slow
# 2 = normal
# 3 = fast

map_speed = 3

# map visibility
# 1 = hide terrain
# 2 = explored
# 3 = always visible
# 4 = default

map_visibility = 4

# map observers
# 1 = none
# 2 = on defeat
# 3 = allowed
# 4 = referees

map_observers = 1

# map flags
# - you can combine these flags by adding together all the options you want to use
# - for example to have teams together and fixed teams you would use "3"
# 1 = teams together
# 2 = fixed teams
# 4 = unit share
# 8 = random hero
# 16 = random races

map_flags = 3

# map game type
# 1 = custom

map_gametype = 1

# map dimensions

map_width = 118 0
map_height = 120 0

# map players and teams

map_numplayers = 10
map_numteams = 2

#
# slot structure
# [PID] [Download Status] [Slot Status] [Computer] [Team] [Colour] [Race] [Skill] [Handicap]
# - PID is always 0
# - Download Status is always 255
# - Slot Status is 0 for open, 1 for closed, 2 for occupied
# - Computer is 0 for no, 1 for yes
# - Team
# - Colour
# - Race is 1 for human, 2 for orc, 4 for night elf, 8 for undead, 32 for random (add 64 to any of these for fixed)
# - Skill is 0 for easy computer, 1 for normal computer or human, 2 for hard computer
# - Handicap is 50/60/70/80/90/100
#

map_slot1 = 0 255 0 0 0 1 4 1 100
map_slot2 = 0 255 0 0 0 2 4 1 100
map_slot3 = 0 255 0 0 0 3 4 1 100
map_slot4 = 0 255 0 0 0 4 4 1 100
map_slot5 = 0 255 0 0 0 5 4 1 100
map_slot6 = 0 255 0 0 1 7 8 1 100
map_slot7 = 0 255 0 0 1 8 8 1 100
map_slot8 = 0 255 0 0 1 9 8 1 100
map_slot9 = 0 255 0 0 1 10 8 1 100
map_slot10 = 0 255 0 0 1 11 8 1 100

# map type (for map specific stats)

map_type = dota

# map local path (for map downloads)
# GHost++ doesn't require map files but if it has access to them it can send them to players
# GHost++ will search bot_mappath + map_localpath for the map file (bot_mappath is set in the main config file)

map_localpath = DotA Allstars v6.61b.w3x

darkless
27th July 2009, 09:14 PM
I appreciate your help, but that's not the problem.
Ghost automaticly calculates that values when loading the map.

Thanks anyway =D

Does anybody else know something that can help?

Mitsuki
28th July 2009, 05:28 PM
Was away some time, i will test your config and will respond later. Meanwhile i am pretty sure that it is problem of your side connection. Doublecheck firewall exceptions, portforwarding, antivirus or any other program that monitors/guards your pc.