Jump to content
Game-Labs Forum

Recommended Posts

  • 3 weeks later...
  • Replies 317
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Recently we've finished preparing server data for public access and now we are ready to share it with community Currently we prefer to avoid extra load on our servers so "API" does not contain run-ti

So we still don't have a sextant and a chronometer to tell us were we are on the map....but we know now w/o ever visiting a port what is sold there.  Nobody needs to explore anymore, you get all the

The community has shown that they do not like the idea of having player stats published.  Doing this has led to massive toxicity in numerous online communities.

Posted Images

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.

 

Link to post
Share on other sites

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 :P )

Edited by blakdog
Link to post
Share on other sites
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?

  • Like 1
Link to post
Share on other sites
  • 1 month later...

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.

Это нормально?

 

Link to post
Share on other sites
  • 3 weeks later...
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 by qw569
Link to post
Share on other sites
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 by Black Spawn
  • Like 1
Link to post
Share on other sites
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.

Link to post
Share on other sites
  • 1 month later...
  • 4 weeks later...
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 by Toxon
  • Like 1
Link to post
Share on other sites
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
  • Like 1
Link to post
Share on other sites

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!

 

Sans-titre-2.jpg

  • Like 2
Link to post
Share on other sites
  • 2 weeks later...

 

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 by Norfolk nChance
Link to post
Share on other sites

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

Link to post
Share on other sites
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

  • Like 1
Link to post
Share on other sites

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
Link to post
Share on other sites
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.

 

Link to post
Share on other sites
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.

Link to post
Share on other sites

×
×
  • Create New...