NATION

PASSWORD

New Nations Details

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Decacon
Lobbyist
 
Posts: 25
Founded: Aug 09, 2012
Democratic Socialists

New Nations Details

Postby Decacon » Sat Apr 08, 2023 7:18 pm

@upc and I would be very happy if we could pull from the New Nations shard but with the spawning region included.

This data is already being processed at the time of founding (and the founding algorithm already passes the data to the happenings page), so I think it would be pretty simple to add this to the API.

Possible use cases:

[*] Ensure recruiting tools are complying with non-recruit provisions of treaties post-F/S
[*] Monitor your own region for spawns (with faster data than the regional happenings shard)
[*] Gather statistics on spawn rates in various regions

I would hesitate to suggest a breaking change to the newnations shard, so perhaps this could be implemented as a newnationsdetail shard? Could simply be a JSON with each nation and its starting region.

While we're at it, could we also add timestamps to this potential newnationsdetail shard?

Thank you!
First President of Frontier Europeia
Former Chairman of Region Inc

User avatar
United Calanworie
Technical Moderator
 
Posts: 5025
Founded: Dec 12, 2018
Democratic Socialists

Postby United Calanworie » Sat Apr 08, 2023 7:47 pm

I am a little confused on pt 2 of this ask list — regional happenings should be at full speed iirc.

User avatar
Decacon
Lobbyist
 
Posts: 25
Founded: Aug 09, 2012
Democratic Socialists

Postby Decacon » Sun Apr 09, 2023 6:41 am

United Calanworie wrote:I am a little confused on pt 2 of this ask list — regional happenings should be at full speed iirc.


https://www.nationstates.net/pages/api.html#worldapi
"The happenings shard has a 28-second delay between a nation doing something and it becoming visible via this API"
First President of Frontier Europeia
Former Chairman of Region Inc

User avatar
United Calanworie
Technical Moderator
 
Posts: 5025
Founded: Dec 12, 2018
Democratic Socialists

Postby United Calanworie » Sun Apr 09, 2023 8:07 am

Decacon wrote:
United Calanworie wrote:I am a little confused on pt 2 of this ask list — regional happenings should be at full speed iirc.


https://www.nationstates.net/pages/api.html#worldapi
"The happenings shard has a 28-second delay between a nation doing something and it becoming visible via this API"

Note that is the world API — not the regional one.

User avatar
Roavin
Admin
 
Posts: 1890
Founded: Apr 07, 2016
Democratic Socialists

Postby Roavin » Sun Apr 09, 2023 8:20 am

I like this idea.
NationStates Administrator

Helpful Resources: One Stop Rules Shop | API documentation | NS Coders Discord

User avatar
UPC
Bureaucrat
 
Posts: 48
Founded: Jul 18, 2022
Liberal Democratic Socialists

Postby UPC » Sun Apr 09, 2023 2:22 pm

United Calanworie wrote:
Decacon wrote:
https://www.nationstates.net/pages/api.html#worldapi
"The happenings shard has a 28-second delay between a nation doing something and it becoming visible via this API"

Note that is the world API — not the regional one.

Hi Aav,

I had always assumed that the regional happenings shard had the 28 second delay as well, TIL! That said, using the regional happenings shard has drawbacks as well. For one, it cannot be filtered by a particular happening (such as founding) like the world shard can. The world shard can also get happenings from several regions with one request; obviously the region shard does not have this feature.
The Mind-Killer of UPC
President & Delegate of Europeia

(he/they)
Visit Europeia | Join Our Discord | Apply For Citizenship

User avatar
Decacon
Lobbyist
 
Posts: 25
Founded: Aug 09, 2012
Democratic Socialists

Postby Decacon » Sun Apr 09, 2023 5:07 pm

Roavin wrote:I like this idea.


Thanks!

Another idea is a URL parameter to filter the newnations shard. But you could offload the compute work to us and we'd be just as happy.
Last edited by Decacon on Sun Apr 09, 2023 5:07 pm, edited 1 time in total.
First President of Frontier Europeia
Former Chairman of Region Inc

User avatar
Quebecshire
Minister
 
Posts: 2188
Founded: Mar 17, 2017
Democratic Socialists

Postby Quebecshire » Mon Apr 10, 2023 6:35 pm

I also like this idea, and think it would be useful for the reasons outlined by the OP.
PATRIOT OF THE LEAGUE REDEEMER OF CONCORD
Defender Moralist | Consul of the LDF | Warden-Lieutenant Emeritus | Commended
Benevolent Thomas wrote:I founded a defender organization out of my dislike of invaders, what invading represents, and my desire to see them suffer.
Pergamon wrote:I must say, you are truly what they deserve.

