[Bonus Plugin] Commercial Agent

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

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

Post by jlehtone »

@Marblecatdog: Where is the station, and where do the fly to (sectors)?

@Kari91:
Enemy contact: If the freighter has the Fight Command Software MK1, then the pilot may make his ship safer. He buys fight drones in the current sector and equips his ship with more speed and agility. If the experienced pilot has a jump drive, then he can venture into unsafe sectors. If the pilot has the Fight Command Software MK2 in his ship and thus can use the Missile Defense Mosquito, then he will buy some Mosquito missiles too.

Friend/Foe behaviour: The pilot does not fly to sectors owned by an enemy race. Pilot considers his ship's list of Foes for this. The "Show as enemy, if enemy to me" setting should preferably be "No". The pilot will not even fly through hostile sectors, if he has no jumpdrive.

Trading Stations and Equipment Docks: When the pilot works for a Trading Station or en Equipment Dock, he will buy and only buy goods, if the dock does not allow other races to trade with it. Agent will sell and only sell goods, if the dock lets other races to trade with it. This applies to player HQ too.
All CAG on HQ either buy or sell. They cannot do both.
Khourieat
Posts: 47
Joined: Sun, 12. Jul 09, 23:54

Post by Khourieat »

Is there a way to set your station traders to auto sell weapons to equipment docs that don't stock that weapon?

Theres no mention of this not working with CAs, so I had built my first complex with Beta PACs in mind, since the fab kit sells at the Argon shipyard, near my complex.

When I saw them pilling up and nobody selling them, I came looking here, and found the bad news.

I don't know of a way to remove the station from the complex, plus that'd still be 5+ million down, which is a lot this early, any way to salvage this?

I'd sell them myself but I can't seem to find a way to transfer the wares to my ship, only to buy them, that'd still be pretty boring though, are there any scripts to set up auto-traders to do this?

edit: Arrrr, nevermind, I'll just make them travel really far and sell at Kingdoms End for now, or farther if that fills up. I guess this is normal AI behaviour and that's why it's not on the first post?
lincs_geezer
Posts: 211
Joined: Wed, 12. Jan 05, 03:05
x2

Script idea - Improved CAG's (buy Cag levels)

Post by lincs_geezer »

I'm here with cap in hand wondering if any genius could modify the CAG script so that you buy levels, or at least level 1, so that you don;t have to faf about training them just to buy intermediate products.

100k per level sound about fair?
jlehtone
Posts: 22512
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

You are not the first one asking quick CAG level up. Apricotslice probably has made such script, but the first one I did found was the one by Gazz, here.

Now, as per Forum Rule no 12, a merge to the CAG thread. (You do ask about feature of CAG, and CAG users are the ones who know about or are interested in such matters.)
lincs_geezer
Posts: 211
Joined: Wed, 12. Jan 05, 03:05
x2

Post by lincs_geezer »

I'm grateful for pointing that out, but either that script doesn;t work or it's just designed to train them faster not start them out a level higher.

If anyone knows of a CAG trainer (just to level 1 would be nice) so that they will buy intermediate products from the get go I would be grateful to hear where.

None of my complexes have resources and it seems a bit stoopid to have to set up a station so it can buy energy cells as a resource rather than have it buy the same product in a complex that it can;t buy just be cause the game classifies it as an intermediate product.

Thanks
lincs_geezer
Posts: 211
Joined: Wed, 12. Jan 05, 03:05
x2

Post by lincs_geezer »

A ha after more digging if anyone else stumbles across this it seems Benco Trade School might do the trick:

http://forum.egosoft.com/viewtopic.php?t=172865
Lord Dakier
Posts: 3258
Joined: Fri, 8. Dec 06, 13:45
x4

Post by Lord Dakier »

I'm lost... it seems now they just wont trade after awhile. I'm so behind on my business its unbelievable. Game day 4 and I can just about make 200k.

Now it seems that they cant recieve their payment. It's really Pi$$in Me off!...
jlehtone
Posts: 22512
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

lincs_geezer wrote:I'm grateful for pointing that out, but either that script doesn;t work or it's just designed to train them faster not start them out a level higher.
The "does not work" question should go to the thread of the script, as well as feature questions, but as far as I can see that script adds 2 hours to accumulated flight time of CAG per call, and one call takes perhaps 5 seconds. So:
1. Start CAG
2. Stop CAG
3. Start Trainer
4. Restart CAG
should yield a second level CAG within seconds.


Myself, I train with CLS Mk2, vanilla. Takes 8 hours per pilot, but I can train several simultaneously, without owning a single station.

Quiker: Start new CLS2 at Trade Dock of Herron's Nebula. The pilot is randomly at level 1--3. For desperate: reload and try again, if not level 3.

Then stop CLS2 and start CAG, or Move pilot to production vessel. Rinse and repeat.
jlehtone
Posts: 22512
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

Lord_Dakier wrote:Now it seems that they cant recieve their payment. It's really Pi$$in Me off!...
They do go to strike if you don't have enough money for salaries on your player account. Happened to me recently too. :oops:

Stop them (you can set them run as Trade Mk1 temporarily), gather enough credits, and them restart them.


Or is it the stations out of money? Stations cannot buy resources without credits. CAG would primarily sell, if station has less than 20k, but if CAG cannot sell yet ...
Lord Dakier
Posts: 3258
Joined: Fri, 8. Dec 06, 13:45
x4

