[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
kipstafoo
Posts: 86
Joined: Fri, 7. Nov 08, 00:08
x3tc

Post by kipstafoo » Wed, 19. Nov 08, 18:36

I still don't. :)

I think I'm a bit retarded today... but I don't get it. :P

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

Post by jlehtone » Wed, 19. Nov 08, 19:16

kipstafoo wrote:I think I'm a bit retarded today... but I don't get it. :P
It. It is very simple.

The pilot has to be at least "Trader" in order to trade intermediates.
The pilot has to be at least "Courier" in order to sell products.
Your Complex probably has only intermediates and products.
Your pilot is "Apprentice". It can only buy resources.
Thus, there is nothing that the pilot can do on that Complex.
Therefore, the pilot cannot promote to "Courier" either.

You have to train the pilot elsewhere.
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

JackSlaughter
Posts: 80
Joined: Thu, 22. Jun 06, 04:53
x3

Post by JackSlaughter » Wed, 19. Nov 08, 22:33

I'm also getting the Language files missing error. I installed the files you posted about in the forum. However, still didn't fix the problem.

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

Post by Lucike » Wed, 19. Nov 08, 23:25

JackSlaughter wrote:I'm also getting the Language files missing error. I installed the files you posted about in the forum. However, still didn't fix the problem.
Which language version?
Image

JackSlaughter
Posts: 80
Joined: Thu, 22. Jun 06, 04:53
x3

Post by JackSlaughter » Wed, 19. Nov 08, 23:44

I installed the English??? and then I downloaded both of the links you posted in the post you made on Page 2.

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

Post by Lucike » Wed, 19. Nov 08, 23:48

JackSlaughter wrote:I installed the English??? and then I downloaded both of the links you posted in the post you made on Page 2.
On Page 2? These files are french dummy files. Do you have the file "8000.pck" in your t-folder?
Image

JackSlaughter
Posts: 80
Joined: Thu, 22. Jun 06, 04:53
x3

Post by JackSlaughter » Wed, 19. Nov 08, 23:54

Yes. I have the 8000.pck, oh, I thought you posted those files to fix this problem. I thought the mention of the French file was you just saying, "I'm going to grab the file from the french version until i get home."

I guess I assumed too much.

Tiberiumkyle
Posts: 95
Joined: Tue, 13. Jun 06, 01:36

Post by Tiberiumkyle » Thu, 20. Nov 08, 06:19

I can't get my agent to buy stuff for my HQ, it just sends a message that all wares are blocked. When I try to add them via the ware list, I get as far as the choose ware window, I click ware, and a window flickers with -null- in it, then drops back to the main command console for the ship.

Code: Select all

Commercial Agent

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

Pilot: Neol Gisler
Pilot rank: Apprentice
Flight time: 0:03 hour
Employ time: 0:43 hour
Payment: 0 credits
Profit: 0 credits
Expenses: 0 credits

Promotion: Yes
Payment: Global account

Ship name: CAG Your Mistral A-TSH
Ship class: TS
Ship type: Mistral
Transport class: Extra Large Containers XL
Cargo bay size: 40000 units
Cargo bay volume: 114 units

Relation to Argon: Neutral
Relation to Boron: Neutral
Relation to Split: Foe
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: 4000 energy cells
Jump Drive minimum jumps: 1 jumps

Detected enemy ship: Thuruk's Beard

Home base: Aesir Headquarters (Thuruk's Beard)
Home base class: Headquarters
Home base type: Headquarters
Station account: 197,974,184 credits
Trade jumps: 9 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: Argon Prime
Home jumps: 20 jumps

Ware list type: Trade list
Ware list: 

Tradeable ware from home base:

EDIT: I played around with it on another station, and found that even with ships qued for construction, the HQ is not listing any products/resources, thus the ware selection issue, not seeing anything to pick. No idea why this is happening, and I'd like to be able to automate the construction of my ships as much as I can without having a complex to support it, as I stole the sector from the Split and they are quite angry about it.
Rawr!

ViceGrips
Posts: 17
Joined: Sun, 1. Feb 04, 05:57
x4

Post by ViceGrips » Thu, 20. Nov 08, 06:53

yeah the 8000.pck is there. the 8000-L044 us also there. so i'm really confused. The EST and CLS and they run without issue. Thanks for your help. ViceGrips

JackSlaughter
Posts: 80
Joined: Thu, 22. Jun 06, 04:53
x3

Post by JackSlaughter » Thu, 20. Nov 08, 07:00

8000-L044 is supposed to be an XML right?

Edit:

Wait I just checked your first post and you state.

Language file
8000.xml (ID 8000)
8000-L039.xml (ID 8000)
8000-L049.xml (ID 8000)

Command Slot (Change command slots)
COMMAND_TYPE_TRADE_16 (416)
COMMAND_TYPE_CUSTOM_16 (716)
COMMAND_TYPE_STATION_16 (1116)

Object-Task
Global (restart)
Ship Task 0, 40 und 41


Except I just looked in my T folder and all those files are PCK not XML. I'm going to change their names and see if that works.

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

Post by jlehtone » Thu, 20. Nov 08, 07:20

@JackSlaughter: The *.pck files are simply compressed data files. The game will in fact load foo.pck instead of foo.xml, if both are present in the folder. I think the used compression algorithm is 'Deflate' from zlib. Most compression programs can uncompress that; at least '7zip' and 'gunzip' do.


@Tiberiumkyle: The pilot has to be at least "Courier" in order to have Dock as home. PHQ is not quite a Dock, but it is not a Factory either. I bet the script treats the PHQ ad Dock.

Trivial check: you have already added wares to the PHQ, so it does stock something?
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

Tiberiumkyle
Posts: 95
Joined: Tue, 13. Jun 06, 01:36

Post by Tiberiumkyle » Thu, 20. Nov 08, 07:30

no, hadn't added anything yet, the agent was supposed to. lol

eh, I'm gonna be playing around with it after I finish the sector defenses...

though, I tried it with a solar plant, and it would just sit around on standby, didn't matter if I had just crystals for wares, just energy cells, or both, log was same otherwise. I did have a handfull of energy cells and crystals in the solar plant. After fiddling with it some, I yelled at the pilot and sent him on EST duties so he'd be doing something at least.
Rawr!

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

Post by Lucike » Thu, 20. Nov 08, 07:38

@Tiberiumkyle

You must add wares to the HQ befor the CAG can work for it. Perhaps with the Dockware Manager. But an Apprentice can not work for the HQ.

http://www.lucike.info/x3_terran_confli ... _V3a02.zip
(An English language file is included)

@ViceGrips

You must delete the "8000-L044.pck". The "8000.pck" is the current English basic language file.

@JackSlaughter

The "8000.pck" must be exists, also "8013.pck". PCK-files are compressed XML-files.
Last edited by Lucike on Thu, 20. Nov 08, 07:51, edited 1 time in total.
Image

User avatar
wyvern11
Posts: 1703
Joined: Sat, 15. Jul 06, 20:59
x3

Post by wyvern11 » Thu, 20. Nov 08, 07:40

Check if list type is trade list and not blacklist (this happened to me when I was configuring a trader during a Xenon-P-Dogfight, clicked it inadvertently when adding wares)

@lucike : you might add a "really change to blacklist"-yes/no-dialog ?
Redest du noch - oder denkst du schon ?

JackSlaughter
Posts: 80
Joined: Thu, 22. Jun 06, 04:53
x3

Post by JackSlaughter » Thu, 20. Nov 08, 08:08

Deleting that file made it work. 8000-L044. Which you must have included in the newest version because it's the first version I downloaded.

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

Post by jlehtone » Thu, 20. Nov 08, 08:28

@Lucike: I had time to peek some more into the source. Configuration has "percentage" section for some BuySellCondition values. Logically, it does use [0..100] as valid range. Which is intuitive.

IIRC, the X3R version had [0..101] as valid range, negative values did "reset to default", and values over 101 clamped to 101. For some of those conditions, the 101 prevented the condition from never being true, which may occasionally be desirable.

As you may recall my "tiny" blurb in the main HVT thread about Frachterladeraum, seeing valid range for that condition expand way beyond ..100] could be most interesting. ("Could" assumes that my line of logic has any sense. A dangerous assumption. ;) )
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

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

