Valhalla Legends Forums Archive | Battle.net Bot Development | Wierd error =P

AuthorMessageTime
fataly
[quote]So, when im connectin to Europe --> i got 80% change to get closed connection. On other realms i can almost login normaly.. whats wrong?

plz if u got clue tell me whats wrong :( i can also paste packet logs if want see..

No1 understunt what i mean:) so here is my logon :
C>S MCP Protocol Byte (0x01)
C>S MCP (0x01) MCP_STARTUP
S>C MCP (0x01) MCP_STARTUP
C>S MCP (0x19) MCP_CHARLIST2 
S>C MCP (0x19) MCP_CHARLIST2
C>S MCP (0x07) MCP_CHARLOGON
S>C MCP (0x07) MCP_CHARLOGON
C->S BNCS: (0x0A) SID_ENTERCHAT
S->C BNCS: (0x0A) SID_ENTERCHAT

Whats wrong? its close connections after:
0X0A
[/quote]

NEVERMIND! i got it work, i was sending very nooblike 0X0A :) its works now !

January 13, 2009, 4:07 PM
fataly
Sry for not used edit ! :F Problem is again here. So i can log with character to uswest asia and useast, But not europe???? whats wrong?
C>S MCP Protocol Byte (0x01)
C>S MCP (0x01) MCP_STARTUP
S>C MCP (0x01) MCP_STARTUP
C>S MCP (0x19) MCP_CHARLIST2 
S>C MCP (0x19) MCP_CHARLIST2
C>S MCP (0x07) MCP_CHARLOGON
S>C MCP (0x07) MCP_CHARLOGON
C->S BNCS: (0x0A) SID_ENTERCHAT
S->C BNCS: (0x0A) SID_ENTERCHAT
January 13, 2009, 7:05 PM
Ribose
Works fine for me:
[code]
[3:05:25 PM] SENT BNET PACKET 0x40 SID_QUERYREALMS2:
0000   ff 40 04 00                                         ÿ@..
[3:05:25 PM] RECIEVED BNET PACKET 0x40 SID_QUERYREALMS2:
0000   ff 40 33 00 00 00 00 00  01 00 00 00 01 00 00 00    ÿ@3.............
0010   55 53 45 61 73 74 00 52  65 61 6c 6d 20 66 6f 72    USEast.Realm for
0020   20 74 68 65 20 55 53 20  45 61 73 74 20 43 6f 61     the US East Coa
0030   73 74 00                                            st.
[3:05:25 PM] 1 realm(s) found: USEast (Realm for the US East Coast),.
[3:05:25 PM] SENT BNET PACKET 0x3E SID_LOGONREALMEX:
0000   ff 3e 23 00 fb 18 85 5d  1b dc ff 15 54 a5 2c e1    ÿ>#.û..].Üÿ.T¥,á
0010   2b 88 dd e2 e9 20 22 88  78 fe be 5c 55 53 45 61    +.Ýâé ".xþ.\USEa
0020   73 74 00                                            st.
[3:05:25 PM] RECIEVED BNET PACKET 0x3E SID_LOGONREALMEX:
0000   ff 3e 53 00 fb 18 85 5d  97 7f e8 e8 3f f0 ca 79    ÿ>S.û..]..èè?ðÊy
0010   b2 da 2d 00 3f f0 ca 94  17 e0 00 00 00 00 06 00    .Ú-.?ðÊ..à......
0020   da ab 36 00 94 30 19 fc  50 58 32 44 36 38 58 49    Ú«6..0.üPX2D68XI
0030   3f f0 ca 79 09 04 00 00  01 6e 1c 8c 57 82 3e bb    ?ðÊy.....n..W.>»
0040   f6 bd 63 98 ae d8 1e d4  16 f8 22 42 52 69 62 6f    ö.c.®Ø.Ô.ø"BRibo
0050   73 65 00                                            se.
[3:05:25 PM] Connecting to USEast realm server 63.240.202.148..
[3:05:25 PM] Connected!
[3:05:26 PM] SENT MCP BYTE 0x1
[3:05:26 PM] SENT MCP PACKET 0x1 MCP_STARTUP:
0000   4a 00 01 fb 18 85 5d 97  7f e8 e8 3f f0 ca 79 b2    J..û..]..èè?ðÊy.
0010   da 2d 00 00 00 06 00 da  ab 36 00 94 30 19 fc 50    Ú-.....Ú«6..0.üP
0020   58 32 44 36 38 58 49 3f  f0 ca 79 09 04 00 00 01    X2D68XI?ðÊy.....
0030   6e 1c 8c 57 82 3e bb f6  bd 63 98 ae d8 1e d4 16    n..W.>»ö.c.®Ø.Ô.
0040   f8 22 42 52 69 62 6f 73  65 00                      ø"BRibose.
[3:05:26 PM] RECIEVED MCP PACKET 0x1 MCP_STARTUP:
0000   07 00 01 00 00 00 00                                .......
[3:05:26 PM] Requesting character list..
[3:05:26 PM] SENT MCP PACKET 0x19 MCP_CHARLIST2:
0000   07 00 19 08 00 00 00                                .......
[3:05:26 PM] RECIEVED MCP PACKET 0x19 MCP_CHARLIST2:
0000   3f 00 19 08 00 01 00 00  00 01 00 f4 48 e6 49 4e    ?..........ôHæIN
0010   65 63 72 69 62 6f 6d 61  6e 63 65 72 00 84 80 3a    ecribomancer...:
0020   02 02 02 02 0b ff ff 02  02 60 03 ff ff ff ff ff    .....ÿÿ..`.ÿÿÿÿÿ
0030   31 ff ff ff ff ff 42 e8  96 ff ff 05 ff ff 00       1ÿÿÿÿÿBè.ÿÿ.ÿÿ.
[3:05:26 PM] Returned 1 characters. Select a character on the left.
[3:05:28 PM] Logging in to character Necribomancer..
[3:05:28 PM] SENT MCP PACKET 0x7 MCP_CHARLOGON:
0000   11 00 07 4e 65 63 72 69  62 6f 6d 61 6e 63 65 72    ...Necribomancer
0010   00                                                  .
[3:05:28 PM] RECIEVED BNET MCP PACKET 0x7 MCP_CHARLOGON:
0000   07 00 07 00 00 00 00                                .......
[3:05:28 PM] Character logon succeeded.
[3:05:28 PM] SENT BNET PACKET 0xA SID_ENTERCHAT:
0000   ff 0a 0c 00 52 69 62 6f  73 65 00 00                ÿ...Ribose..
[3:05:28 PM] SENT BNET PACKET 0xB SID_GETCHANNELLIST:
0000   ff 0b 08 00 00 00 00 00                              ÿ.......
[3:05:28 PM] SENT BNET PACKET 0x65 SID_FRIENDSLIST:
0000   ff 65 04 00                                         ÿe..
[3:05:28 PM] RECIEVED BNET PACKET 0xA SID_ENTERCHAT:
0000   ff 0a 4d 00 52 69 62 6f  73 65 00 50 58 32 44 55    ÿ.M.Ribose.PX2DU
0010   53 45 61 73 74 2c 4e 65  63 72 69 62 6f 6d 61 6e    SEast,Necriboman
0020   63 65 72 2c 84 80 3a 02  02 02 02 0b ff ff 02 02    cer,..:.....ÿÿ..
0030   60 03 ff ff ff ff ff 31  ff ff ff ff ff 42 e8 96    `.ÿÿÿÿÿ1ÿÿÿÿÿBè.
0040   ff ff 05 ff ff 00 52 69  62 6f 73 65 00             ÿÿ.ÿÿ.Ribose.
[3:05:28 PM] Entered chat environment as Necribomancer (*Ribose) using Diablo II: Lord of Destruction (Champion Necribomancer, a level 66 Ladder, Expansion Necromancer in Act II of Hell on realm USEast)![/code]

