• Welcome to Valhalla Legends Archive.
 

Packet application

Started by eurolan-StorM, June 07, 2004, 01:59 AM

Previous topic - Next topic

eurolan-StorM

Hello,

I will like to know if the packet sending can give the possibilty to a bot to create a game as an observateur for example ?
If a bot is a game creator, he must send the packets he received to all players, I guess that idea must be very complex to realize it.

Thanks in advance!

StorM

effect

Quote from: eurolan-StorM on June 07, 2004, 01:59 AM
I guess that idea must be very complex to realize it.

Or maybe just your typing is so ridicoulously fucked up.

Anyways dude if your after a winbot (which im not really sure if you are , cant really understand your shit?) then check out warz site he has one there. www.tks.slacktech.com or something.

Quote from: Mangix on March 22, 2005, 03:03 AM
i am an expert Stealthbot VBScript. Recognize Bitch.

Dyndrilliac

Quote from: effect on June 07, 2004, 03:23 AMOr maybe just your typing is so ridicoulously fucked up.

Anyways dude if your after a winbot (which im not really sure if you are , cant really understand your shit?) then check out warz site he has one there. www.tks.slacktech.com or something.

Maybe English isn't his native language dipshit...

I believe he is asking if there is a way for a bot to create a game in SC as an observer, so he on his bot can watch the game and not be an active player - This isn't possible unless your talking about replays, which is observing games that have already taken place - OR - your bot joins as a player and simply watches the game and waits to get slaughtered.
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

eurolan-StorM

I'm french and I'm sorry for my poorly english

I will able to give to my bot the possibity to create custom as observateur in warcraft custom game. One time the game is started, the bot receive the packet from player 1 and send it to player 2 and vice versa.

Soul Taker

Sounds like he's trying to make a bot for the sole purpose of hosting, probably because he knows lots of people that can't configure a firewall/router.

eurolan-StorM

#5
No, it's not my objective. I have already wrote a bot who can manage WarCraft tournament (mapchoice, results report etc) but it will be very great if the bot could host the game : for the ping balance, an easier report and it's a good way to learn how manipulate warcraft packets for me.

tA-Kane

Quote from: Soul Taker on June 07, 2004, 05:21 AMSounds like he's trying to make a bot for the sole purpose of hosting, probably because he knows lots of people that can't configure a firewall/router.
Quote from: eurolan-StorM on June 07, 2004, 07:16 AMNo, it's not my objective.
A shame, because that's actually one of the better ideas to have spawned here...

Quote from: eurolan-StorM on June 07, 2004, 07:16 AMI have already wrote a bot who can manage WarCraft tournament (mapchoice, results report etc) but it will be very great if the bot could host the game : for the ping balance, an easier report and it's a good way to learn how manipulate warcraft packets for me.
eurolan-StorM, please note that it is not possible for players to be observers on StarCraft unless you use Use Map Settings on maps that specifically allow for observers.

As for WarCraft, I'm sure it's possible. I haven't seen or heard of anyone here do it, though.

It likely would not be easy, since you would not only need to resend all packets you receive to the other clients, but also keep track of the packets, read them to keep your local copy of the game data current so that your bot is able to create a checksum of the game and send that correct checksum to the other clients so that they don't drop you.

If your checksum is bad (which would be very hard to avoid if you don't keep a local copy of the game, I think), then the other clients will think that you have hacked, cheated, or gone awry (crashed somewhere) and decide that it's better for the game if you weren't in it... thusly dropping you.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

eurolan-StorM

#7
During a game :

f7 28 11 00 01 01 02 20 50 68 33 34 72 21 21 21 00

F7 is merely a packet header, such as the FF in out of game packets.
28 denotes the type of action (In this case, 28 is "Sent to All")
11 00 denotes the length. 17 bytes total in this case.
After that is the text. The text in this case is Ph34r!!!. If you converted the Hexidecimal into ASCI it would read Ph34r!!! (Notice the 3 "21" bytes at the end? Those are "!" marks).
This will send "Ph34r!!!" to All in a Custom Game

Where is the checksum in this packet for example and how I can generate them ?


tA-Kane

Sorry I haven't replied sooner, I've been busy with work.

I'm not familiar with WarCraft 3's packets. However, I would venture a guess that 0x01010220 would be the game's checksum. That is, of course, if the checksum is sent in this packet.
0x01010220 might be something different, such as perhaps the type of message (such as perhaps unit movement, unit attack, building destroyed, or in this case... user chat). If this was UDP (which I hear WarCraft 3 does not use), I would also guess that it would perhaps be a packet number, since the game would need to receive the packets in the correct order to get the correct checksum... but if WarCraft 3 uses TCP, then you can all but forget that idea, since TCP is inherintly orderly.

As for generating a checksum, I know of only a handful of people capable of doing such, and I know of no public source code or executable code available for such. So, you would either have to disassemble WarCraft 3 and find the checksum generating code yourself, or contact the handful of people that are capable of doing it.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com