Space Engineers

Space Engineers

评价数不足
Gun Status
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
3.946 KB
2018 年 8 月 31 日 下午 9:17
2019 年 4 月 11 日 上午 3:41
2 项改动说明 ( 查看 )

订阅以下载
Gun Status

在 BIGOLBEAR 的 1 个合集中
Cockpit Software Suite
19 件物品
描述
This script enables you to display the online/offline status for your Chosen Gun(s) and output this to multiple LCDs.
If you have Gun systems tagged and some are online while others are offline it will read as Partial.

This script can be easily modified to show the operational status of any functional block.

Simply Include "[GunDisplay]" in any LCD name you want to display status to and "[Gun]" in the name of your Gun block.

The default Text is 'Turrets' This is defined as the leading text string at the top of the script if you want to change it.
Also you can change the tags it looks for easily, this is also defined at the top of the script.

Thus you can have multiple [Gun] tags, and multiple [GunDisplay] tags - 1 programming block required for each.

So with 2 programming blocks with only the tag definistions changed you can have LCDs with for example
1. Missiles
2. Point Defence Gats

I see no reason why this script will not work with modded weapons.

This script is also very simple to modify to any functional block, not just guns.

UPDATE: (changes due to new LCD implementation and multi LCD blocks)
Additionally you must now set the LCD of the block to 'Text and images', not to Script as this script outputs text rather than sprite frames.

If using this script on a block with multiple LCD's it will update the LCD blocks(eg cockpit) custom data on first run to propagate the custom data with ini data that you can then change to select which screen to display this scripts output on. Edit the custom data of the cockpit or other multilcd block to set which screen to display on.
7 条留言
BIGOLBEAR  [作者] 2020 年 6 月 30 日 下午 12:27 
cool let me know if you still can't get it working - im happy to help, its been a couple of months since i used the script my self so there MAY be a problem, but its quite simple so probably not - but if there is ill fix it.
AstralChild 2020 年 6 月 30 日 下午 12:15 
@BIGOLBEAR thx a ton, will try it out tonight :-)
BIGOLBEAR  [作者] 2020 年 6 月 30 日 上午 10:41 
Oh and if you want to have sepperate displays for different gun groups, eg Point defence and main turrets - then you need to have 2 progblocks and edit the code in one of them to change the tags its looking for - the tags are right at the top of the code and labelled so it should be fairly simple for a non coder.

eg change [Gun] and [GunDisplay] to [PDAF] and [PDAFDisplay] and then in your cockpit append both [GunDisplay] and [PDAFDisplay] to the name, then recompile and run the progblocks and it will propagate custom data for both.
BIGOLBEAR  [作者] 2020 年 6 月 30 日 上午 10:36 
@AstralChild
no problem
1. put the tags "[Gun]" on name tag of all the guns you want in the group
2. put the tag "[GunDisplay]" on your cockpit name tag
3. load script into a prog block on the same grid
4. recompile, then run program.
5. go to the custom data of your cockpit (you will see it has propagated data) - change the screen number in custom data you wish to display the data to to 'true' and all the others to false.
6. change the screen on the cockpit you picked to 'text and images' - then change font and colour as you wish.

I hope this is clear for you. All my scripts that display in cockpits work on the same method (as devised by whiplash originally) If using more than one the custom data will propagate with data for each sepperate script and you must assign each script to a different screen.
AstralChild 2020 年 6 月 28 日 上午 11:59 
@BIGOLBEAR can you pls elaborate a little more on the part of how i do modify the custom data of a cockpit to be able to have this on my cockpi-lcd? htx a ton!
BIGOLBEAR  [作者] 2019 年 4 月 12 日 下午 12:45 
Updated to function with multiple LCD blocks, eg cockpits
BIGOLBEAR  [作者] 2019 年 3 月 2 日 下午 1:18 
Updated/confirmed functional in current release version of SE, if you have any problems please contact me