[SCR] Station Financial Manager Mk2
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Problems with energy selling
HI again!
I have a pretty big complex built as an energy loop, IE food+minor food, silicon, crystal fabs and SPP's.
Now this problem im having is quite similar to what i explained on page 28 (this thread) Except that i have no ship selling at all they all sits and rest, and rests...
At first it worked great, the first 22 million or so, but then all my traders just gave up :/ 7-8 Mistral SF's.
And this seem to only occur when i set them to only sell energy cells, which was the whole point of that complex, if i dont chose any prohibited wares they do like to sell off my crystals, and so far only the crystals..
The complex is full of ES, dunno if that can have something to do with it, since it worked fine in the beginning.
Ill send you a save game in case you should need it, as ill be going away over the easter.
/snus
I have a pretty big complex built as an energy loop, IE food+minor food, silicon, crystal fabs and SPP's.
Now this problem im having is quite similar to what i explained on page 28 (this thread) Except that i have no ship selling at all they all sits and rest, and rests...
At first it worked great, the first 22 million or so, but then all my traders just gave up :/ 7-8 Mistral SF's.
And this seem to only occur when i set them to only sell energy cells, which was the whole point of that complex, if i dont chose any prohibited wares they do like to sell off my crystals, and so far only the crystals..
The complex is full of ES, dunno if that can have something to do with it, since it worked fine in the beginning.
Ill send you a save game in case you should need it, as ill be going away over the easter.
/snus
Ok I've figured out the problem (I honestly never though this would happen )
Numeric overflow! (Wow that is a lot of stations , 125 SPP in a self sufficient chain?!)
You have ~4 million energy cells, and my function for working out the priority of a ware is..:
7 * (4mil) * 1000 = 28 billion (> 2 billion)
It may take me a while to fix this (as I use this formula in a few places)
---
Side note, found another bug where it was adding nulls to an array used to calculate things. Doesn't cause any problems but should be removed as well. (self note ware.fut.list and ware.fut.amt)
Numeric overflow! (Wow that is a lot of stations , 125 SPP in a self sufficient chain?!)
You have ~4 million energy cells, and my function for working out the priority of a ware is..:
7 * (4mil) * 1000 = 28 billion (> 2 billion)
It may take me a while to fix this (as I use this formula in a few places)
---
Side note, found another bug where it was adding nulls to an array used to calculate things. Doesn't cause any problems but should be removed as well. (self note ware.fut.list and ware.fut.amt)
Hello
Think there is 12.5 SPP XL in that complex But maybe that is 125 in M size hehe, however ive used your script before on such big complexes and only had the problem ive reported here before (page twenty eight, lol cant write 8 ) and after the "fix" it worked great again.
And btw, theres no rush in fixing it as i started to use the CAG (just been too lazy not learning it before ) Its a bit more fuzz getting it started though but have some other features thats quite handy.
Best regards
/snus
Think there is 12.5 SPP XL in that complex But maybe that is 125 in M size hehe, however ive used your script before on such big complexes and only had the problem ive reported here before (page twenty eight, lol cant write 8 ) and after the "fix" it worked great again.
And btw, theres no rush in fixing it as i started to use the CAG (just been too lazy not learning it before ) Its a bit more fuzz getting it started though but have some other features thats quite handy.
Best regards
/snus