Jump to content

Lyrositor

Members
  • Posts

    321
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Lyrositor

  1. Several months ago I began development on a personal tool called Ferret, a web application which can be used to estimate nation revenue and resource production. This was loosely based on an old project I never finished. It periodically scrapes the API for data about each active nation in the game, then provides a web interface for viewing it and simulating changes. For several reasons, I never finished it, and it has not been updated for quite some time now. Since I don't really have further interest in developing it, I am releasing the code to the public, in the hope that it can be of use to someone. You can see an example of its output for my nation in the attached screenshot. Source: https://github.com/Lyrositor/pnw-ferret License: CC0 1.0 Universal - Basically, do whatever you want with it. You don't need to provide attribution or get permission to use it. Demo website: http://lyros.net/ferret/ Important notes: Ferret is out of date. There have been several updates to P&W since it was last updated, so some values are now very inaccurate. It is not 100% accurate. For reasons I never fully figured out, nation revenue is off, even when accounting for things like radiation/seasons/etc. (which Ferret does not currently take into account on its own). I am releasing this as is, with no additional instructions. I can try to answer questions if you have any, but if you want to set it up yourself and run it, you're mostly on your own. To anyone familiar with Python and Vue.js, however, it should be pretty straightforward. Most of the code that probably interests you is in the "ferret.pnw" package. This is the package responsible for calculating all the P&W formulas. Feel free to gut it for your own projects. Recently, there appear to be some issues with the API data. Some entries are not getting parsed correctly as a result. I haven't investigated it yet. The permission/authentication system is a legacy of my old plans for this. Now that it's open source, anyone can use it, so the whole thing could be stripped out for simplicity's sake. I may do this at some point if there is some interest. If people are interested in this enough, I may go back to work on it, but right now I have no further development plans for it. Cheers.
  2. I am okay with this so long as it is an option. I'll add it to the list.
  3. In all seriousness, though, I don't understand how people can find dark themes more soothing. I've given them a try in several text-heavy places, and they always make my eyes strain more. The text doesn't jump out as much for me, so I end up spending more effort trying to read it. It's even worse when working on some code.
  4. The light is eternal! The light is undying! Submit to its glory or be incinerated by its blaze!
  5. Welcome to our community! I hope you enjoy the game and the people you'll meet.
  6. Welcome to Orbis! I hope your time here is a pleasant one.
  7. No worries, enjoy a well-deserved vacation! I am sure everybody appreciates the work you do here.
  8. I will be skipping most categories as I have only recently returned to P&W, but I do have a few nominations. ALLIANCE CATEGORIES Alliance of the Year: [none chosen] Most Powerful Alliance: [none chosen] Best Military: [none chosen] Best Rookie Alliance: [none chosen] Best Flag: Cornerstone Best War Flag: [none chosen] Most Active Alliance: [none chosen] Most Honourable Alliance: [none chosen] Most Improved Alliance: [none chosen] Best Diplomatic Team: [none chosen] Best Economic System: [none chosen] Best Recruiting Staff: [none chosen] Best Propaganda Staff: [none chosen] Best Alliance Growth: [none chosen] Best Forums: Seven Kingdoms Alliance Most Likely to Succeed in 2018: [none chosen] Most Immoral Alliance: [none chosen] Most Controversial Alliance: [none chosen] Best Alliance for New Players: [none chosen] Most Missed Alliance for 2017: [none chosen] PLAYER CATEGORIES Player of the Year: [none chosen] Most Powerful Player: [none chosen] Best Alliance Leader: [none chosen] Most Controversial Player: [none chosen] Best Player Sig: [none chosen] Best Player Avatar: Fraggle Best OOC Poster: [none chosen] Best IC Poster: [none chosen] Nicest Player: Ameyuri Funniest Player: [none chosen] Most Active Player: [none chosen] Player Most Likely to Achieve Greatness in 2018: [none chosen] Best New Addition to the Community: [none chosen] COMMUNITY CATEGORIES Best Wall of Text: [none chosen] Best P&W Forum Topic: [none chosen] Biggest Controversy: [none chosen] Funniest Event: [none chosen] Most Entertaining Discord Channel(Please don't include Slack): [none chosen] Best Treaty Announcement: [none chosen] Best Declaration of War: [none chosen] Biggest Meme: [none chosen] Largest E-Peen: [none chosen] Best Villain: [none chosen] Most Hated Poster: [none chosen] Most Missed Player (Player that has gone inactive/quit): Jessica Rabbit WORST CATEGORIES Worst Alliance of the Year: [none chosen] Worst Military of the Year: [none chosen] Worst Diplomatic Move: [none chosen] Most Inactive Large Alliance: [none chosen] Alliance Most Likely to Fail in 2018: [none chosen] Worst Player of the Year: [none chosen] Worst Alliance Leader of the Year: [none chosen] Worst Treaty of the Year: [none chosen] Worst Forum Poster: [none chosen] Worst Nation Setup: [none chosen] Worst Fighters of the Year (must have fought in 2017): [none chosen] Alliance Most Likely to get Rolled in 2018: [none chosen]
  9. Hello and welcome to the forums! I hope your time here is a pleasant one.
  10. Looks like Lord Russel will never be able to join TKR now: His dream shall remain unfulfilled.
  11. Nice to see these are still ongoing! Thank you for organizing this and good luck to everyone.
  12. This is a combined list of some of the most requested features for the API. If you have a popular suggestion you would like to see added, post below and I'll edit this post. The Politics & War API, while very useful, could be much more convenient with a few changes, ranging from simple additions to more complex options: Tax API: an alliance API which lists the gains from the last turn for a specific alliance (protected by key). Grouped Nation API Queries: right now, if we want to fetch a list of nations, we have to first obtain a list of IDs (usually from /nations/ or /alliance/id=*), then fetch each nation individually from /nation/id=*. This is both more time-consuming to implement and more work for the server, which has to deal with the overhead of all the separate requests when it could be optimized in one call to the database. A mechanism that either lets us specify multiple IDs for /nation/id=* or lets us get a detailed version of /nations/ (possibly limited to chunks of X nations at a time if you think pulling the detailed info to every nation in the game at once would be too expensive - e.g. /nations/range=1000:2000 or something of the sort) would make this much easier for everyone. Note that this should be optional - so that if you only want a simple list of nations, as is currently the case, it should still be the default. Grouped City API Queries: basically the same thing as above, but for cities. It would be nice, for example, to be able to get both a detailed nation and all the details of all of its cities in one go. Total Number of Improvements in Nation API: just a convenience, instead of having to call every city to find out. Ongoing War IDs in Nation/Nations API: it would be very useful to see a list of a nation's ongoing wars in the Nation API and the Nations API (as an option for the latter). Bank Manipulation in Bank API: might be open to exploits, like what happened with trading bots, but something to manage transaction in the bank could be interesting. Radiation and Season in API (personal suggestion): this is something I would find useful (not sure if others would), but a way to get the radiation level and season for a nation would be nice (in the nation API ideally). Treaty API: an API to view active treaties for each alliance.
  13. This is low. Good of you to bring this up, jack3top.
  14. Greetings would be offered, but it is against Maltryk custom to greet nameless persons. Yet, custom was meant to be broken. You are welcomed to Orbis.
  15. A warm welcome is extended to you. Many hopes are raised that your nation shall be successful with you at its helm.
  16. Greetings are extended to you from the Maltryk Bureau of Foreign Affairs. Hopes that you will enjoy your stay are expressed with sincerity. Ascend in peace. An opinion is solicited - what are your views on the undead, Alucard?
  17. I have found my nation's new goal.
  18. Thank you for the warm welcomes everyone! I'm still considering my options, but I'm leaning towards an economically-focused alliance, preferably one involved in the politics of the game to a good degree. Feel free to send me your recruitment messages - I'll also be taking a look on my own.
  19. Hello everyone. I'm back on Orbis, at least for now. It hasn't been that long, really, but it feels longer for me considering how busy the past year-and-a-half was. It's nice to be back. Not sure what I plan on doing yet with my nation; hopefully something different from last time. I am also currently looking for an alliance. Maybe. Not sure what I am looking for yet in an alliance, either.
  20. In all likelihood, this is the last post I'll be allowed to make here, since I'll be deleting my nation right after this. I've been working on a Python wrapper for the Politics & War API, and I've decided to release it in its entirety here: http://github.com/Lyrositor/pnw Among other things, using the data available through the API, it can calculate how much a nation is producing/getting in revenue, how much an alliance is making, it can warn other nations when an enemy has built a nuke, etc. I was going to do much more with it, but it's not going to be of much use to me now, so enjoy if you can. There's basically no documentation, but I think the code is relatively self-explanatory for somebody who can read Python. I hope this can be helpful to someone. So long, everybody. It's been fun.
  21. Neutrality isn't a shield from any attack. I understand the rationale for choosing to attack the high-infra and cities nations which might potentially defect to other alliances; while in GPA, they can grow faster and farther than any other nation could in a regular nation. I also have and still take issue with the way GPA defines its neutrality. However, where I disagree is when people claim neutrals as a whole should not be a part of the game, for any number of reasons. Whether or not you agree with their playstyle, the purpose of any game ultimately is to have fun, and neutrals have more fun slowly building nations while taking a more backseat approach to politics, if they get involved in politics at all. Any claim that they are destroying the game seems absurd to me; they keep the market alive, draw more players to the game and make for the occasional global war when everybody decides to give them a beating for whatever reason. Is it a dull experience? Probably if you're not interested in it yourself, but it remains confined to the alliance. You can hardly blame GPA for making Orbis more dull - if anything, the increasingly complex treaty web is to blame for that. Of course GPA hit #1 - again. The entire point of the alliance is to slowly accrue more and more points. If you don't like it, declare war, but don't claim it's nigh-on sinful to be a part of a neutral alliance because of this. I greatly enjoyed my time in GPA and Sigma, even though many would consider it pointless and uninteresting; in the end, all that matters is that you enjoy yourself while playing Politics & War. If the very existence of GPA prevents you from doing so, I am at a loss to understand. Happy war, everyone.
  22. Will people never learn? Keep up the good fight, Fraggle.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.