Space Engineers

Space Engineers

174 vurderinger
Ship Layout
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
14.465 KB
11. maj 2019 kl. 13:53
21. maj 2019 kl. 14:10
2 ændringsbemærkninger ( vis )

Abonner for at downloade
Ship Layout

Beskrivelse
This script displays the layout and health status of your ship or station using the new LCD drawing APIs.

To use run this script and add e.g. 'ShipLayout 0' or 'ShipLayoutHealth' to the CustomData of an LCD.
You can force a refresh of the display by running the script again from the PB.

It's recommended to have the LCD on the same grid as the PB.

Note: Multigrid ships are not supported! It can only draw the layout for the grid the PB is on.
Note: The wide LCD doesn't work either and it draws in the wrong place.
64 kommentarer
DadBear (IGH) 9. juni 2024 kl. 14:08 
Just tried this mod and it works as advertised
Cyfen 13. apr. 2024 kl. 20:11 
I put ShipLayoutHull and got it to display in rotation
Thundercraft 20. feb. 2024 kl. 1:54 
Any chance of this script getting an update?
Five years is a long time...
luisitofernandezfaba 3. feb. 2024 kl. 10:00 
no funciona
Amaia 24. dec. 2022 kl. 8:34 
Can we get an update on this. Currently I keep getting an error saying the script has to much junk in it or complex, cant remember which, either way sometimes the program block gets terminated. Maybe my ship is too large, I dont know, either way maybe we can get some fixes? Great script still!
TemporalWr4ith 13. okt. 2022 kl. 16:24 
Do you think you can upload this Script on mod.io there's non exist for XBOX :\
Arthur 10. juni 2022 kl. 7:56 
Your Rotation table is broken, some axis are Mirrored, others work fine, and terminal blocks that don't have any function, like toilet, Bed, and desks show as damaged blocks, even if is on 100% health
Hottage 17. mar. 2022 kl. 12:12 
A small suggestion, please change:
GridTerminalSystem.GetBlocksOfType<IMyTextSurfaceProvider>(lcds, block => block.CustomData.Contains("ShipLayout") && !block.CustomData.Contains("ShipLayoutHealth") && block.CubeGrid == grid);
GridTerminalSystem.GetBlocksOfType<IMyTextSurface>(healthbars, block => block.CustomData.Contains("ShipLayoutHealth"));

To:

GridTerminalSystem.GetBlocksOfType<IMyTextSurfaceProvider>(lcds, block => block.CustomData.Contains("ShipLayout") && !block.CustomData.Contains("ShipLayoutHealth") && block.CubeGrid == grid);
GridTerminalSystem.GetBlocksOfType<IMyTextSurface>(healthbars, block => block.CustomData.Contains("ShipLayoutHealth") && block.CubeGrid == grid);

This will prevent scripts on docked ships from overwriting the health data for the main ship (causes weird display flickering when grids try to update each other's LCDs).

Thanks!
Gray 30. aug. 2021 kl. 17:40 
@Zanders3 or whoever can solve this please:

I have my ship view set to ShipLayout 1 which is a view from above, only, this view appears to be reversed, so it's like looking from below because the longer weapon on the left nose side of my ship shows as on the right nose side of the image?

I went through all the image options up to ShipLayout 23 and found that ShipLayout 13 is the view that appears to be the same view but from below, as the blocks are much darker...and is correctly showing the gun in the correct spot

So basically i need the top down view flipped over, any ideas? PS i looked through the script and....as if i could work it out !! XD
Radler15 30. maj 2021 kl. 13:10 
Hej there is it possible to run 2 PB's on each Main grid and sub grid and then display both images on the main grid Lcd's? So like is there any way to number the blocks and lcd's? I know Multi-Grid is not supported , so that one PB can't output both sub and main grid, but idk if that accounts to that exact scenario.