Space Engineers

Space Engineers

Not enough ratings
Ship Inspector v1.5
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
5.081 KB
28 Feb, 2015 @ 1:21am
1 Change Note ( view )

Subscribe to download
Ship Inspector v1.5

Description
This script will run a full diagnostic on your ship and will output important information for you to examine. It calculates the ships acceleration in all directions, time to max speed, cargo capacity, maximum ammo that could be stored, ship dimensions, number of timer blocks, assemblers, refineries, etc. The output is also formatted and aligned so you can copy and paste it into your steam workshop description. However in game there is no alignment for text on text panels [frown]

This is only the beginning of whats possible to be calculated. I still want to include Gyro acceleration, but I dont know where to find or calculate this.

V1.5 Uploaded:
- Added Ship Dimensions in both number of blocks and metric
- Added more cargo capacity information
- Added more blocks to be listed under Utility

Currently Working on:
- Power Statistics for Reactors, Batteries, Solar panels
- Gyro Statistics

Planned
- Turret Configurations for large ships
- Simulated 'Necessary' Power required to operate ship

This is what the script spitted out when I copied it from my text panel:

********************************************************************************
SPECIFICATIONS


GENERAL

Dimensions:
Length: 30 Blocks
Width: 21 Blocks
Height: 8 Blocks

Length: 15 Meters
Width: 10.5 Meters
Height: 4 Meters


THRUST

Configuration:
Thrusters: 31
Forward: 5
Backward: 2
Left: 2
Right: 2
Up: 12
Down: 8

Potential Force Configuration:
Total Net Force: 2448 kN
Forward: 1296 kN
Backward: 864 kN
Left: 24 kN
Right: 24 kN
Up: 144 kN
Down: 96 kN

Potential Force Allocation:
Forward: 52.94 %
Backward: 35.29 %
Left: 0.98 %
Right: 0.98 %
Up: 5.88 %
Down: 3.92 %


CARGO

General:
Cargo Containers: 22
Connectors: 1

Storage Capacity:
Cargo Containers: 10625 L
Connectors: 1152 L
Other: 560 L
Total Storage Available: 12337 L

Ammo Capacity:
Gun Ammo Capacity: 771 Boxes
Gun Ammo: 19275 Rounds


POWER

Reactors: 2
Batteries: 0
Solar Panels: 0
Reactor Power: UNIMPLEMENTED
Battery Power: UNIMPLEMENTED
Solar Power: UNIMPLEMENTED
Total Power: UNIMPLEMENTED


PERFORMANCE

Acceleration:
Forward: 28.83 m/s2
Backward: 19.22 m/s2
Left: 0.53 m/s2
Right: 0.53 m/s2
Up: 3.2 m/s2
Down: 2.14 m/s2

0 to Max Speed (Forward): 3.64 seconds


UTILITY

Gyroscopes: 10
Timer Blocks: 15
Programming Blocks: 18
Sensors: 0
Cameras: 0
Remote Controls: 0
Antennas: 4
Sound Blocks: 0
Beacons: 0
Refineries: 0
Assemblers: 0
Collectors: 0
Ore Detectors: 0
Gravity Generators: 0
Button Panels: 0
Medical Bays: 0
Pistons: 0
Rotors: 0

********************************************************************************

As you can see, you get quite a bit of information out of your ships with this, which gives you more power to make an educated decision to change something or to improve your design.



INSTRUCTIONS ON HOW TO USE:

You need two things for this:

1) A text panel / lcd display
2) Programming block to run this code

You will need to also modify two static variables at the top of the code:
1) change the value of MASS to the mass of your ship in kg (Simply copy the value)
2) change the value of TEXTBLOCKNAME to the name of your text panel on your ship (This will be the source where the script spits out this information)



KNOWN LIMITATIONS:
1) Formatting ingame is non existent - the characters have variable width, so it is not possible to align text properly in text panel. You can still paste this into notepad and it will come out properly aligned however.
2) Not possible to get custom weapons
3) No gyro acceleration for (yaw, pitch, roll) provided - I want to include this but havn't figured out how.
4) Cargo Capacity will only be properly calculated if the script is run in Survival. Creative changes cargo capacity of all blocks so you will get back an erroneous number.


If you spot any other bugs or ideas for things to include, feel free to share this.
Feel free to modify this script for your own ideas or to improve upon it [smile]
19 Comments
Sparktite 1 Dec, 2021 @ 6:35pm 
Having a mod like this would be a dream, anyone out there know of something like this that works? Or knows if this even works i assume its not working cuz its so old.
SevenofThr4wn 17 Apr, 2021 @ 12:10am 
@Fruit Boy: could you please update this pls
funhans 4 Nov, 2016 @ 11:53am 
That kind of script would be very useful, of course ;)
johny 31 Oct, 2015 @ 5:57am 
Any chance it will work again soon? :)
ashen_one_root_kit_@@@  [author] 22 Jul, 2015 @ 3:35am 
It looks like Keen has changed some of their functions, I noticed as well that the Terminal.BlocksGroup is no longer defined, I will need to check the documentation to see what they changed to get it working again
elKabong31000 19 Jul, 2015 @ 5:11am 
Hello, elkabong31000 here. I have been using this script to test the speed and acceleration of ships and individual engines for a while now with great success. I took a break from SE for a while and returned today to give it another try. When i loaded the script this time it threw up some errors when checking the code. lines 679, 680, and 681 have the error "a property, indexer or dynamic member access may not be passed as an out or ref parameter". line 241, 243, and 245 have "sandbox.modapi.ingame.imyterminalsystem does not containa deffinition for blocks" errors in them. i am using mods but never had any trouble before. I really like this script for determining the properties of my ships. any suggestions?
ashen_one_root_kit_@@@  [author] 19 Apr, 2015 @ 1:46pm 
By all means, feel free to tweak and modify to your hearts content :D
TacticalAllianceTV 17 Apr, 2015 @ 6:55pm 
I may dig into some code and see if I can implement it on a local level. Since I do know that a number of people don't have uber CPUs I can do C# from an application standpoint just haven't looked at it here.
ashen_one_root_kit_@@@  [author] 17 Apr, 2015 @ 1:35pm 
I wont say it isn't possible, because it is, but to pull it off is very expensive CPU wise. It will cause some noticeable stuttering if you have it looping and scrolling.
TacticalAllianceTV 16 Apr, 2015 @ 3:38pm 
is it possible to have the LCD scroll the information?