Space Engineers

Space Engineers

Energieverbrauchsanzeige
65 kommentarer
giorgiobusoni 31. aug. 2022 kl. 5:45 
Also, I run into problems when I use solar panels on rotor with script to align them, as they belong to a different grid. Turning the setting for considering only won grid to false does not solve issue, cause in that case I don't get right the time for battery discharging, as it then counts docked ships as well. Would be nice to be able to include power generators from other grids based on group or connection...
giorgiobusoni 31. aug. 2022 kl. 4:09 
could you add switch on/off of hydrogen engines as well?
rubinknoepfel  [ophavsmand] 8. aug. 2022 kl. 12:09 
With the new version, I hope I can learn more about the problem. Please send me the new error output.
scorpio130386 25. juli 2022 kl. 5:32 
same probleme like Kaos...
--Kaos-- 25. aug. 2021 kl. 11:12 
@rubinknoepfel Hi matey, I just downloaded the script to my base, checked code, and then the error appears in UI menu of the prog block. I have a few scripts on but ive turned all of them off... recompiled n still the same error ... i have a few mods too but nothing power related
rubinknoepfel  [ophavsmand] 24. aug. 2021 kl. 14:08 
@--Kaos-- Seems to work at me. Can you describe your setup a little bit more? Do you have any mods installed? Do you have other scripts in use?
--Kaos-- 20. aug. 2021 kl. 11:20 
doesnt work

caught exception during execution of script : object reference not set to and instance of an object at program...cTor()
dragonsphotoworks 24. maj 2021 kl. 18:10 
Ah ok thank you for reply.
rubinknoepfel  [ophavsmand] 20. maj 2021 kl. 9:43 
@dragonsphotoworks this ist currently not possible...
AL 9. maj 2021 kl. 5:17 
Hallo rubinknoepfel,
Ich konnte endlich testen. Nach meiner Einschätzung funktioniert die eingebaute Einschränkung genauso, wie ich sie mir gewünscht habe.
Wenn ein Miner andockt und die Batterien der Basis leersaugt, springt der Wasserstoffmotor an, sobald die Batterien der Basis unter den eingestellten Wert fallen - und nicht erst, wenn der Miner mit vollen Batterien wieder abfliegt.

Vielen vielen Dank!
Gruß AL
dragonsphotoworks 6. maj 2021 kl. 17:03 
How do i set it to use Top left screen in small grid industrial cockpit?
AL 7. apr. 2021 kl. 13:33 
Ups, ich komme aktuell nicht so zum Spielen, wie ich gerne würde...
Ich habe es mir notiert und melde mich, sowie ich ein Ergebnis habe.

Danke für deine Mühe!

Gruß AL
rubinknoepfel  [ophavsmand] 15. mar. 2021 kl. 14:33 
Hi AL, ich habe eine Einstellung für die Beschränkung auf das eigene Grid eingebaut. Ich wäre froh wenn du es mal testen könntest.
AL 14. mar. 2021 kl. 14:27 
Hallo rubinknoepfel, das Skript läuft auf der Basis. Ich würde den Ladestand gerne zwischen 75% und 90% halten. Da die Basis auf einem Eissee liegt, ist Wasserstoff kein Problem...

Das mit der Beschränkung auf das eigene Grid würde meine Probleme lösen. Den Ladezustand schalte ich aktuell von Hand ein, nachdem ich angedockt habe.

Danke für deine Antwort

Gruß AL
rubinknoepfel  [ophavsmand] 4. mar. 2021 kl. 14:43 
Hallo AL, lauft das Skript auf der Basis oder dem Miner? Du hast recht, der absolute Ladestand ändert sich nicht, wenn leere Batterien angeschlossen werden. Allerdings sinkt der prozentuale Anteil ab, da jetzt ja mehr Gesamtkapazität vorhanden ist. Wenn der prozentuale Anteil unter die eingestellte Grenze sinkt, werden auch die Reaktoren aktiviert. Kommt halt drauf an, ob es reicht. Auf welchem Level würdest du die Batterien gerne halten?

