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

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

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

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

Post by euclid »

zarklon wrote:Couldn't get the chat dialogue open when hitting auto pilot twice with shift A ..
Made sure they were either in or out of my squad .. just doesnt work with latest version .. something .53 ? .....
Works fine for me. Remember the AutoTrader works only on ships with universal cargo. If this is not the problem then follow the steps Mylo-s posted above. IF this still not works then there might be a conflict with another mod. If you email the zipped saved game to me I'm happy to check it.

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
zarklon
Posts: 4
Joined: Sat, 4. Apr 15, 23:05

Post by zarklon »

Well my problem was getting a custom dialogue at all.. this was before any mods were applied. I think I just had your mod and the NPC exp gain mods active at the time.

I was using it on a fedhelm and a titurel . tried to double tap Auto Pilot while they were either in or out of my squad.

Is there a step I'm missing? I mean .. I read the instructions and Ithought at least a fedhelm was a universal cargo ship. What type of ships does this work on ?

If It works with Auto Emergency Jump mod then I'm gonna switch to this one. But I just cant get it to initiate any kind of way :(
Telemachos
Posts: 103
Joined: Sat, 7. Mar 09, 17:36
x4

Post by Telemachos »

Great to see this for Rebirth!
bm01
Posts: 421
Joined: Wed, 22. Jul 09, 22:31
x4

Post by bm01 »

zarklon wrote:If It works with Auto Emergency Jump mod then I'm gonna switch to this one. But I just cant get it to initiate any kind of way :(
Probably doesn't work, AutoTrader seems to replace vanilla scripts, and you could say that mods that replace vanilla scripts are by design made to be incompatible with mods that needs to add stuff to these scripts.

There actually are ways to avoid that incompatibility.
For example by calling AutoTrader scripts on top of the vanilla scripts. The thing is if he does that, he takes the risk of making AutoTrader incompatible with mods that bypasses vanilla scripts... So yeah. Also it would make uninstallation more complicated (and basically would have do what I do with AEJ, kill job ships and set player ships to "stop" or "follow").
The second option would be to add some code to AutoTrader's scripts. That code can be found here http://forum.egosoft.com/viewtopic.php?t=371733 , under "compatibility". That code adds some "blocking actions" though.

Anyway, AEJ will still work even if nothing is done, but not for your auto traders / miners. NPC ships will be fine, all your combat ships too, station miners / traders too.
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13487
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

zarklon wrote:
......
I was using it on a fedhelm and a titurel . tried to double tap Auto Pilot while they were either in or out of my squad.
....
Unless the Devs have changed it the Fedhel has bulk and not universal cargo. However, the Titurel should work. Do not double tap the auto pilot. Instead select the titurel from your property map (so the line is high-lighted) and then use shift-A to trigger the auto pilot. This should trigger the AutoTrader menu.

And bm01 is right: All my mods using own files rather than XML editing on vanilla files to ensure compatibility with updates/patches.

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
Ranbo
Posts: 6
Joined: Sun, 24. Nov 13, 20:44

Post by Ranbo »

Hi guys, is there an option for your ships to go back to do cluster trading from being a galaxy trader?

Also when and if i want to remove the mod from the steam workshop how comes the captains of the trade ships still have stars next to the names?

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

Post by euclid »

Hi Ranbo :-)

And no, once they have tasted the freedom of glalaxy trading there is no way they ever will be restricted again.

I'm not sure about steam workshop because all my mod are on the Nexus. However, name tags and accounts remain just in case you want to use the mod again.

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
Ranbo
Posts: 6
Joined: Sun, 24. Nov 13, 20:44

Post by Ranbo »

Ah got ya, thanks again.
BlitzIn4
Posts: 21
Joined: Mon, 1. Feb 10, 02:25
x3tc

Post by BlitzIn4 »