Post by Lord Dakier »

No the station has the credits and everything. It says that they cannot retract their salary from the station however.
lincs_geezer
Posts: 211
Joined: Wed, 12. Jan 05, 03:05
x2

Post by lincs_geezer »

jlehtone wrote:
lincs_geezer wrote:I'm grateful for pointing that out, but either that script doesn;t work or it's just designed to train them faster not start them out a level higher.
The "does not work" question should go to the thread of the script, as well as feature questions, but as far as I can see that script adds 2 hours to accumulated flight time of CAG per call, and one call takes perhaps 5 seconds. So:
1. Start CAG
2. Stop CAG
3. Start Trainer
4. Restart CAG
should yield a second level CAG within seconds.


Myself, I train with CLS Mk2, vanilla. Takes 8 hours per pilot, but I can train several simultaneously, without owning a single station.

Quiker: Start new CLS2 at Trade Dock of Herron's Nebula. The pilot is randomly at level 1--3. For desperate: reload and try again, if not level 3.

Then stop CLS2 and start CAG, or Move pilot to production vessel. Rinse and repeat.
Many thanks for that the pilot name has indeed changed.

However they still sit there on standby. gutted. I'll start going through all the documentation again to try and see why. :cry:

Edit:

dam dam dam dam. They don't buy intermediate products until freighter pilot second class. This is like trying to chew bricks! Oh well I'll just have to train them like eveyone else, although it just seems such a tedious task and has no point to it. Even the bog standard Egosoft dumber then an amoeba who hasn't even learned to self divide yet can go out and buy stuff. Tantrum over.

Thanks

Edit2: a Ha that gives me an idea. I'll split out my complexes. I'll have one complex that doesn't even need my own frieghters to buy (i.e. sells stuff that the AI comes and buys) and let the AI trader squabble for docking ports. Then I'll set up a second complex using station manager for all the products that they don;t buy that i have to deliver....a debacle but it should work.
Last edited by lincs_geezer on Thu, 23. Jul 09, 21:22, edited 1 time in total.
jlehtone
Posts: 22512
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

Just call the Trainer command a couple more times. Each call adds one level.
lincs_geezer
Posts: 211
Joined: Wed, 12. Jan 05, 03:05
x2

Post by lincs_geezer »

jlehtone wrote:Just call the Trainer command a couple more times. Each call adds one level.
lol really after that huge rant of mine?
lincs_geezer
Posts: 211
Joined: Wed, 12. Jan 05, 03:05
x2

Post by lincs_geezer »

lincs_geezer wrote:
jlehtone wrote:Just call the Trainer command a couple more times. Each call adds one level.
lol really after that huge rant of mine?

YIPPPPPPPPPPPPPEEEEEEEEEEE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thanks so much!!! Jlehtone is the man!


I'm going to put all this in that script's thread so no-one else struggles with it.
jlehtone
Posts: 22512
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

Players always rant how the X-Universe lacks "life" and "immersion". Then somebody bothers to write a script that adds "pilots" that "learn". Isn't that "life"? Definitely not a sterile instant "I win" -button. (Well, CAG is almost such, it is simply masqueraded. ;) )

And what happens? "Oh noes, it is so complex. Why cannot it ... ?" :P


One simply cannot make everyone happy. :goner:
lincs_geezer
Posts: 211
Joined: Wed, 12. Jan 05, 03:05
x2

Post by lincs_geezer »

jlehtone wrote:Players always rant how the X-Universe lacks "life" and "immersion". Then somebody bothers to write a script that adds "pilots" that "learn". Isn't that "life"? Definitely not a sterile instant "I win" -button. (Well, CAG is almost such, it is simply masqueraded. ;) )

And what happens? "Oh noes, it is so complex. Why cannot it ... ?" :P


One simply cannot make everyone happy. :goner:
Considering that most people set up "fake" trading runs to train their CAGS though....which is what I would of done....is hardly immersion. Surely you'd agree with that.

I didn't want to cheat, if the Egosoft released Station Manager worked properly I'd of een more than happy with that.

If they had put enough docking ports on I'd of been happy with that.

If AI traders didn't sit there waiting for the next cycle I'd of been happy with that.

If I simply alter the intermediate products to be resources I'd of been happy with that, and to start with CAGs at level one.

Sorry but get my drift?
whiteknight1234
Posts: 62
Joined: Thu, 21. Oct 04, 21:47
x3

Post by whiteknight1234 »

hi all, this is a great script, but could someone tell me step by step, how to edit it. I want to alter the default settings.

I have a 'training ground' but it is a real hassle to alter the settings manually (eg 3,3,x) when there is 10 ships at the same time to change.

thanx

WK
lincs_geezer
Posts: 211
Joined: Wed, 12. Jan 05, 03:05
x2

Post by lincs_geezer »

Save yourself a ballache and use the CAG trainer? Is cheating a bit but then setting up training grounds always seemed a bit to much to me....
barracuda231
Posts: 221
Joined: Mon, 17. Sep 07, 11:52

Post by barracuda231 »

quick question:

i have 3 cag assigned to my complex and they have been buying stuff for a long time. my complex is running nicely. problem: my CAG's are still at Apprentice level?

any idea why
jlehtone
Posts: 22512
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

Search Bonuspack/CAG Readme section "Equipment and Prerequisites" for training.

Return to “X³: Reunion - Scripts and Modding”