Author Topic: Some Tradeport values questions.  (Read 349 times)

0 Members and 1 Guest are viewing this topic.

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
Some Tradeport values questions.
« on: August 25, 2017, 08:38:58 PM »
Does anybody know what the trade values really do in the trade port template code?

The population, monthsTrade and tolerance I think I know how that works.
So for the first row and have a pop of at least 30 it can take 12 months (or -6 tolerance) or ( +6 tolerance ) before the trader shows up.
So everything between 6 months and 18 months. Correct?

But what is the ItemCountScale and ItemStackScale really do?

I know the stack scale is set in the raw material files and the Item count in the trade port file.
But looking at the first row again what is that 8 value for each really do?

Code: [Select]
TradeScale _tradeScale
[
{ int _population = 30; float _monthsTrade = 12; float _monthsTradeTolerance = 6; int _itemCountScale = 8; int _itemStackScale = 8; }
{ int _population = 60; float _monthsTrade = 9; float _monthsTradeTolerance = 4; int _itemCountScale = 6; int _itemStackScale = 6; }
{ int _population = 90; float _monthsTrade = 5; float _monthsTradeTolerance = 4; int _itemCountScale = 4; int _itemStackScale = 4; }
{ int _population = 120; float _monthsTrade = 4; float _monthsTradeTolerance = 2; int _itemCountScale = 3; int _itemStackScale = 3; }
{ int _population = 150; float _monthsTrade = 4; float _monthsTradeTolerance = 2; int _itemCountScale = 2; int _itemStackScale = 2; }
{ int _population = 180; float _monthsTrade = 3; float _monthsTradeTolerance = 1; int _itemCountScale = 1; int _itemStackScale = 1; }
]
My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline kid1293

  • Modders
  • Banished Expert
  • *****
  • Posts: 1966
  • Never confuse movement with progress
Re: Some Tradeport values questions.
« Reply #1 on: August 26, 2017, 01:18:07 AM »
I guess they are divisors for the value _itemCount (under Merchant) and  _stackCount (in RawMaterial-file)

The _itemCount and _stackCount are maximum and then you divide with a number depending on population.
I used these values in Alotofseeds mod and set both to 1. I got maximum everytime.

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
Re: Some Tradeport values questions.
« Reply #2 on: August 26, 2017, 02:20:42 AM »
Thanks Kid

That makes indeed sense.

So after a pop of 180 it will always be the max as set as ItemCount and StackCount.

My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline kid1293

  • Modders
  • Banished Expert
  • *****
  • Posts: 1966
  • Never confuse movement with progress
Re: Some Tradeport values questions.
« Reply #3 on: August 26, 2017, 03:49:22 AM »
Yes but you can, of course, change the 180 too.

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
Re: Some Tradeport values questions.
« Reply #4 on: August 26, 2017, 04:16:06 AM »
Yeah, I ask because elemental tells me the traders not bringing enough stuff.

I left all the values by default as in Vanilla. So 15 for ItemCount in the trader file and 2000 for most foods in the Template Files.

Only the seeds and livestock are lower (was 2 for livestock and 4 for seeds (6 total as mine are combined in one Farmers Trader)  but increased this for the next version to 12 so some more seeds are brought in so the player has more of a choice which to choose.

elemental plays with the 1:1 mod so his pop is probably not that high so I think for example the Vanilla pumpkins are set at 2000 stack in the Raw Material file and if he has between 30 and 60 pop it will be 2000/8 = 250.

I try to figure out what Luke's idea was with this setup.
I think it gives more variety at the beginning of the game as if the trader brings 2000 onions for 32 pop it maybe is too much and then room is taken away for more diversity in the items he brings what brings me to the next question.

Is there a limit the trader boat can carry total in weight?



My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline kid1293

  • Modders
  • Banished Expert
  • *****
  • Posts: 1966
  • Never confuse movement with progress
Re: Some Tradeport values questions.
« Reply #5 on: August 26, 2017, 04:57:51 AM »

I guess no.
8 cows in that boat should really set the limit.  :D

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
Re: Some Tradeport values questions.
« Reply #6 on: August 26, 2017, 05:02:34 AM »
LOL

You got a point there :)
I am amazed what a volume that rowboat can carry.

Maybe this is more suitable :)

http://worldofbanished.com/gallery/474_03_05_17_9_52_13.jpeg
Some Tradeport values questions.

My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline kid1293

  • Modders
  • Banished Expert
  • *****
  • Posts: 1966
  • Never confuse movement with progress
Re: Some Tradeport values questions.
« Reply #7 on: August 26, 2017, 05:04:57 AM »
Hahaha! Upriver on the way to a Banished town.  ;D ;D ;D

Offline The Pilgrim

  • Global Moderator
  • Trader
  • *****
  • Posts: 162
Re: Some Tradeport values questions.
« Reply #8 on: August 26, 2017, 06:54:02 AM »
I just noticed something, if you look at the months ranges... When the population is 90-120 the range is 1-9 months, but at no other point does the minimum reach 1 month. Maybe the spread should be reduced a little bit there. I always though that there was a point that it felt like you got overwhelmed with trader and then it tapered off. Now I see why.

Offline brads3

  • Banished Expert
  • *****
  • Posts: 1439
Re: Some Tradeport values questions.
« Reply #9 on: August 26, 2017, 10:09:46 AM »
while we are discussing traders, can a mod be made to change the values  for the different merchants and make them random like TOM does with the NORTH mod?

Online Abandoned

  • Advisor
  • Banished Expert
  • *****
  • Posts: 1593
Re: Some Tradeport values questions.
« Reply #10 on: August 26, 2017, 11:15:45 AM »
I wouldn't mind a mod for a discount seed merchant, half off any purchase, or BOGO (buy one get one free) or how about some coupons for special customers.   :)  Okay, I know the last ones are not possible but cheaper would be nice.