Valhalla Legends Forums Archive | Battle.net Bot Development | *** Joining/Creating Games (WithCleanSlateBot)

AuthorMessageTime
ILurker
Hey, I've been working on a chat bot with visual basic 6, and with clean slate bot (BNLS),

The only thing i cant quite do yet is make/join games, with the bot,

Anyone got any ideas how to make/create a game using clean slate bot?

(is cleanslatebot1.buildpacket the solution?)

:D
February 7, 2003, 2:21 PM
MesiaH
you betchya!
February 7, 2003, 3:39 PM
ILurker
Yeah, but what do i put for the build packet code?
Cleanslatebot1.buildpacket    
                                            ^
                                            |
I need the leave game, create game, and join game codes.


:)
February 7, 2003, 4:15 PM
Zakath
Try figuring them out! The fun in programming isn't having other people lead you by the hand; it's figuring out new and innovative ways of doing things.
February 7, 2003, 5:01 PM
St0rm.iD
bnetdocs
February 7, 2003, 8:35 PM
haZe
That has game info?
February 7, 2003, 9:08 PM
ILurker
I've tried to find them out on my own, but i can't. and when i look at bnetdocs, i dont uderstand shit.
help plz?
:-/
February 7, 2003, 9:30 PM
ILurker
Grok
Administrator

Posts: 170
 BnetDocs
« on: Feb 4th, 2003, 11:17pm »

--------------------------------------------------------------------------------
So now that BnetDocs is live, is every other person going to reply to every other bot development question with "its on bnetdocs" instead of helping them with an open discussion?
---------------------
----------------------------------------------------------
February 7, 2003, 9:39 PM
dRAgoN
join game for which client?
February 8, 2003, 12:13 AM
ILurker
Starcraft/Brood War
February 8, 2003, 12:14 AM
dRAgoN
eww i just noticed the (withcleanslatebot)
does that ocx/bot evin have udp capability 8\
February 8, 2003, 12:22 AM
ILurker
cuphead.valhallalehends.com CleanSlateBot Is the ocx, its (BNLS), that is what im using, when i said (withcleanslatebot) i meant to join/create games with clean slate bot.

and yes it does have udp capability
February 8, 2003, 12:24 AM
dRAgoN
first thing is first look in a packet logger at FF 1C create numerus games all differant types diferant maps speed settings etc. and watch the game statstring me and one other person were up almost a full night figuring out that statstring. i would suggest you start there first there is lots of work in that string.
February 8, 2003, 12:29 AM
ILurker
ok, got the stat string, what do i do with it?
February 8, 2003, 1:23 AM
Noodlez~
[quote]ok, got the stat string, what do i do with it?[/quote]
figure out what each byte is by comparing it to others. then once you can build your own, you can send that packet
February 8, 2003, 1:58 AM
MesiaH
if cleanslatebot supports udp packets, how do you build one? you cant use .buildpacket, because it isnt the same format, not at all...
February 8, 2003, 2:27 AM
dRAgoN
[quote]ok, got the stat string, what do i do with it?[/quote]

did you create many games/compaired the strings found out what each peice of the string represents 8\
February 8, 2003, 2:33 AM
Arta
Digression:

BnetDocs does not contain information about joining games.

Also, what is there shouldn't be that hard to understand! if you sit down with a packet log and look at the descriptions on bnetdocs and the data in the packet, it should become clear. You might need to persevere for a bit but don't let that put you off!
February 8, 2003, 8:49 AM
ILurker
yes, but i dontr know what to put for the buildpacket source... It supports (buffertype as string, ParramArray saElements() As Variant) As String
I have no idea what do put for these things..
February 8, 2003, 12:57 PM
UserLoser
Perhaps reading the readme for it...???

http://cuphead.valhallalegends.com/ocx.htm
February 8, 2003, 1:26 PM
MesiaH
You cant do it anyways, i just read that thing, and when it says it supports UDP, its referring to sending 0x14 packet, which is a TCP packet sent to bnet during the login, to tell it that it does support UDP packets, if it is not sent, battle.net game clients will not allow you to join or create games.

