Conquer Club

Game History XML For Plugins and Script Writers

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.

Re: Game History XML For Plugins and Script Writers

Postby Night Strike on Sun Oct 05, 2008 10:10 am

cspare wrote:I was wondering if anybody could give an indication whether my suggestion above will be implemented or not? And if so, when it will be released.
I'd like to start developing some new scripts that rely on the new XML.


More than likely, chipv will have to see this and work with lack on it, but chipv is away for a bit.
Image
User avatar
Major Night Strike
 
Posts: 8512
Joined: Wed Apr 18, 2007 2:52 pm

Re: Game History XML For Plugins and Script Writers

Postby chipv on Mon Oct 06, 2008 12:54 pm

cspare wrote:I was wondering if anybody could give an indication whether my suggestion above will be implemented or not? And if so, when it will be released.
I'd like to start developing some new scripts that rely on the new XML.


Yes, this is do-able, but you'll have to wait as it may not be done straight away, I'm afraid, so you'll have to work around for now.
User avatar
Lieutenant chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: Game History XML For Plugins and Script Writers

Postby cspare on Tue Oct 07, 2008 3:02 pm

Ok, cool. thanks.
I implemented a work around that works pretty good as well. I improved a Xpath query so that I could eliminate 2 for loops, I'm getting a pretty good performance now. Having to download all xml files still stays the main bottleneck though.

I was also wondering if you guys also keep record of a player's actual score over time, or only the events that cause the score to change (so effectively only storing the score delta)? This could help fill in the gaps of the missing game logs.
Sergeant 1st Class cspare
 
Posts: 101
Joined: Sun Apr 08, 2007 12:56 pm

Re: Game History XML For Plugins and Script Writers

Postby chipv on Tue Oct 07, 2008 3:17 pm

cspare wrote:Ok, cool. thanks.
I implemented a work around that works pretty good as well. I improved a Xpath query so that I could eliminate 2 for loops, I'm getting a pretty good performance now. Having to download all xml files still stays the main bottleneck though.

I was also wondering if you guys also keep record of a player's actual score over time, or only the events that cause the score to change (so effectively only storing the score delta)? This could help fill in the gaps of the missing game logs.


You can make one saving by preventing downloading of all the xml files if the number of games hasn't changed by using persistent data.
Store the data you need as well as the number of games. Read page one of the xmls and compare game numbers to decide whether to use any more of the xmls.

The event tags store all points changes available except for games with missing logs. We've been looking at missing logs for a while now and unfortunately there is no way to accurately recalculate all of the points - the logs are literally gone. Since we can't guarantee finding missing logs sandwiched between visible logs we cannot recalculate all point changes. Pity.
User avatar
Lieutenant chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: Game History XML For Plugins and Script Writers

Postby cspare on Thu Oct 09, 2008 2:01 pm

While testing ConquerStats I came across some empty user XML pages:
http://www.conquerclub.com/game_history.php?user_id=107287:
Code: Select all
<game_history>
   <user_id>107287</user_id>
   <page>1 of 5</page>
   <games total="1000">
   </games>
</game_history>

http://www.conquerclub.com/game_history.php?user_id=42178
Code: Select all
<game_history>
   <user_id>42178</user_id>
   <page>1 of 4</page>
   <games total="652">
   </games>
</game_history>
Sergeant 1st Class cspare
 
Posts: 101
Joined: Sun Apr 08, 2007 12:56 pm

Re: Game History XML For Plugins and Script Writers

Postby chipv on Thu Oct 09, 2008 3:20 pm

Yes this affects Map Rank also:

viewtopic.php?f=59&t=64678&start=60#p1627523

Problem was reported, awaiting response.
User avatar
Lieutenant chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: Game History XML For Plugins and Script Writers

Postby chipv on Tue Oct 14, 2008 3:52 pm

RECENT SITE CHANGES REQUIRE CHANGES TO MOST SCRIPTS.

Thread is being locked until they're fixed.
User avatar
Lieutenant chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: Game History XML For Plugins and Script Writers

Postby chipv on Wed Oct 15, 2008 3:31 pm

XML is fixed now, sorry for the delay.
User avatar
Lieutenant chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: Game History XML For Plugins and Script Writers

Postby chipv on Wed Oct 15, 2008 5:53 pm

Apologies in advance but the archived logs are about to be cleaned up which means the XML files will be broken again.
This will begin tomorrow morning (EDT) and last approximately 24 hours.

As soon as the logs have been cleaned up, the XMLs should work again and I'll post again to say so.

Apologies for the inconvenience.

For the avoidance of doubt this will currently affect Map Rank GL and Conquerstats charts.
User avatar
Lieutenant chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: Game History XML For Plugins and Script Writers

Postby chipv on Fri Oct 17, 2008 3:31 pm

XML is back in business now.
User avatar
Lieutenant chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: Game History XML For Plugins and Script Writers

Postby chipv on Sat Apr 25, 2009 1:21 pm

Some new features have been added to the Game History (thanks, lack!)

1. New parameter state

Values :

A for active games
W for waiting games
F for finished games (this is default)

So add &state=A to end of URL for player's active games.

e.g.

http://www.conquerclub.com/game_history ... pv&state=A

Note that games where player has been eliminated has been included in active games for now.
Use the player state attribute to check if player has lost already.

e.g.

Code: Select all
<players>
<player state="Active">324600</player>
<player state="Lost">187516</player>
<player state="Active">222651</player>
<player state="Active">316606</player>
</players>
User avatar
Lieutenant chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: Game History XML For Plugins and Script Writers

Postby chipv on Fri Oct 16, 2009 4:55 am

This is now defunct and has been removed.

Please use the Conquer Club API instead.

Thread is being locked.
User avatar
Lieutenant chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Next

Return to Tool Archives

Who is online

Users browsing this forum: No registered users