Space Engineers

Space Engineers

36 ratings
Instrument Panel Script A - by Lightwolf
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
21.070 KB
7 Jan, 2018 @ 5:14pm
8 Jan, 2018 @ 9:10am
2 Change Notes ( view )

Subscribe to download
Instrument Panel Script A - by Lightwolf

Description
This is the first part of a script that displays an graphical Instrument Panel for LCD/Text Panel's.
it shows different states at once, speed, status of hydrogen-, oxygentanks, Battery's (Only if they Online and working)
also European time, Vehicle lights, Power- & oxygengenerators.


Requirement:
This script is to big, to fit just in one Programmable Block, you need three of them, so you need two more scripts

- Instrument Panel script (Part B)
- Instrument Panel script (Part C)


Multiplayer Note: this script uses alot of system power! so in MP, it seems some player getting problems, when using it on large Worlds/creations, to many players, or to many ships with this script running.

How to Install:
You need 3 Programmable Blocks,...
Put each script (A,B,C) in one of that Programmable Blocks.
At Top of script A you find the Available Settings.

---- Generals -----

[Inst.LCD - Script 2] <- Add this Nametag to the name of script B, ex: Before "ProgBlockA" after "ProgBlockB [Inst.LCD - Script 2]"
[Inst.LCD - Script 3] <- Add this Nametag to the name of script C

If you want, after this script, triggered another Programmable Block,
then add this Nametag [Inst.LCD - Script 4] into the next Programmable Block. WIP



Then you have to Copy and paste this NameTag to all LCD/Text Panel's you want show the Instrument Panel.
[Instrument Panel]



at default this script uses my Selfupdating System, if you want disable this, set
SelfUpdatingSys_Enabled from true into false.

below on SelfUpSys_perSecond you set the time in seconds the script will be updated.



----- Hydro,Oxygen and Battery Settings -----

To show Hydro or oxygen status, this Script needs to identifying the Hydrogentanks, to distinguish Oxygentank's or Hydrogentanks,
there for all of your Hydrogentank's needs to have the following NameTag in their name, you can also edit the word.
string Hydro_ident_String = "Hydro"; <- Nametag

Display Hydrogen Fuel Status on/off, (all Functional, enabled and Currently Used hydrotanks )
bool Hydro_Enabled = true; <- true enabled, false disabled

To Show only Specific hydrotank's
bool OnlyHydroWithNameTag = false; <- true enabled, false disabled

If OnlyHydroWithNameTag enabled put this Nametag to all of that Hydrotanks you want show.
string hydroTank_NameTag = "[Hydrotank]"; <- Nametag



Display Oxygen Generator Status on/off
bool OxygenGen_Enabled = true; <- true enabled, false disabled

If OxygenGen_Enabled is enabled, then put this NameTag to all oxygen generators, that represents your status,
minimum is to name one generator.
string oxyGen_NameTag = "[OxygenGen]"; <- Nametag



Display OxygenTank Fuel Status on/off, (all Functional, enabled and Currently Used Oxygentanks)
bool OxygenStatus = true; <- true enabled, false disabled

To Show only Specific oxygentank's
bool OnlyOxygenWithNameTag = false; <- true enabled, false disabled

IF OnlyOxygenWithNameTag enabled, then put this NameTag to all Hydrotank's you want show.
string oxygenTank_NameTag = "[Oxygentank]"; <- Nametag




Display Power Generator Status on/off
bool PowerGen_Enabled = true; <- true enabled, false disabled

If PowerGen_Enabled enabled, then put this NameTag to all power generators, that represents your status,
minimum is to name one generator
string powerGen_NameTag = "[PowerGen]"; <- Nametag



