[SCRIPT] Manual Trade Extension v2.3.1 [2010-10-02]

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Grimshad
Posts: 102
Joined: Wed, 6. May 09, 06:31
x3ap

Post by Grimshad » Mon, 3. Aug 09, 09:19

Nope, I have absolutely nothing in those sectors, and I none of my traders are using jumpdrives at this time, so they can't be refueling. I've lost so many ships from them just going into enemy territory or into sectors i purposely don't have satellites in so they stay out. But they go there and buy/sell anyway

Sorry, I'm new to the game and have a off topic question too.

Complex Kits state in the game manual and in their in game description that they hook 2 OR MORE factories together. Yet I can only hook 2 factories per complex kit, and it doesn't connect to the first complex kit. so where is this "MORE" coming from? am I missing something?

Also, I keep seeing mods to increase "hub" storage, where is this storage? i would love to have some off ship storage capability?

ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh » Mon, 3. Aug 09, 15:00

Grimshad wrote:Nope, I have absolutely nothing in those sectors, and I none of my traders are using jumpdrives at this time, so they can't be refueling. I've lost so many ships from them just going into enemy territory or into sectors i purposely don't have satellites in so they stay out. But they go there and buy/sell anyway
OK, I'll look into this. It uses the same script as the stock bestbuy/bestsell commands to select factories so it's surprising, but I'll do some testing and fiddling and see what crack is.
Grimshad wrote:Complex Kits state in the game manual and in their in game description that they hook 2 OR MORE factories together. Yet I can only hook 2 factories per complex kit, and it doesn't connect to the first complex kit. so where is this "MORE" coming from? am I missing something?
Only ever deploy factories two at a time. Create two seperate complexes, your main complex and the two new stations you are adding. Make sure you position the complex hub of the new temporary complex near the main complex hub. Then use a third complex hub to connect the two other hubs together. Hope that makes sense.

Grimshad wrote:Also, I keep seeing mods to increase "hub" storage, where is this storage? i would love to have some off ship storage capability?
The 'hub' is a plot station. I dunno the specifics because I haven't got that far in the plot.

Grimshad
Posts: 102
Joined: Wed, 6. May 09, 06:31
x3ap

Post by Grimshad » Mon, 3. Aug 09, 16:55

1. Thanks for looking into it.

2. I found out before you applied that you can use the complex kit to connect the first hub to another factory, so basically its 1 kit per factory. I understand the way you explained but i'de rather not have more then one hub.

3. Oh, I'm playing custom game, so I don't know anything about the plot, i hope ill eventually still be able to stash goods somewhere solid.

P.S. I installed a mod that was not in spk format, to uninstall it tells me to run the uninstall.trade.overview.xml. How exactly do you "run" an xml file? I thought it may have meant run it in game, so i found out how to get the script editor up, but i couldnt figure out how to run the script. Any help there?

ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh » Tue, 4. Aug 09, 23:09

ThisIsHarsh wrote:
Grimshad wrote:Nope, I have absolutely nothing in those sectors, and I none of my traders are using jumpdrives at this time, so they can't be refueling. I've lost so many ships from them just going into enemy territory or into sectors i purposely don't have satellites in so they stay out. But they go there and buy/sell anyway
OK, I'll look into this. It uses the same script as the stock bestbuy/bestsell commands to select factories so it's surprising, but I'll do some testing and fiddling and see what crack is.
Think I've traced this problem. There is actually a bug in the stock !lib.get.bestbuy and !lib.get.bestsell scripts. I've worked around the problem for this script, but no telling how many other scripts are affected. Having some host trouble so can't upload the fix just yet.

Grimshad
Posts: 102
Joined: Wed, 6. May 09, 06:31
x3ap

Post by Grimshad » Wed, 5. Aug 09, 06:11

Great stuff! Hope to get that working soon :)

ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh » Thu, 6. Aug 09, 21:08

Update v2.1.1

:arrow: Bugfix version. Stock !lib.get.bestbuy/sell scripts are bugged to allow for best buying/selling in sectors without requiring player property. This could affect many other trade scripts...

User avatar
ThomasAH
Posts: 147
Joined: Wed, 3. Sep 08, 10:46
x4

Post by ThomasAH » Fri, 7. Aug 09, 05:03

ThisIsHarsh wrote:Update v2.1.1
I get a "403 Forbidden" from your server:
You don't have permission to access /ManualTradeExtension-V2.1.1-06.08.2009.spk

ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh » Fri, 7. Aug 09, 16:16

ThomasAH wrote:
ThisIsHarsh wrote:Update v2.1.1
I get a "403 Forbidden" from your server:
You don't have permission to access /ManualTradeExtension-V2.1.1-06.08.2009.spk
Grr, OK fixed. Thanks for pointing it out.

zeddius
Posts: 333
Joined: Tue, 29. Nov 05, 21:02
x3tc

Post by zeddius » Fri, 7. Aug 09, 19:06

the download has the file extention .man

Says it is supposed to be .spk format....Anyways, how do i install this script?

User avatar
ThomasAH
Posts: 147
Joined: Wed, 3. Sep 08, 10:46
x4

Post by ThomasAH » Fri, 7. Aug 09, 19:10

zeddius wrote:the download has the file extention .man

Says it is supposed to be .spk format....Anyways, how do i install this script?
For me it is .spk (just used 'copy link location' in firefox).

If the size is 33322 bytes it might have been downloaded fine anyway and you can just rename it to something.spk

zeddius
Posts: 333
Joined: Tue, 29. Nov 05, 21:02
x3tc

