NATION

PASSWORD

NationStates issue results

A place to spoil daily issues for those who haven't had them yet, snigger at typos, and discuss ideas for new ones.

Advertisement

Remove ads

User avatar
Lumio Magika
Attaché
 
Posts: 97
Founded: Nov 12, 2020
New York Times Democracy

Postby Lumio Magika » Mon Mar 29, 2021 3:54 pm

You're a legend, Trotterdam. A bloody legend.
The League of Radiance's resident therapist-to-be. In my opinion, there's no greater feeling than the happiness you get when you help someone in need. I live my life for the sake of my wonderful boyfriend, my friends, and the people around the world that need my help.

Lumio out-of-context:
Lumio Magika wrote:Burn them with holy fire until nothing but ashes remain!
I don't use NS stats! Adunatum sub Lumina!

User avatar
Trotterdam
Powerbroker
 
Posts: 9217
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Mon Mar 29, 2021 10:20 pm

I shall endeavor to get that blood cleaned up, but thank you.

User avatar
Eshialand
Envoy
 
Posts: 322
Founded: Apr 03, 2017
Anarchy

Postby Eshialand » Wed Apr 07, 2021 11:10 am

683.1 currently reads: "edutainment video games are taking @@LEADER@@'s students by storm". That macro should be @@NAME@@.
Warden of The Order of the Grey Wardens since February 10th, 2021.
Baptism of Fire 75 Champions... somehow?
...I'll always be your friend!

User avatar
Racoda
Spokesperson
 
Posts: 126
Founded: Aug 12, 2014
Liberal Democratic Socialists

Postby Racoda » Thu Apr 08, 2021 1:10 pm

Would you be willing to share/publish your code?

User avatar
Trotterdam
Powerbroker
 
Posts: 9217
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Fri Apr 09, 2021 1:01 pm

Racoda wrote:Would you be willing to share/publish your code?
Trotterdam wrote:What do you want this for?

In principle, I'm willing to share my code if it would be helpful. However, I think this would be of limited use because (A) it's written for a fairly specific programming environment that won't simply run out of the box for most people, and I also have a bad habit of not commenting my code that much, and (B) I don't actually encourage other people to run a program equivalent to mine, since it'd just be redundantly gathering the same data (and if we were to combine both versions' data into a single better repository, that could be seen as violating the rule against sneakily exceeding ratelimits).

User avatar
Paffnia
Envoy
 
Posts: 263
Founded: Nov 03, 2010
Democratic Socialists

Postby Paffnia » Sat Apr 10, 2021 8:27 am

#1444, Option 1 (internally numbered 0) effect line: "Returning vacationers often find that their property is now a construction site."
Former Delegate of 10000 Islands
Knight of TITO
Denes nad Makedonija


WA Ambassador: Joakim Metyhap
Paffniac Factbook
Author, SC #93: Commend The Featured Region Followers
Commended by SC #276

User avatar
Trotterdam
Powerbroker
 
Posts: 9217
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Sat Apr 10, 2021 1:21 pm

Paffnia wrote:#1444, Option 1 (internally numbered 0) effect line: "Returning vacationers often find that their property is now a construction site."
Umm, I've already had this one up for days? Is something wrong?

User avatar
Paffnia
Envoy
 
Posts: 263
Founded: Nov 03, 2010
Democratic Socialists

Postby Paffnia » Sat Apr 10, 2021 7:16 pm

Trotterdam wrote:Umm, I've already had this one up for days? Is something wrong?
Nope, I just hadn't refreshed the page!
Former Delegate of 10000 Islands
Knight of TITO
Denes nad Makedonija


WA Ambassador: Joakim Metyhap
Paffniac Factbook
Author, SC #93: Commend The Featured Region Followers
Commended by SC #276

User avatar
Rocain Founder
Secretary
 
Posts: 32
Founded: Aug 01, 2020
Inoffensive Centrist Democracy

Postby Rocain Founder » Tue Apr 20, 2021 6:14 am

According to the spoilers, issue #925 has four options, not three. This is confirmed by my puppet Cain B O-Au v0, which received the issue with option 4 present, but not option 3. The talking point for option 4 is "kids these days know how to throw a proper punch", same as for option 3.

User avatar
Vicken
Political Columnist
 
Posts: 2
Founded: Jul 27, 2020
Civil Rights Lovefest

Postby Vicken » Tue Apr 20, 2021 1:49 pm

