[3.30] player/faction discounts applied twice when buying/trading

Ask here if you experience technical problems with X4: Foundations.

Moderator: Moderators for English X Forum

Post Reply
xjibe
Posts: 19
Joined: Thu, 5. Sep 13, 08:27
x3tc

[3.30] player/faction discounts applied twice when buying/trading

Post by xjibe » Thu, 26. Nov 20, 07:58

Player/faction discounts are applied twice when buying/trading. Once when confirming the purchase in trade window and then again when the trade is executed (i.e. you get some money back). (observe by using one trader only and compare trade amount in window vs player account balance variation post transaction)
Function execute_trade in aiscript order.trade.perform seems to be the culprit, though not sure how it is envolved in the profit prediction further below.

Below is a sequence of small screen captures, showing the account variation:
Image

And associated incorrect profit prediction from sales:
Image

Post Reply

Return to “X4: Foundations - Technical Support”