Space Engineers

Space Engineers

50 ratings
Aircraft Dashboard Scrip V2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
58.629 KB
Apr 25, 2020 @ 5:59am
Jul 31, 2020 @ 2:35am
8 Change Notes ( view )

Subscribe to download
Aircraft Dashboard Scrip V2

Description
        Description
    And an another one dashboard script! New and shiny! This one is for your aircrafts. Choppers and planes.
  • Tape artificial horizont;
  • Roll and Side speed indicator;
  • Speedometer;
  • Compass;
  • Altitude and elevation meters;
  • Altitude variometer;
  • Thrusters speeds;
  • Alert: 5 minutes charge left, engine damage, altitude ceiling / overload;
  • Battery charge and output;
  • Customisable positions and sizes of elements.

        Deployment preparation
    Aircraft must meet next requirements, if anything from list below is missing script will fail to compile:
  • Controllers group: Cockpits or control stations in one group. For those who have pilot and co pilot. [Controller goup isn't set.];
  • Any kind of block that have at least one screen. It can be anything: cockpit, text panel, medbay, etc. [Surface provider isn't found.] [Surface provider does not have surfaces.];
        Settings
    First time you run this script on your craft, it will write pattern data in it's programmable block custom data.

Controllers group: Pilot Seats As|De speed limit: 20 Surface provider: Dashboard Surface number: 1 Engines group: Engines Alert sound block: SB Alert Battery block: Battery Engines speed:-165:0:140 Elevation meter:-150:170:140 Altitude variometer:0:170:140 Altitude meter:150:170:140 Batteries Ou|Ch:165:0:140 Roll indicator:-75:-450:140 Compass:75:-150:140 Speedometer:-75:-150:140 Artificial horizont:0:0:180 Alert signal:-175:-110:60 Power 5 min:175:-110:60 Alt|Mass signal:87.5:87.5:60

Controllers group: Name of controllers group. If you have only one controller you should put it in group too. Dashboard would be shown when co-pilot|s in places.
As|De speed limit: A/Descending speed limit. Would be shown on altitude variometer.
Surface provider: Name of block that have text surfaces where dashboard elements will be drawn (Cockpit, control station, programmable block, LCD, etc);
Surface number: So, if this block have more than one surface you can choose it here. It's number starts from one;
Engines group: Name of thrusters group. It's hell of fine for helicopters or airplanes. Just gather here (Up) thruster for heli or (Forward) for jet/airplane. Consider to not to use if it is not heli or airplane, or engines more than two.
Alert sound block: Sound block name. For those who blind for alert signals. Don't forget to set it sound and other options.
Battery block: Control battery name.
######: 470:70:80 Coordinates and scale.
Alt|Mass signal: Won't be shown if engines group isn't set.

You can see if something is not found at initialization state in terminal.
    If you don't want to see any of those elements, just put theyr Y coordinate to: -1000.
    If you want to see dashboard elements on different LCDs, just put another one programmable block with this script and set it up. There is three of them on first screenshot.
Put right sound block name in one of programmable blocks that have all or required alert signals. There is no need for all of those dashboard scripts to call it. Just write there NULL or another trash line.
    Battery alert and mass|alt alert reqires to be on same screen to turn main Alert On. If you don't want to see them on those screen but hear sound alarm, change Y coordinate to: 1000.
12 Comments
VivaVii May 2, 2024 @ 2:52pm 
Not sure what I'm doing wrong, I can't seem to have the script find my groups
Rizzo Apr 28, 2023 @ 6:00pm 
@Prellentor, there is a bug in this script in that it always changes the name of the PB block that it is running on after each recompile. A script shouldn't need to do this as it can always reference the PB it is running on without the name and in this program's case shouldn't do this at all. The issue is that if you have two of this program running and you want the display to be the PB itself, you need to supply that do the dashboard parameter. However, since the two programs are always changing the block name to be the same, they can get confused as to which display to actually use since any programmable block running this script gets the same name from the script. Please modify it so that the script doesn't change the name of the programmable block so that we can use the programmable blocks as displays and keep their names distinct for this purpose.
Kamiloru_01 Dec 8, 2021 @ 7:35pm 
now I've solved it, it's a program block line saying "State state = State.stop" and change parameter to Run.
Prellentor  [author] Dec 7, 2021 @ 2:21am 
Kamiloru_01 Check battery name in block terminal and custom data for spaces. Or open battery custom name in terminal press CTRL + A copy and paste it in custom data.
Kamiloru_01 Dec 6, 2021 @ 10:27am 
It doesn't stop showing up Control Battery isn't round. And i don't undestand why
Prellentor  [author] May 8, 2020 @ 6:13am 
@WhoIAm Well. Just put several programmable block for each LCD. Anything that lower(higher) -256 by Y coordinate won't be showed on screen and also won't be initialized. That's top border of screen plus 256 units higher.
Tempus loop May 8, 2020 @ 5:42am 
Hello, Can you please explain how to display information on several LCDs? Yes, there are instructions, but I don’t really understand. I’m tight, I’m a translator, I’m not doing something :)
Prellentor  [author] Apr 27, 2020 @ 10:32pm 
VivaVii Apr 27, 2020 @ 8:24pm 
Is this good for cars too?! :"D
DeAnti Apr 26, 2020 @ 4:02pm 
nice work