Trotterdam wrote:
Racoda wrote:Would you be willing to share/publish your code?
Trotterdam wrote:What do you want this for?

In principle, I'm willing to share my code if it would be helpful. However, I think this would be of limited use because (A) it's written for a fairly specific programming environment that won't simply run out of the box for most people, and I also have a bad habit of not commenting my code that much, and (B) I don't actually encourage other people to run a program equivalent to mine, since it'd just be redundantly gathering the same data (and if we were to combine both versions' data into a single better repository, that could be seen as violating the rule against sneakily exceeding ratelimits).


I suppose that in my case the main reason I'd desire access to the code is as a sort of safety measure in the case you stop supporting it or disappear from nationstates. I use this data to programmatically run a bunch of puppets, so if suddenly the site went down or isn't updated any more I'd be in a bit of a pickle (and have to rewrite a similar thing).
I've also been wanting to look more in-depth on the distribution of issue outcomes or see how they change as a function of the nation's visible stats. It'd be much more practical to be able to see how it's done here than completely reinventing the wheel. Not that this is a thing I plan on doing any time soon, but it's definitely on my mental list of possible projects.

(As this is my first post here, I have to end this comment with a thank-you. This is a great resource!)

User avatar
Trotterdam
Powerbroker
 
Posts: 9217
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Tue Apr 20, 2021 5:17 pm

Vicken wrote:I suppose that in my case the main reason I'd desire access to the code is as a sort of safety measure in the case you stop supporting it or disappear from nationstates. I use this data to programmatically run a bunch of puppets, so if suddenly the site went down or isn't updated any more I'd be in a bit of a pickle (and have to rewrite a similar thing).
Hmm. I suppose there is some merit to this concern. I don't intend to ever abandon this project (certainly not without giving fair warning first), and I am currently in good health, but there's always some risk of a freak accident.

