Traders are docking at a station to buy, failing the trade, finding the trade again, and repeating.
The portion of code giving the error is after several checks so the following are not possible reasons:
Code: Select all
ERR_TRADEDEAL_NONEXISTENT
ERR_TRADEPARTNER_NOT_OPERATIONAL
ERR_NO_TRANSPORT_UNITS
TRADEPARTNER_BLACKLISTED
ERR_NOTHING_TO_SELL
ERR_TRADEOFFER_INVALID
ERR_TARGET_INVALID
ERR_NO_CARGO_SPACE
ERR_BUYER_NO_MONEY
ERR_SELLER_NO_CARGO
ERR_CANNOT_DOCK
ERR_TRADEOFFER_INVALID ($tradeoffer.available)
Code: Select all
<execute_trade tradeoffer="$tradedeal" tradepartner="this.ship" amount="$amount" result="$traderesult" custom="true" comment="Deal with fixed price" />
Code: Select all
[=ERROR=] 16783.73 Error in AI script order.trade.perform on entity 0xe074: TradeID 32494: trade 158 Hull Parts between Tethys (SENTINEL-SHORT) and PAR Hull Part Factory failed with reasoncode 32 (0x20 - 0000000000000000000000000100000b)!
* Action: <execute_trade>, line 429
Code: Select all
[Scripts] 16860.12 *** aicontext<order.trade.perform,0x14e21>: 16860.124 'Tethys (SENTINEL-SHORT)'(OXU-761, job: '') TRADE RUN FAILED! Error: ERR_EXECUTE_FAIL
[Scripts] 16860.12 *** aicontext<player.interaction.tradefailed,0x14e21>: Trade (selloffer) failure for player trade! trade not available...