Display Battery Fuel Status on/off, (all Functional, enabled and Currently Used Battery's)
bool BatteryStatus = true; <- true enabled, false disabled

To Show only Specific Battery's
bool OnlyBatteryWithNameTag = false; <- true enabled, false disabled

If OnlyBatteryWithNameTag enabled, then put this Nametag to all Battery's you want show
string Battery_NameTag = "[Battery-Status]"; <- Nametag



----- Speedometer -----

Display Speedometer, Actual Speed of vehicle on/off
bool Speedometer = true; <- true enabled, false disabled

you can change the units of shown speed, choose M/S, Km/h or MPH.

To Show M/S:
bool MeterPerSecond_Enabled = true;
bool MilesPerHour_Enabled = false;

To Show Km/h:
bool MeterPerSecond_Enabled = false;
bool MilesPerHour_Enabled = false;

To Show MPH:
bool MeterPerSecond_Enabled = false;
bool MilesPerHour_Enabled = true;

Speedometer Speedlimit warning (Red letters), ex: 60 = 60 Km/h / MPH enabled 60 = 60 MPH
int Speedlimit = 60; <- set this to an Value you want



----- Other Settings -----

Enable or Disable Watch with actual realtime displayed
bool Watch_Enabled = true; <- true enabled, false disabled

Display Winker/Indicator symbol Left + Right on/off
bool Winker_Enabled = true; <- true enabled, false disabled

If Winker_Enabled enabled, then put this NameTag to one light of your left indicators / winkers
string winkerNameTag_L = "[Winker-L]"; <- Nametag

If Winker_Enabled enabled, then put this NameTag to one light of your right indicators / winkers
string winkerNameTag_R = "[Winker-R]"; <- Nametag




Display Headlights symbol on/off
bool HeadlightSign_Enabled = true; <- true enabled, false disabled

If HeadlightSign_Enabled enabled, then put this NameTag to one light of your headlights
string headlights_NameTag = "[Headlight]"; <- Nametag



Display Connector/Truck Coupling Hub Status on/off
bool CouplingHubStatus = true; <- true enabled, false disabled

There's a Truck symbol for the Connector Status,
bool ConVehSymbol = false; <- true enabled, false disabled

If CouplingHubStatus enabled, then put this NameTag to all Connector you want be a Sensor for That
string CouplingHub_NameTag = "[CouplingHub]"; <- Nametag



Display Landing Gear Status on/off
bool LandingGearStatus = true; <- true enabled, false disabled

If LandingGearStatus enabled, then put this NameTag to all all Landing gears you want be a Sensor for That
Minimum is one connector
string LandingGearStatus_NameTag = "[LandingGear-Status]"; <- Nametag



Display Wheel Breaks Enabled on/off
bool HandbrakeStatus = true; <- true enabled, false disabled

If HandbrakeStatus enabled, then put this NameTag to all of your flightseat, or remote control
minimum is one flightseat or one Remote Control
string HandbrakeStatus_NameTag = "[Handbrake-Status]"; <- Nametag



General Thanks to the Community, to all that share their knowledge, that helped me a lot to bring my scribts to life.
Thanks for that.
19 Comments
Cheekermonkey 7 Jun, 2023 @ 4:12pm 
Anyone tried it recently?
d.myz 12 Feb, 2020 @ 7:33pm 
Anyone else having trouble with this script? Getting the obsolete warning. Think it has to do with the new API
. 25 Oct, 2019 @ 3:25pm 
am I messing up the setup
Linrox 19 Jun, 2019 @ 11:46am 
is there an update for SE 1.19, or is this abandoned?
Chuck 23 May, 2019 @ 9:10pm 
Script B and C return exceptions. Script A doesn't.
Krypt 31 Mar, 2019 @ 7:11pm 
I decided to check why you need 3 PBs and oh my gosh :D
But seriously, you need to use data compression in it.
It does magic: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=794442948
2yysforu 16 Mar, 2018 @ 9:11pm 
Great job, Simply Amazing
raz334 21 Feb, 2018 @ 9:59pm 
forget LCD's/// dude just replace the Speed Hud with the instrument panel... this should have been vanilla...
Grimard 19 Feb, 2018 @ 9:29am 
I just tested it with it displaying m/s and it seems to cut that in half too.
Grimard 19 Feb, 2018 @ 9:29am 
I love this but my Kph and Mph values are way off, like i'm doing 45m/s and the spedometer is stating 55mph, when it should be 100mph.