Author | Message | Time |
---|---|---|
peofeoknight | I saw in another thread how to get a warcraft three record from battle.net. Anyone know how to do that with starcraft? I have seen on other sites game stats like records, but I was thinking they might just be using a bot and having it update a remote data base or they are running it off of the same box as the data base and are just updateing it. I just wanted to check to see if I could do it without making a bot. | December 7, 2003, 12:56 AM |
j0k3r | I'm assuming that you are talking about (forgot his name)'s PHP program, no you don't need a bot, it connects to battle.net and retrieves information, without the use of a bot. You want to get a second opinion though. | December 7, 2003, 3:49 AM |
Forged | I wouldnt think so, I would assume they are probally just using blizzard's website that keeps track of everyones stats. I dont think they do that on starcraft so I highlly doubt it. Edit woops didnt see the guy ahead of me and his solution makes more sense than mine. | December 7, 2003, 3:50 AM |
j0k3r | Actually forged that would be a simpler solution, make a script that goes to the blizzard site, searches for the person and pulls all the information. | December 7, 2003, 12:36 PM |
Skywing | [quote author=j0k3r link=board=22;threadid=4118;start=0#msg34103 date=1070800589] Actually forged that would be a simpler solution, make a script that goes to the blizzard site, searches for the person and pulls all the information. [/quote] I don't think Starcraft stats are available on the Blizzard/Battle.net web sites. I think your best bet would be to use an anonymous chat gateway connection to Battle.net and issue /stats or /recorddata queries. For instance... [quote]/recorddata Skywing[vL] 1018 INFO "<record>" 1018 INFO "Name = Skywing[vL]" 1018 INFO "Record\STAR\0\Wins = 7 [0x00000007]" 1018 INFO "Record\STAR\0\Last Game = 2001-05-14 23:39:06 UTC [0x01C0DCCF10ED5255]" 1018 INFO "Record\STAR\0\Last Game Result = "WIN"" 1018 INFO "Record\STAR\0\Disconnects = 4 [0x00000004]" 1018 INFO "Record\STAR\0\Losses = 2 [0x00000002]" 1018 INFO "Record\SEXP\0\Last Game = 2001-07-15 01:20:36 UTC [0x01C10CCC5A17166E]" 1018 INFO "Record\SEXP\0\Last Game Result = "WIN"" 1018 INFO "Record\SEXP\0\Wins = 310 [0x00000136]" 1018 INFO "Record\SEXP\0\Disconnects = 41 [0x00000029]" 1018 INFO "Record\JSTR\0\Wins = 13627 [0x0000353B]" 1018 INFO "Record\JSTR\0\Last Game = 2001-10-29 20:24:53 UTC [0x01C160B7C456C1CA]" 1018 INFO "Record\JSTR\0\Last Game Result = "WIN"" 1018 INFO "Record\JSTR\0\Disconnects = 7 [0x00000007]" 1018 INFO "</record>"[/quote] And... [quote]/stats Skywing[vL] SEXP 1018 INFO "Skywing[vL]'s record:" 1018 INFO "Normal games: 310-0-41" 1018 INFO "Ladder games: 0-0-0"[/quote] | December 7, 2003, 7:26 PM |
CrAzY | [quote author=peofeoknight link=board=22;threadid=4118;start=0#msg34030 date=1070758594] I saw in another thread how to get a warcraft three record from battle.net. Anyone know how to do that with starcraft? [/quote] /stats name@azeroth war3 | December 8, 2003, 8:34 PM |
peofeoknight | well I knew it was possible w/ war 3, I saw that in another thread, I was just wondering about sc. Bliz does have war3 stats (and profiles) on their site, but people do not use these because they can just run a script to get the data from bliz as opposed to opening it in an iframe, it looks nicer. But I was just hopeing it was possible for sc the same way :(. The problem is, I would have to figure out how to make a bot, well a chat bot, update an MsSQL server data base lol. I can run the bot once a day and update all the stats or something real quick or have it just stats each member 5 sec apart or something from the data base and update it starting at 12, i just need to figure out how I would go about making the bot / chat bot to do it. Anyone got something like that premade where I can type in sql server info? BTW any scripts are helpful, I know some c++ and am learning java so I can phseudo code things to other languages if need be. I am not good enough yet w/ java to make anything functional like a bot though. I can do gui's and the basic scripting, but thats all we have dont in apcomp sci so far, we have not gotten to data bases or the internet (besides how to make crapplets, java has no place being on the internet, the only thing acceptable is an interface w/ the net like a bot, but JSP and applets are ghey!) | December 10, 2003, 4:05 AM |
AssassinRC | The API for fetching WarCraft III stats reads them directly off of the battle.net WarCraft III profiling system so they are 100% realtime and accurate. However, the only way to fetch SC stats is to do as Skywing said and fetch them off of battle.net using stats queries and have the bot send the results back to the web page. Me and Zonker may work on a system like this for the new profiler I am coding. | December 11, 2003, 8:03 PM |
Skywing | [quote author=AssassinRC link=board=22;threadid=4118;start=0#msg34817 date=1071172996] The API for fetching WarCraft III stats reads them directly off of the battle.net WarCraft III profiling system so they are 100% realtime and accurate. However, the only way to fetch SC stats is to do as Skywing said and fetch them off of battle.net using stats queries and have the bot send the results back to the web page. Me and Zonker may work on a system like this for the new profiler I am coding. [/quote] Note that when using the binary interface, it should be possible to query the profiles of many users in one message (though I don't recall the results of testing this, due to my not finding a real application for this feature). However, it would come in handy for mass queries like this due to the limits on how fast you can send individual messages. [Game statistics are retrievable via profile requests.] | December 12, 2003, 7:36 AM |
peofeoknight | so how would I mod a binary chat bot (something like the webbot interface I am guessing) into quering an sql server data base??? | December 13, 2003, 12:16 AM |
St0rm.iD | Perhaps write code which inserts/deletes/updates data based on events that occur on battle.net, and read it back out of the database. The preferred solution, IMO, is to turn your bot into a nice little web service which you can query. | December 13, 2003, 4:01 AM |
peofeoknight | well I have experience with xml webservices and soap, but I have never modded a bot or made internet aps before. Thats the end I will have problems with ;D. I need to know how the crap I can do this. I am not good enough w/ java yet to do anything like this, so how would I in vb? winsock I guess right? | December 13, 2003, 5:10 PM |
St0rm.iD | [me=St0rm.iD]points at the BotDev forum :)[/me] You seem knowledgable enough to ask nonstupid questions over there that will be answered :) | December 15, 2003, 12:39 AM |
ioSys | Members section of http://www.tnschq.cjb.net 1 way of using the stats return from a bot/service like that rank is based of number of games. each 100 games results in a new rank. nice for clans | December 17, 2003, 6:06 AM |