NATION

PASSWORD

Agadar's Telegrammer (updated August 16th, '20)

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Agadar's Telegrammer (updated August 16th, '20)

Postby Agadar » Thu Sep 08, 2016 12:31 pm

[ Agadar's Telegrammer ]

This desktop application allows you to automate sending telegrams to other nations, making it useful for recruiting, World Assembly campaigning, region-wide telegramming, and so forth. It only requires Java to be installed on your machine in order to run.

Before you use this program, make sure you're familiar with the Telegrams API. You should know how to obtain a Client Key, and how to create a telegram template. Once you've obtained a Client Key, a Telegram Id, and a Secret Key, you're ready to start using this program.

If you're looking for a guide on how to obtain the keys and a Telegram Id, check out Ever-Wandering Souls' Simple Guide to Sending Telegrams via API!

This program uses the NationStates Telegrammer Core library to communicate with the NationStates API.

[ Screenshot ]

Image

[ Links ]

Releases
Source code
More applications
Last edited by Agadar on Sun Aug 16, 2020 2:20 pm, edited 18 times in total.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Mon Sep 19, 2016 8:20 am

Version 1.1.0 has just been released. Details can be found in the changelog on the releases page.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Ever-Wandering Souls
Negotiator
 
Posts: 7267
Founded: Jan 01, 2014
Father Knows Best State

Postby Ever-Wandering Souls » Wed Sep 21, 2016 1:28 am

Greetings! Would you like your client to be included in my API Telegram Guide? I would be happy to add it to my list (and it might also get me to do some other maintenance, like updates for RO, recruitment permissions, and which clients are currently functioning xD).
Proud Raider; General of The Black Hawks, Ret.
TG me anytime; I'm always happy to talk about anything!

The Alicorns (Equestria) wrote:Let them stay, no need to badmouth them...From our view a bunch of nations just came in, seized the delegate position, and changed a few superficial things...we play NationStates differently...there's really no reason for us to be butthurt.
http://www.nationstates.net/page=rmb/postid=8944227
http://www.nationstates.net/page=rmb/postid=8951258

Misley wrote:
Hobbesistan wrote:Don't think I understand the question.
The color or what?..

Jesus, Hobbes, it's 2015. You can't just call someone "the color".

Reploid Productions wrote:Raiders are endlessly creative

How Do I Telegram API?

Omnis delenda est.

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Wed Sep 21, 2016 1:53 am

Ever-Wandering Souls wrote:Greetings! Would you like your client to be included in my API Telegram Guide? I would be happy to add it to my list (and it might also get me to do some other maintenance, like updates for RO, recruitment permissions, and which clients are currently functioning xD).


I'd love it if it were included. That's a great guide. I'll make sure to link to it from this thread as well.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Mon Oct 03, 2016 3:23 pm

Version 1.2.0 has been released. Check the details in the changelog on the releases page.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Luxdonia
Ambassador
 
Posts: 1020
Founded: Jun 22, 2015
Ex-Nation

Postby Luxdonia » Mon Oct 03, 2016 7:53 pm

Very interesting application! I'll make to check it out!
The Kingdom of Luxdonia
The Chief Administrator and Executive Councillor of Archmont
Join the Archmont Discord server!

User avatar
Ever-Wandering Souls
Negotiator
 
Posts: 7267
Founded: Jan 01, 2014
Father Knows Best State

Postby Ever-Wandering Souls » Fri Oct 07, 2016 9:15 pm

Agadar wrote:
Ever-Wandering Souls wrote:Greetings! Would you like your client to be included in my API Telegram Guide? I would be happy to add it to my list (and it might also get me to do some other maintenance, like updates for RO, recruitment permissions, and which clients are currently functioning xD).


I'd love it if it were included. That's a great guide. I'll make sure to link to it from this thread as well.



Added!
Proud Raider; General of The Black Hawks, Ret.
TG me anytime; I'm always happy to talk about anything!

The Alicorns (Equestria) wrote:Let them stay, no need to badmouth them...From our view a bunch of nations just came in, seized the delegate position, and changed a few superficial things...we play NationStates differently...there's really no reason for us to be butthurt.
http://www.nationstates.net/page=rmb/postid=8944227
http://www.nationstates.net/page=rmb/postid=8951258

Misley wrote:
Hobbesistan wrote:Don't think I understand the question.
The color or what?..

Jesus, Hobbes, it's 2015. You can't just call someone "the color".

Reploid Productions wrote:Raiders are endlessly creative

How Do I Telegram API?

Omnis delenda est.

User avatar
Imperium Anglorum
GA Secretariat
 
Posts: 12655
Founded: Aug 26, 2013
Left-Leaning College State

Postby Imperium Anglorum » Sat Oct 08, 2016 5:39 pm

Is the client key in the screenshot above real?

Author: 1 SC and 56+ GA resolutions
Maintainer: GA Passed Resolutions
Developer: Communiqué and InfoEurope
GenSec (24 Dec 2021 –); posts not official unless so indicated
Delegate for Europe
Elsie Mortimer Wellesley
Ideological Bulwark 285, WALL delegate
Twice-commended toxic villainous globalist kittehs

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Sun Oct 09, 2016 2:09 am

Imperium Anglorum wrote:Is the client key in the screenshot above real?


Nope, it's gibberish.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Ever-Wandering Souls
Negotiator
 
Posts: 7267
Founded: Jan 01, 2014
Father Knows Best State

Postby Ever-Wandering Souls » Sun Oct 09, 2016 10:45 pm

Hey, just wanted to let you know that I occasionally hit the TG rate limit with your tool.
Proud Raider; General of The Black Hawks, Ret.
TG me anytime; I'm always happy to talk about anything!

The Alicorns (Equestria) wrote:Let them stay, no need to badmouth them...From our view a bunch of nations just came in, seized the delegate position, and changed a few superficial things...we play NationStates differently...there's really no reason for us to be butthurt.
http://www.nationstates.net/page=rmb/postid=8944227
http://www.nationstates.net/page=rmb/postid=8951258

Misley wrote:
Hobbesistan wrote:Don't think I understand the question.
The color or what?..

Jesus, Hobbes, it's 2015. You can't just call someone "the color".

Reploid Productions wrote:Raiders are endlessly creative

How Do I Telegram API?

Omnis delenda est.

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Mon Oct 10, 2016 6:12 am

Ever-Wandering Souls wrote:Hey, just wanted to let you know that I occasionally hit the TG rate limit with your tool.


Aye, I'm still experimenting with finding that sweet spot that delays as little as possible while not hitting the limit. Currently at the exact rate limit plus one second. Going to test adding another half second.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Imperium Anglorum
GA Secretariat
 
Posts: 12655
Founded: Aug 26, 2013
Left-Leaning College State

Postby Imperium Anglorum » Mon Oct 10, 2016 6:25 am

Agadar wrote:
Ever-Wandering Souls wrote:Hey, just wanted to let you know that I occasionally hit the TG rate limit with your tool.

Aye, I'm still experimenting with finding that sweet spot that delays as little as possible while not hitting the limit. Currently at the exact rate limit plus one second. Going to test adding another half second.

Huh. My program uses a rate limit of 30.05 and 180.05 seconds. That the program touches the rate limit is peculiar to say the least.

Author: 1 SC and 56+ GA resolutions
Maintainer: GA Passed Resolutions
Developer: Communiqué and InfoEurope
GenSec (24 Dec 2021 –); posts not official unless so indicated
Delegate for Europe
Elsie Mortimer Wellesley
Ideological Bulwark 285, WALL delegate
Twice-commended toxic villainous globalist kittehs

User avatar
The Blaatschapen
Technical Moderator
 
Posts: 63226
Founded: Antiquity
Anarchy

Postby The Blaatschapen » Mon Oct 10, 2016 6:47 am

Imperium Anglorum wrote:
Agadar wrote:Aye, I'm still experimenting with finding that sweet spot that delays as little as possible while not hitting the limit. Currently at the exact rate limit plus one second. Going to test adding another half second.

Huh. My program uses a rate limit of 30.05 and 180.05 seconds. That the program touches the rate limit is peculiar to say the least.


Lag on the network maybe? While it sends out the requests just within the limits, they might have been received by the server just outside of it?
The Blaatschapen should resign

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Mon Oct 10, 2016 7:20 am

Curious indeed. I'll make sure to re-evaluate my client's rate limiter.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Wed Oct 12, 2016 7:48 am

Solved the issue. It was a minor lapse of logic in my rate limiter. The next version of my Telegrammer should have fixed the occasional rate limit violation.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
The World of Remnant
Civil Servant
 
Posts: 9
Founded: Jun 19, 2015
Ex-Nation

Postby The World of Remnant » Sun Oct 30, 2016 11:59 pm

A suggestion of sorts -

when running a long campaign, such as a tag:all, on a machine that occasionally needs to be restarted, setting the TG to run again involves an ever-increasing amount of time spent just chugging through api calls to determine that thousands and thousands of nations have already been hit. Additionally, thinking ahead, in the case of any restarts after the 28 day mark (since a tag:all, estimating by the ratio of nations blocking tg's to those not blocking based on running my current campaign for a few weeks, will take over 200 days), nations will no longer return "previous too recent" when called, and telegrammer could effectively end up telegramming the same tens of thousands of nations every 28 days if the user has to restart at all.

Now, admittedly, the usage case for running a tag:all via API is a pretty small one, but nonetheless, for this niche these are major issues if you're running telegrammer on anything but a dedicated server - i.e. anything that might need to restart now and then, or be forced to by a loss of power or something.

Fixing this, I see two similar solutions of sorts -

For the issue of looping recruitment if restarted after 28 days, you could keep a file of nations already hit by a telegram, and allow an option to not send a given telegram to a nation more than once (checking against your own list).

For the issue of api calls, you could keep a similar list of nations attempted to be targeted and failed. Obviously, this is something that could be changed at any time, but I at least would much rather risk missing one or two people who've changed their settings since I last tried than spend days api calling them all to check.

This could also be a single list, of every nation a campaign has targeted hit or miss, which while less selective, is perhaps simpler?




Additional side note, I've been a bit confused by some of the time stamps I'm seeing.

[11:00:01] skipping recipient 'orthamotch': recipient is blocking recruitment telegrams
[11:00:01] skipping recipient 'wationiellecsstan': recipient is blocking recruitment telegrams
[11:00:02] skipping recipient 'cunfound': recipient is blocking recruitment telegrams
[11:00:02] skipping recipient 'bmama': recipient is blocking recruitment telegrams
[11:00:02] skipping recipient 'this_england': recipient is blocking recruitment telegrams
[11:00:05] skipping recipient 'dingleton': recipient is blocking recruitment telegrams
[11:00:05] skipping recipient 'hercules_labors': recipient is blocking recruitment telegrams
[11:00:05] skipping recipient 'new_republic_of_york': recipient is blocking recruitment telegrams
[11:00:06] skipping recipient 'raiona': recipient is blocking recruitment telegrams
[11:03:02] queued telegram for 'kontbagass'
[11:03:02] skipping recipient 'araguari': recipient is blocking recruitment telegrams
[11:03:02] skipping recipient 'hcaer': recipient is blocking recruitment telegrams
[11:03:02] skipping recipient 'dyer_mycoria': recipient is blocking recruitment telegrams
[11:03:03] skipping recipient 'the_northern_white_isles': recipient is blocking recruitment telegrams
[11:03:03] skipping recipient 'rezial': recipient is blocking recruitment telegrams
[11:03:06] skipping recipient 'powerstrike': recipient is blocking recruitment telegrams
[11:06:03] queued telegram for 'galmmoria'
[11:06:03] skipping recipient 'spires_island': recipient is blocking recruitment telegrams
[11:06:03] skipping recipient 'mechamuffinland': recipient is blocking recruitment telegrams
[11:06:03] skipping recipient 'joaolandia': recipient is blocking recruitment telegrams
[11:06:03] skipping recipient 'west_fiana': recipient is blocking recruitment telegrams
[11:06:03] skipping recipient 'six_thrones': recipient is blocking recruitment telegrams
[11:06:07] skipping recipient 'pallanthium': recipient is blocking recruitment telegrams
[11:06:07] skipping recipient 'martys_country': recipient is blocking recruitment telegrams
[11:06:07] skipping recipient 'project_valor': recipient is blocking recruitment telegrams
[11:06:07] skipping recipient 'softened_pyrokinetics': recipient is blocking recruitment telegrams
[11:06:08] skipping recipient 'west_emeraldland': recipient is blocking recruitment telegrams
[11:06:08] skipping recipient 'dumue': recipient is blocking recruitment telegrams
[11:06:11] skipping recipient 'pepelonia': recipient is blocking recruitment telegrams
[11:06:11] skipping recipient 'vitle_swizzla': recipient is blocking recruitment telegrams
[11:06:11] skipping recipient 'fedner': recipient is blocking recruitment telegrams
[11:06:11] skipping recipient 'hephathenix': recipient is blocking recruitment telegrams
[11:06:11] skipping recipient 'stoacia': recipient is blocking recruitment telegrams
[11:06:12] skipping recipient 'piloria': recipient is blocking recruitment telegrams
[11:06:15] skipping recipient 'altmoras_i': recipient is blocking recruitment telegrams
[11:06:15] skipping recipient 'pacmanistania': recipient is blocking recruitment telegrams
[11:06:15] skipping recipient 'chapmanian_kingdom': recipient is blocking recruitment telegrams
[11:06:15] skipping recipient 'camnasia': recipient is blocking recruitment telegrams
[11:06:16] skipping recipient 'equnalagria': recipient is blocking recruitment telegrams
[11:06:16] skipping recipient 'kevin_mitnick_alliance': recipient is blocking recruitment telegrams
[11:06:19] skipping recipient 'kubbitt': recipient is blocking recruitment telegrams
[11:06:19] skipping recipient 'the_russian_empire_1917': recipient is blocking recruitment telegrams
[11:06:19] skipping recipient 'devantania': recipient is blocking recruitment telegrams
[11:06:19] skipping recipient 'belarusian_socialist_republics': recipient is blocking recruitment telegrams
[11:06:19] skipping recipient 'altmoras_v': recipient is blocking recruitment telegrams
[11:06:20] skipping recipient 'patamina': recipient is blocking recruitment telegrams
[11:06:23] skipping recipient 'timao': recipient is blocking recruitment telegrams
[11:06:23] skipping recipient 'nukls-andwicz': recipient is blocking recruitment telegrams
[11:06:23] skipping recipient 'hongcouver': recipient is blocking recruitment telegrams
[11:06:23] skipping recipient 'altmoras_x': recipient is blocking recruitment telegrams
[11:06:24] skipping recipient 'nadnock': recipient is blocking recruitment telegrams
[11:06:24] skipping recipient 'shazen': recipient is blocking recruitment telegrams
[11:06:27] skipping recipient 'panamericana': recipient is blocking recruitment telegrams
[11:06:27] skipping recipient 'goosainia': recipient is blocking recruitment telegrams
[11:06:27] skipping recipient 'star_light_glimmer': recipient is blocking recruitment telegrams
[11:06:27] skipping recipient 'joedain': recipient is blocking recruitment telegrams
[11:06:28] skipping recipient 'polish_republic_of_federal_states': recipient is blocking recruitment telegrams
[11:06:28] skipping recipient 'edatsinovap': recipient is blocking recruitment telegrams
[11:06:31] skipping recipient 'injigo': recipient is blocking recruitment telegrams
[11:06:31] skipping recipient 'fascist_protector': recipient is blocking recruitment telegrams
[11:06:31] skipping recipient 'mountain_man_of_appalachia': recipient is blocking recruitment telegrams
[11:06:31] skipping recipient 'the_condemed': recipient is blocking recruitment telegrams
[11:06:32] skipping recipient 'taylorswift': recipient is blocking recruitment telegrams
[11:09:04] queued telegram for 'timbz'
[11:09:04] skipping recipient 'aeruillin': recipient is blocking recruitment telegrams
[11:12:05] queued telegram for 'piss_and_miss'
[11:12:05] skipping recipient 'declanland': recipient is blocking recruitment telegrams
[11:12:05] skipping recipient 'hoarding_and_firebreathing': recipient is blocking recruitment telegrams
[11:12:05] skipping recipient 'jakarta_anyar': recipient is blocking recruitment telegrams
[11:12:05] skipping recipient 'east_svornica': recipient is blocking recruitment telegrams
[11:12:05] skipping recipient 'communist_councils': recipient is blocking recruitment telegrams
[11:12:09] skipping recipient '9_plus_10_equals_21': recipient is blocking recruitment telegrams
[11:12:09] skipping recipient 'dragon_castle': recipient is blocking recruitment telegrams
[11:12:09] skipping recipient 'molibar': recipient is blocking recruitment telegrams
[11:12:09] skipping recipient 'evdorpireat': recipient is blocking recruitment telegrams
[11:12:09] skipping recipient 'valerius_the_whisperer': recipient is blocking recruitment telegrams
[11:12:09] skipping recipient 'vainamoinenia': recipient is blocking recruitment telegrams
[11:12:13] skipping recipient 'wheelerdealer': recipient is blocking recruitment telegrams
[11:12:13] skipping recipient 'nyaryaga': recipient is blocking recruitment telegrams
[11:12:13] skipping recipient 'kencain': recipient is blocking recruitment telegrams
[11:12:13] skipping recipient 'riysa': recipient is blocking recruitment telegrams
[11:12:13] skipping recipient 'gla_stealth_general': recipient is blocking recruitment telegrams
[11:12:13] skipping recipient 'mihiyo': recipient is blocking recruitment telegrams
[11:12:17] skipping recipient 'sifaks': recipient is blocking recruitment telegrams
[11:12:17] skipping recipient 'greater_nevadian_empire': recipient is blocking recruitment telegrams
[11:12:17] skipping recipient 'the_nakamoto': recipient is blocking recruitment telegrams
[11:12:17] skipping recipient 'chicky_nuggers': recipient is blocking recruitment telegrams
[11:15:06] queued telegram for 'the_free_place'


For example^

I'm guessing that the stamp is generates after the telegram is sent to the queue, by the fact that the gap is before the stamp not after. I see that the stamps are generally 181ish seconds from the last "queued" stamp, which makes sense. What I noticed is that the number of nations checked can vary significantly - I'm guessing this is because stamps are only generated for "blocking" and not for being recruitable and added to telegrammer's internal queue? And the variation in how many calls it seems to make are just reverences in the number of "invisible" results from calls that did not return blocked? (i.e. in one case, of 50 calls 47 were blocked and only 3 got added, while in another only 30 were blocked and 20 were added)

-Souls
Last edited by The World of Remnant on Sun Oct 30, 2016 11:59 pm, edited 1 time in total.
RWBY Fan? Experience the awesomeness of The World of Remnant!

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Mon Oct 31, 2016 7:41 am

Remnant, thanks for the suggestions. I'll try and see what I can do with them.

As for the timestamps you're seeing, my code currently does the following:

1. Check whether the current recipient can receive the telegram I want to send him;
2. If not, then notify the user, move to the next recipient in line, and goto 1.
3. If we can send the telegram, then queue it, notify the user, move to the next recipient in line, and goto 1.
Last edited by Agadar on Mon Oct 31, 2016 7:42 am, edited 2 times in total.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Great Cyan
Lobbyist
 
Posts: 23
Founded: Oct 06, 2016
Ex-Nation

Postby Great Cyan » Thu Jan 19, 2017 8:11 pm

I am looking to recruit nations with your client, but am still stuck.
I have my tdid, my secret code and the Client key, I just don't know how to use the client itself. Please help
Founder of Great Empire of Great Cyan, Officer of many regions, ambassador of dozens of regions, successful raider/defender, and a proud user of NS++

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Tue Jan 24, 2017 12:45 pm

Great Cyan wrote:I am looking to recruit nations with your client, but am still stuck.
I have my tdid, my secret code and the Client key, I just don't know how to use the client itself. Please help


Hey, Cyan. Your client key, telegram id, and secret key can be filled out in the top left of the interface. Then, you can select what type of telegram you want to send, which can be either a normal one, a campaign one, or a recruitment one. If it's one of the latter two, then you'll have to insert a region for which you want to campaign or recruit for.

In the 'Filters' section of the interface, you can then select what nations or groups of specific nations or regions and so forth you wish to send your telegram to. For recruiting, you'll probably want to select new nations, whereas for campaigning you'll probably want to target delegates or something.

After you've done all that, simply click the 'Start sending' button and the telegrams will start being sent.
Last edited by Agadar on Tue Jan 24, 2017 12:45 pm, edited 1 time in total.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Tue Jan 31, 2017 6:09 pm

Version 1.3.0 has been released. Check the details in the changelog on the releases page.

Remnant: I haven't implemented a persistent history yet (i.e. storing telegram history in a file that's loaded on start-up) as I wanted to push some much needed changes to release before taking a brief break from the project to work on some other projects. I'll aim to implement something like that in a later version.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Imperium Anglorum
GA Secretariat
 
Posts: 12655
Founded: Aug 26, 2013
Left-Leaning College State

Postby Imperium Anglorum » Tue Jan 31, 2017 8:59 pm

Agadar wrote:Remnant: I haven't implemented a persistent history yet (i.e. storing telegram history in a file that's loaded on start-up) as I wanted to push some much needed changes to release before taking a brief break from the project to work on some other projects. I'll aim to implement something like that in a later version.