Eine einfache Möglichkeit wäre, dass das Skript nur die Blöcke des eigenen Grids berücksichtigen. Diese Einstellung habe ist bereits bei meinem Inventar-Skript implementiert. Ich habe bei mir zusätzlich ein Skript auf meinen Fahrzeugen am Laufen, welches die Batterien automatisch auf aufladen stellt. Dadurch laden die Fahrzeug schnellstmöglich auf und die Batterien der Basis entladen sich. Zusammen mit der genannten Anpassung des Skripts werden auch die Reaktoren früher aktiviert.
AL 27. feb. 2021 kl. 5:44 
Prima Skript, nach so etwas habe ich lange gesucht...

Gibt es eine Möglichkeit, die zu berücksichtigten Batterien irgendwie einzuschränken?
Ich möchte, das das Skript die Motoren / Reaktoren anwirft, wenn ein Miner mit leeren Batterien zurückkommt und dann im Auflademodus die Batterien der Basis leersaugt. Aktuell passiert das nicht, weil die Batterien des Miners zur Basis mitgerechnet werden. Es findet also nur eine Verschiebung der Ladung statt, aber am Ladestand der Basis ändert sich kaum etwas.

Hier wäre es toll, wenn man das Skript auf die Batterien der Basis beschränken könnte, so dass bei Erreichen der Untergrenze der Reaktor anspringt.

Ideal wäre die Steuerung über einen Gruppennamen.

Danke für deine Mühe!
Voss 11. juli 2020 kl. 9:47 
the name alone is worth the sub
:D
srm 20. maj 2020 kl. 9:08 
no problem
rubinknoepfel  [ophavsmand] 20. maj 2020 kl. 8:50 
Sorry for the late answer
srm 20. maj 2020 kl. 8:43 
Nice, thank you
rubinknoepfel  [ophavsmand] 20. maj 2020 kl. 8:33 
wind turbines added
srm 7. maj 2020 kl. 13:43 
Yes add turbine please
[GNS] C4 20. apr. 2020 kl. 13:17 
Any update on when wind turbines will be added?
rubinknoepfel  [ophavsmand] 25. mar. 2020 kl. 17:38 
coming soon
Gnodul 23. mar. 2020 kl. 7:22 
Can we add the wind turbines ( wind)?
rubinknoepfel  [ophavsmand] 13. feb. 2020 kl. 13:28 
@swordfish: updatet
SalazarWindriver 15. jan. 2020 kl. 15:24 
Change the public text to power, says it right in the config section
Riven, Consumer of Ramen 7. jan. 2020 kl. 5:06 
what is the title that i add to lcd screens for it to show on them please i need to know
Radex 20. apr. 2019 kl. 11:53 
Nice good job
LordNavarre 17. apr. 2019 kl. 12:20 
This mod is out of date, please update
rubinknoepfel  [ophavsmand] 17. maj 2018 kl. 2:19 
The value "maxBatteryLevel" defines now when the reactors have to switched off. If the battery level is above this value the reactors are switched off.

Thanks to Katash for the idea.
rubinknoepfel  [ophavsmand] 17. maj 2018 kl. 2:04 
@Katash: Good point, I will implement that.
Katash 9. maj 2018 kl. 17:10 
is there any way you can change the reactor control so that once they are switched on after batteries fall below 10% they stay on until batteries have recharged to another user set value (say 100%)

At the moment my batteries discharge to 10%

Reactors start

Batteries recharge back to 10%

Reactors switch back off

