[SCR] Commercial Agent [2010-04-28 X3TC 3.3.03]

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

Post Reply
User avatar
Lucike
Posts: 12969
Joined: Sun, 9. May 04, 21:26
x4

Post by Lucike » Tue, 18. Nov 08, 20:11

@ViceGrips

Please check your t-folder. Is there the file "8000.pck"?
Image

Guigui
Posts: 6
Joined: Wed, 24. Aug 05, 19:24
x2

Post by Guigui » Tue, 18. Nov 08, 22:28

Hi Lucike, same issue for me.

I've got mails ingame when i load a game : "The language file for CAG doesn't exist" and "the language file for pilot union doesn't exist".

I checked, 8000.pck is in the t folder.

I play on a "33" version of the game.

amirite
Posts: 243
Joined: Thu, 23. Oct 08, 22:01

Post by amirite » Tue, 18. Nov 08, 23:32

Just curious, could someone give me a good example of where this would be used? I've got EST for Universe Trading, and CLS to manage resource fetching/selling... to me these two seem to cover all the bases (love them both btw).

But I'm probably just not aware of what situations this Commercial Agent mod would apply to. I don't have an in-depth knowledge of all the trade activities in X3.
-TEVE

Vicrry06
Posts: 227
Joined: Sat, 9. Dec 06, 23:36
x3tc

Post by Vicrry06 » Wed, 19. Nov 08, 02:19

CAG buys and sells for your factories - it does best fetching resources from the NPC stations and selling your products to NPC stations. Most of the time CAG will do better than CLS will for general station management; CAG looks for the best prices possible and CLS follows a defined route. CLS is intended for internal logistics (between two factories/complexes you own); moving excess energy cells from a SPP complex to a underproducing complex a sector over for example.

Try switching over your CLS pilots to CAG - one of the beauties of Lucike's scripts is that your pilots will not lose levels for doing so.

Malkuth74
Posts: 295
Joined: Fri, 31. Dec 04, 19:31
x3tc

Post by Malkuth74 » Wed, 19. Nov 08, 07:01

SPK works with all scripts. I always pack up the files myself when someone doesn't release them with the Downloads.

Not hard at all just put all Sript and text files in folders they belong.

No need for the uninstall folders since PCK will get rid of them automatically anyway if you unisntall the files.

Been using the german ones for some time now... Love em.

User avatar
Lucike
Posts: 12969
Joined: Sun, 9. May 04, 21:26
x4

Post by Lucike » Wed, 19. Nov 08, 07:28

Guigui wrote:I play on a "33" version of the game.
Please copy this french dummy file in your t-folder.

http://www.lucike.info/x3_terran_confli ... 0-L033.pck

EDIT: Hm, I have forgotten the 8013-L033.pck. I will upload it after work.

Done. http://www.lucike.info/x3_terran_confli ... 3-L033.pck
Last edited by Lucike on Wed, 19. Nov 08, 20:15, edited 2 times in total.
Image

jlehtone
Posts: 21811
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Wed, 19. Nov 08, 10:17

amirite wrote:Just curious, could someone give me a good example of where this would be used? I've got EST for Universe Trading, and CLS to manage resource fetching/selling... to me these two seem to cover all the bases (love them both btw).
Stock Trade Mk1, Mk2, Mk3, as well as CAG, CLS, and EST all haul wares from one station to another. Their difference is on how much you can or must affect what they haul and where they haul.

Lets take the stock Trade Mk1/2 (Best buy / Best sell). The ships serves its homebase. But it can haul only one ware, and it cannot both buy and sell. Thus, a Crystal Fab would need four such ships to "cover all bases". Furthermore, you cannot specify accurately whom they trade with, as they go for "best offer".

