Jump to content

Shakyr

Members
  • Posts

    464
  • Joined

  • Days Won

    1

Everything posted by Shakyr

  1. https://politicsandwar.com/nation/id=197220 Nation Name: Covid 19 Leader Name: Kung Flu Another person with poor taste, like the one I reported a few months ago.
  2. https://politicsandwar.com/nation/id=214601 Nation Name: COVID19 Leader Name: CoronaVirus1 Some people might find it funny and maybe in a year or two it might be. But not at the moment.
  3. That response is a good way to start a flame war. Wouldn't it be better to just ask people for a few links and you'll look into it, at some point? Even if it ends up being 3 months down the track. Just to keep things on topic, the special characters I use for my city names (eg Falkonéra) are fine.
  4. As the title says. The Import Improvement Template (for a single city) ignores Recycling Initiative and refuses to apply a template with 4 Recycling Centers. Amusingly, the Mass Import deals with it fine.
  5. This would be a better solution for us players, but whether it can be easily coded is a completely different story. Being able to set your own update time is a nice change though. Though personally, I'll probably be setting it for a different timezone to where I live, so that update is in the 8-10pm range for me. I'll second this. In wars we don't really have the time to wait 24 hours to find out when they buy military.
  6. Can we have a master list of all achievements implemented so far? Thanks
  7. I'm not sure exactly where to start with your bad maths. Yes you might have 15 api endpoints, but those endpoints are not all equal. There are ~260 Alliances, ~10.7k Nations and ~61.9k Cities that are accessible from those endpoints. Calling all those, even once per day, gives you a maximum of 73k potential calls per day. Which is the root of the problem. It is impossible to get the information required for even the most basic of stuff, without delving into the individual API endpoints. If you want to a proper short term solution, merge /alliance into /alliances, /nation and /city into /nations. Sure they'll be massive, especially in terms of nations, but hopefully no one should be fetching it more than once per day (and you can possibly rate limit it when you have time). Good luck with your degree and if you ever want to discuss the API, feel free to DM me on Discord or tag me in #api
  8. If you screw up a trade, it's your own fault. I've done it before, myself (twice yesterday even). Just message the person and if they decide to return all or part of the trade, bonus. If they don't, well it's a lesson learned. Just remember when messaging people, be polite. I find dropping a message of "Nice catch of my screw up " with a subject of say "Steel Trade", will get the nicer people offering to return all or part of the trade, without even asking. It really doesn't matter how they noticed your screw up. Whether it be by a trade bot notification or they just happened to load the page at the right time.
  9. Was thinking recently, Politics and War is missing consequences for if you're unable to cover your nation's expenses. This could then be used by the "banks" that are already available, offering loans at obscene rates to temporarily cover a nation's expenses. In order for this to work, I'd setup an order of things to be paid. So for example, Military is always paid first, then Power, Resources and Improvements. Within that you could have an order of things. Like Hospital is always covered first, then Police, then other Improvements. Depends on how far you want to go. Potentially customisable by the player. This way, it's not just a matter of whether you can pay all your expenses or none. You can choose to cover some of the expenses long term, but not others and deal with the consequences. If for some reason your income drops, then I see two things happening. Power, Resources and Improvements, I see them just flat out not working for that turn. Military, it gets slightly more complicated. Soldiers, Tanks, Aircraft, Ships and Spies: Each consecutive turn expenses are unpaid, there is an increasing chance of desertion, between x% and y% of your current forces. Missiles and Nuclear Weapons: Each consecutive turn expenses are unpaid, there is an increasing chance of failure of x% and y% of the current stockpile due to lack of maintenance. For simplicity, I'd initially just "remove" the Missiles and Nuclear Weapons. Though ideally, I'd have them more as a ticking bomb and upon use, they may explode (taking out more of the stockpile) or just simply not fire.
  10. There was a war? Congrats on the peace, guys
  11. Just want to point out, that when you favourite messages, while the message might stay in your inbox, the individual messages sent within, are deleted over time. There's been quite a few times I've favourited a message, because I've been sent information that I want to refer back to, only to find out after a month or two, that it has been deleted. Please fix this.
  12. Personally I liked all of the trial changes and especially the Econ one. So I'm glad you kept that one
  13. Then he should have apologised to those nations he accidentally spammed and not just simply continue on as if nothing had happened. If he doesn't have an audit trail, so he knows what messages were sent, then he should get to coding one. Block only solves the issue for myself. It won't solve the issue for all the other nations in the game. Also, this time it was only a few messages. What if next time a spam bot screws up, it's a 100 messages or a 1000 messages? I'm not saying you should do anything in this case, I reported it to raise exactly this issue though.
  14. Nation Link: https://politicsandwar.com/nation/id=64069 Ruler Name: Bw55555 Nature of Violation: Ingame message spam, see https://imgur.com/Dx1ynh3
  15. I figured I'd link my previous posts about the API, and then include some extra stuff below. Other notes: All API pages should have the header media type of "application/json" All date/times should be in the format "1990-12-31T23:00:00Z". Dates are fine as "1990-12-31" Date Founded for Alliances API should be called "founded" (this seems to be standard), not "founddate" Alliance API is missing Date Founded Versioning: Should accept the HTTP Header "X-PNWAPI-Version" (or similar), which should just contain a simple version number, eg "1.9.0". If there is no header, it defaults to the latest version. Authentication: Should accept the HTTP Header "Authorization", which should contain "Bearer: <api_key>", eg "Bearer: 6ecf12cc109d9a". If there is no header, it should return the json "{error: "Not Authorised"}" or similar (this allows you to rate limit all API requests then). Result Filtering: Allow the results to be filtered, example "api/nations/?filter=id:lte:1000" (all nations with a nation id less than or equal to 1000) Field Selection: Allow the fields to be altered from the default, example "api/nations/?fields=id,name,leader,alliance_id" Of course, these can be both combined into "api/nations/?fields=id,name,leader,alliance_id&filter=id:lte:1000" Alternate suggestion for API endpoints (as opposed to my above posts). Might be overkill. api/orbis/ - current game information { orbis_date: <date>, //eg 1990-12-31 server_time: <date/time> //eg 1990-12-31T23:00:00Z season: <string>, //one of summer/autumn/winter/spring radiation: { global: <decimal>, africa: <decimal>, ... } } api/orbis/nations/ - all nations, default to the fields listed in my above post api/orbis/nations/<nation_id>/ - specific lookup for a nation api/orbis/nations/<nation_id>/cities/ - all cities for a nation api/orbis/nations/<nation_id>/cities/<city_id>/ api/orbis/cities/<city_id>/ - specific lookup of a city api/orbis/nations/<nation_id>/cities/<city_id>/improvements/ api/orbis/cities/<city_id>/improvements/ - all improvements for a city api/orbis/nations/<nation_id>/improvements/ - all improvements for a nation (to save having to loop through the above API endpoint api/orbis/nations/<nation_id>/military/ - military information and stats for the nation { soldiers: 1000, ... stats: { soldiers: { casualties: 200, killed: 500 }, ... } } api/orbis/nations/<nation_id>/projects/ - project information for the nation api/orbis/nations/<nation_id>/wars/ - list all wars for a particular nation api/orbis/alliances/ - all alliances, default to the fields listed in my above post api/orbis/alliances/<alliance_id>/ - specific lookup of an alliance api/orbis/alliances/<alliance_id>/members/ - list of all nations in the alliance (as per api/orbis/nations/ defaults), including those on vacation and leaders/heirs/officers, excluding applicants api/orbis/alliances/<alliance_id>/leaders/ api/orbis/alliances/<alliance_id>/heirs/ api/orbis/alliances/<alliance_id>/officers/ - list all nations with only the specific roles api/orbis/alliances/<alliance_id>/applicants/ - list of all nations who are applicants to the alliance api/orbis/alliances/<alliance_id>/members/resources/ - list the resources of an alliance's members { { id: <integer>, //nation_id coal: <decimal>, ... money: <decimal> }, ... } api/orbis/alliances/<alliance_id>/applicants/resources/ - list the resources of an alliance's applicants api/orbis/alliances/<alliance_id>/bank/ - list of all bank records - use filters to restrict to just tax records api/orbis/alliances/<alliance_id>/bank/resources/ - list the resources stored in the alliance's bank { coal: <decimal>, ... money: <decimal> } api/orbis/alliances/<alliance_id>/wars/ - list of wars for the alliance api/orbis/market/ - summary of market information for all resources api/orbis/market/<resource_name>/ - summary of market information for a specific resource api/orbis/market/<resource_name>/buy_offers/ - all buy offers currently available api/orbis/market/<resource_name>/sell_offers/ - all buy offers currently available api/orbis/treaties/ api/orbis/treaties/<alliance_id>/
  16. All your current trade offers should be listed here and will stay there until removed by you or filled by another player, with one exception. That exception is that any trade whereby you cannot provide the goods or the money at the point another player tries to fill the order, will be automatically removed. Example:
  17. Do the announcements in question have no replies?
  18. Looks like Sheepy is updating the look and layout of the military purchase pages. I assume Spies is the first one he's updated, hence why it doesn't look like the other pages.
  19. Requested a limit on the number of buy/sell orders per resource back in April and for the most part it got ignored. Good luck
  20. That implies I'd actually want to take over Personally, I wouldn't have the time, with my work (as interesting a task as it might be). The little bits I do on the side for my own personal development, I do them over the course of months. Also, while I've had years of experience at website development, I'm more of an ideas person by nature and therefore better at scratching up designs, for someone else to implement.
  21. Just my take, but quite possibly because he wants to build on his previous experiences and redesign from the ground up. Here at work I wish I could do that, some days (joys of dealing with code that is over 10 years old). My own personal stuff I've redesigned from the ground up, half a dozen times over the years.
  22. Which is basically what I've done ... https://politicsandwar.com/city/manager/n=The Lost Isles
  23. Dropping from 11 to 8 cities isn't too bad. I'd hate to lose my current cities though (I'm at City #22), as they're a decent investment. The question of deleting cities always comes up every couple of months. Maybe eventually Sheepy might add an ingame mechanism for it.
  24. Known issue, reported in the announcement thread. Guess Sheepy wasn't paying attention though
×
×
  • Create New...

Important Information

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