Valhalla Legends Forums Archive | Battle.net Bot Development | BotNet 0x0B "issues"

AuthorMessageTime
R.a.B.B.i.T
I'm sending different 0x0B packets following the spec (I don't get any errors), but nothing happens.  Messages are sent, but not received.  I'm using SphtBot3 as my control, but I don't receive messages from that either, so I assume I'm doing something wrong.  Anyone help?
May 6, 2005, 6:17 PM
UserLoser.
Make sure you're sending to the correct bot (it's based on bot id numbers), the user is allowing messages, and I can't tell from your post, but don't think that when you send a message it will echo it back to you (i.e. private message like on b.net).  Maybe you are receiving them and your handler is broken?  Have you used a network monitor utility yet?
May 6, 2005, 6:56 PM
R.a.B.B.i.T
I watched my entire test with Ethereal.  I received TCP packets, but they had no data in them; they were only headers.  I sent these messages:
My bot -> itself
My bot -> SphtBot
SphtBot -> my bot
SphtBot -> itself

I never received an 0x0B packet from BotNet.  I did, however, still receive 0x06 and 0x07 packets.
May 6, 2005, 9:34 PM
UserLoser.
[quote author=rabbit link=topic=11506.msg111317#msg111317 date=1115415259]
I watched my entire test with Ethereal.  I received TCP packets, but they had no data in them; they were only headers.  I sent these messages:
My bot -> itself
My bot -> SphtBot
SphtBot -> my bot
SphtBot -> itself

I never received an 0x0B packet from BotNet.  I did, however, still receive 0x06 and 0x07 packets.
[/quote]

You must be sending a message with a bad bot id.  Try hardcoding the bot id to 1 and see if you get a reply ;).  It seems odd that you don't recieve messages from SphtBot
May 7, 2005, 3:15 AM
R.a.B.B.i.T
Even messaging everyone on BotNet from SphtBot doesn't get an 0x0B to my bot or even another SphtBot.

[edit]
Control between two SphtBots:
[quote author="SphtBot A"][17:42:10] (Broadcast) <*SphtBotv3%4918> test
[17:44:38] (BotNet) <To: thefuzzyone> hrm[/quote]
[quote author="SphtBot B"][17:44:00] (Broadcast) <thefuzzyone> test
[17:44:29] (BotNet) <To: *SphtBotv3%4918> grr[/quote]

