• Welcome to Valhalla Legends Archive.
 

error with 0x2C

Started by killer, June 30, 2003, 03:30 PM

Previous topic - Next topic

killer

After sending 0x2C after being in a game for 2 minutes i'm being disconnected from bnet and given a disconnect on my record. as a result of it happending right after i send 0x2C i think the problems lies there any help is appriciated

Public Function Ac()
p.InsertDWORD &H0
p.InsertDWORD &H8
p.InsertDWORD &H1
p.InsertDWORD &H2
p.InsertDWORD &H0
p.InsertDWORD &H0
p.InsertDWORD &H0
p.InsertDWORD &H0
p.InsertDWORD &H0
p.InsertDWORD &H0
p.InsertNTString "killer"
p.InsertNTString "black"
p.InsertNTString ""
p.InsertNTString ""
p.InsertNTString ""
p.InsertNTString ""
p.InsertNTString ""
p.InsertNTString ""
p.InsertNTString "On map The Lost Temple:" & Chr(&HA)
p.InsertBYTE &H0
p.InsertNonNTString "killer" & " was Zerg and played for 3 minutes" & Chr(&HA)
p.InsertBYTE &HA
p.InsertNonNTString "  "
p.InsertNonNTString "Overall Score 64912" & Chr(&HA)
p.InsertNonNTString "         43025 for Units" & Chr(&HA)
p.InsertNonNTString "          3465 for Structures" & Chr(&HA)
p.InsertNonNTString "         18422 for Resources" & Chr(&HA)
p.InsertBYTE &HA
p.InsertNonNTString "  "
p.InsertNonNTString "Units Score 43025" & Chr(&HA)
p.InsertNonNTString "           131 Units Produced" & Chr(&HA)
p.InsertNonNTString "            76 Units Killed" & Chr(&HA)
p.InsertNonNTString "            95 Units Lost" & Chr(&HA)
p.InsertBYTE &HA
p.InsertNonNTString "  "
p.InsertNonNTString "Structures Score 3465" & Chr(&HA)
p.InsertNonNTString "            33 Structures Constructed" & Chr(&HA)
p.InsertNonNTString "             2 Structures Razed" & Chr(&HA)
p.InsertNonNTString "            33 Structures Lost" & Chr(&HA)
p.InsertBYTE &HA
p.InsertNonNTString "  "
p.InsertNonNTString "Resources Score 18423" & Chr(&HA)
p.InsertNonNTString "          4361 Gas Mined" & Chr(&HA)
p.InsertNonNTString "         14062 Minerals Mined" & Chr(&HA)
p.InsertNonNTString "         17294 Total Spent" & Chr(&HA)
p.InsertBYTE &H0
p.sendPacket &H2C
AddChat vbGreen, "Sent Game Data"
End Function

UserLoser

Are you sending 0x2C with BOTH clients?

DarkMinion

AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH

I'm sorry, but that code would make any sane person shriek  :D

killer

yep both clients are sending 0x2C

Dark-Feanor

Try packet logging again. I just inserted a bitch load of bytes for my 0x2C and it worked. Try that. A good thing to do is packet log your "winbot" and compare it to the 0x2C of battle.net and fix all the discrepencies.
- Feanor[xL]
clan exile
Firebot
iago: "caps lock is like cruise control for cool"

OriOn

Your 2cff packet is wrong :))) and so u are disconnect from bnet :p
Take a packet logger and a real game and you will see what is wrong in your packet.

Ps: in your packet, u miss to put 8 BYTES :)

UserLoser

Actually, I don't think that the game info in this packet has to be exact.  DeeJayy put in there crap like "DeeJayy is god on map DeeJayy'sMap" an it all worked still.  He completely ignored the scores and just replaced it with his name...

OriOn

I don t speak about the game infos (it s right that u can put what u want like i do :p ) but in the packet, it miss 8 well choosen  bytes. killer must search a few what is wrong :)


killer

ok i packted logged bw and got this for 0x2C