Vicken wrote:I've also been wanting to look more in-depth on the distribution of issue outcomes or see how they change as a function of the nation's visible stats. It'd be much more practical to be able to see how it's done here than completely reinventing the wheel. Not that this is a thing I plan on doing any time soon, but it's definitely on my mental list of possible projects.
The basic program logic is really pretty simple. It can be summarized as:
1. Whenever the program doesn't have something better to do, constantly check the world happenings feed for nations answering issues. API query: q=happenings&filter=law&limit=200&sinceid=<last_world_happening_seen>
2. For any interesting-looking happenings (some filtering is done to get rid of happenings that obviously can't be used), check the nation's new stats. Store these provisionally, but don't do anything with them yet. API query: q=dbid+wa+policies+census&scale=all&mode=score&nation=<nation>
3. Once at least 30 seconds have passed since a nation's data has been provisionally retrieved (which, at least in theory, should always be longer than the 28-second delay that the API manual claims there is before happenings become visible, though I sometimes wonder if that's actually reliable given some suspicious data I'm getting), check the nation's happenings again to make sure it hasn't done anything new that would invalidate the data. API query: q=happenings&filter=law+member&limit=2&sinceid=<previous_happening_processed_from_this_nation>
4. If both happenings retrieved in step 3 are what was expected, then the retrieved stats from step 2 can be compared against the previously-stored stats of that nation to determine the changes. If the last happening retrieved in step 3 is correct (i.e., the same as the one gotten in step 1) but the second-last happening is incorrect or missing (or if no second-last happening was expected because the nation wasn't previously in the database), then the data cannot be used to determine issue effects, but it can still be saved as the nation's current stats in preparation for being used to calculate the effects of the nation's next issue. If even the last happening has already changed from what it's expected to be, then the data can't be used at all and the nation is dropped from the database.
That's it. Those three API queries make up the bulk of what I'm doing. (There's also a daily check to retrieve a list of all WA nations to save time on having to disqualify them each individually, but that's not essential.) I think I actually spent more time on writing the user interface to make stuff like adding new issues and identifying macros easy than I did on the core logic.

Vicken wrote:(As this is my first post here, I have to end this comment with a thank-you. This is a great resource!)
Thanks!

...It sounds a bit weird to answer thanks with thanks rather than with something like "you're welcome", but really, I appreciate knowing that I'm helping people :)

User avatar
Vicken
Political Columnist
 
Posts: 2
Founded: Jul 27, 2020
Civil Rights Lovefest

Postby Vicken » Tue Apr 20, 2021 11:06 pm

Trotterdam wrote:The basic program logic is really pretty simple. It can be summarized as:
1. Whenever the program doesn't have something better to do, constantly check the world happenings feed for nations answering issues. API query: q=happenings&filter=law&limit=200&sinceid=<last_world_happening_seen>
2. For any interesting-looking happenings (some filtering is done to get rid of happenings that obviously can't be used), check the nation's new stats. Store these provisionally, but don't do anything with them yet. API query: q=dbid+wa+policies+census&scale=all&mode=score&nation=<nation>
3. Once at least 30 seconds have passed since a nation's data has been provisionally retrieved (which, at least in theory, should always be longer than the 28-second delay that the API manual claims there is before happenings become visible, though I sometimes wonder if that's actually reliable given some suspicious data I'm getting), check the nation's happenings again to make sure it hasn't done anything new that would invalidate the data. API query: q=happenings&filter=law+member&limit=2&sinceid=<previous_happening_processed_from_this_nation>
4. If both happenings retrieved in step 3 are what was expected, then the retrieved stats from step 2 can be compared against the previously-stored stats of that nation to determine the changes. If the last happening retrieved in step 3 is correct (i.e., the same as the one gotten in step 1) but the second-last happening is incorrect or missing (or if no second-last happening was expected because the nation wasn't previously in the database), then the data cannot be used to determine issue effects, but it can still be saved as the nation's current stats in preparation for being used to calculate the effects of the nation's next issue. If even the last happening has already changed from what it's expected to be, then the data can't be used at all and the nation is dropped from the database.
That's it. Those three API queries make up the bulk of what I'm doing. (There's also a daily check to retrieve a list of all WA nations to save time on having to disqualify them each individually, but that's not essential.) I think I actually spent more time on writing the user interface to make stuff like adding new issues and identifying macros easy than I did on the core logic.

Thank you for this! This'll certainly come in handy :)
Sounds like there's still a lot of manual work to it all though :blobsweat:

User avatar
Trotterdam
Powerbroker
 
Posts: 9217
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Wed Apr 21, 2021 4:41 am

Vicken wrote:Sounds like there's still a lot of manual work to it all though :blobsweat:
Oh yeah, definitely. It doesn't take up very much of my time, but I do need to regularly check in, even if just briefly. And of course, any corrections reported in this thread need to be entered manually.

I knew this was going to be the case, so I put in quite a bit of effort in advance to make a user-friendly interface that will let me do the kind of things that I often need to do quickly and conveniently. While that requires more work up front, it saves work in the long run, and I think it's a good design principle for programming in general.

User avatar
Marxist Germany
Minister
 
Posts: 2113
Founded: Jun 07, 2018
Corporate Bordello

Postby Marxist Germany » Sun Apr 25, 2021 3:54 am

The effect line I got for answering option 2 of #1455 on EA Corporations is
Companies have begun running campaigns to stop people from remembering their brand name.


Whereas the one given in the issue results website is
at least 4 unique companies in @@NAME@@ claim to sell Eckie-Cola


Are there several possible effect lines for some options?
Country represents RL views mostly. Not Marxist anymore.
Author of GA#461, GA#470, GA#477, GA#481, GA#486 (co-author), and SC#295

Ex-delegate of The United Federations; citizen and ex-Senior Senator of 10000 Islands
RP name: Germany
The National Factbook (WIP)
Ambassador Klaus Schmidt
Political Compass
Pro:Laissez-faire, Cultural Nationalism, Guns, Free speech, Christianity, United Ireland.
Anti:"Progressivism", Abortion, Transgenderism, Socialism, Interventionism, Mass-migration.

User avatar
Trotterdam
Powerbroker
 
Posts: 9217
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Sun Apr 25, 2021 10:40 am

Marxist Germany wrote:Are there several possible effect lines for some options?
No, I most likely just made a mistake. Fixed now, and do tell me if you see any other cases like this.

User avatar
Trotterdam
Powerbroker
 
Posts: 9217
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Wed May 05, 2021 12:59 am

With two reports of Taxation anomalies in a short timeframe, I rather suspect that the calculation of that stat has been changed behind the scenes, despite there not being an open beta. I'm going to go ahead and nuke all Taxation data, just to be safe.

...Maybe I wouldn't have done that if they were both from the same nation. Oh well.

Previous

Advertisement

Remove ads

Return to Got Issues?

Who is online

Users browsing this forum: Daarwyrth, The Star Enpire

Advertisement

Remove ads