[SCR] Station Financial Manager Mk2

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
User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Wed, 18. Jan 12, 21:54

:S I can't really do much with out a save game. I've already read through all the money related scripts and I can not figure out why anything like that would be happening. (I only directly alter credits in 3 scripts, the transfer script, and 2 other which only deduct credits (repair and commission))

Snus
Posts: 209
Joined: Wed, 27. Sep 06, 22:52
x3tc

Problems with energy selling

Post by Snus » Thu, 5. Apr 12, 02:58

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... :shock:
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

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent » Thu, 12. Apr 12, 23:30

Ok I've figured out the problem (I honestly never though this would happen :S)

Numeric overflow! (Wow that is a lot of stations :O, 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)

Snus
Posts: 209
Joined: Wed, 27. Sep 06, 22:52
x3tc

Post by Snus » Sun, 15. Apr 12, 05:14

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 :P ) 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 :roll: ) Its a bit more fuzz getting it started though but have some other features thats quite handy.

Best regards

/snus

Wee_Mee
Posts: 28
Joined: Sat, 26. Nov 05, 04:33
x3

Post by Wee_Mee » Sun, 20. Jan 13, 10:27

This just isn't working for me. I installed with the SPK file, its sets up ok just when I add ships to the station they just sit ideal and do nothing.

Using most up to date patch, steam version AP.
"enuff said now its your turn"

Post Reply

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