SEND-> 0000   FF 2C 4A 02 00 00 00 00 08 00 00 00 01 00 00 00    .,J.............
SEND-> 0010   02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
SEND-> 0020   00 00 00 00 00 00 00 00 00 00 00 00 4F 77 6E 61    ............Owna
SEND-> 0030   67 65 5B 47 67 5D 00 62 6C 61 63 6B 28 61 29 00    ge[Gg].black(a).
SEND-> 0040   00 00 00 00 00 00 4F 6E 20 6D 61 70 20 22 54 68    ......On map "Th
SEND-> 0050   65 20 4C 6F 73 74 20 54 65 6D 70 6C 65 22 3A 0A    e Lost Temple":.
SEND-> 0060   00 62 6C 61 63 6B 28 61 29 20 77 61 73 20 5A 65    .black(a) was Ze
SEND-> 0070   72 67 20 61 6E 64 20 70 6C 61 79 65 64 20 66 6F    rg and played fo
SEND-> 0080   72 20 31 38 20 6D 69 6E 75 74 65 73 0A 0A 20 20    r 18 minutes..  
SEND-> 0090   4F 76 65 72 61 6C 6C 20 53 63 6F 72 65 20 32 38    Overall Score 28
SEND-> 00A0   36 34 30 0A 20 20 20 20 20 20 20 20 20 31 37 30    640.         170
SEND-> 00B0   30 30 20 66 6F 72 20 55 6E 69 74 73 0A 20 20 20    00 for Units.  
SEND-> 00C0   20 20 20 20 20 20 20 31 39 31 30 20 66 6F 72 20           1910 for
SEND-> 00D0   53 74 72 75 63 74 75 72 65 73 0A 20 20 20 20 20    Structures.    
SEND-> 00E0   20 20 20 20 20 39 37 33 30 20 66 6F 72 20 52 65         9730 for Re
SEND-> 00F0   73 6F 75 72 63 65 73 0A 0A 20 20 55 6E 69 74 73    sources..  Units
SEND-> 0100   20 53 63 6F 72 65 20 31 37 30 30 30 0A 20 20 20     Score 17000.  
SEND-> 0110   20 20 20 20 20 20 20 20 20 37 36 20 55 6E 69 74             76 Unit
SEND-> 0120   73 20 50 72 6F 64 75 63 65 64 0A 20 20 20 20 20    s Produced.    
SEND-> 0130   20 20 20 20 20 20 20 31 37 20 55 6E 69 74 73 20           17 Units
SEND-> 0140   4B 69 6C 6C 65 64 0A 20 20 20 20 20 20 20 20 20    Killed.        
SEND-> 0150   20 20 20 36 30 20 55 6E 69 74 73 20 4C 6F 73 74       60 Units Lost
SEND-> 0160   0A 0A 20 20 53 74 72 75 63 74 75 72 65 73 20 53    ..  Structures S
SEND-> 0170   63 6F 72 65 20 31 39 31 30 0A 20 20 20 20 20 20    core 1910.      
SEND-> 0180   20 20 20 20 20 20 31 37 20 53 74 72 75 63 74 75          17 Structu
SEND-> 0190   72 65 73 20 43 6F 6E 73 74 72 75 63 74 65 64 0A    res Constructed.
SEND-> 01A0   20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 53                 0 S
SEND-> 01B0   74 72 75 63 74 75 72 65 73 20 52 61 7A 65 64 0A    tructures Razed.
SEND-> 01C0   20 20 20 20 20 20 20 20 20 20 20 20 31 37 20 53                17 S
SEND-> 01D0   74 72 75 63 74 75 72 65 73 20 4C 6F 73 74 0A 0A    tructures Lost..
SEND-> 01E0   20 20 52 65 73 6F 75 72 63 65 73 20 53 63 6F 72      Resources Scor
SEND-> 01F0   65 20 39 37 33 30 0A 20 20 20 20 20 20 20 20 20    e 9730.        
SEND-> 0200   20 31 38 31 36 20 47 61 73 20 4D 69 6E 65 64 0A     1816 Gas Mined.
SEND-> 0210   20 20 20 20 20 20 20 20 20 20 37 39 31 34 20 4D              7914 M
SEND-> 0220   69 6E 65 72 61 6C 73 20 4D 69 6E 65 64 0A 20 20    inerals Mined.  
SEND-> 0230   20 20 20 20 20 20 20 20 38 34 35 30 20 54 6F 74            8450 Tot
SEND-> 0240   61 6C 20 53 70 65 6E 74 0A 00                      al Spent..

which i remake my funtion using the packet log

