[WIP][Mod]TaterTrader v4- An Autotrade Alternative

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

elwetaidy
Posts: 1
Joined: Sat, 20. Jul 19, 10:07

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by elwetaidy »

This mod is great when trading and makes profit .. but what is the logic when its trading with my own stations how does it think and also when marking the station trader?

I can see that a stations in range sells cheap but i cant supply my own station he leave me and go make normal trading ... And if i want it to buy and sell to my station it does not take the station price into mind he go buy higher even if there is a cheaper price a little far
Phiolin
Posts: 158
Joined: Wed, 26. May 04, 08:49
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by Phiolin »

I think to supply your own stations you'd be better looking at the mules and warehouses mod: https://www.nexusmods.com/x4foundations/mods/416

TaterTrader is an AutoTrade alternative, and Autotraders were never really meant to be used to supply your own stations. While you can mess with the configuration options to try and make it do what you want, you should not expect that it'll magically just work, because it is not really what this mod is intended to be used for.
DeadAirRT
Posts: 1124
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by DeadAirRT »

elwetaidy wrote: Sun, 26. Apr 20, 17:41 This mod is great when trading and makes profit .. but what is the logic when its trading with my own stations how does it think and also when marking the station trader?

I can see that a stations in range sells cheap but i cant supply my own station he leave me and go make normal trading ... And if i want it to buy and sell to my station it does not take the station price into mind he go buy higher even if there is a cheaper price a little far
It depends on your settings but in general, it only cares about maximizing profit (highest result of price difference * number of units moved).

If you have check distance on, it factors distance into the trade.

If you have fast trade, it doesn't look at as many trades.

It's hard to definitely answer without the settings of trader, station, blacklists, and at least a trade overview of the station he traded at and the one you thought he should trade at.
chucktown079
Posts: 6
Joined: Fri, 10. Sep 10, 15:44
x3ap

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by chucktown079 »

Is there any way to make sure your pilots use max gate distance? IIRC before split, I would set max gate distance and as they leveled, the value would go up on its own. For example, I started off with a max distance of 8 so I set it to 8 then they would level up and have a max distance of 12 but it would automatically set it to 12. Right now, I have to go through each pilot and manually change it from time to time. With 30 traders running around, its a bit tedious.
DeadAirRT
Posts: 1124
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by DeadAirRT »