euclid wrote:
zarklon wrote:Couldn't get the chat dialogue open when hitting auto pilot twice with shift A ..
Made sure they were either in or out of my squad .. just doesnt work with latest version .. something .53 ? .....
Works fine for me. Remember the AutoTrader works only on ships with universal cargo. If this is not the problem then follow the steps Mylo-s posted above. IF this still not works then there might be a conflict with another mod. If you email the zipped saved game to me I'm happy to check it.

Cheers Euclid
You can't setup auto trader on every trading ship? That's seems odd.
BlitzIn4
Posts: 21
Joined: Mon, 1. Feb 10, 02:25
x3tc

Post by BlitzIn4 »

Is that, you can only use autotrader with trade ships that can transport all 4 types of wares, was that by design or by limitations from EGOSOFT?
helgard
Posts: 43
Joined: Sun, 2. Mar 14, 11:30
x4

Post by helgard »

Very nice mod. :)
Just curious, is there a way to add line in a script so when you assign autotrade to ship, it's name changes to captain's(trader) name? This is only thing that bugs me, that i need to check all ships in details to see which captain works where..
Yet, it is not a big problem, as i could just write names in manually.. :roll:
helgard
Posts: 43
Joined: Sun, 2. Mar 14, 11:30
x4

Post by helgard »

BlitzIn4 wrote:
euclid wrote:
zarklon wrote:Couldn't get the chat dialogue open when hitting auto pilot twice with shift A ..
Made sure they were either in or out of my squad .. just doesnt work with latest version .. something .53 ? .....
Works fine for me. Remember the AutoTrader works only on ships with universal cargo. If this is not the problem then follow the steps Mylo-s posted above. IF this still not works then there might be a conflict with another mod. If you email the zipped saved game to me I'm happy to check it.

Cheers Euclid
You can't setup auto trader on every trading ship? That's seems odd.
Besides, i have not had yet situation where my autotraders would need to emergency jump. But i have seen my Tanaris emergency jump a couple of times, when both mods was active.
Also, to start autotrader, how it works for me:

I need to pick from map view or from property view(does not work in visual range from normal view), click shift+a 2 times, exit to normal look and conversation pops up.
normntaz
Posts: 52
Joined: Mon, 21. Nov 05, 00:04
x4

Post by normntaz »

Edit: I got Helgard's method to work once I removed the ship from my squad.
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13487
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

New version 1.0 uploaded: redundant 'buyer' in <update_trade> removed.

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
w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans »

Hi Euclid,

debuglog said to tell you that you missed a couple of very minor dots in the latest update:

Code: Select all

[=ERROR=] extensions\AutoTrader\aiscripts\autominer.xml(119): Error while parsing expression: Operator expected
* Input: '%1\n Sir, I do not have enough miner drones, 10 of each are required.'[this.ship.knownname]
* Pos:                                                                          ^

[=ERROR=] extensions\AutoTrader\aiscripts\stationminer.xml(118): Error while parsing expression: Operator expected
* Input: '%1\n Sir, I do not have enough miner drones, 10 of each are required.'[this.ship.knownname]
* Pos:                                                                          ^
User avatar
alexalsp
Posts: 1896
Joined: Fri, 18. Jul 14, 05:28
x4

Post by alexalsp »

I guess , missed the point.
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13487
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

Uhh crap, used the "old" aiscripts, should not affect anything else. Will fix this in a future update. Thanks for the feedback :-)

Cheers Euclid

Edit: fixed that in the current upload without new version number.E.
"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 »

Hello, I was about to try your MOD. I installed Scaldis cargo fix mod, added my Scaldis to my squad, selected it, and hit Shift+A like crazy and nothing happened. Any idea what I did wrong?
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
Mylo-s
Posts: 71
Joined: Thu, 15. May 14, 07:08
xr

Post by Mylo-s »

It does not work with Scaldis cargo fix mod.
plynak
Posts: 3010
Joined: Fri, 12. Dec 03, 08:53
x3tc

Post by plynak »

Thanks. What ship can it be used with then? And I mean a buyable ship.
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

Return to “X Rebirth - Scripts and Modding”