Public Function Ac()
p.InsertBytes "00 00 00 00 08 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4F 77 6E 61 67 65 5B 47 67 5D 00 62 6C 61 63 6B 28 61 29 00 00 00 00 00 00 00 4F 6E 20 6D 61 70 20 22 54 68 65 20 4C 6F 73 74 20 54 65 6D 70 6C 65 22 3A 0A 00 4F 77 6E 61 67 65 5B 47 67 5D 20 77 61 73 20 5A 65 72 67 20 61 6E 64 20 70 6C 61 79 65 64 20 66 6F 72 20 31 38 20 6D 69 6E 75 74 65 73 0A 0A 20 20 4F 76 65 72 61 6C 6C 20 53 63 6F 72 65 20 32 38 36 34 30 0A 20 20 20 20 20 20 20 20 20 31 37 30 30 30 20 66 6F 72 20 55 6E 69 74 73 0A 20 20 20 20 20 20 20 20 20 20 31 39 31 30 20 66 6F 72 20 53 74 72 75 63 74 75 72 65 73 0A 20 20 20 20 20 20 20 20 20 20 39 37 33 30 20 66 6F 72 20 52 65 73 6F 75 72 63 65 73 0A 0A 20 20 55 6E 69 74 73 20 53 63 6F 72 65 20 31 37 30 30 30 0A 20 20 20 20 20 20 20 20 20 20 20 20 37 36 20 55 6E 69 74 73 20 50 72 6F 64 75 63 65 64 0A 20 20 20 20 20 20 20 20 20 20 20 20 31 37 20 55 6E 69 74 73 20 4B 69 6C 6C 65 64 0A 20 20 20 20 20 20 20 20 20"
p.InsertBytes "20 20 20 36 30 20 55 6E 69 74 73 20 4C 6F 73 74 0A 0A 20 20 53 74 72 75 63 74 75 72 65 73 20 53 63 6F 72 65 20 31 39 31 30 0A 20 20 20 20 20 20 20 20 20 20 20 20 31 37 20 53 74 72 75 63 74 75 72 65 73 20 43 6F 6E 73 74 72 75 63 74 65 64 0A 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 53 74 72 75 63 74 75 72 65 73 20 52 61 7A 65 64 0A 20 20 20 20 20 20 20 20 20 20 20 20 31 37 20 53 74 72 75 63 74 75 72 65 73 20 4C 6F 73 74 0A 0A 20 20 52 65 73 6F 75 72 63 65 73 20 53 63 6F 72 65 20 39 37 33 30 0A 20 20 20 20 20 20 20 20 20 20 31 38 31 36 20 47 61 73 20 4D 69 6E 65 64 0A 20 20 20 20 20 20 20 20 20 20 37 39 31 34 20 4D 69 6E 65 72 61 6C 73 20 4D 69 6E 65 64 0A 20 20 20 20 20 20 20 20 20 20 38 34 35 30 20 54 6F 74 61 6C 20 53 70 65 6E 74 0A 00"
p.sendPacket &H2C
AddChat vbGreen, "Sent Game Data"
p.sendPacket &H2
End Function

i no longer get banned from bnet but when they come back to the channel and i check their stats they both have disconnects .....

UserLoser

Probably your 0x1C's.  How many times do you send it?

killer

#10
first to create i send

Private Sub Command1_Click()
AddChat vbGreen, "Creating Game"
p.InsertDWORD &H1
p.InsertDWORD &H0
p.InsertWORD &H2
p.InsertWORD &H0
p.InsertDWORD &H1F
p.InsertDWORD &H0
p.InsertNTString "TesT"
p.InsertNTString "12"
p.InsertNTString ",44,14,6,2,2,1,f69e9256,4,," & Module1.varUser & &HD & "The Lost Temple" & &HD
p.sendPacket &H1C
End Sub

then after my other bot joins i send

Public Function D()
p.sendPacket &H10
p.InsertDWORD &HC
p.InsertDWORD &H8
p.InsertWORD &H2
p.InsertWORD &H1
p.InsertDWORD &H1F
p.InsertDWORD &H0
p.InsertNTString "TesT"
p.InsertNTString "12"
p.InsertNTString ",44,14,6,2,2,1,f69e9256,4,," & Module1.varUser & &HD & "The Lost Temple" & &HD
p.sendPacket &H1C
End Function

to start it

any problems with that?

killer

i figured out all the problems with creating and what not btw. and to answer your question the info needed is added in with my packetbuffer class