Author | Message | Time |
---|---|---|
PiaNKA | I'm making a winbot right now and after packet logging Madd0x's winbot, Starcraft itself and looking at Gamer Bot and Soup Bot winbot sources; I think I got the packets correct. Everything seems to be working correctly except I don't get wins. Here's a hex dump of what I'm sending: [code] FF 2C 41 02 00 00 00 00 08 00 00 00 05 00 00 00 06 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 50 69 61 6E 6B 61 57 69 6E 62 6F 74 00 69 42 6F 74 32 2E 30 00 00 00 00 00 00 00 4F 6E 20 6D 61 70 20 22 41 73 68 72 69 67 6F 22 3A 0A 00 50 69 61 6E 6B 61 57 69 6E 62 6F 74 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 32 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 31 37 30 30 0A 20 20 20 20 20 20 20 20 20 20 20 37 30 30 20 66 6F 72 20 55 6E 69 74 73 0A 20 20 20 20 20 20 20 20 20 20 20 33 30 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 20 37 30 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 37 35 30 0A 20 20 20 20 20 20 20 20 20 20 20 20 31 33 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 20 30 20 55 6E 69 74 73 20 4B 69 6C 6C 65 64 0A 20 20 20 20 20 20 20 20 20 20 20 20 20 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 33 30 30 0A 20 20 20 20 20 20 20 20 20 20 20 20 20 31 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 20 30 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 37 30 30 0A 20 20 20 20 20 20 20 20 20 20 20 20 20 30 20 47 61 73 20 4D 69 6E 65 64 0A 20 20 20 20 20 20 20 20 20 20 20 37 30 30 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 20 34 30 30 20 54 6F 74 61 6C 20 53 70 65 6E 74 0A 00 [/code] My code to authorize map: [code] With clsB .InsertByte &HC8 .InsertByte &H1C .InsertByte &H1 .InsertByte &H0 .InsertByte &H42 .InsertByte &HA7 .InsertByte &H2 .InsertByte &H4D .InsertByte &H93 .InsertByte &H1F .InsertByte &H9F .InsertByte &H3 .InsertByte &H43 .InsertByte &H11 .InsertByte &HEC .InsertByte &HFE .InsertByte &HCB .InsertByte &HA8 .InsertByte &HDB .InsertByte &H70 .InsertByte &H32 .InsertByte &H5F .InsertByte &H3B .InsertByte &H8A .InsertString "(4)Ashrigo.scm" .Send &H3C, i End With [/code] My leave game packet: [code] For i = 0 To UBound(Winbots) If Winbots(i).GameName = Winbots(Index).GameName Then If i = Index Then With clsB .Send &H0, Index End With End If If Winbots(i).Win = True Then Results(CurrRes) = &H5 Else Results(CurrRes) = &H6 End If Players(CurrRes) = Winbots(i).Username CurrRes = CurrRes + 1 End If Next i With clsB .InsertDWORD &H0 .InsertDWORD &H8 .InsertDWORD CLng(Results(0)) .InsertDWORD CLng(Results(1)) .InsertDWORD CLng(Results(2)) .InsertDWORD CLng(Results(3)) .InsertDWORD CLng(Results(4)) .InsertDWORD CLng(Results(5)) .InsertDWORD CLng(Results(6)) .InsertDWORD CLng(Results(7)) .InsertString Players(0) .InsertString Players(1) .InsertString Players(2) .InsertString Players(3) .InsertString Players(4) .InsertString Players(5) .InsertString Players(6) .InsertString Players(7) .InsertNonNTString "On map " & Chr(&H22) & "Ashrigo" & Chr(&H22) & ":" & Chr(&HA) .InsertByte &H0 .InsertNonNTString Winbots(Index).Username & " was Zerg and played for 2 minutes" & Chr(&HA) .InsertByte &HA .InsertNonNTString " " .InsertNonNTString "Overall Score 1700" & Chr(&HA) .InsertNonNTString " 700 for Units" & Chr(&HA) .InsertNonNTString " 300 for Structures" & Chr(&HA) .InsertNonNTString " 700 for Resources" & Chr(&HA) .InsertByte &HA .InsertNonNTString " " .InsertNonNTString "Units Score 750" & Chr(&HA) .InsertNonNTString " 13 Units Produced" & Chr(&HA) .InsertNonNTString " 0 Units Killed" & Chr(&HA) .InsertNonNTString " 0 Units Lost" & Chr(&HA) .InsertByte &HA .InsertNonNTString " " .InsertNonNTString "Structures Score 300" & Chr(&HA) .InsertNonNTString " 1 Structures Constructed" & Chr(&HA) .InsertNonNTString " 0 Structures Razed" & Chr(&HA) .InsertNonNTString " 0 Structures Lost" & Chr(&HA) .InsertByte &HA .InsertNonNTString " " .InsertNonNTString "Resources Score 700" & Chr(&HA) .InsertNonNTString " 0 Gas Mined" & Chr(&HA) .InsertNonNTString " 700 Minerals Mined" & Chr(&HA) .InsertNonNTString " 400 Total Spent" & Chr(&HA) .InsertByte &H0 .Send &H2C, Index .Send &H2, Index .InsertString Winbots(Index).Username .InsertByte &H0 .Send &HA, Index .InsertDWORD &H2 .InsertString ReadINI("Settings", "Channel") .Send &HC, Index End With [/code] | August 12, 2004, 2:00 AM |
Myndfyr | [quote author=PiaNKA link=board=17;threadid=8137;start=0#msg75125 date=1092276047] I'm making a winbot right now and after packet logging Madd0x's winbot, Starcraft itself and looking at Gamer Bot and Soup Bot winbot sources; I think I got the packets correct. Everything seems to be working correctly except I don't get wins. [/quote] Ignoring your code completely, are you emulating two actual players, or one player and one computer? Battle.net only records games with more than one human player. | August 12, 2004, 2:07 AM |
PiaNKA | Two human players, no computers. | August 12, 2004, 2:19 AM |
UserLoser. | I've been told SID_GAMEREPORT is different, and is more XML-stylish. I havn't looked at it my self. Also, you can't expect to copy code and make it work. | August 12, 2004, 3:33 AM |
PiaNKA | [quote author=UserLoser. link=board=17;threadid=8137;start=0#msg75163 date=1092281580] I've been told SID_GAMEREPORT is different, and is more XML-stylish. I havn't looked at it my self. Also, you can't expect to copy code and make it work. [/quote] I understand that which is why I didn't copy code, like I said, I looked at it. Then of course I did get a hex dump of 0x2C from Starcraft and you're correct it did look XML-ish, though I don't understand why Madd0x's winbot can use the old style...and still get wins. | August 12, 2004, 3:55 PM |
iago | I don't think battle.net cares about that text. And you really ought to find out what each of the values your'e sending does. Create a ton of games, changing each option, and figure out what's going on. | August 12, 2004, 7:11 PM |
PiaNKA | [quote author=iago link=board=17;threadid=8137;start=0#msg75257 date=1092337904] I don't think battle.net cares about that text. And you really ought to find out what each of the values your'e sending does. Create a ton of games, changing each option, and figure out what's going on. [/quote] Nobody is getting this, huh? I've packet logged it, I get what it does, I just don't get why it doesn't work. I was just hoping perhaps somebody who had done this before knew of something I did wrong... | August 12, 2004, 9:33 PM |
Myndfyr | [quote author=PiaNKA link=board=17;threadid=8137;start=0#msg75271 date=1092346407] [quote author=iago link=board=17;threadid=8137;start=0#msg75257 date=1092337904] I don't think battle.net cares about that text. And you really ought to find out what each of the values your'e sending does. Create a ton of games, changing each option, and figure out what's going on. [/quote] Nobody is getting this, huh? I've packet logged it, I get what it does, I just don't get why it doesn't work. I was just hoping perhaps somebody who had done this before knew of something I did wrong... [/quote] We understand. Evidently, though, you're not doing something correctly, or you're not understanding the differences between packet logs satisfactorily. So, don't bitch at us. | August 12, 2004, 9:36 PM |
PiaNKA | I didn't mean to seem like I was bitching, I'm just frustrated because I did so many different things. I change around the 0x2C to exactly what SC had, including the XML and every other little byte. I have the exact same map authorize checksum as Madd0x's winbot, which I had also tried to use packets from. I was just hoping that I made a little mistake that I kept missing from looking at it so many times that you caught or something; thanks anyways. | August 13, 2004, 2:19 AM |
iago | Code like this: [quote] .InsertByte &H93 .InsertByte &H1F .InsertByte &H9F .InsertByte &H3 .InsertByte &H43 .InsertByte &H11 .InsertByte &HEC .InsertByte &HFE .InsertByte &HCB[/quote] indicates to me that you have no clue what you're doing. | August 13, 2004, 6:53 AM |
PiaNKA | [quote author=iago link=board=17;threadid=8137;start=0#msg75333 date=1092379987] Code like this: [quote] .InsertByte &H93 .InsertByte &H1F .InsertByte &H9F .InsertByte &H3 .InsertByte &H43 .InsertByte &H11 .InsertByte &HEC .InsertByte &HFE .InsertByte &HCB[/quote] indicates to me that you have no clue what you're doing. [/quote] My packet buffer doesn't have InsertBytes() and I was too lazy to write one, but why would that indicate that I have no idea what I'm doing...? That's part of the map checksum... | August 13, 2004, 11:07 AM |
St0rm.iD | because those fields mean something. | August 13, 2004, 3:52 PM |
ChR0NiC | [quote author=iago link=board=17;threadid=8137;start=0#msg75333 date=1092379987] indicates to me that you have no clue what you're doing. [/quote] Not to mention the choice of avatar he chose >:( | August 13, 2004, 4:11 PM |
MesiaH | Might i just be the one to recommend packet logging the actual client? Inserting values and "bytes" the way you are doing it is not good at all, especially since some of those values change. Instead of packet logging a program somebody else made, packet log the program your trying to emulate, you will get more answers instead of guess's. | August 13, 2004, 5:38 PM |
Twix | [quote author=MesiaH link=board=17;threadid=8137;start=0#msg75362 date=1092418714] Might i just be the one to recommend packet logging the actual client? Inserting values and "bytes" the way you are doing it is not good at all, especially since some of those values change. Instead of packet logging a program somebody else made, packet log the program your trying to emulate, you will get more answers instead of guess's. [/quote] If u read the first post he already said he packet logged a winbot and starcraft then looked at another bots source code | August 13, 2004, 5:51 PM |
PiaNKA | [quote author=Twix link=board=17;threadid=8137;start=0#msg75363 date=1092419468] [quote author=MesiaH link=board=17;threadid=8137;start=0#msg75362 date=1092418714] Might i just be the one to recommend packet logging the actual client? Inserting values and "bytes" the way you are doing it is not good at all, especially since some of those values change. Instead of packet logging a program somebody else made, packet log the program your trying to emulate, you will get more answers instead of guess's. [/quote] If u read the first post he already said he packet logged a winbot and starcraft then looked at another bots source code [/quote] Thank you, not only that but if you noticed MesiaH and whoever else said the values change, ITS PART OF THE CHECKSUM! (Always the same because it's always the same map) Edit: Also, my avatar of Charles Manson represents multiple things: 1) My hate for our society 2) My love for destruction 3) My respect for his use of hallucinagenic drugs to control people's minds | August 13, 2004, 6:07 PM |
ChR0NiC | [quote author=PiaNKA link=board=17;threadid=8137;start=15#msg75366 date=1092420430] Edit: Also, my avatar of Charles Manson represents multiple things: 1) My hate for our society 2) My love for destruction 3) My respect for his use of hallucinagenic drugs to control people's minds [/quote] Um, at least you aren't living in a 3rd world country wishing you could just once eat a pizza or do something that doesn't involve backbreaking labor, so quit complaining about our society, if you love destruction go join the army unless you are too scared, and Charles Manson is a ****ing ***** who deserves to be beheaded. | August 13, 2004, 7:04 PM |
tA-Kane | So many unhelpful comments in this thread. It's a shame I'm not a mod :\ PiaNKA, are you sure it's the game result packet that's screwing with you, and not something else? Perhaps packet order? Are you making sure that you've sent leave chat packet before sending the game join packet (let alone game result) packet? If so, are you not sending the join chat packet? All things to verify. I've never used the game join or game result packets (or anything else that deals with games, for that matter, except game search packet), so I don't know what what point you get screwed over by the server... but these would be things that I would be looking for if it were me. | August 13, 2004, 7:40 PM |
PiaNKA | [quote author=tA-Kane link=board=17;threadid=8137;start=15#msg75382 date=1092426008] So many unhelpful comments in this thread. It's a shame I'm not a mod :\ PiaNKA, are you sure it's the game result packet that's screwing with you, and not something else? Perhaps packet order? Are you making sure that you've sent leave chat packet before sending the game join packet (let alone game result) packet? If so, are you not sending the join chat packet? All things to verify. I've never used the game join or game result packets (or anything else that deals with games, for that matter, except game search packet), so I don't know what what point you get screwed over by the server... but these would be things that I would be looking for if it were me. [/quote] All of that I believe is a yes except the leave chat packet, I'm going to check that really quick...it sends join game then leave chat. I'm now basing this entirely off of Starcraft and not any open souce or Madd0x packets. I compared dumps of my map authorization packet with SC, byte for byte, it's exactly the same. I also compared with my result packet and the only thing that's different is the usernames and the packet length (duh); SC had losing first then winner, which I changed mine to and it didn't work...again. I'm going to log SC again and see if it leaves chat or joins game first, I'll let you know the result. Edit: Chronic, you're a liberal huh? I didn't compare it to a 3rd world country, I stated that I hated it. Also, I'm too young to join the army. You brought up the whole thing and this is the second time you've mentioned my avatar. When I grow up, I wanna be just like you Chronic; you're my idol. Edit: My packet order is the same as SC, it leaves chat after joining game. :-\ Much later edit: I figured I'd post some of my logs... My map auth: [code] FF 3C 2F 00 59 49 01 00 99 39 8E 7D 45 DC 24 F0 .</.YI...9.}E.$. 01 1E 51 CA 06 6E A9 E2 42 7C 45 2D 28 34 29 4C ..Q..n..B|E-(4)L 6F 73 74 20 54 65 6D 70 6C 65 2E 73 63 6D 00 ost Temple.scm. [/code] Starcraft map auth: [code] FF 3C 2F 00 59 49 01 00 99 39 8E 7D 45 DC 24 F0 .</.YI...9.}E.$. 01 1E 51 CA 06 6E A9 E2 42 7C 45 2D 28 34 29 4C ..Q..n..B|E-(4)L 6F 73 74 20 54 65 6D 70 6C 65 2E 73 63 6D 00 ost Temple.scm. [/code] Look familiar? To save annoyance I left out the bytes for my 0x2C packet: My 0x2C: (PiankaWinbot wins, iBot2.0 loses - doesn't work) [code] .,..........................................iBot2.0.PiankaWinbot.......<map>The Lost Temple</map>..<race>Terran</race>.<time>245</time>.. <score overall="2250" units="600" structures="1600" resources="50"/>.. <units score="600" produced="4" killed="4" lost="0"/>.. <structures score="1600" constructed="1" razed="1" lost="0"/> <resources score="50" gas="0" minerals="50" spent="0"/>.. [/code] Starcraft 0x2C: (PiaNKA wins, XiLe loses - works) [code] .,}.........................................XiLe.PiaNKA.......<map>The Lost Temple</map>..<race>Terran</race>.<time>245</time>.. <score overall="2250" units="600" structures="1600" resources="50"/>.. <units score="600" produced="4" killed="4" lost="0"/>.. <structures score="1600" constructed="1" razed="1" lost="0"/>.. <resources score="50" gas="0" minerals="50" spent="0"/>.. [/code] | August 13, 2004, 7:49 PM |
LordNevar | Exactly how long are you staying in the game? | August 13, 2004, 9:26 PM |
PiaNKA | [quote author=LordNevar link=board=17;threadid=8137;start=15#msg75389 date=1092432372] Exactly how long are you staying in the game? [/quote] Aproximately 3 minutes for testing/safety reasons. Edit: I noticed after posting my packet logs that my bot was missing two 0x0A bytes in the game result packet. I added these two bytes and it still didn't work. | August 13, 2004, 9:37 PM |
St0rm.iD | mesiah: we should work on our gamebot again pianka: you're weird when did this xml stuff appear? | August 13, 2004, 10:00 PM |
PiaNKA | [quote author=$t0rm link=board=17;threadid=8137;start=15#msg75392 date=1092434414] when did this xml stuff appear? [/quote] I'm assuming it's relatively recently being that most of the recent winbots use the old text style...that or if it matters at all (which I doubt it does). Yes I know I'm weird, but that's what makes you normal, so you should thank me. | August 13, 2004, 10:08 PM |
LordNevar | Didn't battle.net try to patch winbots by making it so you actually had to move in the game, like mine or atleast attack now, not just sit in there in order to collect a win? If it's not true than ignore this statement, I really only focus on Diablo II. | August 13, 2004, 10:18 PM |
Twix | [quote author=LordNevar link=board=17;threadid=8137;start=15#msg75396 date=1092435527] Didn't battle.net try to patch winbots by making it so you actually had to move in the game, like mine or atleast attack now, not just sit in there in order to collect a win? If it's not true than ignore this statement, I really only focus on Diablo II. [/quote] After the 130 seconds is up and u leave the game you send a packet to b.net telling them that you collected minerals and you killed a certin amout of units so they actaully think u played | August 13, 2004, 10:41 PM |
LW-Falcon | [quote author=LordNevar link=board=17;threadid=8137;start=15#msg75396 date=1092435527] Didn't battle.net try to patch winbots by making it so you actually had to move in the game, like mine or atleast attack now, not just sit in there in order to collect a win? If it's not true than ignore this statement, I really only focus on Diablo II. [/quote] I don't think so since my winbot has been on for a long time and I just checked and it was still collecting a win every 120 seconds. :) | August 14, 2004, 1:07 AM |
LordNevar | Ok wasn't sure; Like I said, "I only focus on exploiting D2." | August 14, 2004, 3:06 AM |
Maddox | i will give u da src 2 my winbot 4 10 illys and 300 valed keys. kthx by. | August 14, 2004, 4:36 AM |
LordNevar | [quote author=Maddox link=board=17;threadid=8137;start=15#msg75434 date=1092458187] i will give u da src 2 my winbot 4 10 illys and 300 valed keys. kthx by. [/quote] Welcome to the battle.net black market, sponsored by [vL] Forums. :P | August 14, 2004, 12:19 PM |
PiaNKA | [quote author=Maddox link=board=17;threadid=8137;start=15#msg75434 date=1092458187] i will give u da src 2 my winbot 4 10 illys and 300 valed keys. kthx by. [/quote] I've got plenty of keys, not a single illy though, sorry. Is there anything you would do to help me or I could to for your source? | August 14, 2004, 12:29 PM |
inner. | I think he was joking, lol. | August 14, 2004, 2:26 PM |
PiaNKA | [quote author=inner. link=board=17;threadid=8137;start=30#msg75466 date=1092493601] I think he was joking, lol. [/quote] I'm curious how you came to the conclusion that he was joking. If he was joking I think he'd have come up with some outrageous number like 3 million keys and 14,000 illys or something. Not only that but I'm going to juvi in a month or so, so don't worry about it ~peace. | August 14, 2004, 11:23 PM |
Twix | [quote author=PiaNKA link=board=17;threadid=8137;start=30#msg75508 date=1092525806] [quote author=inner. link=board=17;threadid=8137;start=30#msg75466 date=1092493601] I think he was joking, lol. [/quote] I'm curious how you came to the conclusion that he was joking. If he was joking I think he'd have come up with some outrageous number like 3 million keys and 14,000 illys or something. Not only that but I'm going to juvi in a month or so, so don't worry about it ~peace. [/quote] remeber if u drop the soap just leave it better off being dirty | August 15, 2004, 12:06 AM |
PiaNKA | I'm glad you watch a lot of TV and pay attention to the main stream MTV crap our society emphasizes as being anti-censorship. Go ahead, ashes to ashes gas cans and matches; any clue who that is? (I give mad props to who does...not that you care) | August 15, 2004, 12:38 AM |
St0rm.iD | [quote author=Twix link=board=17;threadid=8137;start=30#msg75512 date=1092528360] [quote author=PiaNKA link=board=17;threadid=8137;start=30#msg75508 date=1092525806] [quote author=inner. link=board=17;threadid=8137;start=30#msg75466 date=1092493601] I think he was joking, lol. [/quote] I'm curious how you came to the conclusion that he was joking. If he was joking I think he'd have come up with some outrageous number like 3 million keys and 14,000 illys or something. Not only that but I'm going to juvi in a month or so, so don't worry about it ~peace. [/quote] remeber if u drop the soap just leave it better off being dirty [/quote] Dude that joke is so funny and definately not overused. | August 15, 2004, 12:42 AM |
PiaNKA | [quote author=$t0rm link=board=17;threadid=8137;start=30#msg75517 date=1092530539] [quote author=Twix link=board=17;threadid=8137;start=30#msg75512 date=1092528360] [quote author=PiaNKA link=board=17;threadid=8137;start=30#msg75508 date=1092525806] [quote author=inner. link=board=17;threadid=8137;start=30#msg75466 date=1092493601] I think he was joking, lol. [/quote] I'm curious how you came to the conclusion that he was joking. If he was joking I think he'd have come up with some outrageous number like 3 million keys and 14,000 illys or something. Not only that but I'm going to juvi in a month or so, so don't worry about it ~peace. [/quote] remeber if u drop the soap just leave it better off being dirty [/quote] Dude that joke is so funny and definately not overused. [/quote] I hope you're being sarcastic. | August 15, 2004, 12:44 AM |
Twix | storm reminds me of the person who would drop the soap on purpose | August 15, 2004, 1:03 AM |
MesiaH | In response to whoever said they thought battle.net made it so you actually have to play or move or something: This is false, and impossible. The packets that get you wins and losses are sent to battle.net, via a TCP packet. Any in game action whatsoever, is a UDP packet, and is only sent to other players in the game, not battle.net. Pianka, im not so sure why im trying to offer you advice since you once called me a newb some time ago when i asked you how my bot got on your site, but oh well, guess im too newb to be stubborn. At this point we cant really determine what your doing wrong based on your packet logs. Try posting your source code from start to finish containing all functions and or subs that have to do with leaving the game, getting the win or loss, and joining the channel. Also, might i reccomend using Grok's DebugOutput function for hex dumps from now on, its a very handy function and works quite well when it comes to deciphering your own packets and figuring out your problems. And storm, we will work on the game bot again once we ditch csb, since i already have all the stuff for win/loss, and limited udp packets. And Pianka, instead of comparing logs from all sorts of clients, just use one, your only going to throw yourself off somewhere down the line. If I were you, i would log starcraft, with a map that other winbots dont use, and use your own number for mineral count, resources, etc. Copying things like that give your bot the volnurability of being brought down with all the other ones if they decide to patch it based on those exact values. Im sure that will never happen, but its a good idea in more than one ways. | August 15, 2004, 1:07 AM |
PiaNKA | [quote author=MesiaH link=board=17;threadid=8137;start=30#msg75520 date=1092532056] In response to whoever said they thought battle.net made it so you actually have to play or move or something: This is false, and impossible. The packets that get you wins and losses are sent to battle.net, via a TCP packet. Any in game action whatsoever, is a UDP packet, and is only sent to other players in the game, not battle.net. Pianka, im not so sure why im trying to offer you advice since you once called me a newb some time ago when i asked you how my bot got on your site, but oh well, guess im too newb to be stubborn. At this point we cant really determine what your doing wrong based on your packet logs. Try posting your source code from start to finish containing all functions and or subs that have to do with leaving the game, getting the win or loss, and joining the channel. Also, might i reccomend using Grok's DebugOutput function for hex dumps from now on, its a very handy function and works quite well when it comes to deciphering your own packets and figuring out your problems. And storm, we will work on the game bot again once we ditch csb, since i already have all the stuff for win/loss, and limited udp packets. And Pianka, instead of comparing logs from all sorts of clients, just use one, your only going to throw yourself off somewhere down the line. If I were you, i would log starcraft, with a map that other winbots dont use, and use your own number for mineral count, resources, etc. Copying things like that give your bot the volnurability of being brought down with all the other ones if they decide to patch it based on those exact values. Im sure that will never happen, but its a good idea in more than one ways. [/quote] Though I don't recall calling you a newb, sorry. I have his debugoutput function though I'm actually packet logging it from WPE so it shouldn't matter. My packets are exactly the same as SC. I packet logged it and used what it gave me, EXACTLY. It uses the lost templte and the map auth is working etc etc. And I think you're preaching to the wrong choir about socket protocols and how SC works. We all know how they work. Also, I already posted all my functions for leaving and all that shit, if you think what I have now would help, tell me and I'll post it. | August 15, 2004, 1:19 AM |
warz | [quote author=ChR0NiC link=board=17;threadid=8137;start=0#msg75351 date=1092413494] [quote author=iago link=board=17;threadid=8137;start=0#msg75333 date=1092379987] indicates to me that you have no clue what you're doing. [/quote] Not to mention the choice of avatar he chose >:( [/quote] Comming from a guy named 'chronic,' using [img width=25 height=25]http://turbonet.feeblegaming.org/images/avatar.jpg[/img] as his avatar. | August 15, 2004, 1:20 AM |
PiaNKA | [quote author=warz link=board=17;threadid=8137;start=30#msg75523 date=1092532837] [quote author=ChR0NiC link=board=17;threadid=8137;start=0#msg75351 date=1092413494] [quote author=iago link=board=17;threadid=8137;start=0#msg75333 date=1092379987] indicates to me that you have no clue what you're doing. [/quote] Not to mention the choice of avatar he chose >:( [/quote] Comming from a guy named 'chronic,' using [img width=25 height=25]http://turbonet.feeblegaming.org/images/avatar.jpg[/img] as his avatar.\ [/quote] I hope you read my post about how he's cool because he smokes pot ;) | August 15, 2004, 1:24 AM |
MesiaH | [quote] And I think you're preaching to the wrong choir about socket protocols and how SC works. We all know how they work [/quote] Then how come i have a working winbot with full functionality and udp support and you don't? | August 15, 2004, 1:44 AM |
Maddox | [quote author=PiaNKA link=board=17;threadid=8137;start=30#msg75508 date=1092525806] [quote author=inner. link=board=17;threadid=8137;start=30#msg75466 date=1092493601] I think he was joking, lol. [/quote] I'm curious how you came to the conclusion that he was joking. If he was joking I think he'd have come up with some outrageous number like 3 million keys and 14,000 illys or something. Not only that but I'm going to juvi in a month or so, so don't worry about it ~peace. [/quote] I was joking, idiot. I'm surprised you couldn't tell just by the way I was typing cuz u no i alwayz tipe lik dis. kthx by | August 15, 2004, 2:09 AM |
St0rm.iD | [quote author=Twix link=board=17;threadid=8137;start=30#msg75519 date=1092531839] storm reminds me of the person who would drop the soap on purpose [/quote] Twix reminds me of the 13 yr old kid who thinks hes badass cause he can talk about anal sex. | August 15, 2004, 2:40 AM |
PiaNKA | Ya know Madd0x, you're right, I should have known exactly the feeling you were trying to get across because of the way you were typing. Hell, I worship you and everything you've ever typed and memorized the way you type it and deciphered your emotions and deep sensual feelings from it. I know you inside and out. MesiaH, I have no idea why you have a working game bot with UDP support and I don't. The main reason is because of the UDP is because I can't get that damn checksum down. And if you're going to say the last statement was a contradiction, it's called sarcasm. I've worked my ass off and I can't figure out why it's working. There should be no reason it isn't...you've seen my packet logs and functions...I've got a better question for you, with all the shit you have, why can't you figure out what I'm doing wrong? I mean why don't you show me your l33t pwn4ge kthx skills and rub it in my face, huh? | August 15, 2004, 2:52 AM |
St0rm.iD | Me n mesiah both did it... btw mesiah i lost the src, want to send it? we should port it to a real language... | August 15, 2004, 2:55 AM |
PiaNKA | So you have no idea what-so-ever of what I'm doing wrong? | August 15, 2004, 3:02 AM |
MesiaH | I asked u for source from beginning to end, which means every singe call, in every single sub and etc etc etc leaving NOTHING out, not just your code for what u think might be wrong. | August 15, 2004, 4:50 AM |
UserLoser. | [quote author=PiaNKA link=board=17;threadid=8137;start=30#msg75537 date=1092538363] Ya know Madd0x, you're right, I should have known exactly the feeling you were trying to get across because of the way you were typing. Hell, I worship you and everything you've ever typed and memorized the way you type it and deciphered your emotions and deep sensual feelings from it. I know you inside and out. MesiaH, I have no idea why you have a working game bot with UDP support and I don't. The main reason is because of the UDP is because I can't get that damn checksum down. And if you're going to say the last statement was a contradiction, it's called sarcasm. I've worked my ass off and I can't figure out why it's working. There should be no reason it isn't...you've seen my packet logs and functions...I've got a better question for you, with all the shit you have, why can't you figure out what I'm doing wrong? I mean why don't you show me your l33t pwn4ge kthx skills and rub it in my face, huh? [/quote] You can't have a game bot with out UDP support. (Assuming you mean, actually play the game, chat, ect) You can have a winbot without it, though. | August 15, 2004, 8:11 AM |
PiaNKA | [quote author=UserLoser. link=board=17;threadid=8137;start=45#msg75575 date=1092557516] You can't have a game bot with out UDP support. (Assuming you mean, actually play the game, chat, ect) You can have a winbot without it, though. [/quote] I did mean actually play the game, chat etc. Ergo, why MesiaH called it a game bot; why I called it a game bot and why I mentioned the buffer checksum in the packet header. My bot does these things in this exact order aftering entering chat: Create game and leave chat: [code] With clsB .InsertDWORD &H1 .InsertDWORD &H0 .InsertWORD &H2 .InsertWORD &H1 .InsertDWORD &H1F .InsertDWORD &H0 .InsertString Winbots(Index).GameName .InsertString "tobniwaknaip" .InsertNonNTString ",44,14,6,2,2,,1,34f46faf,4,," .InsertNonNTString Winbots(Index).Username & Chr(&HD) .InsertNonNTString "The Lost Temple" & Chr(&HD) .InsertByte &H0 .Send &H1C, Index .Send &H10, Index End With [/code] Join game and leave chat: [code] With clsB .InsertNonNTString ReadINI("Settings", "Product") .InsertDWORD &HC9 .InsertString Winbots(Index).GameName .InsertString "tobniwaknaip" .Send &H22, Index .Send &H10, Index End With [/code] Authorize maps (this starts from who created the game to who joined it - also, these bytes never change, they're part of the checksum for the map): [code] With clsB .InsertByte &H59 .InsertByte &H49 .InsertByte &H1 .InsertByte &H0 .InsertByte &H99 .InsertByte &H39 .InsertByte &H8E .InsertByte &H7D .InsertByte &H45 .InsertByte &HDC .InsertByte &H24 .InsertByte &HF0 .InsertByte &H1 .InsertByte &H1E .InsertByte &H51 .InsertByte &HCA .InsertByte &H6 .InsertByte &H6E .InsertByte &HA9 .InsertByte &HE2 .InsertByte &H42 .InsertByte &H7C .InsertByte &H45 .InsertByte &H2D .InsertString "(4)Lost Temple.scm" .Send &H3C, i End With [/code] It then pauses for 3 minutes aproximately give or take 20 seconds because of timer and connection delays, though they both leave at the same time using this function (this goes in reverse order because it didn't work in original order and SC had the loser first, though it wasn't the creator of the game - I don't think it should matter?): [code] For i = 0 To UBound(Winbots) If Winbots(UBound(Winbots) - i).GameName = Winbots(Index).GameName Then If UBound(Winbots) - i = Index Then With clsB .Send &H0, Index End With End If If Winbots(UBound(Winbots) - i).Win = True Then Results(CurrRes) = &H1 Else Results(CurrRes) = &H2 End If Players(CurrRes) = Winbots(UBound(Winbots) - i).Username CurrRes = CurrRes + 1 End If Next i With clsB .InsertDWORD &H0 .InsertDWORD &H8 .InsertDWORD CLng(Results(0)) .InsertDWORD CLng(Results(1)) .InsertDWORD CLng(Results(2)) .InsertDWORD CLng(Results(3)) .InsertDWORD CLng(Results(4)) .InsertDWORD CLng(Results(5)) .InsertDWORD CLng(Results(6)) .InsertDWORD CLng(Results(7)) .InsertString Players(0) .InsertString Players(1) .InsertString Players(2) .InsertString Players(3) .InsertString Players(4) .InsertString Players(5) .InsertString Players(6) .InsertString Players(7) .InsertNTString "<map>The Lost Temple</map>" & Chr(&HA) .InsertNonNTString "<race>Terran</race>" & Chr(&HA) .InsertNonNTString "<time>245</time>" & Chr(&HA) & Chr(&HA) .InsertByte &H20 .InsertByte &H20 .InsertNonNTString "<score overall=" & VQ & "2250" & VQ & " units=" & VQ & "600" & VQ & " structures=" & VQ & "1600" & VQ & " resources=" & VQ & "50" & VQ & "/>" & Chr(&HA) & Chr(&HA) .InsertByte &H20 .InsertByte &H20 .InsertNonNTString "<units score=" & VQ & "600" & VQ & " produced=" & VQ & "4" & VQ & " killed=" & VQ & "4" & VQ & " lost=" & VQ & "0" & VQ & "/>" & Chr(&HA) & Chr(&HA) .InsertByte &H20 .InsertByte &H20 .InsertNonNTString "<structures score=" & VQ & "1600" & VQ & " constructed=" & VQ & "1" & VQ & " razed=" & VQ & "1" & VQ & " lost=" & VQ & "0" & VQ & "/>" & Chr(&HA) & Chr(&HA) .InsertByte &H20 .InsertByte &H20 .InsertNTString "<resources score=" & VQ & "50" & VQ & " gas=" & VQ & "0" & VQ & " minerals=" & VQ & "50" & VQ & " spent=" & VQ & "0" & VQ & "/>" & Chr(&HA) .Send &H2C, Index .InsertString Winbots(Index).Username .InsertByte &H0 .Send &HA, Index .InsertDWORD &H2 .InsertString ReadINI("Settings", "Channel") .Send &HC, Index End With [/code] I hope that's what you wanted, I can't think of anything else used for the game stuff, if you think it'd be helpful: I can give you other packets for like the connection and stuff... | August 15, 2004, 2:27 PM |
Maddox | [quote author=PiaNKA link=board=17;threadid=8137;start=45#msg75589 date=1092580076] With clsB .InsertByte &H59 .InsertByte &H49 .InsertByte &H1 .InsertByte &H0 .InsertByte &H99 .InsertByte &H39 .InsertByte &H8E .InsertByte &H7D .InsertByte &H45 .InsertByte &HDC .InsertByte &H24 .InsertByte &HF0 .InsertByte &H1 .InsertByte &H1E .InsertByte &H51 .InsertByte &HCA .InsertByte &H6 .InsertByte &H6E .InsertByte &HA9 .InsertByte &HE2 .InsertByte &H42 .InsertByte &H7C .InsertByte &H45 .InsertByte &H2D .InsertString "(4)Lost Temple.scm" .Send &H3C, i End With [/quote] If you're going to hardcode, at least do it reasonably. [code] With clsB .InsertDWORD &H00014959 .InsertDWORD &H7D8E3999 .InsertDWORD &HF024DC45 .InsertDWORD &HCA511E01 .InsertDWORD &HE2A96E06 .InsertDWORD &H2D457C42 .InsertString "(4)Lost Temple.scm" .Send &H3C, i End With [/code] | August 17, 2004, 11:13 AM |
PiaNKA | lol, good point...no suggestions on what I'm doing wrong though? | August 17, 2004, 12:19 PM |