Space Engineers

Space Engineers

108 个评价
Aircraft Dashboard Script
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
36.145 KB
2019 年 12 月 2 日 下午 8:53
2020 年 3 月 23 日 上午 4:53
6 项改动说明 ( 查看 )

订阅以下载
Aircraft Dashboard Script

描述
        Description
    An another dashboard script. Here is a list of current features:
  • Battery charge and output;
  • Reactor output;
  • Engine fuel;
  • Gravity LED indicator;
  • Cargo volume and mass limit of vehicle;
  • O2 and H2 Volume;
  • Mass LED;
  • Alert blinking. Each time you get in gravity well of a planet or moon, or your ship running low of energy, O2, H2 or its mass is to high, light will start blinking;
  • 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:
  • Controller block: Cockpit or remote control [Controller block is not found];
  • Something with text surface. It can be anything that have text surface. [provider is not found!] [Provider block doesn't have any surfaces!];
  • Lightning block with your faworite name for it. To write it in custom data [Lightning block is not found].
        Settings
    First time you run this script on your craft, it will write pattern data in it's programmable block custom data.

Controller block name: Cockpit # Electricity monitoring # Power surface provider name: Cockpit Power surface number: 1 Battery Charge: 40:70:80 Battery Output: 100:70:80 Reactor Output: 160:70:80 Engine Fuel: 220:70:80 Gravity LED: 220:120:80 # Cargo monitoring # Hold surface provider name: Cockpit Hold surface number: 0 Gather mode: 1 Cargo mass limit: 40000 Load meter: 40:70:80 Mass meter: 100:70:80 H2 meter: 410:70:80 O2 meter: 470:70:80 Mass LED: 470:70:80 Alert Light: Alert Light Space Craft: false

Controller block name: Name of controller that must be under control to make this magic happen. It can be cockpit or remote control block;
Surface provider name: Name of block that have text surfaces where dashboard elements will be drawn;
Surface number: Well, if this block have more than one surface you can choose it here. It's number starts from zero;
If both of previous two values are same, GUI will be drawn at one surface. If not, then not.
######: 470:70:80 Coordinates and scale.
Alert Light: Alert Light - Guess what. Name of light that will bichin about your cargo mass.
Space Craft: false; - if set true, alert light will bich about natural gravity wells.
You can see if something is not found at initialization state in terminal.
    There is most of LCD surfaces have wrong alignment. Will be correct if it's left upper corner of render surface match left upper corner of monitor, but not in SE. You will see there only lower parts of drawn elements with default coordinates. In this case center of rendering surface aligned with on block's texture center.
热门讨论 查看全部(2)
2
2019 年 12 月 8 日 上午 6:31
[ISSUE] Can't Get it Working
Peekofwar
2
2019 年 12 月 5 日 下午 11:58
Presets
Prellentor
40 条留言
Prellentor  [作者] 2020 年 6 月 23 日 下午 11:23 
Dunno. It works for me. Screenshot. Post a screenshot here.
LeeTheFlea 2020 年 6 月 22 日 下午 9:16 
I am using a text panel ona small grid, and it seems I can't get the gauges to scale any bigger..thoughts?
Prellentor  [作者] 2020 年 3 月 23 日 上午 1:59 
Update is in progress. I know about that small H2 tanks is not taken in count. Overall initialization routine will be rewritten too.
Prellentor  [作者] 2019 年 12 月 22 日 上午 8:44 
I had similar problem, last time when i played on dedicated server. It's really annoying. But it was occurred each time when i joined to a server after it was inactive for a while due of players inactivity.
Walto 2019 年 12 月 22 日 上午 8:39 
yes, i think so
Prellentor  [作者] 2019 年 12 月 20 日 下午 7:56 
Are you playing on dedicated server?
Prellentor  [作者] 2019 年 12 月 20 日 下午 7:51 
Newer had issue like this before...
Walto 2019 年 12 月 20 日 上午 10:38 
Hello ! Thanks again for your scripts, very excellent ! I have, however, a problem, each time I connect my aircraft to a connector or when the alert light blinks, the script seems to be lost and doesn't display properly (only the needles remain)
An idea on how I can avoid this? (Recompiling the script doesn't seem to fix the problem, only Ctrl+x Ctrl+v seems to fix it)
iMurmis 2019 年 12 月 19 日 上午 4:03 
Ohh! I see) Ok! Thanks for feedback!
Prellentor  [作者] 2019 年 12 月 18 日 下午 9:38 
Nothing wrong.