Jump to content
Game-Labs Forum

Svartschegg

Members
  • Content Count

    39
  • Joined

  • Last visited

Everything posted by Svartschegg

  1. The only ones that cannot be captured are capitals AFAIK, so you should be safe to do something along these lines: if(port.capital) { console.log('It cannot be captured.'); } else { console.log('It can be captured '+ translateCaptureWindow(port.timeslot)); } function translateCaptureWindow(baseWindow) { var padLeft = function(inpt) { var str = "" + inpt; var pad = "00"; return pad.substring(0, pad.length - str.length) + str; }; if(baseWindow == -1) { return 'anytime'; } else { baseWindow = parseInt(baseWindow); return 'between '+ padLeft(baseWindo
  2. ConquestFlagTimeSlot is -1 when the capture window is "anytime", otherwise it indicates the starting hour of a 2-hour window in the UTC timezone. "Cant be bought" <- Referring to conquest flags? They all have the same cant-be-bought window, which is basically the hours surrounding the server maintenance time window.
  3. Ah, right. You should be able to calculate that based on the attributes found in the item model. I'd imagine the properties BasePrice, SellPrice and SellPriceCoefficient are the properties that affect this.. In the old trading system I suppose PriceTierQuantity also would've mattered. If you don't feel like experimenting with figuring out the formula there's a simpler way, with the new trading system: Look at a port that consumes the product and does not have any on a contract - the price will be the same in any port that consumes that product. Save that value in an item model of your
  4. I built an automated tool for that, so yes. E.g. PVP3 shops: https://storage.googleapis.com/nacleanopenworldprodshards/Shops_cleanopenworldprodeu2.json
  5. You can still see which resources a port consumes and produces, so as long as you go by that and not from what's on the market you should be fine.
  6. Offtopic, but I'd like to say that I appreciate this sentiment. It's easy to just take what's being written on the forums for absolute truths; my own rants included.
  7. If you get multiple replies on an email it seems like they overwrite eachother. I sent an email to my clan an asked for opinions. I received a reply and just looked at the mail quickly but left it unread for later. When I came back an hour later the sender of the mail had changed in the list, so I clicked it, thinking it was probably typical UI bugs. Nope, it was a different reply from a different member. The first reply was thus... gone
  8. I'm having money disappear too. I log all my trades and count my money whenever I empty my cargo, and my last route only gained me 80k, but should have been around 600k. When I arrived in Basse-Terre I clicked the Sell button and maximized the amount-input. It went to around 2371 or so. Got an error (as seen in the last screenshot). Tried again and it seemed to work.
  9. Karibiens Lierade Riggar Our philosophy is simple; we play because it's fun. Our members like helping eachother as a team and have a variety of specialties, ranging from crafting and trading to PVP. We impose very few restrictions on our members; we ask that you respect established diplomacy and that you not be a jerk to other players. For fleet activities and socializing we have a Discord server. Discord is like Teamspeak, but cooler (e.g. there's a web client if you don't want to install stuff). If you are interested in joining, contact Svartschegg or SirVonBiginch.
  10. If you're on EU PVP3 you can query https://klr.nu/api/v2/port/{port_id} for a log of conquests. API docs: https://klr.nu/api/v2/docs#portSample response for Scarborough: { "id":165, "nation_id":5, "name":"Scarborough", "capital":false, "regional":false, "shallow":false, "capturer_id":677, "timeslot":-1, "slug":"scarborough", "lat":"11.144213", "lng":"-60.775337", "updated_at":"2016-04-17 08:32:34", "nation":{ "id":5, "name":"Verenigde Provinci\u00ebn", "max_bots":36, "updated_at":"2016-04-13 08:16:17" }, "capturer":{ "id":2, "name":"Svar
  11. Yeah I know how to authenticate with Steam, but Naval Action has a secondary, undocumented, layer of authentication that checks for the Steam token and also allows users to login with a user/pass combination that bypasses Steam. It is that secondary step of authentication that I suppose returns the list of "Captains" in your account. To clarify with an example, my Steam username used to be "John", but my main captain in Naval Action is called "Svartschegg". I would like to retrieve "Svartschegg" from NA rather than "John" from Steam.
  12. +1 Would love to have a Steam-based auth for logging in as your in-game character on clan forums and stuff.
  13. Nice! Since we're in a sharing-is-caring mood I implemented your function into an implicit Laravel controller Edit: Made it a Gist instead of pasting it all here. https://gist.github.com/Sleavely/945939aec743ebe1b54ddc89b861493b
  14. Will the new API overwrite the existing data sources, or will it be backward-compatible?
  15. Sweden: France - War Danmark/Norway - NAP Pirates - Hostile US - ? Spain - ? Great Britain - Hostile The Verenigde Provinciën - Hostile ​Major clans: [sWEC], [KLR], [KNTO]
  16. (PVP3 EU) KLR (Sverige) / English / Discord / ∞ slots / https://discord.gg/0qAMlrZN0tJsrNMi
  17. This is neither JSON nor JSONP. It is Javascript. Why they name the files .json is beyond me JSON is data in a javascript object notation format. JSONP is data passed to a callback function which is named according to a request query parameter (commonly called "callback" for simplicity). In reality, JSONP is essentially Javascript that has been twisted into a data-loading method to circumvent CORS. This is a variable declaration in Javascript.
  18. Update on Sweden since there have been questions regarding the freshness of this thread. Sweden: France - NAP Danmark/Norway - NAP Pirates - Hostile US - ? Spain - ? Great Britain - War The Verenigde Provinciën - War ​Major clans: [sEIC] (~100), [KSF] (20+), [sWE] (~20), [KLR] (~15)
  19. Oh wow. If only I had known about this sooner. I sooo want this tool to be part of the actual game. I hate having all of these scattered resources for this and that in various tabs on a second screen.
  20. I run the game on Low settings due to playing on a laptop, and I noticed that a lot of shallows dont even appear, even though they are clearly visible on High settings. See video below.
  21. I would like to propose a new format for this thread; since a lot of the discussions up until now has been centered on whether a clan is allowed to speak for a nation, maybe it would be more suitable to have something like:
  22. As a swede I see no reason for us to share any information concerning our diplomatic policies or strategic undertakings in a public forum.
  23. Hey guys, if you could just get it over with and get this British civil war started that'd be great.
×
×
  • Create New...