this is happening about once every 2 seconds and is a bit annoying
rubinknoepfel  [ophavsmand] 6. mar. 2018 kl. 18:23 
Copper Boltwire: What do you mean? Can you descripe your problem e little bit more accurate?
rubinknoepfel  [ophavsmand] 6. mar. 2018 kl. 18:21 
RiP_CoRd: Does the self-update function of any other script work?
rubinknoepfel  [ophavsmand] 6. mar. 2018 kl. 18:19 
PainfulCh3ese: Set the the public title of the lcd to "Power" (without "" and with a capital P)
RiP_CoRd 4. mar. 2018 kl. 13:48 
The LCDs dont seem to be updating by themselves, is this a bug?
Pewter HailStorm 28. feb. 2018 kl. 12:21 
I got a problem with this mod: It does not make good toasts... it either burns them or does nothing, please fix.
PainfulCh33se 28. feb. 2018 kl. 8:40 
sorry if i'm bad at java scripts
PainfulCh33se 28. feb. 2018 kl. 8:38 
Changed in power? what does that mean exactly? does that mean the function or the name of the lcd or...
Pewter HailStorm 12. feb. 2018 kl. 19:52 
Never learnt German, but as i read your messages, i actually freaking undersand it, wtf?! I mean, sure i watch a lot of RTL and other german channels here in Denmark, but never learned to read, write or speak it, yet when i DO read it, i make sense of it. It's a really weird experience to me. I'm highly entertained by this!
rubinknoepfel  [ophavsmand] 12. feb. 2018 kl. 19:05 
Kein Ding, jeder ist mal neu ;)

Ja das habe ich mir auch scho überlegt. Wie lange die Batterie noch reicht wäre kein Problem, aber bei den Reaktoren und dem Uranverbrauch könnte es komplizierter werden. Mal schauen, was ich de noch hinkriege.
xXFreeFunXx 12. feb. 2018 kl. 18:59 
JA !!!! Perfekt hat geklappt :D Ich danke dir.
Verzeih mir aber bin noch am Anfang und wusste noch nichts von solchen Funktionen in dem Spiel. Habe ja gerade mal die Blueprinds enteckt ^^

Das einzige was mir noch fehlt wäre eine Optionale anzeige wieviele Tage der Strom Reicht so wie Rechts Runten wenn man in einem Sitz sitzt oder in einer Kryokammer!
rubinknoepfel  [ophavsmand] 12. feb. 2018 kl. 18:52 
Dies ist ein Ingame Skript. Das heisst, du musst im Game einen Programmierbaren Block bauen und dann dieses Skript darin ausführen. Es tut mir leid, ich habe nicht daran gedacht, dass das nicht unbedingt klar ist. Ich werden die Anleitung anpassen.

Also im Programmierbaren Block (im Terminal, wo du auch den Public Title das LCDs ändern kannst) klickst du dann auf Code Editor und danach unten rechts auf Workshop. Falls du mein Skript aboniert hast, sollte es dann rechts in der Liste erscheinen. Doppelklick darauf, kompilieren (sollte keine Fehler geben) und dann auf behalten klicken. Der Code Editor schliesst sich und dann muss du nur noch auf Ausführen klicken.

Ich hoffe es klappt dann.
xXFreeFunXx 12. feb. 2018 kl. 18:42 
Nein! Wie geht das? Warum steht das nicht genauer da als Anleitung? Und wo bekomme ich das Skript her?
rubinknoepfel  [ophavsmand] 12. feb. 2018 kl. 18:39 
Hast du das Skript in einen Programmierbaren Block geladen und diesen ausgeführt?
xXFreeFunXx 12. feb. 2018 kl. 18:37 
Deiner, also das Skript halt von dir! Habe die ID wie die anderen bei meinen Server hinzu gefügt und da wollte er nicht mehr starten. Habe es jetzt mal Lokal versucht aber da klappt es auch nicht! Am LCD den Public Titel auf Power und es tut sich nichts.
rubinknoepfel  [ophavsmand] 12. feb. 2018 kl. 18:30 
@xXFreeFunXx: Mit welchem Mod?
xXFreeFunXx 12. feb. 2018 kl. 18:22 
Mit dem Mod Startet der Server nicht mehr! Kann man das Skript auch irgendwie Ohne Mod Testen?
rubinknoepfel  [ophavsmand] 12. feb. 2018 kl. 5:57 
I added self updating (a timer block is not needed anymore). In addition the public text is now showed automaticly on the screens so you don't have to set this manually. Just set the pubic title and run the script once and the the current informations should be shown.

I also did some code improvement and added some comments that hopefully help you to understand the code.