Neither received any messages, so at this point I'm assuming something's up with the server itself.
May 7, 2005, 9:35 PM
UserLoser.
[quote author=rabbit link=topic=11506.msg111432#msg111432 date=1115501751]
Even messaging everyone on BotNet from SphtBot doesn't get an 0x0B to my bot or even another SphtBot.

[edit]
Control between two SphtBots:
[quote author="SphtBot A"][17:42:10] (Broadcast) <*SphtBotv3%4918> test
[17:44:38] (BotNet) <To: thefuzzyone> hrm[/quote]
[quote author="SphtBot B"][17:44:00] (Broadcast) <thefuzzyone> test
[17:44:29] (BotNet) <To: *SphtBotv3%4918> grr[/quote]

Neither received any messages, so at this point I'm assuming something's up with the server itself.
[/quote]

You can't send broadcasts over botnet unless you have permission to (ex: an administrator).  Try logging onto an account, then whispering
May 8, 2005, 12:30 AM
tA-Kane
Messaging everyone from nonauthorized clients has been disabled, for security reasons. You must have write access to the database you are a part of in order to broadcast to database, and you must have special permission (server admin, I think) in order to broadcast to all.

As for not receiving messages, it's most likely because of the server-side chat filters.

Make sure you're using the latest version of SphtBotv3, then try playing with these two commands (ripped directly from the SphtBotv3 Documentation... did you read that?):
[code]/chatdropoptions *** Displays the current BotNet chat drop options
/setchatdropoptions <0|1|2> <0|1|2> <0|1|2> <0|1> *** Sets BotNet chat drop options.  See BotNet protocol specification for more information[/code]
May 8, 2005, 12:35 AM
UserLoser.
I don't think the SphtBotv3 documentation states where the BotNet documentation is.  So, here it is.
May 8, 2005, 12:38 AM
tA-Kane
BnetDocs also contains a fair amount of documentation on BotNet. It's a lot more readable there than in that document in my opinion.
May 8, 2005, 12:40 AM
R.a.B.B.i.T
I've used both BotNet specs and BnetDocs to construct my BotNet handler.  I also downloaded a fresh copy of SphtBot.

About 0x10, the docs specify that if not received, the server sets all values to 0, which is global accept.
May 8, 2005, 2:50 AM
UserLoser.
[quote author=rabbit link=topic=11506.msg111464#msg111464 date=1115520619]
I've used both BotNet specs and BnetDocs to construct my BotNet handler.  I also downloaded a fresh copy of SphtBot.

About 0x10, the docs specify that if not received, the server sets all values to 0, which is global accept.
[/quote]

Just show us packet logs of what you're doing.  Make sure you know the correct format:
[quote]
(send to server) id 0x0b: botnet chat
Contents:
(DWORD) command
0 : message to all bots
1 : message to bots on the same database
2 : message to bot specified by id.
(DWORD) action : 0x00=talk, 0x01=emote, any other is dropped
(DWORD) id : for command 0x02, id of bot to send to, otherwise ignored.
(STRING:496) message: blank messages are dropped
Response: the server generates 0xb to the specified other clients.  No
response is sent to the sending client.
[/quote]
May 8, 2005, 4:41 AM
R.a.B.B.i.T
I'll do that, but a note: I get 0x08 messages when any packet is malformed.

[edit]
Logs; ethereal isn't liking me and won't save right now, so here's WPEAlpha:

SphtBot A
[code]1  192.168.2.9:3127  63.161.183.205:21845  20  Send 
0000  01 0B 14 00 02 00 00 00 00 00 00 00 70 13 00 00    ............p...
0010  72 72 72 00                                        rrr.[/code]

SphtBot B
[code]1  192.168.2.9:3138  63.161.183.205:21845  20  Send 
0000  01 0B 14 00 02 00 00 00 00 00 00 00 6E 13 00 00    ............n...
0010  68 72 6D 00                                        hrm.[/code]

My Bot
[code]4  192.168.2.9:3157  63.161.183.205:21845  20  Send 
0000  01 0B 14 00 00 00 00 00 02 00 00 00 73 13 00 00    ............s...
0010  68 72 6D 00                                        hrm.[/code]
May 8, 2005, 2:41 PM
UserLoser.
[quote author=rabbit link=topic=11506.msg111514#msg111514 date=1115563303]
My Bot
[code]4  192.168.2.9:3157  63.161.183.205:21845  20  Send 
0000  01 0B 14 00 00 00 00 00 02 00 00 00 73 13 00 00    ............s...
0010  68 72 6D 00                                        hrm.[/code]
[/quote]

[quote]
  (DWORD) command
      0  : message to all bots
      1  : message to bots on the same database
      2  : message to bot specified by id.
  (DWORD) action  : 0x00=talk, 0x01=emote, any other is dropped
  (DWORD) id  : for command 0x02, id of bot to send to, otherwise ignored.
  (STRING:496) message: blank messages are dropped
Response: the server generates 0xb to the specified other clients.  No
response is sent to the sending client.
[/quote]

What you're doing is in bold.
May 8, 2005, 5:04 PM
R.a.B.B.i.T
An extra DWORD was being inserted, but I'm not sure why, I'll check my code again, but even still:
[code]0000:  01 0B 15 00 02 00 00 00 00 00 00 00 9E 13 00 00   ........˛..
0010:  74 65 73 74 00                                    test............[/code]
No respense.
May 8, 2005, 10:57 PM
UserLoser.
Like I said many times now, hardcode 1 as botid and see if you get a response
May 9, 2005, 3:25 AM
R.a.B.B.i.T
No, I don't.
May 9, 2005, 3:32 AM

Search