Space Engineers

Space Engineers

十分な評価がありません
Simple Battery Management
   
アワード
お気に入り
お気に入り
お気に入りから削除
ファイルサイズ
投稿日
更新日
359.905 KB
2015年1月3日 14時32分
2015年1月4日 5時36分
6 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
Simple Battery Management

解説
The Script aims to use Batteries as an energy backup, and enable them if the usage of the ship/station exceeds the power installed in reactor and solar panels. So the batteries will try to cover always the peak power demands of your ship.

It enables the batteries to discharge only when you have a peak demand of power. Meaning the batteries act as a backup to cover any extra power needs you may have that cannot be fullfilled by either solar panels or reactors.

In the same manner the batteries will only be charged when the reactor and solar panels are not at full capacity and they have excess energy to spare.

Tested using a timer set to 3 second with good result, needs to be iterated using a timer. As for now 1 second is too short for it to work, 2 seconds work sometimes but flickers a bit.

Please keep in mind enough power to run the Timer Block and the Programmable block is required for this script to function.

Script does not count unfinished reactors (tested) or reactors being hacked (tested) when calculating current max power grid.

ISSUE:
Currently there are some issues with things not activating cause not enough power, and power drain not put on reactors... so according to the script there is enough power, when in reality there is not.

Main way used to combat this is by randomly toggling off charging on batteries to see if things improve. If it does, then all batteries gonna stop recharging next turn. This behaviour can be turned off by commenting one line in Main. Second way is to modifying the parameters. Parameters can be found in Main (bottom of script), default values will not modify any thing.

The script does not check if there is uranium in the reactor. It's a bit tricky to solve cause in creative mode reactors doesn't need uranium. For now, make sure reactors without uranium are disabled when playing in survival.


If you're having issues with the script, or just suggestions/ideas, please let me know. /Stiggan
44 件のコメント
stiggan  [作成者] 2020年9月24日 12時12分 
I haven't played the game for a long time. In 2016 it worked with the game. What error do you receive?
Merlin 2020年9月7日 18時50分 
Is there a place where the versions of the game this works with is written?
stiggan  [作成者] 2020年2月18日 13時59分 
I apparently do.
Merlin 2020年1月2日 12時49分 
Who's listening to this in 2020?
Grifka 2016年1月28日 17時16分 
@stiggan, many thanks will be looking forward to the update :)
stiggan  [作成者] 2016年1月28日 16時19分 
@Grifka Per previous request I'm already looking in to having a filter option to choose which batteries the script will operate on. I've however had a lot to do lately so it's delayed, but there is a planned update on the script to add this.
Grifka 2016年1月28日 9時23分 
@stiggan thanks for this script it works really well and delivers exactly what i need for my base.

I do however have a suggestion/request.

Currently my base has Solar Panels and batteries, the idea is the solar panels are the primary source of power during the day and the batteries are the source for the night cycles. My small ships (e.g miner, exploration, scout) are all battery powered and currently when my ships are parked (via connector) i want them to recharge their batteries when not being used. However this scipt doesn't see the two as seperate entities and so, i find that the batteries (on ships) are being depleted. And therefore are out of power when i need them.

Is there a way the script could be updated to exclude batteries that are on different ships? maybe by giving them a tag in the name which could identify which batteries are supposed to be controlled by the script? Or maybe add a tag search for batteries that i want the script to control?
Keyboard Wario 2016年1月16日 14時43分 
@expressocoffee you tell the timer to start after 3 seconds, and put timer into the setup actions of the timer at the end, to start it again.
lyzer 2016年1月7日 4時27分 
The problem with the game is if you have batteries and solar panels it takes the electricity to run your base from your batteries instead of taking it from the solars (they have 0 output) so your script works perfectly for me. Since i have the windmill mod which are counted as reactors your script is even more fitting for me so it takes the solar, reactor (windwill) power first and then loads batteries or just uses them as backup. The problem is when i connect ships for example it manges their batteries to.
stiggan  [作成者] 2016年1月6日 17時04分 
This shouldn't be too hard to make, so I guess I could take a look at it. I haven't played the game for some months now, but from what I read from update logs this script seem obsolete these days? But sure, if you really want to I could take a look at it.