NATION

PASSWORD

Scripting Tech Development

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Roavin
Admin
 
Posts: 1778
Founded: Apr 07, 2016
Democratic Socialists

Scripting Tech Development

Postby Roavin » Tue Oct 04, 2022 7:33 pm

Ohai! This is the Scripting Tech Development thread, operated by the Scripting Development Manager (myself). This thread serves as a hub for handling additions and improvements of the ways that script authors can interface with the site.

This thread is meant to gather ideas and suggestions for this area of NationStates, as well as to serve as a public tracker of their progress.

Rules of the Thread

  • You must post in good faith.
  • Read and follow the instructions before submitting your ideas and suggestions
  • Keep discussion about a suggestion in that suggestion's dedicated thread

Domain of Responsibility

My purview includes pretty much anything on the technical side of things, i.e. those things that are relevant to script authors. This includes:

Note that this does not include specific features for the game that would be accessible by the API; for example, if you have a suggestion on how the API handles the existing feature set of telegrams, it belongs here, but if you have a suggestion on expanding what telegrams can do for your script, it belongs in the Gameside Communications Development thread.

How to submit Ideas and Suggestions

To submit an idea or suggestion, first think about it a bit and make sure it's a good suggestion. Here are some things you should consider:
  • Does it solve my use-case adequately?
  • Does it solve other possible use-cases as well?
  • Why can't I already do this in another way?
  • Is there an equivalent suggestion in this thread already?
  • Does my suggestion fit into the big picture with the goals listed below?

