NATION

PASSWORD

Residency algorithm

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Greater Cadia
Political Columnist
 
Posts: 4
Founded: Dec 06, 2019
Ex-Nation

Residency algorithm

Postby Greater Cadia » Sun Jan 05, 2020 12:14 am

Despite only having a nation for 29 days, the residency algorithm claims that my nation has been a resident of my region for 207934568 years and 307 days. Does anyone know how I can fix this?

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

Postby SherpDaWerp » Sun Jan 05, 2020 3:35 am

No algorithms in residency... just a timer. And yours is currently showing 0.76 days, or roughly 19 hours. Prior to that it was a bit over 28 days.
https://www.nationstates.net/nation=gre ... ensusid=80
Became an editor on 18/01/23 techie on 29/01/24

Rampant statistical speculation from before then is entirely unofficial

User avatar
Greater Cadia
Political Columnist
 
Posts: 4
Founded: Dec 06, 2019
Ex-Nation

Postby Greater Cadia » Sun Jan 05, 2020 4:28 pm

My region's Discord server has a bot which is keeping track of his long every nation has been part of the region for and that it where I am getting that figure from.

User avatar
Flanderlion
Minister
 
Posts: 2226
Founded: Nov 25, 2013
Psychotic Dictatorship

Postby Flanderlion » Sun Jan 05, 2020 5:34 pm

Greater Cadia wrote:My region's Discord server has a bot which is keeping track of his long every nation has been part of the region for and that it where I am getting that figure from.

That is likely a misunderstanding on your part or more likely an issue with the bot. Try contacting.the creator of the bot.
As always, I'm representing myself.
Information
Wishlist

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

Postby SherpDaWerp » Sun Jan 05, 2020 7:55 pm

I've found what I suspect is the error, so I've TG'd Tigerania (who I'm told manages the bot) to let them know.

Basically, for nations with residency less than 0 (i.e. decimal residency), it looks like the bot fails to read the 0.XXX and instead reads XXX. This causes issues for residency values like that of Greater Cadia, whose residency went from 0.75946479172 days to 75946479172 days.
Last edited by SherpDaWerp on Sun Jan 05, 2020 7:56 pm, edited 1 time in total.
Became an editor on 18/01/23 techie on 29/01/24

Rampant statistical speculation from before then is entirely unofficial


Return to Technical

Who is online

Users browsing this forum: Card Cleaver, Triumphiam

Advertisement

Remove ads