chucktown079 wrote: Mon, 27. Apr 20, 14:08 Is there any way to make sure your pilots use max gate distance? IIRC before split, I would set max gate distance and as they leveled, the value would go up on its own. For example, I started off with a max distance of 8 so I set it to 8 then they would level up and have a max distance of 12 but it would automatically set it to 12. Right now, I have to go through each pilot and manually change it from time to time. With 30 traders running around, its a bit tedious.
There is a way but it has more draw-backs than positives imo. You could always use civilian fleets mod and only have to update the fleet leader (all the rest will be set to their highest level as long as it doesn't exceed fleet leader). That only solves the issue if you use multiple traders set up in the same areas though.
User avatar
bbn
Posts: 88
Joined: Mon, 31. Jan 11, 18:30
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by bbn »

DeadAirRT wrote: Mon, 27. Apr 20, 16:43 (...) use multiple traders set up in the same areas though.
:?

That got me thinking... I treat TaterTraders as "Fire and forget" (only adjust range with Civilians Fleet sometimes exactly as you pointed up above). Is it better to set up TaterTraders to deal with specific wares or group of wares in a limited areas? Right now I have a fleet of around 30 TaterTraders which trade in everything and each of them bring from 40k to 200k Cr per run...
I make 3d models. See my stuff here: https://linktr.ee/vertexrage
DeadAirRT
Posts: 1124
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by DeadAirRT »

bbn wrote: Mon, 27. Apr 20, 22:32
DeadAirRT wrote: Mon, 27. Apr 20, 16:43 (...) use multiple traders set up in the same areas though.
:?

That got me thinking... I treat TaterTraders as "Fire and forget" (only adjust range with Civilians Fleet sometimes exactly as you pointed up above). Is it better to set up TaterTraders to deal with specific wares or group of wares in a limited areas? Right now I have a fleet of around 30 TaterTraders which trade in everything and each of them bring from 40k to 200k Cr per run...
You can get some extra efficiency out of them by having each one focused. That is what I always did until recently. TBH it's not really worth the hassle just to save usually minimal time on the finding trade portion.
User avatar
bbn
Posts: 88
Joined: Mon, 31. Jan 11, 18:30
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by bbn »

DeadAirRT wrote: Tue, 28. Apr 20, 01:29 You can get some extra efficiency out of them by having each one focused. That is what I always did until recently. TBH it's not really worth the hassle just to save usually minimal time on the finding trade portion.
Ah, cool. Thanks for the answer. So I'll leave them as they are :)
I make 3d models. See my stuff here: https://linktr.ee/vertexrage
DeadAirRT
Posts: 1124
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by DeadAirRT »

v1.04

Fixed huge question mark while ships are searching for trade, changed player visible items to t-file references, added t-files that need translating.
Phiolin
Posts: 158
Joined: Wed, 26. May 04, 08:49
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by Phiolin »

Submitted a pull request for the german translation.
DeadAirRT
Posts: 1124
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by DeadAirRT »

Phiolin wrote: Tue, 28. Apr 20, 09:23 Submitted a pull request for the german translation.
Thank you!
DeadAirRT
Posts: 1124
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by DeadAirRT »

TaterTrader now has french, german, and russian translations.
User avatar
alexalsp
Posts: 1896
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by alexalsp »

Spelling correction. The rest of the text must be checked directly in the game. I suppose that the translation of the text will be adjusted after the tests of the mod.

Also in some places simplified translation. Too long product names may not fit in the form field.

I propose to the author of the Russian translation to check this moment.

Code: Select all


<?xml version="1.0" encoding="UTF-8" ?>
<language id="07">

<page id="3282837" title="DeadAir Tatertrader T Files" descr="names used in DeadAir Tatertrader mod" voice="no">
 <t id="100">Параметры</t>
 <t id="101">База торговца</t>
 <t id="102">Прописка</t>
 <t id="103">Проверить расстояние</t>
 <t id="104">Штраф за прыжок %</t>
 <t id="105">Владелец станции режим покупателя</t>
 <t id="106">Владелец станции режим продавца</t>
 <t id="107">Свободная торговля</t>
 <t id="108">Быстрая торговля</t>
 <t id="109">Торговая станция</t>
 <t id="110">Станция контрабандиста</t>
 <t id="111">Копировать пресеты</t>
 <t id="112">Все товары</t>
 <t id="113">Легальные</t>
 <t id="114">Нелегальные</t>
 <t id="115">Для строительства кораблей</t>
 <t id="116">Для строительства станции</t>
 <t id="117">Высокие Технологии</t>
 <t id="118">Переработанные ресурсы</t>
 <t id="119">Продукты питания</t>
 <t id="120">Исключенный сектор</t>
 <t id="121">Включенный сектор</t>
 <t id="122">Включить ограничение на торговлю</t>
 <t id="123">Скорость сканирования</t>
 <t id="200">Сообщения в журнале (полная строка в комментариях над записью)</t>
<!--'Selling '+$Gromount+' '+$GrofferBuy.ware+' from CargoHold at '+$GrofferBuy.unitprice/100+' I should earn '+$Gromount*$GrofferBuy.unitprice/100+' in profit.'-->
 <t id="201">Продажа %1 %2 от груза на %3. Я должен заработать %4 в прибыли.</t>
<!--'Queuing up Supply Run for '+$Gromount+' '+$GrofferSell.ware+' Buying at '+$itemcostsell+' to supply '+$GrofferBuy.buyer.knownname-->
 <t id="202">Очередь на поставку %1 %2. Покупать %4 по %3.</t>
<!--'Queuing up Station Ware Sale for '+$Gromount+' '+$GrofferSell.ware+' from '+$GrofferSell.seller.knownname+' to sell at '+$itemcostbuy+' I should earn '+$Gromount*$itemcostbuy+' in profit.'-->
 <t id="203">Очередь продажи товаров станции для %1 %2 из %3 для продажи по %4. Я должен заработать %5 прибыли.</t>
<!--'Queuing up Cargo Transport Run for '+$Gromount+' '+$GrofferSell.ware+' from '+$GrofferSell.seller.knownname+' to '+$GrofferBuy.buyer.knownname-->
 <t id="204">Очередь на грузовые перевозки для %1 %2 с %3 до %4.</t>
<!--'Queuing up Trade order for '+$Gromount+' '+$GrofferSell.ware+' Buying at '+$itemcostsell+' to sell at '+$itemcostbuy+' I should earn '+$Gromount*($itemcostbuy-$itemcostsell)+' in profit.'-->
 <t id="205">Очередь торгового ордера для %1 %2. Покупка по %3 для продажи по %4. Я должен заработать %5 прибыли.</t>
<!--'Station Trader: Supplying '+$Gromount+' '+$GrofferSell.ware+' from '+$GrofferSell.seller.knownname+' to '+$GrofferBuy.buyer.knownname-->
 <t id="207">Торговец станции: Поставка %1 %2 из %3 в %4.</t>
<!--'Station Trader: Selling '+$Gromount+' '+$GrofferSell.ware+' at the price of '+$itemcostbuy+' Expected Profit is '+$Gromount*$itemcostbuy-->
 <t id="208">Торговец станции: Продажа %1 %2 по цене %3. Ожидаемая прибыль %4.</t>
<!--'Station Trader: Buying '+$Gromount+' '+$GrofferSell.ware+' for '+$GrofferBuy.buyer.knownname+' at the price of '+$itemcostbuy+' Expected Cost is '+$Gromount*$itemcostbuy-->
 <t id="209">Торговец станции: Покупка %1 %2 для %3 по цене %4. Ожидаемая стоимость %5.</t>
<!--'Station Trader: Fetching '+$Gromount+' '+$GrofferSell.ware+' for '+$GrofferBuy.buyer.knownname+' from '+$GrofferSell.seller.knownname-->
 <t id="210">Торговец станции: Поиск %1 %2 для %3 из %4.</t>
</page>
</language>

Pichu0102
Posts: 31
Joined: Sun, 6. Jul 14, 10:10
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by Pichu0102 »

I think I somehow broke it.

Image
MiFoludek
Posts: 65
Joined: Wed, 18. May 11, 21:06
x3tc

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by MiFoludek »

Hi,

Is there a way to assing TaterTrader to very early build storage?
I can not set station as the homebase for ship
(Very early -> The station without tier and dock bay.)

BR
User avatar
bbn
Posts: 88
Joined: Mon, 31. Jan 11, 18:30
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by bbn »

MiFoludek wrote: Sat, 2. May 20, 22:34 Hi,

Is there a way to assing TaterTrader to very early build storage?
I can not set station as the homebase for ship
(Very early -> The station without tier and dock bay.)

BR
Yes, it's not perfect but works automatically. I have a few fleets helping in station construction. Set home as a sector you are building in, player sell modifier to 200. Also set max distance to sell to minimum and to buy maximum (or whatever is reasonable). Plus limit wares to station building. I find the default list limited and I add a few things there like field coils, advanced electronics and turret components... Works very well with civilian fleets mod as you need to set up 1 TaterTrader and assign few other ships as a traders for it.
I make 3d models. See my stuff here: https://linktr.ee/vertexrage
MiFoludek
Posts: 65
Joined: Wed, 18. May 11, 21:06
x3tc

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by MiFoludek »

bbn wrote: Sun, 3. May 20, 17:27
MiFoludek wrote: Sat, 2. May 20, 22:34 Hi,

Is there a way to assing TaterTrader to very early build storage?
I can not set station as the homebase for ship
(Very early -> The station without tier and dock bay.)

BR
Yes, it's not perfect but works automatically. I have a few fleets helping in station construction. Set home as a sector you are building in, player sell modifier to 200. Also set max distance to sell to minimum and to buy maximum (or whatever is reasonable). Plus limit wares to station building. I find the default list limited and I add a few things there like field coils, advanced electronics and turret components... Works very well with civilian fleets mod as you need to set up 1 TaterTrader and assign few other ships as a traders for it.
thank you
It is working very nice
Phiolin
Posts: 158
Joined: Wed, 26. May 04, 08:49
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by Phiolin »

My TaterTraders often ignore Vanilla Blacklists, especially when there are individual sectors added to the Blacklist. Something like "Ignore all enemy sectors" seems to work, but if I for example add "Argon Prime" as an additional sector on top of it, I still see TaterTraders flying right through or doing business in that sector.
DeadAirRT
Posts: 1124
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by DeadAirRT »

Phiolin wrote: Wed, 6. May 20, 14:39 My TaterTraders often ignore Vanilla Blacklists, especially when there are individual sectors added to the Blacklist. Something like "Ignore all enemy sectors" seems to work, but if I for example add "Argon Prime" as an additional sector on top of it, I still see TaterTraders flying right through or doing business in that sector.
Did you add argon prime in both activities and travel by chance?
Phiolin
Posts: 158
Joined: Wed, 26. May 04, 08:49
x4

Re: [WIP][Mod]TaterTrader v4- An Autotrade Alternative

Post by Phiolin »

Yes, in both blacklists. That should work, shouldn’t it? :)

Return to “X4: Foundations - Scripts and Modding”