Check over your code and make sure the packets are formatted correctly.
January 13, 2009, 8:11 PM
fataly
Check this : D
[code]
[23:13:24] Connecting Europe..
[23:13:25] Connected!
[23:13:25] CheckRevision..
[23:13:25] Getting Realmlist..
[23:13:25] Logging Onto Account..
[23:13:26] Connecting MCP ( 213.248.106.208:6112 )..
[23:13:26] Connected!
[23:13:26] Character logon success.
[23:13:26] Entering Chat.
[23:13:26] Connection Closed
[/code]
[code]
[23:14:16] Connecting UsWest..
[23:14:16] Connected!
[23:14:17] CheckRevision..
[23:14:17] Getting Realmlist..
[23:14:17] Logging Onto Account..
[23:14:18] Connecting MCP ( 63.241.83.18:6112 )..
[23:14:19] Connected!
[23:14:20] Character logon success.
[23:14:20] Entering Chat.
[23:14:21] Joined channel : Op test
[/code]

Wierd heh :D
January 13, 2009, 9:15 PM
fataly
What is wrong in my send0x0A packets:
FF 0A 1B 00 6B 65 69 6A 6F 00 65 75 72 6F 70 65  ....keijo.useast
00 46 61 74 61 6C 79 36 36 36 00                          .Fataly666.


