• Welcome to Valhalla Legends Archive.
 

Find result of game in starcraft

Started by vodkahn, March 05, 2012, 01:35 AM

Previous topic - Next topic

vodkahn

Hi everybody,
I've a question in starcraft. I want to know when a game is end, the current player is victory or defeat. I've use SCGP( starcraft game protocol) to find the packet Quit game, but in multiplayers, example (2-2, 3-3, 4-4), in win teams, when a win player quit, it still send packet Quit game( command 0x0B), so I don't know he's winer or loser. Please help me!!

Thanks in advance,

MyndFyre

In order to do so, you would actually need to emulate the game.  The winner is determined based on the state of the game, not by network traffic or replay storage.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

vodkahn

Quote from: MyndFyre on March 05, 2012, 02:54 AM
In order to do so, you would actually need to emulate the game.  The winner is determined based on the state of the game, not by network traffic or replay storage.
Can you show me how to emulate the game?

MyndFyre

QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

MysT_DooM

Figure out how the client generates 0x2c.
And then grab a packet logger and log the process of joining/creating a game and starting a game and then leaving a game when finished. 
And then attempt to mimic that.  Lots of info on sc udp on this forum, search around a bit, it should be enough to get you on your way to making a game bot.   here's some useful links, here, here, here
Also to combat the issue of winners leaving early, I assume this is for some game tracking thing, so make it a rule that all players must complete the game in it's entirety, i.e until all opposing forces are eliminated and you are at the Stats screen; or else you will not get recorded with a win.   


vb6, something about that combination of numbers and letters is sexy