cleanslatebox does not support UDP, so the most your going to get out of it, is getting game info and sitting in a game lobby all by yourself.
February 8, 2003, 2:13 PM
ILurker
So basically, there is no way to make /create games with bnls? do you have to use "winsock"?
February 8, 2003, 2:42 PM
MesiaH
you can create the game using cleanslatebot, but if you want other people to see you, or for people to be able to join your game, your going to need udp support. This is still possible if you add your own UDP socket, and carry over a few certain values from the cleanslatebot.
February 8, 2003, 4:09 PM
tA-Kane
[quote]So basically, there is no way to make /create games with bnls?[/quote]
The BNLS protocol does not support creating games, last I checked.
February 8, 2003, 5:47 PM
iago
[quote]you can create the game using cleanslatebot, but if you want other people to see you, or for people to be able to join your game, your going to need udp support. This is still possible if you add your own UDP socket, and carry over a few certain values from the cleanslatebot.[/quote]

And I'm reasonably sure that VB's winsock.ocx (or whatever it's called) isn't good enough for that purpose because UDP sockets have to be bound, and it can't listen on the same port that it recieves on which is a requirement for the Game protocol.
February 8, 2003, 7:14 PM
Spht
[quote]

And I'm reasonably sure that VB's winsock.ocx (or whatever it's called) isn't good enough for that purpose because UDP sockets have to be bound, and it can't listen on the same port that it recieves on which is a requirement for the Game protocol.[/quote]

Naw, works fine. I've had in-game support for Starcraft/BroodWar using Visual Basic for a while now.
February 8, 2003, 8:59 PM
haZe
Is there any way I can packet log Brood War games without actaully being in them? (not allowed to go on sc)
February 8, 2003, 9:23 PM
Zakath
Not really...even if you use something *other* than SC to do it, you'll still need to be in the game to be able to packet log it. You could have someone else do it for you, though.
February 8, 2003, 9:38 PM
haZe
Any takers? ::)
February 8, 2003, 9:44 PM
UserLoser
I would, but WPE PRO doesnt show most of those packets, which are UDP
February 8, 2003, 10:11 PM
haZe
heh thx for the offer tho
February 8, 2003, 10:18 PM
ILurker
BuildPacket(SocketName, PacketData) - Builds a binary packet for sending to Battle.net, BNLS, or a Diablo II realm.
Example: CleanSlateBot1.BuildPacket("BNET", "PACKET", &H10, "DWORD", 2, "NTSTRING", "ChannelToJoin", "PACKET", &HC)

Packet Builder currently supports:
Sockets: BNET, REALM, BNLS
Types: BYTE, WORD, DWORD, STRING, NTSTRING, PACKET, GTC*
GTC = GetTickCount()



**Where would i put the hex code-looking strings?**

Cleanslatebot1.buildpacket WhatGoesHere
February 8, 2003, 11:06 PM
MesiaH
BuildPacket is just a buffer that lets you insert items one by one, so itd be used like this:

CleanSlateBot1.BuildPacket("BNET", "PACKET", &H10, "DWORD", 2, "NTSTRING", "ChannelToJoin", "PACKET", &HC)

the BNET is what server to send the packet to, the PACKET says its the end of the current data in the first packet, the &h10 is the packetID, the DWORD is to insert a DWORD to the buffer, the 2 is the value of the DWORD, the NTSTRING inserts a null terminated (00 00 in packet log) string to the buffer, ChannelToJoin is the text that is going to be inserted, the PACKET says thats the end of the data in that packet, and &hc is the packetID.

This is used for most binary bot rejoin functions, it sends 0x10 (private game) and send 0x0C (full channel join) to rejoin the channel you are currently in.

[quote]Kane Said:
So basically, there is no way to make /create games with bnls?  

The BNLS protocol does not support creating games, last I checked.[/quote]

BNLS has nothing to do with creating games, or using non-login related battle.net packets, its just there for login purpouses, IIRC.

[quote]Posted by: UserLoser
I would, but WPE PRO doesnt show most of those packets, which are UDP[/quote]

The WPE PRO i have does indeed log UDP packets, it just doesnt give you an indication, but they are not hard to distinguish, considering your only logging one program, and there are only 2 protocols used by that program.
February 8, 2003, 11:18 PM
ILurker
Can i join [vL], by any chance?  :D
February 8, 2003, 11:38 PM
tA-Kane
[quote]BNLS has nothing to do with creating games, or using non-login related battle.net packets, its just there for login purpouses, IIRC.[/quote]
Duh...  ::)
February 9, 2003, 8:53 AM
MesiaH
when he said "with bnls" im sure he meant cleanslatebot...
February 9, 2003, 7:25 PM

Search