Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Tazo on May 13, 2003, 03:35 PM

Title: Error with people joing my games
Post by: Tazo on May 13, 2003, 03:35 PM
Everytime someone tries to join one of my games created by my Bot,  [ON BW] it says

"Unable to join selected game."

Any ideas why this might happen?
Title: Re:Error with people joing my games
Post by: Camel on May 13, 2003, 03:53 PM
because you're not hosting the game with your bot
battle.net only manages the existance of the games, it doesnt actually host them; game clients host them.
Title: Re:Error with people joing my games
Post by: Tazo on May 13, 2003, 04:04 PM
Okay..!?
Is there a special way to 'host' these games? ^^;
Title: Re:Error with people joing my games
Post by: drivehappy on May 13, 2003, 04:20 PM
Make a bot that creates a game and joins it.

EDIT: Excuse me, I was thinking Diablo II.
Title: Re:Error with people joing my games
Post by: Tazo on May 13, 2003, 04:22 PM
I did that!
Title: Re:Error with people joing my games
Post by: tA-Kane on May 13, 2003, 04:46 PM
1) Your bot needs to have UDP support
2) Your bot must respond to StarCraft's UDP pings
3) Your bot must support the basic UDP packets required for others to join your game.
Title: Re:Error with people joing my games
Post by: Mesiah / haiseM on May 13, 2003, 09:32 PM
try to create your game with a map that comes with starcraft/brood war, this will ensure the user will not have to download it from you, causing huge amounts of udp packets ull spend days trying to figure out.

other than that, just make sure everything is sent correctly, make sure you parse udp packets and send them back all the way up till the game stats packet, then go ahead and keep sending ur udp ping packets, then you should be able to kick in with ur 0x3C, and u should be good to go.
Title: Re:Error with people joing my games
Post by: Smurfling on May 14, 2003, 04:09 AM
Create a game within BW, log all the packets sent to/from you (UDP). BW Clients will send you a UDP packet requesting to join your game. If you don't respond properly to that they'll never be able to join. Sorry i can't really help you much but i'm currently working on this too  ;)
Title: Re:Error with people joing my games
Post by: UserLoser on May 14, 2003, 10:47 AM
What about Warcraft II game support? How similar is it to Starcraft?  I would really like to see a Warcraft II winbot, if possible.  I never played Warcraft II Battle.net Edition so I have no clue about it, I've only played Warcraft II: Tides of Darkness.
Title: Re:Error with people joing my games
Post by: Kp on May 14, 2003, 11:29 AM
Quote from: UserLoser on May 14, 2003, 10:47 AMWhat about Warcraft II game support? How similar is it to Starcraft?  I would really like to see a Warcraft II winbot, if possible.  I never played Warcraft II Battle.net Edition so I have no clue about it, I've only played Warcraft II: Tides of Darkness.
Which are you seeking: a winbot or a gamebot?  Playing the game won't necessarily win, nor will winning require playing the game.
Title: Re:Error with people joing my games
Post by: UserLoser on May 14, 2003, 05:44 PM
I am seeking a War2 winbot.  Documents on the game support would help. Also later tonight maybe I'll get War2 and start trying it out for myself.
Title: Re:Error with people joing my games
Post by: Camel on May 14, 2003, 10:36 PM
Quote from: UserLoser on May 14, 2003, 05:44 PM
I am seeking a War2 winbot.  Documents on the game support would help. Also later tonight maybe I'll get War2 and start trying it out for myself.

as kp so articulately said, no game actually needs to exist in order to make a winbot. all one needs to do is send the packets to bnet that would be sent in a real game, which basicly just tell it who's in the game and who won.
i can only assume that war2 is exactly the same as sc/bw
Title: Re:Error with people joing my games
Post by: Mesiah / haiseM on May 15, 2003, 10:09 PM
Quote from: Camel on May 14, 2003, 10:36 PM
Quote from: UserLoser on May 14, 2003, 05:44 PM
I am seeking a War2 winbot.  Documents on the game support would help. Also later tonight maybe I'll get War2 and start trying it out for myself.

as kp so articulately said, no game actually needs to exist in order to make a winbot. all one needs to do is send the packets to bnet that would be sent in a real game, which basicly just tell it who's in the game and who won.
i can only assume that war2 is exactly the same as sc/bw

This cant be entirely true, because i made a bot that did that, my very first binary bot actually, but it never worked on battle.net... worked fine and dandy on FSGS and BNETD servers though...
Title: Re:Error with people joing my games
Post by: Kp on May 16, 2003, 11:32 AM
Quote from: MesiaH on May 15, 2003, 10:09 PMThis cant be entirely true, because i made a bot that did that, my very first binary bot actually, but it never worked on battle.net... worked fine and dandy on FSGS and BNETD servers though...
FSGS and BnetD are not exactly known for their strict compliance with the BNCS protocol. ;)  Besides which, if the question is about an aspect of battle.net binary bot, citing a bot which never worked on battle.net seems a bit irrelevant. :)
Title: Re:Error with people joing my games
Post by: Camel on May 16, 2003, 03:40 PM
Quote from: Kp on May 16, 2003, 11:32 AM
Quote from: MesiaH on May 15, 2003, 10:09 PMThis cant be entirely true, because i made a bot that did that, my very first binary bot actually, but it never worked on battle.net... worked fine and dandy on FSGS and BNETD servers though...
FSGS and BnetD are not exactly known for their strict compliance with the BNCS protocol. ;)  Besides which, if the question is about an aspect of battle.net binary bot, citing a bot which never worked on battle.net seems a bit irrelevant. :)

+1 to kp for pwning mesiah :D
Title: Re:Error with people joing my games
Post by: Mesiah / haiseM on May 16, 2003, 11:00 PM
The bot worked fine, the packets didnt get me ip banned, everything was correct, but the private servers lacked certain things, yes, but as far as getting wins without udp on battle.net, no way, i even tried it last night!