Page 1 of 2

Re: Game History XML For Plugins and Script Writers

PostPosted: Sun Oct 05, 2008 10:10 am
by Night Strike
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.

Re: Game History XML For Plugins and Script Writers

PostPosted: Mon Oct 06, 2008 12:54 pm
by chipv
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.

Re: Game History XML For Plugins and Script Writers

PostPosted: Tue Oct 07, 2008 3:02 pm
by cspare
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.

Re: Game History XML For Plugins and Script Writers

PostPosted: Tue Oct 07, 2008 3:17 pm
by chipv
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.

Re: Game History XML For Plugins and Script Writers

PostPosted: Thu Oct 09, 2008 2:01 pm
by cspare
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>

Re: Game History XML For Plugins and Script Writers

PostPosted: Thu Oct 09, 2008 3:20 pm
by chipv
Yes this affects Map Rank also:

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

Problem was reported, awaiting response.

Re: Game History XML For Plugins and Script Writers

PostPosted: Tue Oct 14, 2008 3:52 pm
by chipv
RECENT SITE CHANGES REQUIRE CHANGES TO MOST SCRIPTS.

Thread is being locked until they're fixed.

Re: Game History XML For Plugins and Script Writers

PostPosted: Wed Oct 15, 2008 3:31 pm
by chipv
XML is fixed now, sorry for the delay.

Re: Game History XML For Plugins and Script Writers

PostPosted: Wed Oct 15, 2008 5:53 pm
by chipv
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.

Re: Game History XML For Plugins and Script Writers

PostPosted: Fri Oct 17, 2008 3:31 pm
by chipv
XML is back in business now.

Re: Game History XML For Plugins and Script Writers

PostPosted: Sat Apr 25, 2009 1:21 pm
by chipv
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>

Re: Game History XML For Plugins and Script Writers

PostPosted: Fri Oct 16, 2009 4:55 am
by chipv
This is now defunct and has been removed.

Please use the Conquer Club API instead.

Thread is being locked.