Reason - I guess it is the ' sign in the map name that messes things up (cause it should be stripped from input). Escaping the character doesn't give anything.
Should list 4 teams with 2 players each, 6 of slots empty. But right now it returns only 2 players for the game. No way to find how many players there should be.
Re: Conquer Club API
Posted: Thu Jan 21, 2010 4:49 pm
by chipv
Thanks for the excellent bug reports, Dako, keep them coming!
Alexander's Empire looks like a bug and I agree with waiting games showing empty slots.
Reason - I guess it is the ' sign in the map name that messes things up (cause it should be stripped from input). Escaping the character doesn't give anything.
Fixed (thanks for quick response, lack)
Re: Conquer Club API
Posted: Thu Jan 21, 2010 5:37 pm
by Dako
So for now, these are the bugs/change requests I've found top priority (for my scripts at least, but I know Foxy will be glad for #1 and #4 to be fixed):
[CR] - Player API doesn't return if the member is premium or freemium
[CR] - Gamelist API doesn't indicate blocked players in freestyle games
[BUG] - Gamelist API still have "Time remaining" clock running down after the game was finished
[BUG] - Gamelist API never shows empty player slots for a game (it just skips them)
Maybe I will find something else in the next few days, but for now my script runs smoothly with the new API. Kudos to lack.
Re: Conquer Club API
Posted: Sun Aug 08, 2010 9:32 am
by barrycarter
To confirm, the API won't tell you who has how many troops on which territories for a given game, correct? Even with the gn query, the info you get is limited, yes?
Re: Conquer Club API
Posted: Sun Aug 08, 2010 9:38 am
by sherkaner
Correct, it's only general info.
Re: Conquer Club API
Posted: Sun Aug 08, 2010 9:50 am
by barrycarter
And using a program to auto-login myself and scrape the info from the JSON data on the game page is considered a bad thing, yes?
Re: Conquer Club API
Posted: Sun Aug 08, 2010 10:04 am
by sherkaner
Depends, not in all cases. For instance I think the Game Link-plugin actually uses the fact that you're already logged in to retrieve the game pages and use the info from those pages, which looks like what you're planning to do. But that's quite heavy, so it's not advised.
Re: Conquer Club API
Posted: Sun Aug 08, 2010 10:19 am
by Dako
It's not bad - it is slow and hard to code/support. Any change to game layout will give you a bunch of work to up[date the tool. While abstract API just gives the data you need.
Re: Conquer Club API
Posted: Sun Aug 08, 2010 11:25 am
by barrycarter
Thanks. My thought was to create a site where people enter a CC game number, and get various stats, who has best probability of winning, warnings (like: "if red grabs foo, he'll get a bonus"), etc.
Having the maps in XML format is really useful for general strategies, but I was thinking of a game-specific real-time strategy.
Re: Conquer Club API
Posted: Sun Aug 08, 2010 2:37 pm
by Foxglove
sherkaner wrote:Depends, not in all cases. For instance I think the Game Link-plugin actually uses the fact that you're already logged in to retrieve the game pages and use the info from those pages, which looks like what you're planning to do. But that's quite heavy, so it's not advised.
Once the API provides the required information, there will be no need to do it the "heavy" way anymore. But for now... that's the only way to allow the script to work properly!
Re: Conquer Club API
Posted: Sun Aug 08, 2010 2:45 pm
by sherkaner
Foxglove wrote:
sherkaner wrote:Depends, not in all cases. For instance I think the Game Link-plugin actually uses the fact that you're already logged in to retrieve the game pages and use the info from those pages, which looks like what you're planning to do. But that's quite heavy, so it's not advised.
Once the API provides the required information, there will be no need to do it the "heavy" way anymore. But for now... that's the only way to allow the script to work properly!
Yeah, obviously you have a valid point. And I use and love the script btw (except when I get on a forum page with 100+ games I'm not interested in).
Re: Conquer Club API
Posted: Tue Aug 24, 2010 3:02 pm
by barrycarter
Can you get game start time from the API? The events field doesn't include "game initialized" and I can't see it anywhere else.
you forget in the url the get var 'mode=gamelist' so you don't have gamelist but the rules of the API
Re: Conquer Club API
Posted: Sun Dec 19, 2010 5:39 pm
by chipv
The head post needs updating will do it now.
Adding requests
1. Allow search by dates. Add 2 parameters from and to, choose whatever date format you want. 2. Indicate blocked players in freestyle status. (Now reads Ready)
Maybe 2 has already been asked for.
Re: Conquer Club API
Posted: Tue Apr 09, 2013 12:16 pm
by kruthar
Hi all -
Please let me know if this functionality exists somewhere but I am looking for the turn number for all of the events that get returned on game objects, currently they only come with a timestamp, which really isn't all that useful unless you are doing real-time monitoring. This would allow for some interesting player/game analysis that I plan on doing.
Can I formally request that all events for a game object come with a turn number? Thanks a whole bunch.
Re: Conquer Club API
Posted: Thu Apr 11, 2013 6:47 pm
by ender516
If you need a quick workaround, look for the events that say "Incrementing to round n".