Space Engineers

Space Engineers

Automatic LCDs 2
DrwHem Aug 9, 2024 @ 6:45am
help with just see ship stats
i love this script but im awful at it.
Right now im trying to determine what codes i need to see the current cargo capacity that is free, the amount of battery power, reactor power, and solar power are provided and stored and the amount of hydrogen gas in my tanks for JUST my named ship.
the codes i have managed to get work show me all the information, so i can see what my ship is doing when im docked to my base.
also, is there a way to remove turbines from the PowerV script?
< >
Showing 1-3 of 3 comments
Leconite Aug 10, 2024 @ 12:28pm 
Here is the code I use for my ship's cargo summary screen

TimeC Ship - Time:
Center Storage:
BlockCount {C:*} container tank
CargoAll {C:*} {Ship:}
CargoP {C:*} {Cargo System:}
CargoAllP {CG:GES - Eject} {Gravel Ejection:}
ShipMass
ShipMassBase
Mass

Note the use of C: and CG: limiters to make the query more efficient, makes it possible to separate sections of the cargo system with groups and display stats for only those like I did with the gravel ejection system.


Main power summary screen

Center Power Production:
PowerSummary {*} {Total Power}
PowerV {Solar} {Solar}
PowerV {H2} {Generators}
PowerV {RS} {Nuclear}
PowerOutV {Battery} {Batteries}
PowerUsed {*} {Power Demand:}
center Battery System:
PowerStored
PowerUsedV {Battery} {Active Charging:}
PowerTime

Note my h2 generators are named like H2-P1, H2-P2, etc reactors RS-P1, RS-P2, etc


Secondary Power summary screen with tank level displays
This one replaces the default KSH script that does the same thing, I use the TextLCD command on other displays to show this screen all over my ship.

Center Battery System:
PowerStored
PowerUsed {*} {Power Demand:}
PowerTime
Center Gas Storage:
Tanks {C:*} Hydrogen
Tanks {C:*} Oxygen
Last edited by Leconite; Aug 14, 2024 @ 11:15am
DrwHem Aug 12, 2024 @ 7:32pm 
Main power summary screen

Center Power Production:
PowerSummary {*} {Total Power}
PowerV {Solar} {Solar}
PowerV {H2} {Generators}
PowerV {RS} {Nuclear}
PowerOutV {Battery} {Batteries}
PowerUsed {*} {Power Demand:}
center Battery System:
PowerStored
PowerUsedV {Battery} {Active Charging:}
PowerTime


For this screen how do you have your h2 engines labled? because its telling me theres no power source for the reactor or the engine...despite my small reactor and my hydrogen engines.
Leconite Aug 13, 2024 @ 3:17am 
Here is the output of my power summary screen:

Power Production:
Power: 3.2 MW / 1 GW
['''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''] 0.3%
Solar: 1.4 MW / 1.4 MW
Generators: 0W / 0W
Nuclear: 0W / 0W
Batteries: 1.8 MW / 1 GW
Power Demand: 1.8 MW / 2.3 GW
['''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''] 0.1%
Battery System:
Batteries: 207.7 MWh / 298.5 MWh
[||||||||||||||||||||||||||||||||||||||||||||||||'''''''''''''''''''''] 69.6%
Active Charging: 0W / 1.2 GW
Power Time: 12 days 1h 11m 38s

H2 engines, and reactors are showing 0W as they are currently switched off, if I turned them on the numbers would change for them

Note my h2 generators are named like H2-P1, H2-P2, etc reactors RS-P1, RS-P2, etc

So the code
PowerV {H2} {Generators}
PowerV {RS} {Nuclear}

Produces the lines
Generators: 0W / 0W
Nuclear: 0W / 0W

If my hydrogen engines did not have H2 in their name they would not show up on the screen The code is looking for any power producing blocks with H2 in their name and displaying that info on the Generators line of the screen..

You can change the code to match your block names or block names to match the code.

For instance, if I did not want to change the game's default names for H2 engines or reactors, I would change the code to

PowerV {Hydrogen Engine} {Generators}
PowerV {Reactor} {Nuclear}
< >
Showing 1-3 of 3 comments
Per page: 1530 50