Post by zeddius » Fri, 7. Aug 09, 20:03

ThomasAH wrote:
zeddius wrote:the download has the file extention .man

Says it is supposed to be .spk format....Anyways, how do i install this script?
For me it is .spk (just used 'copy link location' in firefox).

If the size is 33322 bytes it might have been downloaded fine anyway and you can just rename it to something.spk
Tried renaming it and installed ok. Will check ingame. TY

kelmen
Posts: 308
Joined: Tue, 9. Dec 08, 15:11

Post by kelmen » Sun, 27. Sep 09, 07:09

I loved this script.

I got a networker ship which i use to deploy adv state and lasertower.
prior this script, i have to use Ware Hunter everytime i wanna buy those things. now, its automate by this script.

Pain Killer, my vote 9/10.

magic_ghost
Posts: 74
Joined: Tue, 11. Nov 03, 17:25
x3tc

Post by magic_ghost » Sun, 11. Oct 09, 13:01

Hello,

I have tried using this script, but maybe i'm not doing it properly.

So I set the product as Poltergeist missile and buy until full to disabled.
The ship has a jumpdrive, energy cells, and the required software installed.
The ship is in Omicron Lyrae.
Autojump is enabled.

However when I activate the command, all it does is dock at the Equipment Dock. Should it not jump to the nearest station with poltergeist missiles and buy them?
There is no victory without sacrifice.

kelmen
Posts: 308
Joined: Tue, 9. Dec 08, 15:11

Post by kelmen » Sun, 11. Oct 09, 13:15

you need to have information access to those sector/station which has that stuffs selling them. else the pilot has no idea where to get those things.

magic_ghost
Posts: 74
Joined: Tue, 11. Nov 03, 17:25
x3tc

Post by magic_ghost » Sun, 11. Oct 09, 14:22

Ah right, that makes sense.

I just realised I can use te "Remote Best Buy / Sell" commands to buy for best price.
There is no victory without sacrifice.

User avatar
Reisser
Posts: 745
Joined: Mon, 28. Feb 05, 15:39
x4

Post by Reisser » Fri, 11. Dec 09, 10:33

One question: I've installed the script by unpacking the zip in my folders. Now I want to uninstall them. Is it ok to stop the commands on all ships, save, quit, delte the script and start again?

(I have to uninstall all last new scripts because my game freezes at a specific time of the game and now have to search for the failur :( )

Another thing I've noticed: I've 2 ships for buying weapons, rockets and shields. There are enough in stock and I've satellites in all sectors. But my traders with your commands on it (buy ware x,y,z for any price is only buying one ware of the list ... When I have enough for this ware I delte it and in this case the ship buys another (one) ware of the list all the time.As long I delete this one too.

ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh » Fri, 11. Dec 09, 22:30

Reisser wrote:One question: I've installed the script by unpacking the zip in my folders. Now I want to uninstall them. Is it ok to stop the commands on all ships, save, quit, delte the script and start again?
Yeah, the procedure you mention will work. But, out of interest, why not use Cyrow's package manager to install/uninstall scripts?

Reisser wrote:Another thing I've noticed: I've 2 ships for buying weapons, rockets and shields. There are enough in stock and I've satellites in all sectors. But my traders with your commands on it (buy ware x,y,z for any price is only buying one ware of the list ... When I have enough for this ware I delte it and in this case the ship buys another (one) ware of the list all the time.As long I delete this one too.
I'm not entirely clear what you mean. But I think maybe you want to set 'buy until full' enabled, which will go through the entire list buying, before switching to selling behaviour. It could also be that you just have to wait a while as it searches for the best station to purchase the next ware in the list from. Also, it could be that the freighter is full (I think 4/5 cargo space filled is classed as 'full', to leave room for ecells).



I've just about finished a rather major update to this plugin, which allows you to select preferred sources for wares (which can be player owned ship or station), as well as maximum amounts to store at the homebase ship. So you can effectively use MTX as a resupply ship, or a trader, or even both at the same time...
There are 10 types of people in the S&M forums - those who understand binary, and those who don't.

Black holes are where God divided by zero.

User avatar
Reisser
Posts: 745
Joined: Mon, 28. Feb 05, 15:39
x4

Post by Reisser » Sat, 12. Dec 09, 12:25

Ah yes - selecting an amount of wares is exactly what I need! :) (after sitting on about 100 weapons of one type - hehe)

And I use "buy until full" together with a ware-list (e.g. shields, weapons, rockets). I don't sell with your command - I only use it to buy fitting for my ships and "special tasks"). Perhapts "buy until full" is the wrong choice?

The cargo isn't full ... I've 1000 tons cargo and buy only things as shown above. Quite difficult to geht enough 25MW-shields and firestorm-torpedos to make it full ;)

Ok, I wait for your update - sounds very good!

lionheart_001
Posts: 79
Joined: Mon, 12. Oct 09, 18:26

Post by lionheart_001 » Fri, 18. Dec 09, 04:57

Hey all,

May I ask what program I should use to open a MAN file? That is the format which this file is in. I did a scan in Google and it only had a few choices and they kind of worried me.

Is it possible to download this in ZIP or SPK format instead? If not, I understand.


LH

User avatar
Reisser
Posts: 745
Joined: Mon, 28. Feb 05, 15:39
x4

Post by Reisser » Fri, 18. Dec 09, 12:06

Uh? Where in this thread were you downloading a man-file??? In the top-posting there is only a zip and a spk as it should be

:?

By the way:

man: Formatted manual or reference page

But this is now very offtopic :P

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”