Jump to content

How are Bonuses in Trading Distance Calculated?


sphyrth
 Share

Recommended Posts

Yes, you can cycle through multiple markets, but afaik, it doesn't give you extra gain.

Here's the formula used: http://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/simulation/helpers/TraderGain.js

So it depends on the square of the straight-line distance, with some bonuses like for trading with a foreign market.

It is planned however to also take into account the number of markets you pass.

  • Thanks 1
Link to comment
Share on other sites

4 hours ago, sanderd17 said:

So it depends on the square of the straight-line distance, with some bonuses like for trading with a foreign market.

Thanks! And I just realized how exploit-y a non-straight-line trading bonus can be.

Please be patient with me on this thread, as I am pouring out all my questions concerning Market mechanics. I'm playing Alpha 20, so we'll be assuming that when a question pops out.

Link to comment
Share on other sites

2 hours ago, sanderd17 said:

Yes, you can cycle through multiple markets

As far as I know it only cycles between two markets.

ffm made some tests back in the day and found that if the profit per trip is more than roughly 35 (if I recall correctly), it will be faster income than gathering from a mine without upgrades.

After taking the duration of the trip into account, the profit per distance increases linearily effectively.

See also wraitiis idea on how to rewrite the trading mechanic to a city-based approach:

Ā 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
On 11/07/2016 at 0:33 PM, sanderd17 said:

Hmm, just tested it, and you can't cycle between more than two markets indeed. I thought someone implemented round-trips in the past. Must be mis-remembering.

(I planned to answer this a bit earlier but it stuck in my bookmarks)

Georg implemented it in a patch attached here: http://trac.wildfiregames.com/ticket/1207, but as stated in the ticket description it was "dropped after some discussion (easily exploitable or if that is fixed hard to make obvious to the player)".

Link to comment
Share on other sites

The easily exploitable part is most likely fixed by now, or shouldn't be hard to solve for someone knowing that code. Not sure how to make it obvious to players, but I planned to use it on the trade route map (for the trading gaia/AI player) as most of the required code (apart from allowing to issue the right commands from the gui, and maybe some small adjustments in the command handlers in UnitAI) was merged in #3812 (and lots of later commits, and likely some cleanup is still missing).

  • Like 2
Link to comment
Share on other sites

  • 9 months later...

The biggest trade gain is trading with an ally over a long distance (though you only get a part of the traded value at the ally's market).

Cycles for traders are done in the wip code for the Silk Road map, however there is no gui support for creating such cycles.

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...