[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

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

Post by ThomasAH » Wed, 22. Jul 09, 08:19

ThisIsHarsh wrote:Update v2.1
NIce changes, thanks :)

Meanwhile my known universe no longer contains any noteworthy amounts of advanced satellites, hammer heavy torpedoes and flail barrage missles :)

... and no IBLs, but that's because I haven't discovered Yaki space yet and the pirate sector only has one IBL factory. Is there some script to notify me when it has another IBL on sale?

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

Post by ThomasAH » Wed, 22. Jul 09, 08:32

Hi!

I get an error when extracting plugin.mtx.buy.xml of the 2.1 version.

I'm not using the plugin manager, but the SPK explorer, but I never had problems with that.
All other files can be extracted fine, and in older versions of your script above file could be extracted, too.

Do you (or anyone else) get the same problem using the plugin manager?
Can you make the plugin (or just the file) available as .zip?

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

Post by ThisIsHarsh » Wed, 22. Jul 09, 12:21

ThomasAH wrote:Hi!

I get an error when extracting plugin.mtx.buy.xml of the 2.1 version.

I'm not using the plugin manager, but the SPK explorer, but I never had problems with that.
All other files can be extracted fine, and in older versions of your script above file could be extracted, too.

Do you (or anyone else) get the same problem using the plugin manager?
Can you make the plugin (or just the file) available as .zip?
That's wierd, confirmed the problem, yet I could open the file in notepad and the SE fine. Anyway, re-saved the file and replaced it in the package, that's sorted it. Redownload, should be fine now.


If anyone experiences problems (particularly with wierd buying behaviour), redownload - possible corrupt script file.

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

Post by ThisIsHarsh » Wed, 22. Jul 09, 12:25

ThomasAH wrote:
ThisIsHarsh wrote:Update v2.1
NIce changes, thanks :)

Meanwhile my known universe no longer contains any noteworthy amounts of advanced satellites, hammer heavy torpedoes and flail barrage missles :)

... and no IBLs, but that's because I haven't discovered Yaki space yet and the pirate sector only has one IBL factory. Is there some script to notify me when it has another IBL on sale?
I use 'Universal Best buys/sells'. Doesn't notify you, but does tell you if any are available and at what price and amount (provided you have property in the sector). Probably not what you were asking though.

You could dock a ship at that pirate base, using this plugin to continuously buy for 'any price', then as soon as they come in stock it will pick it up.

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

Post by ThomasAH » Thu, 23. Jul 09, 14:28

ThisIsHarsh wrote:
I use 'Universal Best buys/sells'. Doesn't notify you, but does tell you if any are available and at what price and amount (provided you have property in the sector). Probably not what you were asking though.

You could dock a ship at that pirate base, using this plugin to continuously buy for 'any price', then as soon as they come in stock it will pick it up.
I use Universal Best Buys, too, but I'll try your suggestion to dock and use the by-for-any-price-loop, at least with the IBLs.

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

Post by ThomasAH » Thu, 23. Jul 09, 14:35

ThisIsHarsh wrote:
ThomasAH wrote:I get an error when extracting plugin.mtx.buy.xml of the 2.1 version.
That's wierd, confirmed the problem, yet I could open the file in notepad and the SE fine. Anyway, re-saved the file and replaced it in the package, that's sorted it. Redownload, should be fine now.
In the new download I can't extract plugin.mtx.buysellloop.xml, but as it was fine with the first download of 2.1, I now have the upgraded version of both files :)
(I verified that all other files are identical)

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

Post by ThisIsHarsh » Thu, 23. Jul 09, 15:21

ThomasAH wrote:
ThisIsHarsh wrote:
ThomasAH wrote:I get an error when extracting plugin.mtx.buy.xml of the 2.1 version.
That's wierd, confirmed the problem, yet I could open the file in notepad and the SE fine. Anyway, re-saved the file and replaced it in the package, that's sorted it. Redownload, should be fine now.
In the new download I can't extract plugin.mtx.buysellloop.xml, but as it was fine with the first download of 2.1, I now have the upgraded version of both files :)
(I verified that all other files are identical)
Grrr. Must be a problem with the way Exscriptor saves files. I'll have to bear this in mind for the future. Cheers for pointing it out.

