Space Engineers

Space Engineers

OHM2: Oxygen/Hydrogen Management 2
13 条留言
Trekki  [作者] 2019 年 11 月 11 日 下午 5:11 
I have finally gone in and fixed the headless mode issue. Hopefully this makes the script a bit more intuitive with it simply not calling it's Render() method if there are no displays in the group.
Kiithnaras 2019 年 10 月 2 日 下午 5:54 
The failure to operate and error (Index out of Range) occurs when no LCD is in the Life Support group. In order to function as-is, an LCD is required, not optional. This can still be made to work without an LCD by deleting the contents of the Render class and commenting the preceding lcd variable for now.
Kiithnaras 2019 年 9 月 15 日 下午 1:14 
Correction, that is a compile-time error. The script refuses to run outright, but processes once (toggles o2 generators and the like on/off) upon a recompile.
Kiithnaras 2019 年 9 月 15 日 下午 1:02 
Runtime error on script:
Index out of range. Must be non-negative and less than the size of the collection.
Parameter: Index
at System.ThrowHelper...
at Program.Render()
at Program.Main...
at Sandbox.Game.Entities.Blocks.MyProgrammableBlock.<>c__DisplayClass46_0.<ExecuteCode>b__0(IMyGridProgram program)
at Sandbox.Game.Entities.Blocks.MyProgrammableBlock.RunSandboxedProgramAction(Action`1 action, String& response)

It appears the script runs enough to process O2 generator logic once before halting at this error. Additionally, a number of compile-time warnings mention deprecated methods regarding LCDs and Displays.
jarhead 2019 年 6 月 22 日 下午 7:53 
I will try to upload a screenshot later.
I do remember that it was saying something about "can't be negative or less than ........"
Trekki  [作者] 2019 年 6 月 22 日 下午 12:16 
Can you describe in greater detail?
jarhead 2019 年 6 月 21 日 下午 9:22 
not working
Trekki  [作者] 2019 年 4 月 7 日 下午 6:44 
So... Assuming you want to turn them on when you are above threshold and off when you are below threshold you will want to put "hyTimer" and "-hyTimer" in the timers' custom data respectively.

If that doesn't work for you it could be a coding mistake on my end and if so, I won't be able to fix it right away unfortunately.
Buscemi3 2019 年 4 月 7 日 下午 5:59 
Hello, I'm trying to make this work with two timer blocks to turn on and off hydrogen engines as the hydrogen tanks refill and drain. It's not working. could it? Thanks.
Malaras 2019 年 3 月 14 日 下午 6:22 
Hello, Thanks for the reply. Think they new with 1.0? don't think i've seen them before. ( haven't played in awhile though) the big engines that convert Hydrogen to power. I always got to set the storage tank for hydrogen to store then release it so the engine converts it to power. other wise only getting 2.5 power from the engine instead of 5.0
Trekki  [作者] 2019 年 3 月 14 日 下午 5:17 
If you can describe in more detail what you are trying to do I might be able to do something though.
Trekki  [作者] 2019 年 3 月 14 日 下午 5:16 
I don't know if I have the interfaces for managing hydrogen engines to meet a power demand. (If this is what you are asking?) It will fill hydrogen tanks to keep above a certain level though even if they are being drained though, but it won't specifically access the tank in the hydrogen engine unless it has an IMyGasTank.
Malaras 2019 年 3 月 14 日 上午 11:00 
Hello, is this currently working with SE 1.0+ ? And another question, Will this manage Hydrogen engine and storage tank for power?

Finding it tedius maintaining the storage tank / engine all the time.

Thanks much for your time.