[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

Gregorovitch
Posts: 629
Joined: Mon, 5. Sep 11, 21:18
x4

Post by Gregorovitch »

No, I've got no desire to micromanage anything if I can avoid it. So long as there's nothing I should or should not be doing about this then I'm happy, and by the sounds of it that's the case - don't bother with satalites on account of CAGs 'cos it won't make much difference.
User avatar
Ikaruga
Posts: 376
Joined: Fri, 30. Jan 04, 14:26
x4

Post by Ikaruga »

I'd like to know if it is possible to cheat the level of the Commercial agents, so they have max level when they start. Does anyone know how to do that ?
If brute force doesn't solve your problems, then you aren't using enough
Tritous
Posts: 899
Joined: Sat, 15. Jan 05, 17:20
x3tc

Post by Tritous »

I'm not certain, but I know it can be done for UTs by calling the correct create pilot script with the right parameters. you'll have to browse the script to find out i guess
Give a man a fire, he'll stay warm for a day
Set a man on fire, he'll stay warm for the rest of his life ;)
Marvelous3175
Posts: 265
Joined: Mon, 26. Nov 07, 16:13
x3tc

Post by Marvelous3175 »

Ikaruga wrote:I'd like to know if it is possible to cheat the level of the Commercial agents, so they have max level when they start. Does anyone know how to do that ?
You don't have to cheat just
Spoiler
Show
start the CAG's in the tradestation in Herron's Nebula. There's a good chance that they have a higher rank. Not the highest, but enough to use the jumpdrive from the start.
Turbo12
Posts: 27
Joined: Tue, 25. Jan 11, 22:17
x3tc

Post by Turbo12 »

It is my understanding that the CAG salesman sells only one kind of ware per trip. Is there a possibility to change the script and make the salesmen sell more than one? Say, one extra per experience level.

I have centralized weapon sales through the hub. And the military outposts and bases buy around 10 different kinds of weapons each.
So a CAG salesman must do 10 different trips to the same station, while a CAG doing external logistics (loading, selling) would only need 1. But I find it too much work to configure the EL for all the military bases in the universe!

The algorithm wouldn't have to be too complicated. After choosing one ware and one station for selling, it would check if it can sell any more wares to the same station. Simple enough.
Tritous
Posts: 899
Joined: Sat, 15. Jan 05, 17:20
x3tc

Post by Tritous »

and select the distribution of wares that maximises the profit?
Give a man a fire, he'll stay warm for a day
Set a man on fire, he'll stay warm for the rest of his life ;)
Khift
Posts: 127
Joined: Mon, 20. Dec 10, 02:11

Post by Khift »

Marvelous3175 wrote:
Ikaruga wrote:I'd like to know if it is possible to cheat the level of the Commercial agents, so they have max level when they start. Does anyone know how to do that ?
You don't have to cheat just
Spoiler
Show
start the CAG's in the tradestation in Herron's Nebula. There's a good chance that they have a higher rank. Not the highest, but enough to use the jumpdrive from the start.
This does not seem to be true any more. Or maybe it never was true. With version 3.3.09 (latest I could find), CAGs that start in the trading station at Herron's Nebula always, 100% of the time, start at apprentice for me. CLS pilots at the same station on the other hand can start from level 1 to 4 at random.

I think, although don't quote me on this, that you can start a pilot as CLS and then swap him to CAG and have levels be retained. If so, that's the only way I can see to get a CAG above level 1 from the beginning. Which is an absolute necessity because level 1 CAGs can't sell wares, and honestly that is absolutely r******* because it makes it impossible to level a CAG on any self sufficient loop complex. If you build a self sufficient complex loop and you don't have any leveled CAGs then congratulations, you can't use CAG to manage the factory.
Marvelous3175
Posts: 265
Joined: Mon, 26. Nov 07, 16:13
x3tc

Post by Marvelous3175 »

Khift wrote:
Marvelous3175 wrote:
Ikaruga wrote:I'd like to know if it is possible to cheat the level of the Commercial agents, so they have max level when they start. Does anyone know how to do that ?
You don't have to cheat just
Spoiler
Show
start the CAG's in the tradestation in Herron's Nebula. There's a good chance that they have a higher rank. Not the highest, but enough to use the jumpdrive from the start.
This does not seem to be true any more. Or maybe it never was true. With version 3.3.09 (latest I could find), CAGs that start in the trading station at Herron's Nebula always, 100% of the time, start at apprentice for me. CLS pilots at the same station on the other hand can start from level 1 to 4 at random.

I think, although don't quote me on this, that you can start a pilot as CLS and then swap him to CAG and have levels be retained. If so, that's the only way I can see to get a CAG above level 1 from the beginning. Which is an absolute necessity because level 1 CAGs can't sell wares, and honestly that is absolutely r******* because it makes it impossible to level a CAG on any self sufficient loop complex. If you build a self sufficient complex loop and you don't have any leveled CAGs then congratulations, you can't use CAG to manage the factory.
Right, my mistake you can only get trained CLS. Then you make him CAG, all ranks of Lucikes pilots are fully compatible with each other (he divides in civil and military)!
Bobisback
Posts: 81
Joined: Fri, 20. Nov 09, 03:10

Post by Bobisback »

I am having an issue and any help would be great, I am trying to setup some CAG to buy energy cells for my complex, but for some reason it jsut sits in the complex docked saying SAG on standby? any ideas? I have the energy cells ware added to the list and I have the price configured in the station and in the command window and the jump range is set right why are they not doing anything?
Vayde
Posts: 850
Joined: Fri, 6. Feb 04, 21:02
x3tc

Post by Vayde »

@Bobisback

Does your complex have credits in it for the CAG to use when buying ecells?

Have you added the ecells to the Blacklist and not the Warelist?

Have you home based the CAG to your station?

Is the CAG set to shopper?

How many stations are in your complex and what types are they?

Products can be set to intermediates depending on what factories you link in and it's possible that ecells are now intermediates and you are not allowing your CAG to trade in them...

Try to leave all new starting CAG's on all the default settings if they are only buying a single ware. All you need to adjust is the Trade duties and set them to shopper not Trader or Salesman.

Here is a great link for more info http://forum.egosoft.com/viewtopic.php?t=309562
Still life in the old dog yet...
Bobisback
Posts: 81
Joined: Fri, 20. Nov 09, 03:10

Post by Bobisback »

Thanks for the reply, yes complex has credits, yes added it to black list, yes it is home based, it was set to shopper, it was a huge energy complex with crystal fabs and food stuff. I think it was the intermediates part, but I ended up just using sell ware best price worked great for some time. but now I have another issue.


I am having a issue where the CAG just does nothing in station, I have a depot which I stockpile surplus stuff ranging from weapons shields ammo to minerals, I just want the agent to see everything. so I put ware type to black list with no wares selected and I have tried ever possible combination of the trader duties and I cannot get him to move. I also had alot of issues with CAG for other uses to like selling crystals and selling ecells, mainly been using sell ware best price but for this case I need to to sell everything. any ideas what may be wrong?
Vayde
Posts: 850
Joined: Fri, 6. Feb 04, 21:02
x3tc

Post by Vayde »

CAG pilots are a great bunch of guys but like any new employee in a company they don't know much about how to do their jobs and need to train. All new CAG pilots can only buy wares for their new station until they have trained up enough to be able to sell.

When you say deport do you mean an Equipment dock or Trading station? As far as I'm aware a CAG can only buy and sell in the products stocked at the station they work for, so if they are not listed in the stations inventory I don't think it can see them.
Still life in the old dog yet...
Bobisback
Posts: 81
Joined: Fri, 20. Nov 09, 03:10

Post by Bobisback »

ok got you, ya I figured it out they are just not trained enough they are not allowed to use them yet so. training here I come haha


can I train them with CLS and then put them to work as a CAG and it will retain its training?

depot I guess was added to the game by x-tended probably but I am guessing as far as CAG's are concerned it is a equipment dock so

and since I am selling everything the inventory thing should not matter because if it is stored there it is on the ware list.
User avatar
Saetan
Posts: 3223
Joined: Wed, 1. Feb 06, 19:26
x4

Post by Saetan »

Bobisback wrote:can I train them with CLS and then put them to work as a CAG and it will retain its training?
Yes, you can.
Vayde
Posts: 850
Joined: Fri, 6. Feb 04, 21:02
x3tc

Post by Vayde »

Bobisback try here http://forum.egosoft.com/viewtopic.php?t=277232 for a guide to fast tracking your CLS/CAG pilots.
Still life in the old dog yet...
Bobisback
Posts: 81
Joined: Fri, 20. Nov 09, 03:10

Post by Bobisback »

alright thanks, I read that the other day, but I figured out all the issues I was having haha

p.s I am running into more problems this time i cannot get the CLS2 to work right, I am trying to get him to pick up missiles from two locations and unload them in two different places, and for some reason he just goes to home port and stays idle doing nothing :(

I even tried to using two CLS1 instead, but those go the missiles plants load up and go on stand by they are all maxed skill to. ummmmm maybe depots will not work with this mod. idk though because I have about 5 other ships with CLS1 and 2 using depots just fine....
boxleitnerb
Posts: 250
Joined: Mon, 5. Dec 05, 15:00
x3tc

Post by boxleitnerb »

Will the CAG use the jumpdrive? I set it to "yes" but he is not using it. Jump threshold is 1, allowed jumps is 2 sectors away which should be just fine.
User avatar
Emerson d'Anite
Posts: 1288
Joined: Tue, 7. Mar 06, 20:24
x4

Post by Emerson d'Anite »

boxleitnerb wrote:Will the CAG use the jumpdrive? I set it to "yes" but he is not using it. Jump threshold is 1, allowed jumps is 2 sectors away which should be just fine.
As said on the first page, only when his level is Trader.
« Il suivait son idée. C'était une idée fixe et il était surpris de ne pas avancer. » :)
Jacques Prévert
boxleitnerb
Posts: 250
Joined: Mon, 5. Dec 05, 15:00
x3tc

Post by boxleitnerb »

Somehow I missed that, thanks.

My first complex is running nicely, however the traders are selling my intermediary product (E-cells). I disabled this in the complex settings themselves ("none") and set the appropriate parameter in the cargo ships to 0%. Still they sell my e-cells - why?
User avatar
Peanutcat
Posts: 297
Joined: Fri, 8. Jul 11, 23:56
x4

Post by Peanutcat »

any1 have a working download link?
F signature

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