Hi, how does AutoTrade picks its trades?
Does it pick the most profitable one from a list it scanned trades?
Does it pick up the first trade it finds?
Does it pick the trade with the biggest volume?
...
Does AutoTrade picks the most profitable offers?
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 488
- Joined: Sun, 5. Feb 06, 17:15
Does AutoTrade picks the most profitable offers?
Ubuntu 24.04 playing with ProtonDB
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
-
- Posts: 304
- Joined: Mon, 30. Jul 18, 04:16
Re: Does AutoTrade picks the most profitable offers?
Interested people can look at /aiscripts/order.trade.routine.xml .
It can take a while to analyze the xml file contents, so give it some time... Eventually someone should be able to come up with something.
It can take a while to analyze the xml file contents, so give it some time... Eventually someone should be able to come up with something.
The future awaits.
X4 Foundations mods:
Civilian Fleets: (Obsolete for X4 7.0+) Managing your civilian ships has never been easier.
Station Logistics: Managing your station networks has never been easier.
Market Discovery: Find Black Market Traders; also rerolls them.
Logistics Optimization: Improve your station traders; improve your trade stations!
X4 Foundations mods:
Civilian Fleets: (Obsolete for X4 7.0+) Managing your civilian ships has never been easier.
Station Logistics: Managing your station networks has never been easier.
Market Discovery: Find Black Market Traders; also rerolls them.
Logistics Optimization: Improve your station traders; improve your trade stations!
-
- Posts: 158
- Joined: Fri, 12. Jul 19, 14:03
Re: Does AutoTrade picks the most profitable offers?
I had a look at it. They come up with a value to describe how good one trade is over another. Someone more bored than me should dump that value along with the trade objects into a spreadsheet.
-
- Posts: 667
- Joined: Wed, 6. Nov 02, 20:31
Re: Does AutoTrade picks the most profitable offers?
The AutoTrade script generally prioritizes short distance (by cluster) over price. All AI price decisions - regardless of script - are based on relative price, which means the ratio of the current price relative to the ware's minimum and maximum (-1 = min price, +1 = max price)
This means that, for example, if Energy Cells are available for buying at min price and selling at max price, then the AI will do that every time with little regard for the value to the player in real credits. This kind of behavior is necessary for the NPCs to not starve goods based on their pricing; for players it's suboptimal performance but it's better that way because it rewards players that research the area and apply appropriate settings.
This means that, for example, if Energy Cells are available for buying at min price and selling at max price, then the AI will do that every time with little regard for the value to the player in real credits. This kind of behavior is necessary for the NPCs to not starve goods based on their pricing; for players it's suboptimal performance but it's better that way because it rewards players that research the area and apply appropriate settings.