Space Engineers

Space Engineers

Power Management Script
27 条留言
Old Bob 2024 年 7 月 10 日 上午 8:48 
DONT WORK
KillarOx3487 2023 年 9 月 15 日 上午 8:51 
@Beltrán White, I have updated your "Power Management Script" for SE. I was wondering if you had a problem with me posting it and leaving a link to your original scrip.
WolfKakashi 2022 年 8 月 30 日 上午 2:54 
I cant get it to work.
Can someone conform that this mod could still work after last updates?
In the Programmable Block i get the info: "string in wrong format"
I would totally like to use this mod so i can save some uran
FolkBear 2021 年 7 月 11 日 上午 12:23 
Still working fine for me will update once I have run it for a while.
dogmouth 2021 年 2 月 22 日 上午 2:39 
Thanks Dr. Zarkon. Confirming this still works as of today. Even without the LCD display it does what it is supposed to.
Gameagerr 2020 年 8 月 11 日 上午 1:46 
In the last line of code where it has:

lcd.WritePublicText(outputToLCD);

Removing the "Public" worked for me. (Though you will need to manually switch the LCD panel's content type to Text and Images).

Replace with: lcd.WriteText(outputToLCD);

It seems to be working with this small change. I don't know much else about the script as I am new to it.
DaehKcid 2020 年 7 月 18 日 上午 6:49 
This stopped working for me, when I click check code I get an Error Program(99,0):warning:'IMyTextPanel.WritePublicText(string, bool)' is obsolete: 'LCD public text is deprecated'
HeavyDeception 2020 年 2 月 15 日 下午 8:36 
Dose this still work for anyone I can seem to get it to work?
самовар 2019 年 8 月 24 日 上午 3:29 
I used this to control a nanite factory from mod, a useful script!
[GG]Nã†ã§-FLM- 2019 年 3 月 29 日 上午 2:15 
does this work well with wind turbines
Kyr 2018 年 10 月 17 日 上午 6:46 
Ok.. .something odd is happening. I thought it was just the timer block not working but that doesn't seem to be the case. Checking my batteries manually they seem to be 90%+ but the LCD is reporting 3-4% and turning on the reactors.

If I recompile the script and start it again it suddenly jumps up to the correct 90%+ value but after a little while running it starts misbehaving again.
Kyr 2018 年 10 月 17 日 上午 5:50 
Never mind.. figured it out. I'd not setup the timer block correctly
Kyr 2018 年 10 月 17 日 上午 5:47 
Hi. Love this script but I've noticed a problem.

On the LCD the "Current Battery Charge" is at 3.79%

When I check the batteries manually they are all at 100%.

It's like the script is not seeing them as fully charged and so leaves the reactor on all the time.
Albrat 2018 年 7 月 7 日 上午 8:52 
If you want to control Multiple reactors controlled from the programmable block... You can just name them all "reactor" and they will all work as one.
Reese 2018 年 2 月 15 日 下午 10:08 
Had a 'String in wrong format error' preventing script from running. I think it was because there was no uranium in reactor. Maybe something to look at.
Whitehawk 2018 年 1 月 12 日 上午 8:08 
I recognise that name...have you played HCS planetside?
Einherjar  [作者] 2018 年 1 月 1 日 下午 5:26 
Name your reactors similarly, like "Station Reactor 1" and "Station Reactor 2". In the ReactorSearchString variable type in something unique that will capture both reactors like "Station Reactor". Since the "Station Reactor" text exists in both reactors, it will control both.
Lozzie's Friends 2017 年 12 月 22 日 上午 9:43 
Hello I like this script but i am not certain where to write the second reactor name (and third fourth... my ships are powerhouses). You only provide one String, and i am not certain how you seperate internally, given as it can be spaces. Thank you in advance.
andyt8 2017 年 11 月 25 日 上午 5:30 
Is there a change for an updated version for the latest major update? I mean a version without the need for a timer block.
UnL3xpected 2017 年 10 月 27 日 上午 9:05 
I like this script, but it is lacking one major consideration. If the battery output is not powerful enough to power the station, the reactors should be turned on again, regardless of battery capacity. I would like it to be such that when the battery output is greater than 90% of its max power, it turns on the reactors.
laci4321 (HUN) 2017 年 7 月 31 日 上午 2:01 
Ok I understand, thank you :)
Einherjar  [作者] 2017 年 7 月 30 日 下午 4:35 
I omitted the LCD info about the reactors since more than 1 reactor's detailed info doesn't fit on 1 lcd display. I'll get reactor info back on the LCD part later. Maybe i'll just do 1 line per controlled reactor or something. For now, it works.
laci4321 (HUN) 2017 年 7 月 30 日 下午 2:28 
It can control multiple reactors, but the LCD doesn't show any info about them.
Did I make a mistake somewhere?
Einherjar  [作者] 2017 年 7 月 29 日 下午 12:38 
Ok it's updated now to support multiple reactors
Einherjar  [作者] 2017 年 7 月 29 日 下午 12:03 
Just got back from vacation. Should be easy enough.
laci4321 (HUN) 2017 年 7 月 29 日 上午 5:29 
Hello! Really useful script! But it can manage only 1 reactor. If I use 2 reactors, with same name, the script only controls one of them.
Can you improve your script?