Php - PHP code to display player stats

Everything todo with programming goes HERE.
Post Reply
User avatar
Marrow
MVP - Project Contributor
Posts: 1655
Joined: Mon Jan 19, 2004 9:05 am
Location: New York

Php - PHP code to display player stats

Post by Marrow »

If somebody has php code that will display won_matches.txt, won_rounds.txt and ladder.txt in tables or in an orderly fashion, please let me know.

Thanks.
User avatar
locutus
Match Winner
Posts: 662
Joined: Mon Jan 19, 2004 10:28 pm
Location: MST [Quotation: "No Good Deed Ever Goes Unpunished.."]
Contact:

Post by locutus »

I see you got that figured out

:)
Image
User avatar
Marrow
MVP - Project Contributor
Posts: 1655
Joined: Mon Jan 19, 2004 9:05 am
Location: New York

Post by Marrow »

Hopefully, I can keep making it better. :idea: :wink:
User avatar
iF
GLL Admin
Posts: 133
Joined: Thu Dec 18, 2003 8:20 pm
Contact:

Post by iF »

come to gll :)
Andre
Posts: 2
Joined: Sat Apr 03, 2004 8:29 pm
Location: San Diego, CA
Contact:

Post by Andre »

Here is the script I use on my server, and the one which armagoshdarnish in 2.6 uses:

http://ironcreek.net/armagetron/class.a ... ts.php.txt

It's object orientated and should be easily integrated into an existing layout. Have a look at the top off the file, there is a single define "PATCHED_SCORES". Set this to 1 if your server is patched with the following patch:

http://ironcreek.net/armagetron/arma_stats.patch

The patch will write players.txt as a TAB separated file to make parsing much easier. That way the names won't come out so screwy. Apply it to an armagetron 0.2.6 source tree and compile. I've only tested this in dedicated server mode.

Enjoy!
3DARCADE 2 (ish) Admin
Stats at http://ironcreek.net/armagetron
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Of course, we here already worked out an algorithim to parse the screwey-ness, and we have modified the source to put tabs in. Still, your information is grately apreciated I'm sure.
Image
Andre
Posts: 2
Joined: Sat Apr 03, 2004 8:29 pm
Location: San Diego, CA
Contact:

Post by Andre »

Is the official armagetron tree on sourceforge still maintained?
If so, who are the developers?
3DARCADE 2 (ish) Admin
Stats at http://ironcreek.net/armagetron
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

It hasn't been upadted in 7 months... We're trying to reach z-man, who is the official developer. However, we are working on un-oficial development. http://guru3.sytes.net/devel
Image
Post Reply