[X3R] A question about CAG configuration.
Moderator: Moderators for English X Forum
-
- Posts: 7
- Joined: Thu, 25. Jul 13, 08:35
[X3R] A question about CAG configuration.
Hi all,
I have a quick question about CAG configuration commands. I have an Ore and Silicon mine that I use to supply a couple 1MJ shield facs, a Skeeter missle fac and a Crystal fac. These mines produce a lot more minerals than my facs need. So, I have a CAG selling off the excess. However, he loves to ignore my sell at X% of stock level configuration. I think it's because the other configuration for his Mercury's load limit is set at 30%. So, to me, it seems that he checks the stock level and it hasn't reached my configuration of 80% but he jumps to the 30% load limit command and takes the products anyway. The reason I think this is because of the report. Here is the line:
I sell products at a stock level 80% and higher or if I can load 30% into my cargo bay.
The OR in that sentence leads me to believe what I stated earlier. Is there any way around this? Why wouldn't it be an AND? Can I change that somehow?
Thanks in advance for any help.
I have a quick question about CAG configuration commands. I have an Ore and Silicon mine that I use to supply a couple 1MJ shield facs, a Skeeter missle fac and a Crystal fac. These mines produce a lot more minerals than my facs need. So, I have a CAG selling off the excess. However, he loves to ignore my sell at X% of stock level configuration. I think it's because the other configuration for his Mercury's load limit is set at 30%. So, to me, it seems that he checks the stock level and it hasn't reached my configuration of 80% but he jumps to the 30% load limit command and takes the products anyway. The reason I think this is because of the report. Here is the line:
I sell products at a stock level 80% and higher or if I can load 30% into my cargo bay.
The OR in that sentence leads me to believe what I stated earlier. Is there any way around this? Why wouldn't it be an AND? Can I change that somehow?
Thanks in advance for any help.
-
- Posts: 7
- Joined: Thu, 25. Jul 13, 08:35
Yes and yes. It sells the excess (over 80%) Ore and Silicon that is not needed by my factories. Or it's supposed to. It sells the stuff great, too great. It will sell my entire stock down to nothing.So you have sell products set to 80%. And the 30% you are talking about is it's cargo bay percentage?
Are the wares it's shipping definitely products?
I originally had it set at 50% and it was doing the same thing. So I bumped up to 80 and still the same. I'm going to try your advice and go down to 60% and restart. This time I'll reset his entire setup and then reinitialize. See what that does.
I'm wondering if I set the cargo bay percentage to 0 if that may shut off that load limit stipulation. If your advice doesn't work I will try that. Either way I will report on my progress.
Thanks for your help.
- Threesixtyci
- Posts: 1404
- Joined: Fri, 24. Oct 08, 02:57
Code: Select all
Input - {3} {3} {C}
Auxiliary Courier or higher: Products are sold when stock is above C% (default 20%)
Input - {3} {4} {D}
Auxiliary Courier or higher: Products are sold if the pilot can load D% into his cargobay (default 30%)
Maybe setting the D% to 101% will disable it? I don't know. If you can disable it then the ship will be forced to go by the C% value. I'd think.
I think a CLS1's will do what you want. But you'd need a go between station to get the surplus sales to work. With the go between station being controlled by a default CAG. And the CLS1 controlling your owned station to owned station, stuff.
http://forum.egosoft.com/viewtopic.php?t=151491
Both CAG and CLS1 should follow their settings in regards to this. I know for a fact you can combine multiple CLS1s and CAGs to over flow at different levels to different things.
But they both can sometimes ignore their percentage settings and ship too much. Having a fiddle around usually makes it work. As noticed by the OP, it is probably a cargo size issue.
But they both can sometimes ignore their percentage settings and ship too much. Having a fiddle around usually makes it work. As noticed by the OP, it is probably a cargo size issue.
-
- Posts: 7
- Joined: Thu, 25. Jul 13, 08:35
Thanks for the advise guys. I haven't had a chance to play and thus see the results of my restart at 60% yet, but once I get home from work I'm going to check it out. It's actually pretty interesting the way CAG and the CLS's work but I'm just now learning the little nuances. I can see establishing an entire fleet of minutely configured CLS and CAG traders in the future once my empire grows, of course.
I'll report on my progress later tonight. Thanks again everyone.
PS I've noticed a problem with one of my CLS's not going to a specific complex, staying on standby constantly. This is leading me to believe that small adjustments to either the station configuration or the ship's can have drastic effects on whether or not the ship will follow proper commands.
I'll report on my progress later tonight. Thanks again everyone.
PS I've noticed a problem with one of my CLS's not going to a specific complex, staying on standby constantly. This is leading me to believe that small adjustments to either the station configuration or the ship's can have drastic effects on whether or not the ship will follow proper commands.
- Threesixtyci
- Posts: 1404
- Joined: Fri, 24. Oct 08, 02:57
I think we are talking about intermediate products right?
if not disregard my msg
If you have the signed bonus pack from egosoft and not the latest,
the script is bugged no question about it. I have fiddled with it lately.
He will not take in consideration the : Sell intermediate product %. even if you put 101% .
He will just use the buy intermediate %.
if not disregard my msg
If you have the signed bonus pack from egosoft and not the latest,
the script is bugged no question about it. I have fiddled with it lately.
He will not take in consideration the : Sell intermediate product %. even if you put 101% .
He will just use the buy intermediate %.
-
- Posts: 7
- Joined: Thu, 25. Jul 13, 08:35
Not intermediates. Silicon and ore from a simple 3 mine complex (2 sil, 1 ore). But your info is good to know for the future. At least.... I assume those aren't considered intermediates in that kind of complex? Hmmm...I think we are talking about intermediate products right?
if not disregard my msg
Anyways, I haven't had much time to play and observe the CAG after I reset. However, preliminary observation looks good after I did a complete reset of the CAG configuration. I also removed the homebase and reset all the homebase and consumer base's values before reassigning homebase and restarting commercial representation.
One thing I noticed is that the "Buy resources at X%" is working great. I have it set at 10% because I have a limited supply of my own E-Cells and sometimes I need my CAG to buy a few from NPC stations in order to fill a production gap. So, at least this configuration option works as it should.
If my CAG goes back to selling all my stock I'm going to try a previous posters advice and set the load limit value to 101%. I've seen this suggestion a few times before on other topics so I'm thinking it might be the solution. If that doesn't work I may have to learn a bit about scripting and delete the load limit stipulation all together ( as another poster suggested). Either way, if anything changes I will report my solution in hopes that it will help others. Thanks all.
It's not a bug. They always prioritise buying over selling. They will try to achieve their buy inters before they will try to satisfy their sell inters.RayF wrote:He will not take in consideration the : Sell intermediate product %. even if you put 101% .
He will just use the buy intermediate %.
The same with buy resources and sell products, if you have the same ship set to ship both.
The reason for this is a very good one, in that it will always try to keep the complex stocked with required resources, so it will definitely produce products.
What this means in practise, is that you either need to separate wares and tasks to different ships. Or "saturate" the tasks with more ships.
The default settings for inters is set to buy up to 10% and sell over 80%. One ship should definitely by fine for this, it's a basic top up/overflow mechanism. However your question implies you have set it so the buy inters is higher than the sell inters, so that your ships trade in them? Which is a great thing to do.
But I find in this case it's much better to set one ship to buy them, and another to sell them. If you separate any tasks, buying and selling is the ones to do, for precisely this reason.
As for the OPs problem. You really really shouldn't need to mess about in the script editor. It's an issue that should be fixed by playing with settings.
Setting cargo percentage to 101% will cause it to ignore that condition.
Some quick questions. What is the relevant stock level and capacity of the wares you are trying to ship? And what is the cargo capacity of the ship you are using?
Hey Inf,
yes i think the best solution to this is just use 2 cags: One for buying & one for selling..trying to combine selling & buying in one ship especially if the complex is big it makes things very hard..
Now as for the 'bug', we talked about this in my thread. But just to explain to you why i call it bug:
the testing was done with one intermediate product only: Energy cells.
My final settings where :
Buy intermediate product :10%
Sell intermediate product: 100% (which means sell inter prod if level is more that 100% right?)
so, this is what was happening :
1) cag would buy ECs and fill stock as told upto 10% of the total stock.
2) cag , seeing now that Ecells stock is more than 10% would go and sell it!! (what?)
3) cag seeing that Ecells level (after the sale) is bellow 10%, he would go buy Ecells again !!
4) GOTO step2.
so, he was buying & selling all the time . the stock would stay closed to that 10%
edit: sorry forgot..wanted to ask you also , out of scope but anyway, which version cag sript are you using? and also if you know, if i install the latest and not signed if it will mess up everything? iam thinking of ugrading but iam worried its going to mess up everything..
yes i think the best solution to this is just use 2 cags: One for buying & one for selling..trying to combine selling & buying in one ship especially if the complex is big it makes things very hard..
Now as for the 'bug', we talked about this in my thread. But just to explain to you why i call it bug:
the testing was done with one intermediate product only: Energy cells.
My final settings where :
Buy intermediate product :10%
Sell intermediate product: 100% (which means sell inter prod if level is more that 100% right?)
so, this is what was happening :
1) cag would buy ECs and fill stock as told upto 10% of the total stock.
2) cag , seeing now that Ecells stock is more than 10% would go and sell it!! (what?)
3) cag seeing that Ecells level (after the sale) is bellow 10%, he would go buy Ecells again !!
4) GOTO step2.
so, he was buying & selling all the time . the stock would stay closed to that 10%
edit: sorry forgot..wanted to ask you also , out of scope but anyway, which version cag sript are you using? and also if you know, if i install the latest and not signed if it will mess up everything? iam thinking of ugrading but iam worried its going to mess up everything..
Again I think it's a similar issue to the OP. When you set a condition that is impossible for it to achieve, it causes it for spazz out and do odd things. If you reduced that sell inters % quite a lot, to say 50% it may fix the problem. Depending ofc on the relative sizes involved.
Or if you don't want it to sell inters, change it to a shopper.
I've found the 101% conditions to be a bit flaky to be fair. Sometimes not working even they should.
I've got the latest TC and latest bonus pack for it. CBA looking for numbers
If it is unsigned it will probably mark you modified. Not sure on that tho. Other effects I really wouldn't know, you'd have to ask in the relevant thread
Or if you don't want it to sell inters, change it to a shopper.
I've found the 101% conditions to be a bit flaky to be fair. Sometimes not working even they should.
I've got the latest TC and latest bonus pack for it. CBA looking for numbers
If it is unsigned it will probably mark you modified. Not sure on that tho. Other effects I really wouldn't know, you'd have to ask in the relevant thread
- Memnoch_osh
- Posts: 169
- Joined: Tue, 23. Mar 04, 02:05
It is also worth noting that the supply condition percentages apply to different targets depending on the which specific load, unload, buy and sell command you used.
For instance, Load X and Load up to X compares the supply condition vs the available items / the size of your hold.
The Unload X command compares the delivery condition percentage to the size of your hold as well.
The Unload up to X command compares against the volume of the item you are unloading to.
I may be mistaken slightly, as it has been awhile since I needed to know the difference.
For instance, Load X and Load up to X compares the supply condition vs the available items / the size of your hold.
The Unload X command compares the delivery condition percentage to the size of your hold as well.
The Unload up to X command compares against the volume of the item you are unloading to.
I may be mistaken slightly, as it has been awhile since I needed to know the difference.
-
- Posts: 7
- Joined: Thu, 25. Jul 13, 08:35
Ideally I want the CAG to sell only when the stock is over 80%. However, as I don't use the ore or silicon THAT much in my manufacturing it's not crucial that the figures be perfect. Precise numbers to answer your question are as follows:Some quick questions. What is the relevant stock level and capacity of the wares you are trying to ship? And what is the cargo capacity of the ship you are using?
Mineral Complex:
1664 Ore capacity
2080 Silicon capacity
(^ I believe that's what you're asking, my brain is running slow today)
CAG ship is a Mercury Tanker with 5,700 units of cargo space.
Ideal sell level would be 80%.
I believe ultimately the answer to my problem is the 101% input in the load limit configuration option. Thank God I don't have to mess around with the script, that just makes me feel... uneasy.
Ok so take Ore for example. Capacity of 1664 and CAGs selling at 80%.
This means there is 20% to play with = 1664 x 0.2 = 332.8 Ore
This takes 8 x 332.8 = 2663 cargo space to ship.
Do the same with silicon:
2080 x 0.2 x 18 = 7488 cargo space.
The Mercury Tanker set at 30% cargo bay so needs to ship 0.3 x 5,700 = 1,710 cargo units at once.
This is less than 2663 and a lot less than 7488, so there should be no issues what so ever. And I do not know why it is broken. Hopefully fiddling with that cargo percentage should help. It may also be that the difference between those two numbers is causing it issues.
It's also worth noting that, since your ship amounts for Ore and Silicon are so different, it could be well worth using different sized ships to sell each of them.
Since the most cargo space of Ore you can ship at once is 2663, it makes more sense to use a smaller faster ship to sell that.
The tanker should work ok for the silicon, however it is very slow.
This means there is 20% to play with = 1664 x 0.2 = 332.8 Ore
This takes 8 x 332.8 = 2663 cargo space to ship.
Do the same with silicon:
2080 x 0.2 x 18 = 7488 cargo space.
The Mercury Tanker set at 30% cargo bay so needs to ship 0.3 x 5,700 = 1,710 cargo units at once.
This is less than 2663 and a lot less than 7488, so there should be no issues what so ever. And I do not know why it is broken. Hopefully fiddling with that cargo percentage should help. It may also be that the difference between those two numbers is causing it issues.
It's also worth noting that, since your ship amounts for Ore and Silicon are so different, it could be well worth using different sized ships to sell each of them.
Since the most cargo space of Ore you can ship at once is 2663, it makes more sense to use a smaller faster ship to sell that.
The tanker should work ok for the silicon, however it is very slow.
-
- Posts: 7
- Joined: Thu, 25. Jul 13, 08:35
I totally see how that can get a little confusing for the CAG script. Hell, it's kinda confusing to me. Obviously, even small changes in the numbers could have drastic effects on how the CAG implements it's configuration.
I'm definitely going to get a faster ship for my ore. I didn't realize how slow that daggum tanker is. It's been so long since I bought it. Actually, I think an audit of all my trade ships, CLS 1 & 2, CAG's and MK3's, is definitely in order. I have to say, thanks a ton for your advice. It's given me a lot to think about.
On a side note, I initially thought messing with the CAG and CLS commands too much like work. It's actually really fun when you get into the meat and potatoes of it. I sat in my ship for several hours the other night setting up different ships to perform different tasks using the different softwares and before I knew it it was 3 AM and I had to be up for work by 6. HAHA I haven't pulled an all nighter on a game in years. It was totally worth it.
Anyways, time to go check on my budding empire. Thanks again for all the help! [/quote]
I'm definitely going to get a faster ship for my ore. I didn't realize how slow that daggum tanker is. It's been so long since I bought it. Actually, I think an audit of all my trade ships, CLS 1 & 2, CAG's and MK3's, is definitely in order. I have to say, thanks a ton for your advice. It's given me a lot to think about.
On a side note, I initially thought messing with the CAG and CLS commands too much like work. It's actually really fun when you get into the meat and potatoes of it. I sat in my ship for several hours the other night setting up different ships to perform different tasks using the different softwares and before I knew it it was 3 AM and I had to be up for work by 6. HAHA I haven't pulled an all nighter on a game in years. It was totally worth it.
Anyways, time to go check on my budding empire. Thanks again for all the help! [/quote]