Advertisement
by Coffee and Crack » Thu Apr 15, 2010 9:00 pm
by NewTexas » Thu Apr 15, 2010 9:11 pm
Coffee and Crack wrote:I just use a cronjob every hour for my population tracking script.
by Nanocyberia » Mon Apr 19, 2010 4:14 pm
by Winnipeg » Mon Apr 19, 2010 6:09 pm
by Nanocyberia » Tue Apr 20, 2010 3:42 pm
Graphs are way too hard... A table would be sufficient; it needs to be dynamically generated, so that only that last four values are kept, for example. Conceptually, it would be like this :Winnipeg wrote:I mean you'd have a line graph that went up by 5-8 Million every day it would look pretty stable at a very low incline I'm sure.
dump pop. count to table;
if row count >= 5, delete top/bottom row; // delete top row if most recent value is in bottom row; else, other way round :)
by Fit battion » Thu Apr 22, 2010 7:39 am
by North Mack » Thu Apr 22, 2010 8:43 am
by [violet] » Sat May 01, 2010 11:32 pm
by North Mack » Sun May 02, 2010 10:49 am
[violet] wrote:OK, around 02-May-10 22:20 PDT two files should appear:
by Winnipeg » Sun May 02, 2010 1:12 pm
[violet] wrote:OK, around 02-May-10 22:20 PDT two files should appear:
http://nationstates.net/pages/nations.xml.gz
http://nationstates.net/pages/regions.xml.gz
... and thereafter be updated once every 24 hours. These will contain the XML of all regions and nations in the game. Please let me know if you find these useful, any feedback regarding data format, etc.
One difference to the regular API is that each item is <NATION> (or <REGION>), not <NATIONINFO> (or <REGIONINFO>).
by NewTexas » Mon May 03, 2010 4:45 pm
[violet] wrote:Please let me know if you find these useful, any feedback regarding data format, etc.
by New South Hell » Mon May 03, 2010 5:42 pm
by New South Hell » Tue May 04, 2010 2:33 pm
by NewTexas » Tue May 04, 2010 2:51 pm
by Pythagosaurus » Tue May 04, 2010 2:56 pm
Advertisement
Users browsing this forum: Battadia, Picairn, Stratocratic-Anarchy Oceanic Empire, Sylh Alanor
Advertisement