Stationeers

Stationeers

[F&S] Emergency Power System
12 Comments
theoshuff 13 Oct, 2024 @ 3:03am 
Please can someone copy and paste the script into the comments / description
i'm experiencing a bug where none of the codes are showing in the source code library
Selrahc 23 Aug, 2024 @ 11:08pm 
Anyone know why the Alert just turns off anything in the Alert port? I know this is an older code and maybe the issue, just cant figure out where I would look to see why where it might be wrong. Thanks in advance for any help.
Z3RO 24 Apr, 2023 @ 11:12am 
Ah yes, I understand :) Thank you for your coding skills and making the game infinitely more fun to play!
123  [author] 18 Apr, 2023 @ 11:55am 
@Z3RO
Do not place IC10 between blocks, there, the code may not work correctly inside the IC10. Now I did not see this bug, it was in previous versions of game.

Another reason may be stack damage, when the code is abnormal interrupted, the stack corrupts, and the subsequent launch can lead to a malfunction of ic10, you just need to rebuild the ic10 housing. 128 lines of code is not enough, need to make sacrifices :) Because stack management will take up almost half of the memory.
Z3RO 18 Apr, 2023 @ 11:02am 
Apologies, I mean't to update, must've just been a game bug because moving it to a different housing in on a different block worked out eventually,
123  [author] 9 Apr, 2023 @ 8:34am 
Tested on 0.2.3920.18842 06/04/2023
@Z3RO update a game
Z3RO 14 Feb, 2023 @ 7:04pm 
Was working fine but out of nowhere in the middle of a session it stopped and IDK how to get it working again. Deconstructed IC housing, generator, flashed IC again and again. Any ideas?
123  [author] 26 May, 2022 @ 11:06am 
Fixed
Nuker1110 30 Dec, 2020 @ 11:24pm 
For using multiple generators, you could point the output screw at a single Batch Writer and have all the target generators share a data line with the BW output.
letmeout 13 Jul, 2020 @ 11:59am 
does this work with the engine generators?
flopp 10 Jul, 2020 @ 10:17pm 
You could divide it by the capacity of all your batteries and get the percentage.
MisterCrow 19 Dec, 2019 @ 7:17am 
"Turns on generator(s) if charge less then 5%.
Turns off generator(s) if charge more then 50%."


You use absolute values in your code, rather than percentages. Therefore these percentage figures you quote only apply if you're using one battery (in your code you have 5% as 180,000 and 50% as 1,800,000). For every extra battery you have, these percentages are halved each time (so two batteries equates to 2.5% and 25%, and so on).

Would there be any way to change your code to either use percentage figures rather than absolute values, or use memory logic so that we can set the percentage value ourselves?

Other than that, code seems to work really well - even for Gas Fuel Generators :)