[MOD] Auto Trader (v1.1 Dec 15 2015)

The place to discuss scripting and game modifications for X Rebirth.

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

Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp » Wed, 29. Jul 15, 09:03

Traders with universal cargo so basically, other XL traders.

tefara
Posts: 39
Joined: Wed, 12. Nov 14, 05:22

Post by tefara » Fri, 31. Jul 15, 04:02

Hello, i remaked your auto trade mod with some feature:

- Allow all capital ship except builder
- remove level up system , range of trade basic on capitan skill
- Allow chose range of trade/mine depend on the skill point of capitan, total three primary skills point <10 => sector trader, >10 and <13 => cluster, >13 is galaxy.
- Provide training system for capitan who is doing auto trade, 1h30min per skill point
- Allow list of trade wares, basic on cargo type example: food suply, energy, water only .....
- Allow chose a particular type of mining resource (your mod they only keep mining crystal)
Can i upload it to nexmods?

tefara
Posts: 39
Joined: Wed, 12. Nov 14, 05:22

Post by tefara » Fri, 31. Jul 15, 05:18

I forgot that i has done the status of trader and miner so that we can see what is it doing such ac, searching for trade, trade with xxx station, searching for resource ect...

Make the trader become lifeful by plying to destination, so that you can see you trader jump and plying around ( the orgin mod trader never move and command status is always none none so it look deadly and i dont know what is it doing there )

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13309
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Fri, 31. Jul 15, 11:45

tefara wrote:Hello, i remaked your auto trade mod ....*snip*......
Can i upload it to nexmods?
Would appreciate if you upload it somewhere else.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

plynak
Posts: 3010
Joined: Fri, 12. Dec 03, 08:53
x3tc

Post by plynak » Thu, 13. Aug 15, 19:13

