• Welcome to Valhalla Legends Archive.
 

Stats to web..

Started by pileofcrap, February 28, 2003, 06:11 PM

Previous topic - Next topic

pileofcrap

hey is there a way I can show the stats of members of my gaming clan (clan (I) ) ... kind of how you have it where you can see all the members in your channel and what they are saying.

but i want to be able to do that with stats.. so that when they get a new win or lose itll auto update.

iago

#1
You would have to run a bot that would constantly do stat lookups, and it would automatically update your website if it found a change.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


pileofcrap

#2
how would I set my webpage to read from the bot and post it to my site? What web language would be needed?

Yoni

#3
You can ask Skywing, Spht (or me) for a Webchannel account if you want one.
If your question is about designing it yourself; Skywing's Webchannel uses a custom ISAPI DLL, and a little bit of ASP.

haZe

#4
QuoteYou would have to run a bot that would constantly do stat lookups, and it would automatically update your website if it found a change.
Simplified: you would run a bot that flooded off a lot :P (not nessicarily, but u get the point :p)

Atom

#5
I would just learn a little bit of Php, cuz thats prolly what your site supports. Have your bot send the stats to your Php Script, and the Php script save it as a text file... then an Html file access the text file with an include.
I am back! aINC is dead, ThinkTank PRO is alive.
VB, JAVA, ASM, C, its all yummy to me.

Spht

#6
QuoteSimplified: you would run a bot that flooded off a lot :P (not nessicarily, but u get the point :p)

Flood off a lot? Not if you were smart and did binary stat look-ups instead of using standard slash commands.

iago

#7
Quotehow would I set my webpage to read from the bot and post it to my site? What web language would be needed?

If you want to do it the easy way, make a chatbot (not binary), and have the chatbot do stats lookups, checking them vs. a local database (ie, a list of stats on your computer).  If it finds a change, generate a new html file (or edit the old one), connect to your ftp server, and send the file, or find a commandline ftp program that you can run using the shell() command.  

That would be the easiest way, in my opinion.

You could also use that same method for listing who in your clan is online, and stuff like that :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


pileofcrap

Hmm .... well it wouldnt flood at all. It would only need to check like every half our, every hour? lol ...

anyway, yeah that does seem to be the best way. Have a bot send it back to a file (either php or asp) but, my webserver that I run off of isnt like my connection or anything, i rent space from FLOHOST.

Could I get it to automaticly update it from there, or would I have to turn my connection into a small web server?






also, that webchannel shit is really badass. lol Im wanting what I need to do similar to that but just check and update stats.

iago

#9
Well, unless your webserver lets you run a process (I greatly doubt it), you will have to update it from your computer.  Like I said earlier, you can do one of two things:
1. Have it generate an html file and upload by the use of a commandline ftp program:
if StatsChanged() then
  shell("c:\program files\clftp\ftp.exe -upload \"c:\BotUpdatePage.html\" -user \"iago\"") ..etc.  
I don't know if that kind of ftp client actually exists, but I'm sure it does somewhere.

2. Have a script (php, perl, whatever) running on your webserver that could take updates like somebody filled out a form.  What you could do is write a simple html form, I would would suggest "<form method=get action=updatescript.cgi><input type=text name=username><input type=password name=password>...etc" then packetsniff to find out how the request is sent, then imitate that with a winsock control on your bot.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Skywing

#10
QuoteWell, unless your webserver lets you run a process (I greatly doubt it), you will have to update it from your computer.  Like I said earlier, you can do one of two things:
1. Have it generate an html file and upload by the use of a commandline ftp program:
if StatsChanged() then
  shell("c:\program files\clftp\ftp.exe -upload \"c:\BotUpdatePage.html\" -user \"iago\"") ..etc.  
I don't know if that kind of ftp client actually exists, but I'm sure it does somewhere.

2. Have a script (php, perl, whatever) running on your webserver that could take updates like somebody filled out a form.  What you could do is write a simple html form, I would would suggest "<form method=get action=updatescript.cgi><input type=text name=username><input type=password name=password>...etc" then packetsniff to find out how the request is sent, then imitate that with a winsock control on your bot.
I believe ncFTP can do that kind of commandline scripting...

Etheran

#11
ewww plzzzzz!! use an access database  :P

Grok

#12
Quoteewww plzzzzz!! use an access database  :P

No way.  Install MSDE and use ADO or ODBC direct.  ODBC is uber fast and MSDE kicks Access' performance, features, and abilities around.

http://www.microsoft.com/sql/howtobuy/msdeuse.asp


iago

#13
I was trying to make the solution as simple as possible :P
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Banana fanna fo fanna

#14
Why don't you just run a custom webserver from your box on some obscure port?