Valhalla Legends Forums Archive | Advanced Programming | starcraft drop, an interal look

AuthorMessageTime
thetempest
Hi,

Does anyone know how starcraft drops someone if it knows another person in a mplayer game is hacking?? (Ie: changed minerals)?


My guess is that because each player keeps a players number of minerals at all times that it does reality checks. Ie, a player had 50mins one sec ago and now has 5000000..drop.

My question is, how this drop, occours. does a client send an athoritative message to another client telling them to drop? or does the machine that hacks starcraft do internal detection wether or not it hacked?

one other question, when SC sends a players mineral values accross the net, does anyone know an info on this packet? as to it's ID or format?

Thanks
December 5, 2003, 9:52 PM
Adron
A magic number is sent containing a representation of the entire state. I don't know exactly how the disconnection works, but I think that whoever discovers a magic number mismatch will stop sending/receiving packets from the player.

Since Starcraft runs synchronously, all players without the hack applied will discover the magic number mismatch at the same time and simultaneously drop the offender.

If there are two people in the game with the same hack, they'll drop everyone else but not each other and the game will split in two.
December 5, 2003, 9:57 PM
Kp
It's been a long time, but my recollection is you actually could change your minerals without desyncing, subject to one constraint. You can't use the phantom minerals. When you start a unit building, everyone checks your funds and starts the build if they think you can afford it. So, set your minerals as high as you like -- as long as you don't purchase anything you can't actually afford, everyone will continue to honor your purchases and you'll stay synchronized. Of course, the value of unusable phantom minerals is negligible, but that's a different issue. :)
December 5, 2003, 10:01 PM
St0rm.iD
Have you analyzed the protocol at all? I worked on it for a couple days - figured out the basic protocol somewhat - want to compare notes?
December 6, 2003, 4:06 AM
Kp
[quote author=St0rm.iD link=board=23;threadid=4093;start=0#msg33887 date=1070683566]
Have you analyzed the protocol at all? I worked on it for a couple days - figured out the basic protocol somewhat - want to compare notes?
[/quote]

Yes; no.
December 6, 2003, 5:10 AM
thetempest
yes,

storm i would love to compare notes. PM me with some contact info, either Email or MSN or AIM or IRC or someting....
December 6, 2003, 5:50 PM
iago
[quote author=Kp link=board=23;threadid=4093;start=0#msg33854 date=1070661707]
It's been a long time, but my recollection is you actually could change your minerals without desyncing, subject to one constraint. You can't use the phantom minerals. When you start a unit building, everyone checks your funds and starts the build if they think you can afford it. So, set your minerals as high as you like -- as long as you don't purchase anything you can't actually afford, everyone will continue to honor your purchases and you'll stay synchronized. Of course, the value of unusable phantom minerals is negligible, but that's a different issue. :)
[/quote]

That's correct, kp.

Adron is also right, though, there is some number representing state, but minerals aren't part of it.
December 6, 2003, 10:22 PM

Search