[Q] How EXACTLY do Trade Routes work?

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
User avatar
Corbeau
Elite
Posts: 1039
Joined: Mon Jan 13, 2014 11:13 pm

[Q] How EXACTLY do Trade Routes work?

Postby Corbeau » Mon Sep 02, 2019 8:52 pm

So, Math of Freeciv says:

- there is a revenue per turn with a formula
- there is a one-time bonus with a formula
- there are [trade] factors in game.ruleset

Questions:

1. Do ruleset factors (trade pct) apply to BOTH revenue and bonus?

2. There is an additional point in Math of Freeciv: "Bonus from a caravan, when it enter in a existent trade place". What exactly is an "existent trade place"? Is it a city that already has a maximum of trade routes so it will not generate revenue, but will give a one-time bonus, or is it something else?

3. "The number of trade routes per city is limited to four". Is it possible to change this number?

Wahazar
Hardened
Posts: 252
Joined: Mon Jul 02, 2018 1:49 pm

Re: [Q] How EXACTLY do Trade Routes work?

Postby Wahazar » Tue Sep 03, 2019 11:37 am

1. It depend on freeciv version, prior from 2.6 is it possible to remove one-time bonus upon arrival.
for example in my augmented2 ruleset I defined it in game.ruleset:

Code: Select all

settings =
  { "type",       "pct", "cancelling", "bonus"
    "National",   0,     "Cancel",     "None"
    "NationalIC", 25,     "Cancel",    "None"
    "IN",         50,   "Cancel",     "None"
    "INIC",       100,   "Cancel",     "None"
    "Ally",       25,   "Cancel",     "None"
    "AllyIC",     50,   "Cancel",     "None"
    "Enemy",      0,     "Cancel",     "None"
    "EnemyIC",    0,     "Cancel",     "None"
    "Team",       25,   "Cancel",     "None"
    "TeamIC",     50,   "Cancel",     "None"
  }

thus there is no arrival bonus, and trade income is not possible to enemy city or to own city on same continent.
In 2.5 there was not possible to define pct and bonus separately.

2. not sure, but maybe if new route is better than existing, new route would be established while old one cancelled, otherwise rejected?

3. yes, Max_Trade_Routes in effect.ruleset

User avatar
Corbeau
Elite
Posts: 1039
Joined: Mon Jan 13, 2014 11:13 pm

Re: [Q] How EXACTLY do Trade Routes work?

Postby Corbeau » Tue Sep 03, 2019 12:00 pm

1. So in 2.5 the pct is both for bonus and revenue? Just trying to confirm. And I'd rather remove the revenue and keep the bonus. But I guess the next version will be for 2.6 anyway so I'll live with this for now :)

3. Thanks.

Wahazar
Hardened
Posts: 252
Joined: Mon Jul 02, 2018 1:49 pm

Re: [Q] How EXACTLY do Trade Routes work?

Postby Wahazar » Tue Sep 03, 2019 12:48 pm

Bonus is calculated using pct turn revenue, in 2. you can set both to zero, in 2.6 you can keep pct revenue while remove one-time bonus.
Not possible to opposite: get bonus and no pct revenue.

Ignatus
Hardened
Posts: 230
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: [Q] How EXACTLY do Trade Routes work?

Postby Ignatus » Wed Sep 04, 2019 4:47 am

But one could set max trade routes to 0, then with nonzero pct you get only bonus but no routes actually formed?

User avatar
Corbeau
Elite
Posts: 1039
Joined: Mon Jan 13, 2014 11:13 pm

Re: [Q] How EXACTLY do Trade Routes work?

Postby Corbeau » Wed Sep 04, 2019 8:39 am

Ignatus wrote:But one could set max trade routes to 0, then with nonzero pct you get only bonus but no routes actually formed?

:o

For years they've been telling me this isn't possible! THANK YOU!

Wahazar
Hardened
Posts: 252
Joined: Mon Jul 02, 2018 1:49 pm

Re: [Q] How EXACTLY do Trade Routes work?

Postby Wahazar » Wed Sep 04, 2019 5:11 pm

Sounds good, but does it work?