Just serialise the entire program (well, if it's built in such a manner that this would be acceptable).

Author: 1 SC and 56+ GA resolutions
Maintainer: GA Passed Resolutions
Developer: Communiqué and InfoEurope
GenSec (24 Dec 2021 –); posts not official unless so indicated
Delegate for Europe
Elsie Mortimer Wellesley
Ideological Bulwark 285, WALL delegate
Twice-commended toxic villainous globalist kittehs

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Wed Feb 01, 2017 7:05 am

Imperium Anglorum wrote:
Agadar wrote:Remnant: I haven't implemented a persistent history yet (i.e. storing telegram history in a file that's loaded on start-up) as I wanted to push some much needed changes to release before taking a brief break from the project to work on some other projects. I'll aim to implement something like that in a later version.

Just serialise the entire program (well, if it's built in such a manner that this would be acceptable).


I'm almost sure simply reading/writing from/to a text file is easier (and more elegant) than trying to serialize the entire program.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Wed Mar 15, 2017 4:23 pm

Released version 1.4.0, which loads and saves telegram history from and to a file, causing the history to persist even after closing the application, as requested by Remnant.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Baconbacon123
Secretary
 
Posts: 26
Founded: Nov 01, 2013
Ex-Nation

Postby Baconbacon123 » Mon Mar 27, 2017 2:23 pm

Bug: When choosing the option: embassies of <region>, the program stops responding and after 5 hours it still does not respond. Is this a problem or is it just taking extra long to find the nations of the embassies?

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Mon Mar 27, 2017 3:36 pm

Baconbacon123 wrote:Bug: When choosing the option: embassies of <region>, the program stops responding and after 5 hours it still does not respond. Is this a problem or is it just taking extra long to find the nations of the embassies?


Heya, Bacon. It's not a bug: the 'embassies of <region>' filter is one of the filters that requires the nations dump file. That file is huge, so parsing it can take a long while (about 30 seconds on my own machine), and might not even be possible on older machines that don't have sufficient RAM to store the parsed nations list. It's a performance issue I'm looking to resolve at some point.
Last edited by Agadar on Mon Mar 27, 2017 3:37 pm, edited 1 time in total.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

Next

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Anecho, Arachistan, Caranelia, Charville, Haisen Grenor, Hillary Clinton 2016-2024, Khantin, Meraud, Outer Sparta, Patolia, PopeXII, Ravenol, Riemstagrad, Teffland, The Ambis

Advertisement

Remove ads