Strategic Resource Valuation – The Formula

In my game the AI will buy with the same price for a single repeatedly, but will buy for less for each sucessive in a stack. So 4 horse will sell for 2 each if I sell them individually, but in a stack of 4 will only sell for 5. This way its never good to sell more than one at a time.
Fixed for the next version, the valuation of trade items wasn't updated after a completed deal while staying in the trade menu.

Also, the valuation of each item of a strategic resource is now always a multiple of 1 GPT, this prevents rounding issues (a combined deal being valued differently than the sum of its parts).
 
Also, the valuation of each item of a strategic resource is now always a multiple of 1 GPT, this prevents rounding issues (a combined deal being valued differently than the sum of its parts).
How is that an issue? If AI values a resource at 1.5 GPT then it makes sense that 2 copies would value at 3 GPT. Now we lose precision.
 
It's an issue for two reasons:

If the AI values a resource at 1.5 GPT, it is not able to make an offer for it or to equalize a deal with a human when asked to do so, because giving 2 GPT would be too much, and giving 1 GPT wouldn't be enough. A lot of potential offers aren't made because of that (also applies to Defensive Pacts, Open Borders, etc).

If the AI values a resource at, say, 1.25 GPT, the AI would give 1 GPT for one item, but 4 GPT for three items. So for the human player, it would be better to sell several items at once. On the other hand, if the AI values a resource at 1.75 GPT, it would be the opposite: the AI would give 2 GPT for one item, but 5 GPT for three items, and the human player should rather split up the deal into several parts.
 
Yep, this is because GPT is forced to be an integer, so the precision is forced here. But why forcing it at multiples? 4GPT for 3 items is more precised than 3GPT for 3 items when the actual value is 1.25GPT per item.
 
Could it be possible to bring back instant :c5gold:gold payment for lengthy deals, but limit its total value so the AI would only accept up to 1:c5gold:/turn equivalent (50:c5gold: in standard speed) per deal ? That way, you still have precision.

Example : Let's consider that an AI value 1:c5gold:/turn as much as 50:c5gold: (it doesn't, but let's assume it does). Then, for an lengthy offer (ie. luxury, strategic etc.) valued at 125:c5gold:, it could accept/offer 2:c5gold:/turn + 25:c5gold:, or 3:c5gold:/turn - 25:c5gold:. But it would never accept to pay more than 49:c5gold:.

Precision : This does not concern immediate deals, like trading cities, votes, techs, and immediate gold.

Edit : add example, :c5gold:, and precision
 
Last edited:
Could it be possible to bring back instant gold payment for lengthy deals, but limit its total value so the AI would only accept up to 1GPT equivalent (50 gols in standard speed) per deal ? That way, you still have precision.
That's a cool idea!
 
Could it be possible to bring back instant :c5gold:gold payment for lengthy deals, but limit its total value so the AI would only accept up to 1:c5gold:/turn equivalent (50:c5gold: in standard speed) per deal ? That way, you still have precision.
seems legit. abuse potential on small amounts is low. Declaring war to cancel a deal in order to get 30 gold is not a great move.

...though, declaring war to cancel a whole bunch of small deals, each of which gets you 30 gold, is still a possibility. Would be nice if we could just fix that base issue instead. Refund the gold if the deal is canceled prematurely. (partial refund, depending on how much time was left on the deal)
 
Top Bottom