Avorion

Avorion

Not enough ratings
No waiting for free space when selling
   
Award
Favorite
Favorited
Unfavorite
Mods: Mod
File Size
Posted
Updated
591.111 KB
26 Sep, 2020 @ 1:01pm
29 Sep, 2020 @ 12:11pm
4 Change Notes ( view )

Subscribe to download
No waiting for free space when selling

Description
When running sell command ships will now behave differently.

After selling if they have actually sold anything and still have goods to sell, they will finish order instead of waiting.

Side effect of this is that ships may service only one station before moving on.
For Example: If you have stations needing: 200 Oil and 150 Oil respectively, your ship will only sell to the one needing 200 Oil and then move on.

You can circumvent this behaviour, by scheduling more sell orders.
Thus, with our 200 and 150 needs stations, your ship having say 500 oil, will sell 200 oil to the first station on first order and move on to the next order, now with stations having 0 or close to 0 and 150+ demands, so it will service the second one and then move on with 150 or a bit less (if second station used some oil while ship serviced the first one) still in cargo hold.

Additionally:

Tweaked selling algorithm to target stations in this order:
Highest Price > Highest Free Stock > Everything else

Instead of vanilla:
Highest Price > Highest Stock > Everything else
(Which seems like a bug or missed sign change anyway)


* I know there's spelling error in message on my thumbnail, i made it before i fixed that and didn't bother with making screenshot

** The message in status window is now "[Good name] could not be sold in full." but you probably won't see it appear, because "looking for merchant" one will replace it almost immediately


This mod is probably incompatible with anything that touches "sell goods" ai command.
2 Comments
Caellion  [author] 20 Jan, 2023 @ 2:53pm 
@Thundercraft

Chance always is but I 100% won't have time to do it within a few months. You can always look at the code and try to update it yourself, or ask someone who can, just link back here if you do, so ppl can find it.

and about the station: unfortunately, i do not know, I think it might even be auto-generated,
Thundercraft 19 Jan, 2023 @ 6:37am 
Is there any chance this will get updated to work with the latest game version?

On another note:

You wouldn't happen to know the name of the station in the screenshot, would you? I like the looks of the design and would be interested to know if it was available on the Workshop...