[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

scary pete
Posts: 41
Joined: Fri, 6. Feb 04, 18:29
x3ap

Post by scary pete »

StevieViper wrote:Lucike has a new one since yesterday. Perhaps your prob is solved there.
thanks that solved the prob
User avatar
Mugenjin
Posts: 299
Joined: Mon, 27. Aug 07, 19:19
x3tc

Post by Mugenjin »

How long does it take for CAG to level up? is it tied to the time he's already flown or how much cargo he's hauled or something like that?

Seems like my CAGs don't want to get paid - getting past apprentice xD
<(^_^)< v(^_^)v >(^_^)>
User avatar
wyvern11
Posts: 1703
Joined: Sat, 15. Jul 06, 20:59
x3

Post by wyvern11 »

a level every 2 hours flight (!!) (provided you put train=yes in settings, should be default though)
Redest du noch - oder denkst du schon ?
Painman
Posts: 1694
Joined: Fri, 6. Apr 07, 07:12
x3tc

Post by Painman »

Ack! I saw the link to updated libraries, so I grabbed them... ingame message says they need version 1.3 to run, and I'm still on 1.2.1 until Steam updates...

My single CAG so far seems to still be doing his job properly, but I'm about to set up a few new ones...

-Am I really hosed if I try to use the new libraries in 1.2.1? (I'm afraid I don't have backups of the older versions) :oops:

-If so, can anyone link to a mirror of the most recent previous version (if still available)?

Thanks.
User avatar
Mugenjin
Posts: 299
Joined: Mon, 27. Aug 07, 19:19
x3tc

Post by Mugenjin »

wyvern11 wrote:a level every 2 hours flight (!!) (provided you put train=yes in settings, should be default though)
thanks a lot! guess i need to run seta just a lil more :)
<(^_^)< v(^_^)v >(^_^)>
NoXxX
Posts: 3
Joined: Sat, 1. Nov 08, 01:43
x3tc

Post by NoXxX »

Hi,

I have a problem installing the script, I get the messages "Language file for Commercial Agent doesn't exist" and "Language file for Pilot Union doesn't exist" ingame.

I play with a french version of the game (33).

Thanks for your help !
User avatar
wyvern11
Posts: 1703
Joined: Sat, 15. Jul 06, 20:59
x3

Post by wyvern11 »