Having done that, it's time to make a new thread, in this forum. That thread should include, in decreasing order of importance:
  • The "why": An explanation of what you want to do with this once implemented (for example, "I want my autologin tool to show nation mottos in its overview list). This is the most important item, and the only necessary one.
  • The "what": An explanation of your idea or suggestion (for example "I want to query the motto of a nation")
  • The "how": If you want, and if relevant, you can add a suggestion for how this might look on the technical side (for example, "The URL parameter q=motto could signify that the motto is returned for the given nation."

Your target audience with this post is somebody that is tech-literate and familiar with use of the site, but not necessarily intimately familar with your specific niche of the game that this applies to. You should try to reflect that in your post.

Once your thread is posted, post a link to your new thread in this thread, with a short one-sentence description.

Feel free to offer multiple suggestions in your thread, so long as they're related (for example, "I want both motto and flag URL for a nation" can be in the same suggestion, but "I want to query regions for their nation count and nations for the flag" is best split up into two threads.

Goals

  • Minimize use of the HTML site as a scripting interface, and bolster the API instead.
  • Improve documentation so that everybody knows what to do with few ambiguities.
  • Still allow for content scripts, user scripts, etc. to improve the UX of the site.
Helpful Resources: One Stop Rules Shop | API documentation | NS Coders Discord
About me: Longest serving Prime Minister in TSP | Former First Warden of TGW | aka Curious Observations

Feel free to TG me, but not about moderation matters.

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

Postby Roavin » Tue Oct 04, 2022 7:34 pm

Last edited by Roavin on Mon Apr 24, 2023 10:17 am, edited 7 times in total.
Helpful Resources: One Stop Rules Shop | API documentation | NS Coders Discord
About me: Longest serving Prime Minister in TSP | Former First Warden of TGW | aka Curious Observations

Feel free to TG me, but not about moderation matters.

User avatar
SherpDaWerp
Technical Moderator
 
Posts: 1897
Founded: Mar 02, 2016
Benevolent Dictatorship

Postby SherpDaWerp » Tue Oct 04, 2022 7:56 pm

How does this thread interact with the existing API thread?
Became an editor on 18/01/23 techie on 29/01/24

Rampant statistical speculation from before then is entirely unofficial

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

Postby Roavin » Tue Oct 04, 2022 11:29 pm

SherpDaWerp wrote:How does this thread interact with the existing API thread?


For now, bug reports and questions and such should still go there as they have before, but feature requests should now go through this process. This might change at some point.
Helpful Resources: One Stop Rules Shop | API documentation | NS Coders Discord
About me: Longest serving Prime Minister in TSP | Former First Warden of TGW | aka Curious Observations

Feel free to TG me, but not about moderation matters.

User avatar
Darcania
Envoy
 
Posts: 205
Founded: Dec 29, 2014
Civil Rights Lovefest

Postby Darcania » Sat Oct 08, 2022 12:42 am

Last edited by Darcania on Sat Oct 08, 2022 10:15 am, edited 1 time in total.

User avatar
Vylixan
Chargé d'Affaires
 
Posts: 398
Founded: Mar 19, 2006
Psychotic Dictatorship

typo's

Postby Vylixan » Sat Oct 08, 2022 2:51 am

Last edited by Vylixan on Sat Oct 08, 2022 3:18 am, edited 6 times in total.

User avatar
Sandaoguo
Diplomat
 
Posts: 541
Founded: Apr 07, 2013
Left-Leaning College State

Postby Sandaoguo » Sat Oct 08, 2022 9:21 am

Gonna make sure this doesn't lost

NS as an OpenID provider: viewtopic.php?f=15&t=523888

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

Postby 9003 » Wed Oct 26, 2022 5:56 am

Add last major and last minor shards or data points:

https://forum.nationstates.net/viewtopic.php?f=15&t=525511
proud member of PETZ people for the Ethical Treatment of Zombies

Active member of The cards market place discord

User avatar
Vylixan
Chargé d'Affaires
 
Posts: 398
Founded: Mar 19, 2006
Psychotic Dictatorship

Postby Vylixan » Mon Nov 07, 2022 7:41 am

Retrieving Accurate Card Deck Capacity from the API
viewtopic.php?f=15&t=526070

User avatar
Sandaoguo
Diplomat
 
Posts: 541
Founded: Apr 07, 2013
Left-Leaning College State

Postby Sandaoguo » Mon Nov 07, 2022 2:13 pm

I believe Roavin has been working on revamping the API docs. Want to shout out this very neat but undocumented private command, so it doesn't get forgotten: viewtopic.php?p=39537726#p39537726

User avatar
Racoda
Technical Moderator
 
Posts: 579
Founded: Aug 12, 2014
Democratic Socialists

Postby Racoda » Mon Nov 14, 2022 5:48 am

Telegram inbox endpoints/management: viewtopic.php?p=40117655#p40117655

Acting as a player unless accompagnied by mod action or reddish text
Any pronouns

User avatar
Merni
Ambassador
 
Posts: 1800
Founded: May 03, 2016
Democratic Socialists

Postby Merni » Fri Nov 18, 2022 4:51 am

A minor request that doesn't really deserve its own thread IMO.
Adding the data available in daily dumps to API docs: viewtopic.php?f=15&t=526602
2024: the year of democracy. Vote!
The Labyrinth | Donate your free time, help make free ebooks | Admins: Please let us block WACC TGs!
RIP Residency 3.5.16-18.11.21, killed by simplistic calculation
Political Compass: Economic -9.5 (Left) / Social -3.85 (Liberal)
Wrote issue 1523, GA resolutions 532 and 659
meth
When the people are being beaten with a stick, they are not much happier if it is called 'the People’s Stick.' — Mikhail Bakunin (to Karl Marx)
You're supposed to be employing the arts of diplomacy, not the ruddy great thumping sledgehammers of diplomacy. — Ardchoille
The West won the world not by the superiority of its ideas or values or religion [...] but rather by its superiority in applying organised violence. — Samuel P. Huntington (even he said that!)

User avatar
Esfalsa
Spokesperson
 
Posts: 132
Founded: Aug 07, 2015
Civil Rights Lovefest

Postby Esfalsa » Mon Dec 05, 2022 1:27 pm

Returning error data as XML: viewtopic.php?f=15&t=527348

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

Postby The United Peoples of Centrism » Wed Dec 28, 2022 10:15 am

Getting trading card deck composition data from the API: viewtopic.php?f=15&t=528336
CEO of Cancel Culture
Former Delegate of ASS
Unabashed Cardtel Shill

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

New Nations Shard

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

Started a thread about the New Nations shard: https://forum.nationstates.net/viewtopic.php?f=15&t=533183

User avatar
Esfalsa
Spokesperson
 
Posts: 132
Founded: Aug 07, 2015
Civil Rights Lovefest

Postby Esfalsa » Tue May 02, 2023 11:08 pm

Expose Ratelimit headers via CORS: viewtopic.php?f=15&t=534569

User avatar
Refuge Isle
Technical Moderator
 
Posts: 1905
Founded: Dec 14, 2018
Left-wing Utopia

Postby Refuge Isle » Mon May 15, 2023 11:35 am

Roavin wrote:This is the Scripting Tech Development thread, operated by the Scripting Development Manager (myself). This thread serves as a hub for handling additions and improvements of the ways that script authors can interface with the site.

Since that's the case, can this thread be pinned?

User avatar
Sedgistan
Site Director
 
Posts: 35487
Founded: Oct 20, 2006
Anarchy

Postby Sedgistan » Mon May 15, 2023 11:48 am

We have 9 DM areas, and therefore can't go and pin all the threads for them. They're all linked from the main DM announcement thread: viewtopic.php?f=15&t=506576

User avatar
Refuge Isle
Technical Moderator
 
Posts: 1905
Founded: Dec 14, 2018
Left-wing Utopia

Postby Refuge Isle » Mon May 15, 2023 12:31 pm

Sedgistan wrote:We have 9 DM areas

Right, and this is one of the two that are actually used.

It might be worth reconsidering how you guys are doing this entire structure since more managers were never really a solution for a lack of developers, and a lot of the content in these threads is arguing or correcting people about what someone's niche is. What matters is accessibility to information and the ability to relay ideas and suggestions to the people who actually know what's going on.


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Ballistikov, Brendano, Fauzjhia

Advertisement

Remove ads