Daguse Posted November 12, 2016 Posted November 12, 2016 (edited) Nm, found what I was looking for thx. Edited November 19, 2016 by Daguse
JIyHmuK Posted November 30, 2016 Posted November 30, 2016 What does Shop.ResourceAdded stands for? It has a slightly unclear structure, i.e.: [ { Key: 794, Value: { Key: 40, Value: 0.42 } }, { Key: 24, Value: { Key: 70, Value: 0.9 } }, { Key: 39, Value: { Key: 25, Value: 0.9 } }, { Key: 415, Value: { Key: 5, Value: 0.3 } }, { Key: 21, Value: { Key: 5, Value: 0.65 } } ] I guess the first 'Key' corresponds to ItemTemplates.Id but the second one (within the first 'Value') got me somewhat puzzled. Its value rather looks like quantity. The last floating point 'Value' makes me ran out of ideas.
blakdog Posted December 4, 2016 Posted December 4, 2016 (edited) I've figured out what this data is. It definitely can give you a competitive edge in the game if you're desperate for a given resource But it took me days of looking at the data and comparing it to stuff in the games to figure out. Now I'm trying to figure out if they've exposed the prices for items that can be sold which are not currently listed in the "Regular Items" collection. ( I should probably read the last few months of entries in here in case any new top level collections have been added to the data that's publicly exposed. (sigh... typing while sailing here and overshot the port I was sailing to. now turned back into the wind (of course) to get back ) Edited December 4, 2016 by blakdog
qw569😳 Posted December 4, 2016 Posted December 4, 2016 On 11/30/2016 at 3:54 PM, JIyHmuK said: What does Shop.ResourceAdded stands for? It has a slightly unclear structure, i.e.: [ { Key: 794, Value: { Key: 40, Value: 0.42 } }, { Key: 24, Value: { Key: 70, Value: 0.9 } }, { Key: 39, Value: { Key: 25, Value: 0.9 } }, { Key: 415, Value: { Key: 5, Value: 0.3 } }, { Key: 21, Value: { Key: 5, Value: 0.65 } } ] I guess the first 'Key' corresponds to ItemTemplates.Id but the second one (within the first 'Value') got me somewhat puzzled. Its value rather looks like quantity. The last floating point 'Value' makes me ran out of ideas. Item 794 (Sevilla Muskets) produced 40 (second key). 0.42 is chance. ===ru=== Второй кей говорит сколько ресурса производится за один временной промежуток. Валюе скорей всего шанц, будет ли произведен ресурс. То есть, если поставить контракт на покупку 400 (40*10) Sevilla Muskets (794), то за 10 часов мы не получим 400 мушкетов. =============================== Dear Devs! Could you add information about ships in shops? 1
qw569😳 Posted January 20, 2017 Posted January 20, 2017 There are five modules Light Carriages (IDs 530, 528, 532, 529, 531) in ItemTemplates_*.json. All modules have BasePrice 7520. Is it ok? === rus === В файле ItemTemplates_*.json для модуля Light Carriages (IDs 530, 528, 532, 529, 531) указана одинаковая цена 7520. Это нормально?
Ghroznak Posted January 23, 2017 Posted January 23, 2017 How do you tell which ID is which Port, Item, etc? Is there a cross reference list somewhere?
Crayon Posted January 24, 2017 Posted January 24, 2017 First capsule Key = Port. Key:KeyPair = Item:Amount,Chance
Captain Checker Posted February 14, 2017 Posted February 14, 2017 Hi everybody, is it possible to get the sellprice of a shop even if the shop doesnt have the item in stock ?
Hethwill, the Red Duke Posted February 14, 2017 Posted February 14, 2017 Not sure Checker. IIRC the price may be different from port to port even in the same configuration.
qw569😳 Posted February 14, 2017 Posted February 14, 2017 (edited) 37 minutes ago, Captain Checker said: Hi everybody, is it possible to get the sellprice of a shop even if the shop doesnt have the item in stock ? There are some information in API. For example, Russian Sail Duck. Key PortPrices in ItemTemplates_*.json. {"__type":"MegaChaka.Services.Items.ResourceTemplate, MegaChaka","Name":"Russian Sail Duck","Id":820,"PreventTeleport":true,"DropChanceReductionPerItem":0,"MaxStack":10000,"ItemWeight":2.78,"BasePrice":195,"SellPrice":{"x":0.5,"y":0.5},"BuyPrice":{"x":1,"y":1},"PriceReductionAmount":25000,"ConsumedScale":3,"NonConsumedScale":1,"PriceTierQuantity":10000,"MaxQuantity":10000,"SortingGroup":"Resource.Trading","SellableInShop":true,"CanBeSoldToShop":true,"ResetStockOnServerStart":false,"SellPriceCoefficient":0.5,"ItemType":"Resource","MongoID":"820","InitialAmount":1,"ProductionScale":0.69,"ConsumptionScale":1,"SpawnChance":1,"AutoFillCoefficient":999999,"ProducedByNation":6,"ConsumedByNation":-1,"ProducedInCapitals":true,"ProducedInTowns":false,"ConsumedInCapitals":true,"ConsumedInTowns":true,"ShowInContractsSelector":true,"DeliveryOrderOptions":{"Valid":true,"StockSizeCraftExperience":0,"StockSize":360},"PortPrices":{"Valid":true,"Produced":{"SellPrice":{"Min":88,"Max":107},"BuyPrice":{"Min":176,"Max":215}},"Consumed":{"SellPrice":{"Min":351,"Max":429},"BuyPrice":{"Min":702,"Max":858}},"Regular":{"SellPrice":{"Min":211,"Max":257},"BuyPrice":{"Min":281,"Max":343}},"FullStackAmount":37500,"FullStack":{"SellPrice":{"Min":0,"Max":0},"BuyPrice":{"Min":105,"Max":129}},"RandomPct":0.1,"RangePct":0.5}} But i think it useless information. So better use Trader Tools in game. Edited February 14, 2017 by qw569
Black Spawn Posted February 14, 2017 Posted February 14, 2017 (edited) 1 hour ago, Captain Checker said: Hi everybody, is it possible to get the sellprice of a shop even if the shop doesnt have the item in stock ? nope if its not in stock there is no way of getting the sellprice, except there are contracts set. BUT you can get the exact number of stock of each harbor at maintenance, this is the only advantage compared to the ingame-tool. Edit: You could gather the information over time though, store it in a DB and replace it if there is a change. Edited February 14, 2017 by Black Spawn 1
Captain Checker Posted February 14, 2017 Posted February 14, 2017 5 hours ago, Black Spawn said: nope if its not in stock there is no way of getting the sellprice, except there are contracts set. BUT you can get the exact number of stock of each harbor at maintenance, this is the only advantage compared to the ingame-tool. Edit: You could gather the information over time though, store it in a DB and replace it if there is a change. I think thats what I'm gonna do. I will calc the average of the last 30 days or so.
PIerrick de Badas Posted April 8, 2017 Posted April 8, 2017 Is there public links of the works on API ?
UnicornBuster Posted May 2, 2017 Posted May 2, 2017 (edited) On 02/11/2016 at 9:55 PM, Captain_Jack said: I believe he is asking if anybody has the formula that would convert the in-game coordinates to real world latitude and longitude so he can use the Google Maps API to place town icons onto google maps automatically. UP ^^ Hello, I work on a tool a little different from what exists. It will be made public, but I want to finish it first. Soon finished, I'm stuck with these coordinate stories. Is it possible to use the port coordinates directly in google map ? Do you have a solution to convert data of type? {"x": 462800.010344386, "y": 0, "z": - 545800.012199581} I tried things like this without success... var XFormat = X2/-5275852.72*100; var YFormat = Y2/-229030.0367*100; A little help would be welcome Edited May 2, 2017 by Toxon 1
qw569😳 Posted May 2, 2017 Posted May 2, 2017 4 hours ago, Toxon said: UP ^^ Hello, I work on a tool a little different from what exists. It will be made public, but I want to finish it first. Soon finished, I'm stuck with these coordinate stories. Is it possible to use the port coordinates directly in google map ? Do you have a solution to convert data of type? {"x": 462800.010344386, "y": 0, "z": - 545800.012199581} I tried things like this without success... var XFormat = X2/-5275852.72*100; var YFormat = Y2/-229030.0367*100; A little help would be welcome There are no formula. But you can do substitute game coordinate with real. Example -78.4023428 27.25939834 Walker's Cay -16800.00038 479000.0107 -78.98122787 26.691254 West End -32200.00072 430200.0096 -77.85186768 26.54430856 Road Rocks 6800.000152 429800.0096 -77.69393921 26.99734894 Turtle Cay 26800.0006 461800.0103 -77.23251343 26.12708316 Sandy Point 33600.00075 400400.0089 -77.00128555 26.32457573 Little Harbour 46600.00104 415200.0093 -77.06600189 26.54093005 Marsh Harbour 49200.0011 434000.0097 -79.25811768 25.69475056 Bimini -45800.00102 375800.0084 -79.14550781 24.45215016 Mimbres -30800.00069 328200.0073 -78.06009293 25.14823705 Morgan's Bluff -4400.000098 357600.008 1
UnicornBuster Posted May 3, 2017 Posted May 3, 2017 Thank you for that answer qw569, but it's a lot of work, and it's not accurate. So I made my own map to be able to use distance, time, angle etc. The game map is a square. The point of origin is in the center. So forget google map! In JS for those interested (for a 1024*1024 div) : (need a screenshot of the game map) //div Origin = center of 1024*1024 div var origin = 512; //Link with the API //pPositionx.push(port.Position.x); //pPositionz.push(port.Position.z); for (var i = 1; i < pPort.length; i++) { var xFormat = (pPositionx[i] * origin) / -818562.6739; var yFormat = (pPositionz[i] * origin) / 813381.8364; var point = document.createElement("img"); //position img via css point.style.position = "absolute"; point.style.left = xFormat + origin + 'px'; point.style.top = yFormat + origin + 'px'; portsElt.appendChild(point); portsElt.appendChild(titre); } And "FOR" done all the job =) Now there is nothing more to make a beautiful svg. Because this map is huge! 2
zyzko Posted May 3, 2017 Posted May 3, 2017 Make a square is the best way to build your map. If you'r looking for full source code have a look on https://github.com/Rodrive/na-map
Norfolk nChance Posted May 18, 2017 Posted May 18, 2017 (edited) Can somebody help me if possible? Can I import the data updated on the server maintenance window in Excel ? Like shop prices or ship construction. If someone could point me in the right direction I would be most grateful. kind regards Norfolk Edited September 26, 2018 by Norfolk nChance
RyebreadMike Posted May 18, 2017 Posted May 18, 2017 Are the wood-type characteristics (i.e. Max. Speed, Thickness, Fire Resistnace, etc.) available from these database files? I did a search on the item templates file and did not see them. Thanks
Sir Texas Sir Posted May 19, 2017 Posted May 19, 2017 7 hours ago, RyebreadMike said: Are the wood-type characteristics (i.e. Max. Speed, Thickness, Fire Resistnace, etc.) available from these database files? I did a search on the item templates file and did not see them. Thanks Here is a spread sheet that has them if that helps. Go to the second tab data. https://docs.google.com/spreadsheets/d/1mIxvb6VhneMy0pNL5Cht1Wg28dyNlC-cGtEUhTfuY08/edit?usp=sharing 1
Mored Posted May 25, 2017 Posted May 25, 2017 Has the API for Shops changed? I did a tool last year and it dosnt work any longer correct. For example: Coal, ID 24 is not in the Shop table at all, same for other ressources. From "Resource" Type only these are displayed Mahogany Log Sabicu Log White Oak Log Teak Log Live Oak Log Pino Ocote Log Caguairan Log Longleaf Pine Log American Cotton Bermuda Cedar
qw569😳 Posted May 25, 2017 Posted May 25, 2017 31 minutes ago, Mored said: Has the API for Shops changed? I did a tool last year and it dosnt work any longer correct. For example: Coal, ID 24 is not in the Shop table at all, same for other ressources. From "Resource" Type only these are displayed Mahogany Log Sabicu Log White Oak Log Teak Log Live Oak Log Pino Ocote Log Caguairan Log Longleaf Pine Log American Cotton Bermuda Cedar Because NPC not produce this resource anymore.
Sir Texas Sir Posted May 31, 2017 Posted May 31, 2017 On 5/25/2017 at 4:25 AM, Mored said: Has the API for Shops changed? I did a tool last year and it dosnt work any longer correct. For example: Coal, ID 24 is not in the Shop table at all, same for other ressources. From "Resource" Type only these are displayed Mahogany Log Sabicu Log White Oak Log Teak Log Live Oak Log Pino Ocote Log Caguairan Log Longleaf Pine Log American Cotton Bermuda Cedar Other than these woods all other things are suppose to be produced and sold by players.
qw569😳 Posted June 5, 2017 Posted June 5, 2017 (edited) @raskolnikoff There is a error in API file ItemTemplates_*.json Id=240, Name="Cables And Howsers Blueprint" id=3, Name="Cables And Hawsers" Edited June 5, 2017 by qw569 1
Recommended Posts