User avatar
Varanius
Issues Editor
 
Posts: 913
Founded: Sep 18, 2019
Psychotic Dictatorship

Postby Varanius » Fri Apr 14, 2023 12:17 pm

This would probably be super helpful. Especially given the upcoming F/S update has some interesting questions to ask in terms of how regions should recruit now from a more political standpoint, development of site infrastructure in this regard would certainly be beneficial.
Minister of Foreign Affairs
Guardian of the West Pacific
Issues Editor

User avatar
Roavin
Admin
 
Posts: 1890
Founded: Apr 07, 2016
Democratic Socialists

Postby Roavin » Fri Apr 14, 2023 7:40 pm

I've put it on my TODO list.

I'm thinking something like this:

Code: Select all
<WORLD>
  <NEWNATIONDETAILS>
    <NEWNATION name="souttand">
      <REGION>the_south_pacific</REGION>
    </NEWNATION>
  </NEWNATIONDETAILS>
</WORLD>


That'd be idiomatic for the API, and also is extensible for future additions. Objections, comments, etc?
Last edited by Roavin on Fri Apr 14, 2023 7:41 pm, edited 1 time in total.
NationStates Administrator

Helpful Resources: One Stop Rules Shop | API documentation | NS Coders Discord

User avatar
Decacon
Lobbyist
 
Posts: 25
Founded: Aug 09, 2012
Democratic Socialists

Postby Decacon » Sat Apr 15, 2023 7:03 pm

If we could throw the spawn time in too that would help, but it's not necessary.

I know these things are hard to estimate, but is there any rough timeline for when we might see this?

In any case, this is looking good. Thanks Roavin.
First President of Frontier Europeia
Former Chairman of Region Inc

User avatar
Roavin
Admin
 
Posts: 1890
Founded: Apr 07, 2016
Democratic Socialists

Postby Roavin » Sun Apr 16, 2023 2:10 am

Decacon wrote:If we could throw the spawn time in too that would help, but it's not necessary.


Sounds good.

Decacon wrote:I know these things are hard to estimate, but is there any rough timeline for when we might see this?


I'm going to bring this backstage now to see if there are objections. If not, given the imminent release of F/S, I'm thinking sooner rather than later. It's not a difficult feature.
NationStates Administrator

Helpful Resources: One Stop Rules Shop | API documentation | NS Coders Discord

User avatar
UPC
Bureaucrat
 
Posts: 48
Founded: Jul 18, 2022
Liberal Democratic Socialists

Postby UPC » Tue May 02, 2023 9:36 am

Hi Roavin!

I've had another thought -- can we integrate this with the nation tgcanrecruit shard? It would be fabulous to not have to waste time and effort sending telegrams to class nations, nations that have already blocked recruitment, or to nations that have already gotten a recruitment telegram of a different type from a given region, etc.

And did the timestamp make the cut?

Thanks!
The Mind-Killer of UPC
President & Delegate of Europeia

(he/they)
Visit Europeia | Join Our Discord | Apply For Citizenship

User avatar
Roavin
Admin
 
Posts: 1890
Founded: Apr 07, 2016
Democratic Socialists

Postby Roavin » Tue May 02, 2023 11:13 am

As implemented right now (but not deployed yet), it has the region and timestamp.

Integrating the tgcanrecruit shard into that is ... theoretically possible, but infeasible.
NationStates Administrator

Helpful Resources: One Stop Rules Shop | API documentation | NS Coders Discord

User avatar
The United Peoples of Centrism
Secretary
 
Posts: 35
Founded: Apr 01, 2019
Left-wing Utopia

Postby The United Peoples of Centrism » Tue May 02, 2023 11:45 am

No worries, thanks for the update. Looking forward to using this soon (fingers crossed)
CEO of Cancel Culture
Former Delegate of ASS
Unabashed Cardtel Shill

User avatar
9003
Diplomat
 
Posts: 652
Founded: Oct 25, 2012
Corporate Police State

Postby 9003 » Fri Jun 02, 2023 5:22 pm

any update on this?
proud member of PETZ people for the Ethical Treatment of Zombies

Active member of The cards market place discord

User avatar
Roavin
Admin
 
Posts: 1890
Founded: Apr 07, 2016
Democratic Socialists

Postby Roavin » Fri Jun 02, 2023 6:24 pm

See here. Already live, just not documented yet.
NationStates Administrator

Helpful Resources: One Stop Rules Shop | API documentation | NS Coders Discord


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Cry Nerow, New Columbia and Red River, Omnicontrol, Sneadville, Snowcat

Advertisement

Remove ads