?
January 14, 2009, 5:06 PM
Ringo
[quote author=fataly link=topic=17783.msg181162#msg181162 date=1231952781]
What is wrong in my send0x0A packets:
FF 0A 1B 00 6B 65 69 6A 6F 00 65 75 72 6F 70 65   ....keijo.useast
00 46 61 74 61 6C 79 36 36 36 00                           .Fataly666.


?
[/quote]
You're sending 3 strings, C>S 0x0A has only 2 iirc.
January 14, 2009, 5:51 PM
Ribose
[code](STRING) Username
(STRING) Statstring[/code]
Basically, just send two empty strings (FF 0A 06 00 00 00) for this packet, since StarCraft, WarCraft II, Diablo II, and WarCraft III ignore them both anyway (Diablo 1 doesn't ignore the statstring, but you won't be booted for empty strings).
January 14, 2009, 8:48 PM
fataly
[quote]
I tried that,
FF 0A 06 00 00 00        ......

Again connection closed.

But i received this on 0X0A:
[code]
FF 0A 4D 00 46 61 74 61 6C 79 36 36 36 00 50 58       ..M.Fataly666.PX
32 44 45 75 72 6F 70 65 2C 46 61 74 61 6C 79 64       2DEurope,Fatalyd
2C 84 80 FF FF FF FF FF FF FF FF FF FF FF 04 FF             ,...............
FF FF FF FF FF FF FF FF FF FF 01 E0 80 FF FF 05             ................
FF FF 00 46 61 74 61 6C 79 36 36 36 00                       ...Fataly666.
[/code]
[/quote]
Now i tried:
[code]
Public Sub Send0x0A()
    Call iClear
Call iNTSTRING(hplayer)
  Call iNTSTRING(hrealm)
    Call iHEADER(&HA)
    Call iPacket(Form1.Winsock1.SocketHandle)
    ShowChat vbBlue, "Entering Chat."
End Sub
[/code]

I can log in asia without problems, cant test europe yet cause ip ban :)
January 15, 2009, 2:35 PM
fataly
Nope, its not work.. what hell is this ? ;F

Edit: Do i need use some kind of delay after log to char ? because servers like uswest and east allow me connect almost every time. (usest and east lags on me so there is little delay )
January 15, 2009, 4:11 PM
Ribose
Do either "hplayer" or "hrealm" contain null characters within them (they should not)? Does all of those functions (iClear, iNTSTRING, iHEADER, iPacket) work correctly?

What does the packet produced look like (packet log) on all four servers?
January 15, 2009, 8:43 PM
fataly
0x0a send :
on europe
I got ip ban atm...
on west
FF 0A 13 00 66 61 74 61 6C 79 64 00 55 73 77 65 73 74 00         ....fatalyd.Uswest.
on east
FF 0A 11 00 6B 65 69 6A 6F 00 55 73 65 61 73 74 00                 ....keijo.Useast.     
on asia
FF 0A 11 00 66 61 74 61 6C 79 73 00 41 73 69 61 00               ....fatalys.Asia.

And here is log when i connected:
[code]
EUROPE:
[22:53:27] Connecting..
[22:53:27] Connected!
[22:53:27] CheckRevision..
[22:53:27] Getting Realmlist..
[22:53:27] Logging Onto Account..
[22:53:27] Connecting MCP ( 213.248.106.208:6112 )..
[22:53:27] Connected!
[22:53:27] Character logon success.
[22:53:27] Entering Chat.
[22:53:27] ÿ
M
[22:53:27] Connection Closed
Not working...

WEST:
[22:54:26] Connecting..
[22:54:26] Connected!
[22:54:27] CheckRevision..
[22:54:27] Getting Realmlist..
[22:54:27] Logging Onto Account..
[22:54:28] Connecting MCP ( 63.241.83.18:6112 )..
[22:54:28] Connected!
[22:54:29] Character logon success.
[22:54:29] Entering Chat.
[22:54:29] ÿ
M
[22:54:42] <fatalyd> working wtf ? :F
This working ? :D

EAST:
[22:55:55] Connecting..
[22:55:55] Connected!
[22:55:56] CheckRevision..
[22:55:56] Getting Realmlist..
[22:55:56] Logging Onto Account..
[22:55:56] Connecting MCP ( 63.240.202.148:6112 )..
[22:55:56] Connected!
[22:55:57] Character logon success.
[22:55:57] Entering Chat.
[22:55:57] ÿ
K
[22:55:57] Connection Closed
Not working...

ASIA:
[22:57:26] Connecting..
[22:57:26] Connected!
[22:57:27] CheckRevision..
[22:57:28] Getting Realmlist..
[22:57:28] Logging Onto Account..
[22:57:29] Connecting MCP ( 211.233.16.239:6112 )..
[22:57:29] Connected!
[22:57:31] Character logon success.
[22:57:31] Entering Chat.
[22:57:31] ÿ
K
[22:57:31] Connection Closed
Not working also...
[/code]
So just uswest is working :( Im sure these iClear, iNTSTRING, iHEADER, iPacket are right. And here is some explain of hplayer and hrealm:
form:
[code]
    modBNET.hrealm = Me.Text6.Text
    modBNET.hplayer = Me.Text7.Text
[/code]
modbnet:
[code]
Public hrealm          As String
Public hplayer           As String

Public Sub Send0x0A()
    Call iClear
Call iNTSTRING(hplayer)
  Call iNTSTRING(hrealm)
    Call iHEADER(&HA)
    Call iPacket(Form1.Winsock1.SocketHandle)
    ShowChat vbBlue, "Entering Chat."
End Sub
[/code]
so... whats other things u wanna know?
January 15, 2009, 9:01 PM
fataly
Ok this is going to very wierd... on morning i connected to europe, but now it dosent closed my connection. Now i have been more than 10 hour online on europe. And i didnt edit code :F Whats can cause this?

EDIT: Again connection closed... this is not funny :F
January 16, 2009, 2:23 PM

Search