Space Engineers

Space Engineers

Ei tarpeeksi arvosteluja
Gun Status
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tiedostokoko
Julkaistu
Päivitetty
3.946 KB
31.8.2018 klo 21.17
11.4.2019 klo 3.41
2 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Gun Status

1 kokoelmassa, tekijä BIGOLBEAR
Cockpit Software Suite
19 luomusta
Kuvaus
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 kommenttia
BIGOLBEAR  [tekijä] 30.6.2020 klo 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 30.6.2020 klo 12.15 
@BIGOLBEAR thx a ton, will try it out tonight :-)
BIGOLBEAR  [tekijä] 30.6.2020 klo 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  [tekijä] 30.6.2020 klo 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 28.6.2020 klo 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  [tekijä] 12.4.2019 klo 12.45 
Updated to function with multiple LCD blocks, eg cockpits
BIGOLBEAR  [tekijä] 2.3.2019 klo 13.18 
Updated/confirmed functional in current release version of SE, if you have any problems please contact me