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.
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.
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.
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?
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.
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.
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.
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!
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).
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)
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.
for the maps, what's the syntax for a map that has a space in its name (e.g. if I wanted to get the xml for Far East)? I can't seem to figure it out...
Edit: never mind, didn't realize it was case sensistive
Last edited by Army of GOD on Fri Sep 06, 2013 5:59 pm, edited 1 time in total.