Space Engineers

Space Engineers

25 ratings
Ship AI Screen module v1.0.4
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
6.254 KB
24 Feb, 2015 @ 10:23am
8 Mar, 2015 @ 8:32am
6 Change Notes ( view )

Subscribe to download
Ship AI Screen module v1.0.4

In 1 collection by a
FUCKING EVERYTHING
608 items
Description
Loving your Ship AI, but aren't just Status panels enough? The Screen Module can help you out!

This script REQUIRES the Ship AI Core! Without it it will SIMPLY CRASH. You've been warned.
You can get it here: http://steamproxy.net/sharedfiles/filedetails/?id=396763261

For the changelog, see the 'change notes' right next to the screenshots.

If you install this script on a secondary programming block, it will automatically take over the screen updating functionality from the Core so the Core can focus on more important tasks (and more of them).

Additionally, you will be able to create ANY kind of customized information screen by using the template engine in this script. Information on how to use this can be found in the script.
The Screen module is a full template parser that translates a string like "{shipName} - {wattHoursInBatteries}" into "AI Core v1.2.24 - 2.4MWh". You can create unlimited types of screens with the instructions provided in the script, each of which you can display across unlimited amounts of screens.

HOW TO USE
1) Make sure you have the AI Core set up properly and working
2) install this script on a second programming block
3) make sure the timer also runs this new block. Status panels are now rendered by the Screen Module, giving the Core more room for other things!
4) create screens with names ending in "_customscreen1" to see the example (full block report) working!

5) Open the script, copypaste it to something like notepad or visual studio 2012/2013 (not needed, but convenient), and follow the instructions there to build your own custom info screen!

Basically, you have a string like
"Full block status\n{getOfflineAndDamageReport}\n{shortCommsStatus}"
and it will automatically convert it to something like:
"Full block status
>block BLABLA not functional
-someturret 4 is offline.
Comms: Warning: Comms OFFLINE!
..." etc, and show it on all screens ending in _customscreen1 (or 2,3,4,etc!).
You can make use of any of the provided variables and functions, and even create multiple types of screens easily.

Because the Screens module doesn't have to do much actual work and fetches the variables from the AI Core, you can hook up a decent amount of screens before it'll start complaining.

An example is included that shows a full block report like some people have been asking for.

Pastebin version as always: http://pastebin.com/VDWj6U21 v1.0.3
16 Comments
Raziel 6 Apr, 2015 @ 2:14pm 
You have written everything alone? Hats off. I would not ask if I did not everything is already occurred to me would have tried. ^^
a  [author] 6 Apr, 2015 @ 2:09pm 
Okay that may be a bit poorly worded, but really, it's not that I don't like you, but I can't answer every question everyone has, I'm just a single person writing this script, please, do try and help yourself too.
a  [author] 6 Apr, 2015 @ 2:06pm 
@Matthias: I'm sorry but, I'm fine with helping out people, but I'm not a support desk; Try some things yourself? No offense.
Raziel 6 Apr, 2015 @ 2:06pm 
what I have to enter a command to let me show only the ship sub rutins?
Raziel 5 Apr, 2015 @ 11:45am 
I really wanted to get displayed on the screen which makes the AI. So switch from manufacturing etc.
Raziel 5 Apr, 2015 @ 11:43am 
I dont know why, but the only comand are runnig is _customscreen1_status and _customscreen1. if i Write _customscreen1_Reactors or _customscreen1_reactor report it shows nothing. and the status say Reactor 0/0 W. But they can output 10,375 Gigawatts.
Lonewolf 31 Mar, 2015 @ 3:20pm 
Looking at this again I can see that the problem is the how to use instructions should produce a report by step 4. With an option to do step 5. It we need to go to step 5 that is a total failure to demonstrate on the LCD the default settings.
Lonewolf 31 Mar, 2015 @ 3:14pm 
This does not work too well right now. I have no idea why. The main AI core is running away happy and producing a good report on the status screen. This script is however not pulling it's weight. Setting the default custom LCD name should produce something but it does nothing. So there is no way to know if the script is even working at all. I have the dubug screen up running as well and it is not giving me any bad warnings. Although there is some instructions to rewrite the script. That is something I do not want to do. Until there is some evidence that this script does something useful using the default settings.
a  [author] 3 Mar, 2015 @ 11:59am 
The current version should be bug-free, let me know if it still doesn't work for you.