I've gone through each file, opening and re-saving with the in-game script editor, added to package and re-uploaded.

No need for anyone to redownload unless they are having problems.

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

Post by ThomasAH » Thu, 23. Jul 09, 16:18

ThisIsHarsh wrote:I've gone through each file, opening and re-saving with the in-game script editor, added to package and re-uploaded.
Works fine now, thanks.

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

Post by ThomasAH » Thu, 30. Jul 09, 09:50

ThisIsHarsh wrote:
ThomasAH wrote: ... and no IBLs, but that's because I haven't discovered Yaki space yet and the pirate sector only has one IBL factory. Is there some script to notify me when it has another IBL on sale?
You could dock a ship at that pirate base, using this plugin to continuously buy for 'any price', then as soon as they come in stock it will pick it up.
I just wanted to confirm that this works. My Falcon Hauler waiting at the IBL forge just automatically bought one.

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

Post by Grimshad » Fri, 31. Jul 09, 22:24

Isnt this script basically the exact same thing as Trade Software MK3 (universal trader) ? Except of course it seems like you have more control here and customizability. How does this differ besides that though? If it is the same, then that means you just eliminated the need to purchase MK3 to have your ship be a universal trader. now you can do it at the start for pretty cheap, right?

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

Post by ThisIsHarsh » Sat, 1. Aug 09, 02:06

Grimshad wrote:Isnt this script basically the exact same thing as Trade Software MK3 (universal trader) ? Except of course it seems like you have more control here and customizability. How does this differ besides that though? If it is the same, then that means you just eliminated the need to purchase MK3 to have your ship be a universal trader. now you can do it at the start for pretty cheap, right?
MK3 is significantly more advanced, completely fire-and-forget. This plugin is just some extra automation for manual trading.

E.g. MK3 supposedly looks at ware buy prices, looks at ware sell prices and finds the ware that can make it the most money. This plugin simply loops through the assigned wares and will buy regardless of whether it can actually sell or not, and vice versa.

It has somewhat different modes of usage than a MK3. Examples of use from my own game:
  • I have one TS for each race, trading in their 3 or 4 race-only wares (food, etc), purely to help my rep with those races.
  • I have a TS buying/selling Ore, a TS buying/selling Silicon and a TS buying/selling Energy Cells, just to give the AI economy a boost (mainly to keep weapons fabs producing).
  • I have a TS buying/selling practically every missile and ammo type I can find. It sells via a TL ship, so this TL always has a nice stockpile of missiles/ammo. Occasionally, though, the TL starts to fill up with missiles, so I have to set the TS to 'sell only' for a bit.
  • I have a TS that buys (not sells) all the types of weapons and shields that I use, with the price restriction set depending on the rarity of the item. This TS also dumps the wares at the aforementioned TL.
  • Finally, a bit off topic but related, I use my Auto prep ships plugin using the same TL as above, either to run the command or as the designated storage depot for other carriers (i.e. TMs).

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

Post by Grimshad » Mon, 3. Aug 09, 02:12

Ok, understood, I have a problem though, I read earlier that my traders using this script will only go to sectors with satellites in them, but my ships are constantly roaming into enemy territory without satellites and being destroyed, how do i prevent this?

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

Post by ThisIsHarsh » Mon, 3. Aug 09, 02:18

Grimshad wrote:Ok, understood, I have a problem though, I read earlier that my traders using this script will only go to sectors with satellites in them, but my ships are constantly roaming into enemy territory without satellites and being destroyed, how do i prevent this?
They will only trade with sectors where you have some property, e.g. a satellite. The route they take is just the default route. Until someone writes an A* plugin that replaces the stock moving behaviour, this will be an issue for any script. The obvious solution is just to equip a jumpdrive and nav software and set your autojump and refuel settings. Then run 'Best buy/sell loop' and your traders will automatically refuel and jump across those nasty sectors.

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

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

No, they go to trade in places i have no property, not just travel through them.

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

Post by ThisIsHarsh » Mon, 3. Aug 09, 08:14

Grimshad wrote:No, they go to trade in places i have no property, not just travel through them.
Is it their assigned wares they are trading? or is it when they go to refuel? You definitely have no ships docked at a station or anything?

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 :)

Post Reply

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