It should but the caveat is that the vanilla blacklist functions are very complex and not the most reliable. L traders in particular love to take whatever random path they feel like that day.
[WIP][Mod]TaterTrader v4- An Autotrade Alternative
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
There are also some weird issues in Vanilla in regards to routes picked by AI-Controlled ships. I've noticed my ships showing a perfectly acceptable route on the map when you view their orders. However, they DON'T always follow that route and take same very odd detours. The area where Teladi and Split space meet (Ianamus Zura / Thuruk's Demise) is particularly problematic. Ordering ships to fly from Ianamus Zura to Thuruk's Demise will see them try to go through the nearby Xenon sector. Very much a longer and much more dangerous route.
This, combined with less than reliable Black Lists, can cause various weirdness. I also wonder if Blacklists sometimes get corrupted somehow. I had my set a three Blacklists to protect my Civilian ships, but it simply stopped working, even though it looked fine. I then DELETED all of them, re-applied and they're working fairly reliably once more.
Basically, there are certainly some underlying vanilla issues that might make it look like other things aren't working properly.
Scoob.
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
Hi,
Tatertrader works well, however I have a slight issue that might just be me setting it up wrong.
I wanted to use Tater Trader to Sell Hull Parts from my Station in Argon Prime, so I set them up to just trade Hull Parts with a zero Sector range, so they only sell to the Shipyard, Wharf and any build sites. Works great, however the profit goes into my personal account, not the stations.
So, I set the Trader Home to my station - but it remains as Argon Prime - and I checked the Station Trader box. Initially, when I did this, the Ship in question moved to be listed as a Station subordinate, so I thought it'd worked, however, it quickly lost that assignment.
Basically, what I tried seemed to work in that the ship was showing as a subordinate to my Station, but then it went back to showing in the unassigned ship list. What am I missing here?
Edit: I think I've sorted it, though it can be a bit temperamental. I configured two TT the same, and this time the home Station assignment stuck and didn't revert to the Sector. One then proceeded to trade Hull parts as instructed, the other started BUYING refined metals for the station - it produces those. It appeared to have imported the full trade ware list, despite my leaving "Copy Presets" unchecked. Removing all assignments and re-configuring it seems to have worked.
Scoob.
Tatertrader works well, however I have a slight issue that might just be me setting it up wrong.
I wanted to use Tater Trader to Sell Hull Parts from my Station in Argon Prime, so I set them up to just trade Hull Parts with a zero Sector range, so they only sell to the Shipyard, Wharf and any build sites. Works great, however the profit goes into my personal account, not the stations.
So, I set the Trader Home to my station - but it remains as Argon Prime - and I checked the Station Trader box. Initially, when I did this, the Ship in question moved to be listed as a Station subordinate, so I thought it'd worked, however, it quickly lost that assignment.
Basically, what I tried seemed to work in that the ship was showing as a subordinate to my Station, but then it went back to showing in the unassigned ship list. What am I missing here?
Edit: I think I've sorted it, though it can be a bit temperamental. I configured two TT the same, and this time the home Station assignment stuck and didn't revert to the Sector. One then proceeded to trade Hull parts as instructed, the other started BUYING refined metals for the station - it produces those. It appeared to have imported the full trade ware list, despite my leaving "Copy Presets" unchecked. Removing all assignments and re-configuring it seems to have worked.
Scoob.
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
Now you see why i don't like station tradingScoob wrote: ↑Mon, 18. May 20, 23:35Hi,
Tatertrader works well, however I have a slight issue that might just be me setting it up wrong.
I wanted to use Tater Trader to Sell Hull Parts from my Station in Argon Prime, so I set them up to just trade Hull Parts with a zero Sector range, so they only sell to the Shipyard, Wharf and any build sites. Works great, however the profit goes into my personal account, not the stations.
So, I set the Trader Home to my station - but it remains as Argon Prime - and I checked the Station Trader box. Initially, when I did this, the Ship in question moved to be listed as a Station subordinate, so I thought it'd worked, however, it quickly lost that assignment.
Basically, what I tried seemed to work in that the ship was showing as a subordinate to my Station, but then it went back to showing in the unassigned ship list. What am I missing here?
Edit: I think I've sorted it, though it can be a bit temperamental. I configured two TT the same, and this time the home Station assignment stuck and didn't revert to the Sector. One then proceeded to trade Hull parts as instructed, the other started BUYING refined metals for the station - it produces those. It appeared to have imported the full trade ware list, despite my leaving "Copy Presets" unchecked. Removing all assignments and re-configuring it seems to have worked.
Scoob.
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
Spent about 8 hours working on blacklist stuff.
Annoyed at your precious TaterTraders entering sectors you've banned to reach that precious trade they can't safely reach? Testing my solution that should prevent that from ever happening again.
Annoyed at your precious TaterTraders entering sectors you've banned to reach that precious trade they can't safely reach? Testing my solution that should prevent that from ever happening again.
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
While checking other things I found that TaterTrader is spamming my logs with 2 kind of messages. It's 3.20 beta, so I am not sure if something change or not... or even if those errors are "real errors".
First one:
Second one:
First one:
Code: Select all
[=ERROR=] 24549.48 Error in AI script tatertrade on entity 0x705ed1b: Property lookup failed: $foundselloffer.restriction.faction
* $foundselloffer == trade.{0x43bc4L} (ware=smartchips, buyer=[0x0], seller=[0x10e9c47], bundle=false, unbundle=false, available=true)
* Expression: not ($foundselloffer.restriction.faction == $stationbuyoffer.buyer.owner) and not ($stationbuyoffer.restriction.faction == $foundselloffer.seller.owner) and not ($stationbuyoffer.restriction.faction == $foundselloffer.restriction.faction)
* Action: <do_if>, line 916
Code: Select all
[=ERROR=] 24549.18 Error in AI script tatertrade on entity 0x705ed1b: Warning: Loss of data while converting floating point number to a money value! 64.5062f + 15ct
* Expression: $offerpriority + $costdiff / 2
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
I'm not supporting the beta because it would break 3.1 but thanks for the report.bbn wrote: ↑Sun, 24. May 20, 00:51While checking other things I found that TaterTrader is spamming my logs with 2 kind of messages. It's 3.20 beta, so I am not sure if something change or not... or even if those errors are "real errors".
First one:Second one:Code: Select all
[=ERROR=] 24549.48 Error in AI script tatertrade on entity 0x705ed1b: Property lookup failed: $foundselloffer.restriction.faction * $foundselloffer == trade.{0x43bc4L} (ware=smartchips, buyer=[0x0], seller=[0x10e9c47], bundle=false, unbundle=false, available=true) * Expression: not ($foundselloffer.restriction.faction == $stationbuyoffer.buyer.owner) and not ($stationbuyoffer.restriction.faction == $foundselloffer.seller.owner) and not ($stationbuyoffer.restriction.faction == $foundselloffer.restriction.faction) * Action: <do_if>, line 916
Code: Select all
[=ERROR=] 24549.18 Error in AI script tatertrade on entity 0x705ed1b: Warning: Loss of data while converting floating point number to a money value! 64.5062f + 15ct * Expression: $offerpriority + $costdiff / 2
I'll take a look into the second one, it's harmless usually. What settings are you using on trader?
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
Sure, it's seems like it's related to the new trade rules somehow...
I'm guessing that I cannot count on TaterTraders to obey restriction in this save ^^.
Fortunately, this was quite early in new save, so I have just 4 TaterTraders setup. Don't know exactly which one, but they are set up similar way. I set trader home for 2 of them to ARG Wharf and for the other 2 to ARG Shipyard. Max gate distance to buy set to 10, checked station trader and added all wares to the list.
(now I'm wondering if I should continue 3.2b with mods, go back to my vanilla save, or maybe go back to 3.1...)
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
The only problem the 3.2 will cause are traders ignoring "restrict trade to other factions" and the trade rules afaikbbn wrote: ↑Sun, 24. May 20, 11:04Sure, it's seems like it's related to the new trade rules somehow...
I'm guessing that I cannot count on TaterTraders to obey restriction in this save ^^.
Fortunately, this was quite early in new save, so I have just 4 TaterTraders setup. Don't know exactly which one, but they are set up similar way. I set trader home for 2 of them to ARG Wharf and for the other 2 to ARG Shipyard. Max gate distance to buy set to 10, checked station trader and added all wares to the list.
(now I'm wondering if I should continue 3.2b with mods, go back to my vanilla save, or maybe go back to 3.1...)
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
Just to double confirm for anyone on beta -> that's their behavior. Work perfectly fine for last couple of hours of gameplay, but ignore my travel restrictions.DeadAirRT wrote: ↑Sun, 24. May 20, 14:59The only problem the 3.2 will cause are traders ignoring "restrict trade to other factions" and the trade rules afaikbbn wrote: ↑Sun, 24. May 20, 11:04Sure, it's seems like it's related to the new trade rules somehow...
I'm guessing that I cannot count on TaterTraders to obey restriction in this save ^^.
Fortunately, this was quite early in new save, so I have just 4 TaterTraders setup. Don't know exactly which one, but they are set up similar way. I set trader home for 2 of them to ARG Wharf and for the other 2 to ARG Shipyard. Max gate distance to buy set to 10, checked station trader and added all wares to the list.
(now I'm wondering if I should continue 3.2b with mods, go back to my vanilla save, or maybe go back to 3.1...)
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
So i spent a few hours working on the code yesterday and found a few bugs/unintended behavior.
When using check distance, it will no longer view jumps past a certain number as negative but will instead scale properly with the percent.
When using check distance, it will no longer prefer dangerous trades over safer ones (trades that have no safe route to the destination)
There are some new delays that are skill based to prevent traders from grabbing the same trade at the same moment (the delay is not human noticable). This issue was especially prevalent with civ fleets.
If everything goes right in testing after i get off work, I'll upload version to all platforms today.
New version on GitHub for testing.
When using check distance, it will no longer view jumps past a certain number as negative but will instead scale properly with the percent.
When using check distance, it will no longer prefer dangerous trades over safer ones (trades that have no safe route to the destination)
There are some new delays that are skill based to prevent traders from grabbing the same trade at the same moment (the delay is not human noticable). This issue was especially prevalent with civ fleets.
If everything goes right in testing after i get off work, I'll upload version to all platforms today.
New version on GitHub for testing.
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
Is there any way I can restrict my tatertraders to only trade with a certain faction?
I have tried a blacklist, selecting the faction checklist boxes, and also trying to only limit to "included sectors" but they seem to ignore it. I suspect it is me that is doing something wrong, so any guidance on this would be appreciated!
I have tried a blacklist, selecting the faction checklist boxes, and also trying to only limit to "included sectors" but they seem to ignore it. I suspect it is me that is doing something wrong, so any guidance on this would be appreciated!
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
Which version are you running? They shouldn't be ignoring blacklist, trade rules, or faction restriction checklist so something definitely sounds off.Cedric_FP wrote: ↑Thu, 18. Jun 20, 03:37Is there any way I can restrict my tatertraders to only trade with a certain faction?
I have tried a blacklist, selecting the faction checklist boxes, and also trying to only limit to "included sectors" but they seem to ignore it. I suspect it is me that is doing something wrong, so any guidance on this would be appreciated!
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
Yeah it was me doing something wrong. I had gotten my blacklist the wrong way around (i restricted from argon/antigone instead of from everybody else BUT argone and antigone, man I'm dumb). Thanks for taking the time to respond.DeadAirRT wrote: ↑Thu, 18. Jun 20, 08:51Which version are you running? They shouldn't be ignoring blacklist, trade rules, or faction restriction checklist so something definitely sounds off.Cedric_FP wrote: ↑Thu, 18. Jun 20, 03:37Is there any way I can restrict my tatertraders to only trade with a certain faction?
I have tried a blacklist, selecting the faction checklist boxes, and also trying to only limit to "included sectors" but they seem to ignore it. I suspect it is me that is doing something wrong, so any guidance on this would be appreciated!
On the tatertrader setup for default behavior, in order for me to restrict trade without using a global blacklist, I would tick the "enable trade bans" box and then tick every box I *don't* want my trader to trade with, right?
Do I need to tick 'enable trade bans' if I want to do the included sector method of restricting?
Thanks for your time, Deadair!
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
Enable trade bans activates the blocking of trade with the factions checked on the order screenCedric_FP wrote: ↑Fri, 19. Jun 20, 04:26Yeah it was me doing something wrong. I had gotten my blacklist the wrong way around (i restricted from argon/antigone instead of from everybody else BUT argone and antigone, man I'm dumb). Thanks for taking the time to respond.DeadAirRT wrote: ↑Thu, 18. Jun 20, 08:51Which version are you running? They shouldn't be ignoring blacklist, trade rules, or faction restriction checklist so something definitely sounds off.Cedric_FP wrote: ↑Thu, 18. Jun 20, 03:37Is there any way I can restrict my tatertraders to only trade with a certain faction?
I have tried a blacklist, selecting the faction checklist boxes, and also trying to only limit to "included sectors" but they seem to ignore it. I suspect it is me that is doing something wrong, so any guidance on this would be appreciated!
On the tatertrader setup for default behavior, in order for me to restrict trade without using a global blacklist, I would tick the "enable trade bans" box and then tick every box I *don't* want my trader to trade with, right?
Do I need to tick 'enable trade bans' if I want to do the included sector method of restricting?
Thanks for your time, Deadair!
You can use included or excluded sector by just adding them
As long as you don't check "free trade" they will abide by trade bans and blacklistings
edit - no problem, glad to help
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
Hi,
I used Tater Trader with an ARG Drill Vanguard to have it sell my excess Nividium from my HQ. This worked great for a while, but after a couple of successful trades this ship CLEARED its TaterTrader task and was re-assigned as a normal Mining ship.
Basically, this TaterTrader was assigned to the Alpha Defence group at the HQ, buying Nividium from the station and selling it to various Trading Stations within five jumps. Now it's assigned its self to Delta Group and is going to mine.
Is this some thing you can investigate? I run multiple mods, so I don't know if a save would be of any use.
Scoob.
I used Tater Trader with an ARG Drill Vanguard to have it sell my excess Nividium from my HQ. This worked great for a while, but after a couple of successful trades this ship CLEARED its TaterTrader task and was re-assigned as a normal Mining ship.
Basically, this TaterTrader was assigned to the Alpha Defence group at the HQ, buying Nividium from the station and selling it to various Trading Stations within five jumps. Now it's assigned its self to Delta Group and is going to mine.
Is this some thing you can investigate? I run multiple mods, so I don't know if a save would be of any use.
Scoob.
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
If you don't assign it to the station it should be fine.Scoob wrote: ↑Mon, 22. Jun 20, 03:35Hi,
I used Tater Trader with an ARG Drill Vanguard to have it sell my excess Nividium from my HQ. This worked great for a while, but after a couple of successful trades this ship CLEARED its TaterTrader task and was re-assigned as a normal Mining ship.
Basically, this TaterTrader was assigned to the Alpha Defence group at the HQ, buying Nividium from the station and selling it to various Trading Stations within five jumps. Now it's assigned its self to Delta Group and is going to mine.
Is this some thing you can investigate? I run multiple mods, so I don't know if a save would be of any use.
Scoob.
Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative
Thanks for replying, I appreciate it.
Do you mean don't assign it as a station trader? I just ordered the ship from the Wharf and, once built, set it up as a Tater Trader trading only Nividium. I thought assigning it to the station was essential for this to work correctly? Perhaps I'm missing some nuance of the configuration? I know it worked perfectly for at least two runs, then reset. The second time it didn't even make a single sale, it idled for a bit, then re-assigned its self to the Mining group.
I will play around some more this evening.
If at all possible, could you perhaps screen-shot the exact options I should be using for this role? Basically, selling Nividium from the HQ.
Scoob.