Post by Lucike » Thu, 20. Nov 08, 08:41

jlehtone wrote:IIRC, the X3R version had [0..101] as valid range, negative values did "reset to default", and values over 101 clamped to 101. For some of those conditions, the 101 prevented the condition from never being true, which may occasionally be desirable.
jup, I'll change that.
jlehtone wrote:("Could" assumes that my line of logic has any sense. A dangerous assumption. ;) )
jup, dangerous. ;) :D
Image

fung
Posts: 6
Joined: Sat, 22. Nov 08, 01:43

Post by fung » Sat, 22. Nov 08, 06:13

My TS also just sits at my SPP on standby that has no resources. Here's my log:

Code: Select all

Commercial Agent

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

Pilot: Sendy Selek
Pilot rank: Apprentice
Flight time: 0:35 hour
Employ time: 8:22 hour
Payment: 0 credits
Profit: -359,253 credits
Expenses: 0 credits

Promotion: Yes
Payment: Global account

Ship name: Your Mercury Super Freighter
Ship class: TS
Ship type: Mercury Super Freighter
Transport class: Extra Large Containers XL
Cargo bay size: 5550 units
Cargo bay volume: 120 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: installed
Fight Command Software MK2: installed

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

Home base: Your Solar Power Plant M alpha (Home of Light)
Home base class: Factory
Home base type: Argon Solar Power Plant M
Station account: 2,781,724 credits
Trade jumps: 2 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: Home of Light
Home jumps: 2 jumps

Ware list type: Blacklist
Ware list: -

Tradeable ware from home base:
     Energy Cells: price 18 credits, cargo bay 0 units, cargo bay 0 %
     Crystals: price 1,519 credits, cargo bay 0 units, cargo bay 0 %

Energy Cells (Product (Standard search engine))
     Cahoona Bakery L alpha (Home of Light): price 18 credits, cargo bay 6,343 units, cargo bay 25 % ( Free )
Thanks!

edit: nvm

Kilrathi Avenger
Posts: 275
Joined: Fri, 6. Feb 04, 20:16
x3tc

Post by Kilrathi Avenger » Sat, 22. Nov 08, 07:32

If possible, could you please release this as a single SPK package with all libraries etc included. :?
"As I slide down the banister of life;
my job is just another splinter in the bum"

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

Post by Lucike » Sat, 22. Nov 08, 08:34

@fung

The log is not complete. If you start the analyse log, then you must wait until the menu opens up again.

... but, set the price of the crystals slightly higher.

@Kilrathi Avenger

I'm looking for someone yet. I have not enough time to make SPKs. But the libraries must be a single SPK.
Image

Post Reply

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