CAG does the same. It serves its homebase. It does go for "best offer" too, but you have more ways to tell it avoid "problematic" clients (like a sector next door invaded by Kha'ak). And it jumps better than stock scripts (which have logical bugs). You can even tell a CAG working for station in Argon Prime to trade only with stations in Getsu Fune. But the most direct benefit of CAG is that it will trade all wares of its homebase, and will both buy and sell. One ship to serve one station is enough. And you can configure it to do a trade run only when it is absolutely necessary. A ship in space is a ship in danger. The less exposure the better.

Sure, you can set EST to trade in specific area. But it is more difficult to make it serve one specific player station. EST is a configurable implementation of the idea used also in stock Trade Mk3 Local/Universal Trader. But the stock script is said to be buggy, and EST would probably outperform it even if it wasn't. :D Lack of control of UT has created many modified versions of UT, but EST is not one of them. It is clearly a different implementation, "done right".

Internal Commodity Logistics (CLS1) is for hauling between player stations. It is not about trading. It is very handy, if you cannot join your stations into one complex (like when the station is a Dock, a TL, or in different sector. You could use the trading scripts to achieve similar results, but CLS1 is much more to the point, without uncertainty. And CLS1 runs only when necessary. It is the initial implementation of "truly closed loop", from era before complexes.

External Commodity Logistics (CLS2) is closer to EST/Local Trader. It can do internal logistics too. You could even configure it to serve one player station, But the main problem is that you have to configure it. You do set up a route, one way or other, and CLS2 will follow that route. Thus, it does not use "best offers", or run "only if necessary". And a ship serving specific player station has to do that, like CAG does. While less flexible, it can do very specific tasks where others fail.
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

kipstafoo
Posts: 86
Joined: Fri, 7. Nov 08, 00:08
x3tc

Post by kipstafoo » Wed, 19. Nov 08, 13:43

Hmmm... I tried this out with a Super Demeter fully loaded with equipment. For some reason it just hangs out at my complex with 'CAG On Standby' as its action. Is there some sort of configuration for this CAG that would make it just hang out?

Thanks

lt_wentoncha
Posts: 495
Joined: Thu, 15. Dec 05, 01:51
x4

Post by lt_wentoncha » Wed, 19. Nov 08, 13:50

Is this friendly w/ the plugin manager?

User avatar
Lucike
Posts: 12969
Joined: Sun, 9. May 04, 21:26
x4

Post by Lucike » Wed, 19. Nov 08, 14:14

kipstafoo wrote:Hmmm... I tried this out with a Super Demeter fully loaded with equipment. For some reason it just hangs out at my complex with 'CAG On Standby' as its action. Is there some sort of configuration for this CAG that would make it just hang out?
Out of your complex? Hm, please make a log.

Configure Reports -> Analysis to Log

The log can you find where the savegames stored.
Image

gogosy
Posts: 9
Joined: Thu, 12. Jul 07, 22:42
x4

Post by gogosy » Wed, 19. Nov 08, 17:29

all my ships just stay in hombase with a "CAG On Standby"command

User avatar
Lucike
Posts: 12969
Joined: Sun, 9. May 04, 21:26
x4

Post by Lucike » Wed, 19. Nov 08, 17:32

gogosy wrote:all my ships just stay in hombase with a "CAG On Standby"command
Lucike wrote:Hm, please make a log.

Configure Reports -> Analysis to Log

The log can you find where the savegames stored.
Image

jlehtone
Posts: 21811
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Wed, 19. Nov 08, 17:41

lt_wentoncha wrote:Is this friendly w/ the plugin manager?
Does not use not require PluginManager. Whether that is "friendly" or not, is IMO subjective.
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

kipstafoo
Posts: 86
Joined: Fri, 7. Nov 08, 00:08
x3tc

Post by kipstafoo » Wed, 19. Nov 08, 17:50

Here's the log:

Commercial Agent

Script version: 3100
Libraries version: 3106
Pilot Union version: 3100

Pilot: Iaron Jorwan
Pilot rank: Apprentice
Flight time: 0:00 hour
Employ time: 21:34 hour
Payment: 0 credits
Profit: 0 credits
Expenses: 0 credits

Promotion: Yes
Payment: Global account

Ship name: CAG Super Demeter - Gamma A
Ship class: TS
Ship type: Demeter Super Freighter
Transport class: Extra Large Containers XL
Cargo bay size: 7030 units
Cargo bay volume: 51 units

Relation to Argon: Neutral
Relation to Boron: Neutral
Relation to Split: Neutral
Relation to Paranid: Neutral
Relation to Teladi: Neutral
Relation to Xenon: Foe
Relation to Kha'ak: Foe
Relation to Pirates: Foe
Relation to Goner: Neutral
Relation to ATF: Neutral
Relation to Terran: Neutral
Relation to Yaki: Foe

Fight Command Software MK1: installed
Fight Command Software MK2: installed

Jump Drive: installed
Jump Drive: activated
Jump Drive: not allowed
Jump Drive energy: 703 energy cells
Jump Drive minimum jumps: 1 jumps

Home base: BSI Ore Belt Hub (Ore Belt)
Home base class: Complex Hub
Home base type: Argon Complex Hub
Station account: 26,649,337 credits
Trade jumps: 1 jumps

Black list stations: -
Black list sectors: -

Trader job: Trader
Purchase resources: 80 %
Sell products: 20 %
Sell products freighter cargo bay: 30 %
Purchase intermediate products: 10 %
Sell intermediate products: 80 %
Purchase stations credit balance: 100,000 credits

Home sector: Ore Belt
Home jumps: 1 jumps

Ware list type: Blacklist
Ware list: -

Tradeable ware from home base:
Delexian Wheat: price 30 credits, cargo bay 15,287 units, cargo bay 91 %
Cluster Flak Array: price 638,852 credits, cargo bay 0 units, cargo bay 0 %
Photon Pulse Cannon: price 934,904 credits, cargo bay 0 units, cargo bay 0 %
High Energy Plasma Thrower: price 139,924 credits, cargo bay 0 units, cargo bay 0 %
Tomahawk Heavy Missile: price 21,962 credits, cargo bay 0 units, cargo bay 0 %

User avatar
Lucike
Posts: 12969
Joined: Sun, 9. May 04, 21:26
x4

Post by Lucike » Wed, 19. Nov 08, 18:01

kipstafoo wrote:Pilot rank: Apprentice

Tradeable ware from home base:
Delexian Wheat: price 30 credits, cargo bay 15,287 units, cargo bay 91 %
Cluster Flak Array: price 638,852 credits, cargo bay 0 units, cargo bay 0 %
Photon Pulse Cannon: price 934,904 credits, cargo bay 0 units, cargo bay 0 %
High Energy Plasma Thrower: price 139,924 credits, cargo bay 0 units, cargo bay 0 %
Tomahawk Heavy Missile: price 21,962 credits, cargo bay 0 units, cargo bay 0 %
Is the log complete? What should the pilot do? Should the pilot buy weapons? ;)
Last edited by Lucike on Wed, 19. Nov 08, 18:12, edited 1 time in total.
Image

gogosy
Posts: 9
Joined: Thu, 12. Jul 07, 22:42
x4

Post by gogosy » Wed, 19. Nov 08, 18:03

Lucike wrote:
gogosy wrote:all my ships just stay in hombase with a "CAG On Standby"command
Lucike wrote:Hm, please make a log.

Configure Reports -> Analysis to Log

The log can you find where the savegames stored.
the log:

Code: Select all


Commercial Agent

Script version: 3100
Libraries version: 3106
Pilot Union version: 3100

Pilot: Lalundas Yuyamados Hilibis V
Pilot rank: Apprentice
Flight time: 0:10 hour
Employ time: 0:56 hour
Payment: 0 credits
Profit: 0 credits
Expenses: 0 credits

Promotion: Yes
Payment: Global account

Ship name: <-=H=->
Ship class: TS
Ship type: Caiman Super Freighter
Transport class: Extra Large Containers XL
Cargo bay size: 10325 units
Cargo bay volume: 174 units

Relation to Argon: Neutral
Relation to Boron: Neutral
Relation to Split: Neutral
Relation to Paranid: Neutral
Relation to Teladi: Neutral
Relation to Xenon: Foe
Relation to Kha'ak: Foe
Relation to Pirates: Foe
Relation to Goner: Neutral
Relation to ATF: Neutral
Relation to Terran: Neutral
Relation to Yaki: Neutral

Fight Command Software MK1: installed
Fight Command Software MK2: installed

Jump Drive: installed
Jump Drive: activated
Jump Drive: not allowed
Jump Drive energy: 1032 energy cells
Jump Drive minimum jumps: 1 jumps

Home base: Your Complex Hub alpha (Hatikvah's Faith)
Home base class: Complex Hub
Home base type: Argon Complex Hub
Station account: 2,000,000 credits
Trade jumps: 50 jumps

Black list stations: -
Black list sectors: -

Trader job: Trader
Purchase resources: 80 %
Sell products: 20 %
Sell products freighter cargo bay: 30 %
Purchase intermediate products: 10 %
Sell intermediate products: 80 %
Purchase stations credit balance: 30,000 credits

Home sector: Hatikvah's Faith
Home jumps: 50 jumps

Ware list type: Blacklist
Ware list: Argnu beef, Crystals, Energy Cells, Majaglit, Massom powder, Meatsteak Cahoonas

Tradeable ware from home base:
     Mosquito Missile: price 168 credits, cargo bay 271 units, cargo bay 8 %
     Typhoon Missile: price 33,692 credits, cargo bay 16 units, cargo bay 100 %
     Flail Barrage Missile: price 33,692 credits, cargo bay 16 units, cargo bay 100 %
     5 MJ Shield: price 20,776 credits, cargo bay 6 units, cargo bay 3 %
     Aurora Missile: price 2,020 credits, cargo bay 276 units, cargo bay 100 %
     Wasp Missile: price 1,348 credits, cargo bay 414 units, cargo bay 99 %
     Firefly Missile: price 224 credits, cargo bay 2,496 units, cargo bay 99 %
     2 GJ Shield: price 747,924 credits, cargo bay 4 units, cargo bay 50 %
     Tomahawk Heavy Missile: price 22,460 credits, cargo bay 24 units, cargo bay 100 %
     Advanced Satellite: price 13,476 credits, cargo bay 0 units, cargo bay 0 %
     Computer Components: price 1,348 credits, cargo bay 8 units, cargo bay 0 %
     Fighter Drone: price 4,044 credits, cargo bay 136 units, cargo bay 98 %
     Tempest Missile: price 13,476 credits, cargo bay 40 units, cargo bay 100 %
     Microchips: price 13,476 credits, cargo bay 0 units, cargo bay 0 %
     200 MJ Shield : price 155,816 credits, cargo bay 16 units, cargo bay 100 %
     Silkworm Missile: price 5,052 credits, cargo bay 108 units, cargo bay 98 %
     Massom powder: price 36 credits, cargo bay 6,666 units, cargo bay 100 %
     Majaglit: price 36 credits, cargo bay 269 units, cargo bay 4 %
     Meatsteak Cahoonas: price 72 credits, cargo bay 93,476 units, cargo bay 28 %
     Argnu beef: price 104 credits, cargo bay 6,491 units, cargo bay 5 %
     Ore: price 128 credits, cargo bay 17,286 units, cargo bay 98 %
     Energy Cells: price 16 credits, cargo bay 915,966 units, cargo bay 95 %
     Crystals: price 1,684 credits, cargo bay 3,260 units, cargo bay 16 %
     Silicon Wafers: price 504 credits, cargo bay 7,173 units, cargo bay 98 %

Mosquito Missile (Product (Standard search engine))
     Split Equipment Dock (Thuruk's Beard): price 168 credits, cargo bay 1,591 units, cargo bay 95 % ( Free )

[/quote]

User avatar
Lucike
Posts: 12969
Joined: Sun, 9. May 04, 21:26
x4

Post by Lucike » Wed, 19. Nov 08, 18:07

@gogosy

Your pilot is an Apprentice and can not sell products.
Image

gogosy
Posts: 9
Joined: Thu, 12. Jul 07, 22:42
x4

Post by gogosy » Wed, 19. Nov 08, 18:13

what should i do then?

User avatar
Lucike
Posts: 12969
Joined: Sun, 9. May 04, 21:26
x4

Post by Lucike » Wed, 19. Nov 08, 18:24

gogosy wrote:what should i do then?
You can delete "Argnu beef" or "Crystals" from the blacklist. The pilot must buy resources in the first 2 hours.
Image

gogosy
Posts: 9
Joined: Thu, 12. Jul 07, 22:42
x4

Post by gogosy » Wed, 19. Nov 08, 18:30

i understand ,3Q

Post Reply

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