Hello again, I managed to capture some Titurels and the MOD still does not work. Hitting Shift+A twice does not trigger anything :-(
Intel Core i5 4590, 2 x 8GB DDR3 1600, MSI GTX 1060 Armor, Asus H97 Pro, Asus Xonar DG, Crucial MX100 128GB SSD + 1TB WD Caviar Blue, Seasonic S12G 550W, Corsair 550D, 22'' LG

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13309
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Fri, 14. Aug 15, 14:19

Hi plynak,

Please try to select the ship from the property menu and then trigger the autopilot. If this still not works then please send the zipped saved game to me.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

plynak
Posts: 3010
Joined: Fri, 12. Dec 03, 08:53
x3tc

Post by plynak » Fri, 14. Aug 15, 17:42

Hello Euclid,

please find the savegame here

http://ulozto.cz/xjdjx6pE/save-001-xml
Intel Core i5 4590, 2 x 8GB DDR3 1600, MSI GTX 1060 Armor, Asus H97 Pro, Asus Xonar DG, Crucial MX100 128GB SSD + 1TB WD Caviar Blue, Seasonic S12G 550W, Corsair 550D, 22'' LG

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13309
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Fri, 14. Aug 15, 20:54

Please zip it and email it to me. The link you've provided requirers a registration & login which I do not wish.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

19850216
Posts: 1
Joined: Wed, 19. Aug 15, 13:46

Post by 19850216 » Wed, 19. Aug 15, 14:04

ok...its strange

i add a scaldis to my squad

and i double click shift+a ...nothing happened

but when i remove it from my squad

and i cdouble click shift+a ...it show up...auto trade

and its working...

scaldis can buy something and sell it

but i dont know what it is

cant see it

then

i add some mod...it fail and stuck

jazzdd
Posts: 11
Joined: Wed, 27. Aug 08, 17:20

Post by jazzdd » Thu, 3. Sep 15, 16:07

Hi
I have XR 3.6 and found your AutoTrader extension today.

I got it working, but the captains command always shows "None - Jumping".
Is this normal?

And it puts a * char behind the name of the captain.
Normal?

It did one trade, now it sits there. The inital logbook entry was with 0 profit. When i try the show profit command it doesn't write a new entry in the logbook. I think its not working properly with 3.6?

Angelbite
Posts: 1
Joined: Sun, 18. Jun 06, 05:03
x3

Post by Angelbite » Fri, 4. Sep 15, 02:22

jazzdd wrote:Hi
I have XR 3.6 and found your AutoTrader extension today.

I got it working, but the captains command always shows "None - Jumping".
Is this normal?

And it puts a * char behind the name of the captain.
Normal?

It did one trade, now it sits there. The inital logbook entry was with 0 profit. When i try the show profit command it doesn't write a new entry in the logbook. I think its not working properly with 3.6?

AutoTrader works fine with 3.6.

The trader have allways None-Command and when he has found a trade, he initialze the jump and jumps directly to the station.
He dont need any fuel and Cargo URV.

The first Trade seems to be allways with 0 Profit and for the next trade it will take a little time.

jazzdd
Posts: 11
Joined: Wed, 27. Aug 08, 17:20

Post by jazzdd » Mon, 14. Sep 15, 21:33

I have another issue with that mod. I used a station trader for another purpose and added the ship to my squad, after that I tried to restart the station trader. But this doesn't work.

The command displayed is Standing by, I try to activate the station trader but the only option I get is to show profit. But the trader is not activated it still shows Standing by and not None as usual.

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13309
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Tue, 15. Sep 15, 22:44

Yes, if you assign an AutoTrader to a station it will cancel the script. To make it an AutoTrader again, remove it from the station assigned to first. Then start the AutoTrader as usual.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

cheetahhawk
Posts: 28
Joined: Sun, 8. Feb 09, 06:36
xrvr

auto trader

Post by cheetahhawk » Fri, 23. Oct 15, 01:57

i installed the human resources mod as well as the autotrader there was a selection to stop autotrader i clicked it once before and i have not figured out how to turn the autotrader back on. do you have a toggle for it?
btw i even tried uninstalling and reinstalling the mod, since then i have not been able to get autotrader to start working again.

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13309
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Fri, 23. Oct 15, 02:06

Hi cheetahawk,

I'm not familar with the Human Resource mod and cannot help there. Maybe you should ask the author of HR.

However, to stop any Autotrader just add him to your squad. This will stop the script, and how to (re)start the Autotrader has been explained in the OP here and has not changed since.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Vim Razz
Posts: 1842
Joined: Tue, 2. Nov 10, 02:20
x4

Post by Vim Razz » Fri, 23. Oct 15, 06:02

IIRC, the Human Resources compatibility link to AutoTrader is in New Orders -> AutoTrader, or if multiple trading ship mods are activated it will be in New Orders -> Extensions -> AutoTrader. The button will link to the autotrade startup or resume autotrading conversations as appropriate.

The AutoTrader entry in the mod compatibility section in HR's main thread has more information. You can bother me over there if the buttons dont seem to be working.

Ezarkal
Posts: 1610
Joined: Wed, 22. Apr 15, 02:27
x4

Post by Ezarkal » Tue, 27. Oct 15, 17:44

I don't know if I'm asking a recurring question here, but despite the risk of dragging the anger of the forums over my head (:D), I have to ask:

-Are there any plans to extend the mod to ships without universal storage? (I'm mostly thinking about the auto-miner function when asking this. I like those Onils)
Humans are deuterostomes, which means that when they develop in the womb the first opening they develop is the anus.
This means that at one point you were nothing but an asshole.

Some people never develop beyond this stage.

cheetahhawk
Posts: 28
Joined: Sun, 8. Feb 09, 06:36
xrvr

Post by cheetahhawk » Tue, 27. Oct 15, 21:55

i have it fixed now thanks, in fact some of the ships get bugged some times and get stuck in their tracks, what i have had to do was change captains out, by telling the new captain to work there and replace the old captain. sometimes though just docking with the ship will make it start moving again.

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13309
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Wed, 28. Oct 15, 05:03

Hi Ezarkal,

Feel free to modify it for your own needs. In the md folder the file EuclidsAutoTraderAlt.xml has in line 10 the condition sequence

Code: Select all

<do_if value="(event.object.owner == faction.player) and (event.object.type == entitytype.commander) and event.object.ship.cargo.{ware.energycells}.max and event.object.ship.cargo.{ware.ore}.max and event.object.ship.cargo.{ware.bofu}.max and event.object.ship.cargo.{ware.water}.max">
of which the last four are only met by a ship with univesal cargo. If you delete those then any ship can be made AutoTrader. However, a word of caution: If you make a destroyer AutoTrader it will only sit about an do nothing ;-)

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader » Wed, 28. Oct 15, 09:56

or if you change it to this it will be restricted to Ships with any Cargo Bay:

Code: Select all

<do_if value="(event.object.owner == faction.player) and (event.object.type == entitytype.commander) and ( event.object.ship.cargo.{ware.energycells}.max or event.object.ship.cargo.{ware.ore}.max or event.object.ship.cargo.{ware.bofu}.max or event.object.ship.cargo.{ware.water}.max )">
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

Return to “X Rebirth - Scripts and Modding”