unpack the cag-language-file 800x.pck (it's a gzip). copy the english (044?) file to corresponding (033) file and use an editor to change language id at the top of the xml.

but i'm quite positive, that lucike has hooked a french translator. if not, why don't you translate?

you can sign up here :

http://forum.egosoft.com/viewtopic.php? ... &start=195
Redest du noch - oder denkst du schon ?
NoXxX
Posts: 3
Joined: Sat, 1. Nov 08, 01:43
x3tc

Post by NoXxX »

It works, thanks !

If there are not too much lines to translate, I could indeed do it.
Cybermutant
Posts: 35
Joined: Fri, 5. May 06, 12:13
x4

Post by Cybermutant »

Hi!

Great script, my traders are buying resources at the best price, but problem is they won't sell!

I've tried everything but they keep on standby, and the log doesn't seem complete (I do wait till the window pops up but it won't work).

Here is the lo

Code: Select all

Commercial Agent

Script version: 3103
Libraries version: 3202
Pilot Union version: 3102

Pilot: Cate Hang
Pilot rank: Supplier
Flight time: 5:40 hour
Employ time: 8:50 hour
Payment: 3,970 credits
Profit: -37,248 credits
Expenses: -40,440 credits

Promotion: Yes
Payment: Global account

Ship name: Siltrader1
Ship class: TS
Ship type: Mercury Tanker
Transport class: Extra Large Containers XL
Cargo bay size: 4000 units
Cargo bay volume: 50 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: Neutral
Relation to Goner: Neutral
Relation to ATF: Neutral
Relation to Terran: Neutral
Relation to Yaki: Neutral

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

Supply Command Software: installed

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

Home base: Your Silicon Mine M alpha (Omicron Lyrae)
Home base class: Factory
Home base type: Argon Silicon Mine M
Trade jumps: 40 jumps
Station account: 532,731 credits
Global account: 2,838,279 credits

Black list stations: -
Black list sectors: -

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

Home sector: Omicron Lyrae
Home jumps: 40 jumps

Ware list type: Blacklist
Ware list: -

Tradeable ware from home base:
     P Silicon Wafers: price 605 credits, cargo bay 388 units, cargo bay 93 %
     R Energy Cells: price 12 credits, cargo bay 9,952 units, cargo bay 99 %

Energy Cells (Resource (Standard search engine))
     Solar Power Plant XL alpha (Circle Of Labour): price 12 credits, cargo bay 45,901 units, cargo bay 91 % ( Free )

Energy Cells (Resource (CAG search engine))
     Solar Power Plant XL alpha (Circle Of Labour): price 12 credits, cargo bay 45,901 units, cargo bay 91 % ( Free )
     Solar Power Plant M beta (Grand Exchange): price 12 credits, cargo bay 9,900 units, cargo bay 99 % ( Busy )
     Solar Power Plant L alpha (Neptune): price 12 credits, cargo bay 21,222 units, cargo bay 84 % ( Free )
Thanks in advance mate!
tontonfred
Posts: 126
Joined: Mon, 1. Jan 07, 23:43
x3

Post by tontonfred »

Code: Select all

Purchase resources: 0 %
Sell products: 100 %
Sell products freighter cargo bay: 0 %
Purchase intermediate products: 0 %
Sell intermediate products: 0 %
The way you set up your CAG's duties seems wrong : he will only buy ecells when the mine is completely empty (Purchase resources 0%) and only sell Silicon when it's completely full (Sell products 100%). Try setting Purchase resources at 50% (it will keep the mine half-stocked on ecells) and Sell products at 20% (it will sell Silicon when the stocks are over 20% capacity).
tontonfred
Posts: 126
Joined: Mon, 1. Jan 07, 23:43
x3

Post by tontonfred »

I've got 2 CAGs stuck in Grand Exchange ; often, they detect an enemy and, instead of running, they just stay idle or on standby in space. Needless to say they usually don't last long. This time, there were a couple of pirate ships in sector, my SRS patrol jumps in, destroys the enemies, but the CAG stay still.

Code: Select all

Commercial Agent

Script version: 3103
Libraries version: 3203
Pilot Union version: 3102

Pilot: Sendy Kult
Pilot rank: Major Dealer
Flight time: 28:01 hour
Employ time: 33:23 hour
Payment: 51,715 credits
Profit: 7,851,112 credits
Expenses: -295,956 credits

Promotion: Yes
Payment: Global account

Ship name: CAG HUB 3
Ship class: TS
Ship type: Mistral Super Freighter
Transport class: Extra Large Containers XL
Cargo bay size: 15000 units
Cargo bay volume: 15000 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: Neutral
Relation to Goner: Neutral
Relation to ATF: Neutral
Relation to Terran: Neutral
Relation to Yaki: Friend

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

Supply Command Software: installed

Jump Drive: installed
Jump Drive: activated
Jump Drive: allowed
Jump Drive energy: 1500 energy cells
Jump Drive minimum jumps: 1 jumps

Detected enemy ship: null in null (X 0 Y 0 Z 0)

Home base: Your Xenon Hub (Unknown Sector)
Home base class: Equipment Dock
Home base type: Xenon Hub
Trade jumps: 9 jumps
Station account: 5,568,285 credits
Global account: 334,883,635 credits

Black list stations: -
Black list sectors: -

Trader job: Trader
Purchase resources: 100 %
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: Unknown Sector
Home jumps: 9 jumps

Ware list type: Trade list
Ware list: Ore

Tradeable ware from home base:
     P Energy Cells: price 12 credits, cargo bay 0 units, cargo bay 0 %
     P Microchips: price 11,725 credits, cargo bay 0 units, cargo bay 0 %
     P Ore: price 206 credits, cargo bay 0 units, cargo bay 0 %
     P Teladianium: price 57 credits, cargo bay 1,431 units, cargo bay 35 %
     P Computer Components: price 998 credits, cargo bay 0 units, cargo bay 0 %

Energy Cells (Product (Standard search engine))
     Crystal Fab M alpha (Grand Exchange): price 19 credits, cargo bay 233 units, cargo bay 2 % ( Free )

Energy Cells (Product (CAG search engine))
     Teladianium Foundry M delta (Bright Profit): price 19 credits, cargo bay 24 units, cargo bay 0 % ( Free )
     Teladianium Foundry M gamma (Grand Exchange): price 19 credits, cargo bay 29 units, cargo bay 0 % ( Free )
     Crystal Fab M alpha (Tears of Greed): price 19 credits, cargo bay 54 units, cargo bay 0 % ( Free )
     Quantum Tube Fab alpha (Tears of Greed): price 19 credits, cargo bay 20 units, cargo bay 0 % ( Free )
     Ore Mine M beta (Tears of Greed): price 19 credits, cargo bay 21 units, cargo bay 0 % ( Free )
     Sun oil refinery M beta (Tears of Greed): price 19 credits, cargo bay 1 units, cargo bay 0 % ( Free )
     Gauss Cannon Ammunition Forge alpha (Merchant Haven): price 19 credits, cargo bay 39 units, cargo bay 0 % ( Free )
     Sun oil refinery M alpha (Tears of Greed): price 19 credits, cargo bay 15 units, cargo bay 0 % ( Free )
     Silicon Mine M beta (Hollow Infinity): price 19 credits, cargo bay 91 units, cargo bay 0 % ( Free )
     Low-yield Sidearms Fab alpha (Merchant Haven): price 19 credits, cargo bay 39 units, cargo bay 0 % ( Free )
     Teladianium Foundry M alpha (Bright Profit): price 19 credits, cargo bay 26 units, cargo bay 0 % ( Free )
     Teladianium Foundry M gamma (Bright Profit): price 19 credits, cargo bay 2 units, cargo bay 0 % ( Free )
     Flower Farm L alpha (Bright Profit): price 19 credits, cargo bay 70 units, cargo bay 0 % ( Free )
     Flower Farm L beta (Bright Profit): price 19 credits, cargo bay 3,045 units, cargo bay 12 % ( Free )
     Drone Factory alpha (Midnight Star): price 19 credits, cargo bay 652 units, cargo bay 13 % ( Free )
     Light Weapons Complex alpha (Merchant Haven): price 19 credits, cargo bay 525 units, cargo bay 10 % ( Free )
     Light Weapons Complex alpha (Queen's Retribution): price 19 credits, cargo bay 536 units, cargo bay 10 % ( Free )
     Crystal Fab M alpha (Grand Exchange): price 19 credits, cargo bay 233 units, cargo bay 2 % ( Free )
     Plankton Farm M alpha (Hollow Infinity): price 19 credits, cargo bay 1,507 units, cargo bay 15 % ( Free )
     High Yield Production Complex alpha (Merchant Haven): price 19 credits, cargo bay 680 units, cargo bay 13 % ( Free )

Energy Cells (Resource (CAG search engine))
     Solar Power Plant M beta (Grand Exchange): price 12 credits, cargo bay 9,900 units, cargo bay 99 % ( Free )
     Solar Power Plant XL alpha (Argon Sector M148): price 12 credits, cargo bay 49,745 units, cargo bay 99 % ( Free )
     Solar Power Plant L gamma (Queen's Harbour): price 12 credits, cargo bay 24,257 units, cargo bay 97 % ( Free )
This part looks suspiscious :

Code: Select all

Detected enemy ship: null in null (X 0 Y 0 Z 0)
[/color]

Also, these CAGs will VERY OFTEN load up all their cargospace with wares, and then have to fly back all the way home because they can't buy fuel to jump. Seems to happen a lot more than before.
DrwHem
Posts: 624
Joined: Sun, 11. Nov 07, 05:28
x4

i need a CAG!

Post by DrwHem »

this game is not fun without a CAG. im disappointed egosoft didnt keep that. Can anyone tell me if they have made a script that basically does CAG and commodity logistics for programing internal trade runs?
bounty_hunter66
Posts: 550
Joined: Tue, 15. Aug 06, 13:36
x4

Post by bounty_hunter66 »

User avatar
TSM
Not a Moderator
Posts: 2947
Joined: Thu, 1. Jul 04, 12:31
x4

Re: i need a CAG!

Post by TSM »

DrwHem wrote:this game is not fun without a CAG. im disappointed egosoft didnt keep that. Can anyone tell me if they have made a script that basically does CAG and commodity logistics for programing internal trade runs?
Community Script & Mod Download Library for X3: Terran Conflict
:wink: you really need to read this before posting requests :roll:
FAQ's Egosoft Interactive FAQ
Egosoft Wiki
DrwHem
Posts: 624
Joined: Sun, 11. Nov 07, 05:28
x4

Post by DrwHem »

What do my ships have to do to level up and use their jumpdrives? right now i have it set to save 800 energy cells for jumping but its not jumping at all.
User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Post by Sandalpocalypse »

They need to be Traders.

***

Bug(?): If you attempt to assign CAGs to newly built stations with zero credits, the command will fail and they will clear their homebase as well. But only on some ships. Others it works fine. This was annoying until I figured out the cause, but since it's so easy to workaround its not a big deal.
Irrational factors are clearly at work.
amirite
Posts: 243
Joined: Thu, 23. Oct 08, 22:01

Post by amirite »

Hey, hopefully this has not been covered already.

I can't get the CAG command to show up on any of my ships. The two specific ships I am tryig to get to work right now are Caimen Super Freighters but I have yet to see the command available on any ship.

I definitely have the right upgrades installed. However none of my ships with Trade Command MK1 installed are showing it in their freight bay. Is this normal? It's the only thing I can see that would be causing this. I have the homebases set too.

I have a bunch of ESTs working fine, same with Prospector. What am I missing here?
-TEVE
User avatar
Forsaker
Posts: 104
Joined: Sat, 26. Jun 04, 00:54
x3tc

Post by Forsaker »

the TS ships have trade software MK1 built in you ll see it if you do info on them , for your other question did you assigned them a homebase ? if not then do so and you ll see start commercial agent
User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Post by Sandalpocalypse »

Alright cancel that bug report. Just out of pervesity i went and double checked it and it's not reproducing anymore. That is to say it's still being futzy with new stations sometimes, but not for an identifiable reason.
Irrational factors are clearly at work.
amirite
Posts: 243
Joined: Thu, 23. Oct 08, 22:01

Post by amirite »

Forsaker wrote:the TS ships have trade software MK1 built in you ll see it if you do info on them , for your other question did you assigned them a homebase ? if not then do so and you ll see start commercial agent
I know they have Mk1 installed, but the problem is I'm not SEEING it when I do Info on them. But I'm starting to think this isn't the issue.
And as I mentioned above I already set a homebase for them - still nothing.
-TEVE

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