Space Engineers

Space Engineers

Automatic LCDs 2
2.780 opmerkingen
Leconite 19 aug om 3:56 
There is no way to do that with this script.
KeplerTheAlien 19 aug om 2:33 
is there a way to change the color of text per line...? or am i dumb?
Kham 17 aug om 12:06 
@GermanGinger 99.9% of the time when it shows 0 for everything, it's because you've not told it where to look, or you've told it the wrong place.

For example typing this
inventory +ingot

instead of this
inventory * +ingot
GermanGinger 17 aug om 10:42 
Love the mod and I've been using it for years but lately I've ran into a particular problem. All the coding "works" but doesn't. The main thing I use is the inventory and tank stuff. Unfortunately, recently it would pull up the usually list but show everything empty or at 0. Any help? Can't seem to figure it out
the_high_lord 16 aug om 9:27 
@gromit That was it. I removed the underscores and now the console works exactly as intended! You, sir, have earned yourself a cookie.
Dab Boofer 14 aug om 20:04 
anyone having trouble getting proper ammo inventory ammounts? its showing 0 ammo when I know Im stocked up
Gromit 14 aug om 9:42 
@the_high_lord: it's a typo, you must not use "@0 auto_lcd" but "@0 AutoLCD". Hope this helps :se:
the_high_lord 14 aug om 9:33 
Ok, I'm getting annoyed.. I'm trying to set up a console with three screens so that the screens each display different information. According to the guide, to get what I want, I should use the following command structure in the console's custom data

@0 auto_lcd
inventory {gas} +ice (this is to see how much ice is in my H2/O2 aka 'gas' generators)
@1 auto_lcd
tanks * oxygen
@2 auto_lcd
tanks * hydrogen

However, when I add this exact chunk of text to my console, it doesn't work as intended, and I don't know why. I've verified that

inventory
tanks * oxygen
tanks * hydrogen

will display the desired values on the *first* screen, but as soon as I put in the @* auto_lcd lines in, the first screen freezes, and nothing displays on the other screens.
Atomhirsch 28 jul om 7:30 
What exactly do you mean? You can show information of blocks with the "detail" command, so you see the same text as in the terminal view of that block.
GOD OF WAR 27 jun om 18:18 
Is there away to add targeting information?
Gromit 18 jun om 23:29 
@CrankyOldMan: this is not a mod, it's a script so it will appear in the scripts list when you will open a programmable block properties If you have of course enabled in-game scripts in the world settings :se:
CrankyOldMan 18 jun om 21:21 
In-game browsing of workshop doesn't show it, either....
CrankyOldMan 18 jun om 21:19 
I'm having issues as well. I'm subbed on the workshop, but it doesn't appear in my mod list when I start a new game. Version update maybe?
MMaster  [auteur] 18 jun om 0:25 
@Nolabritt I see. Weird. I've never heard of such issue. It sounds like locally modified script. I have tested it on completely fresh profile with no local data and the script that is downloaded from workshop has correct size with no extra whitespaces.
Nolabritt 17 jun om 19:42 
More specifically, I am subbed on the workshop and when I select it via "browse scripts" and I "copy to editor", the script copies as 143400/100000 characters in the programmable block editor. I have been using this script for years with no problem, this is very recent which means it may be due to other mods. I am able to pull old copies of the script from blueprints, and they have a proper 96637/100000 count. Comparing each in VS, the new copy is the same as the old except it has all standard formatting white space. The old script lacks all white space after the intro. Others would have run into this issue if it was a problem on your end, but the issue persists even if I start a new unmodded game... it may be a result of me messing with my game files on my end or something. I have copies of the script so I am not hurting, but if others bring this up then remember this data point
MMaster  [auteur] 14 jun om 18:24 
The script fits into programmable block character limits using standard way of subscribing to it and loading it into programmable block from list of in-game scripts using in-game interface.
I'm not quite sure what you mean by 'pulling script from the workshop' but if you mean downloading the script outside of game and then copy pasting it into the game then that is definitely not supported.
Nolabritt 14 jun om 15:16 
For some reason when I copy the script from the workshop, it is too long for the character limit. It looks like the code was formatted somehow and a lot of white space was added which pushed the code over the character limit. Has anyone had this problem when pulling script from the workshop?
Kham 9 jun om 17:36 
@RichDickPeter Is the guide not that already?
RichDickPeter 9 jun om 16:40 
Can you add a link to a list of JUST the commands? I hate digging through all this every time I come back to the game, I've even made a list of my own somewhere and lost it! seams like it would be the very first thing. Like in a guitar tutorial they just tell you the chords and play it once through for those who aren't total beginners to just get back to playing.
Leconite 6 jun om 16:08 
Group limited commands are working.
Show us the commands you are giving AutoLCD's, maybe we can help you troubleshoot it.
SavageReaper185 6 jun om 15:34 
i can not get the group commands to work, anyone else having this issue?
Leconite 27 mei om 5:14 
Who, me?! Never!
Bullsh*T!

AA, AutoLcd's Anonymous? LOL! :-)
Fat7i Bonané 26 mei om 9:25 
It's crazy how I simply cannot play without this script. Do you also spend hours making that perfect layout of info on your screens?
Leconite 23 mei om 4:33 
In some situations, you can successfully get readable text on smaller LCD's by lowering the font size. I've done that to get GPS readouts on the Corner LCD Top or Bottom variants.
The Legacy 22 mei om 18:04 
Also, while I'm suggesting the below idea, an additional flag that replaces number truncation (ie. 1000 = 1 k) with the real number?
The Legacy 22 mei om 18:02 
Hi! Is it possible to make a variation of InvList (and other similar functions) where you can hide the label for the item in question (whether it be a damaged block, inventory item, etc)?

For example, using "L" as the modifier to hide the label, what I'd like to do is something like this, using the small LCD on the top right of the Turret Controller:

echo Top Port
echo Turret
InvListNNB * +autocannonmag
InvListNNL * +autocannonmag
InvListNBL * +autocannonmag

The chief purpose of this is so I can fit text in very small LCD's without causing it to bunch up like it's currently doing.

It HOPEFULLY is a simple addition, and this could apply for other functions as well. Thanks!
Leconite 21 mei om 8:31 
Absolutely, MMaster, take care of yourself first, SE isn't going anywhere, the script update can wait.
Slug 21 mei om 8:24 
@MMaster: Wow, you're a legend. Hope you're feeling better soon!
MMaster  [auteur] 21 mei om 7:12 
Please check the Prototech components/blocks discussion

https://gtm.steamproxy.vip/workshop/filedetails/discussion/822950976/591764302717843851/

I've tried to list the Add() items lines there for testing (prototech items will still not be shown for 0 items intentionally as is described in that discussion). If everything will be fine and nothing is missing I will publish the changes.
MMaster  [auteur] 21 mei om 6:12 
If someone is willing to help me and make my life a bit easier would you be able to list the items that are missing in the Prototech components/blocks discussion that would help a lot (no need to list item ids, just their names). Thanks!
MMaster  [auteur] 21 mei om 6:00 
I'm sorry Prototech components were not added to list of items in the script yet. They will be shown if they are in the container, but their name is just automatically made up from item id and there are no short names. Unfortunately I'm fighting sickness for a last few months already and haven't been able to get to it. I will try to do it asap.
Slug 21 mei om 5:15 
V2.0200 yes? So yeah, while I can see prototech items, it's simple showing up ingame as "Prototech "x": 1" No bar indicator. I've had a crack at simply trying to add them in like you'd do for a modded item, but no joy. I'm not sure if it's simply because I'm doing it wrong (Good to even odds that I am :blissful_creep:), or that due to not knowing what the those items actual item ID's are I can't simply type out the line "Add("Prototech Frame", "Component", 100);" etc (If SOMEONE does know how to add in the prototech items, please, my OCD begs of you, tell me your secrets!). :sad_creep:
Leconite 21 mei om 4:48 
I know MMaster added a lot of the vanilla items in the most recent update. Check if you are running the latest version. Forgetting to check for script updates has gotten me before. :-)
Slug 21 mei om 4:36 
@Leconite, Yes. I noticed that too, but they were only listed as a random item, not like the rest of the base game components/ingot/ore etc etc. I simply thought that MMaster hasn't gotten around to adding them like the other vanilla items. :nonplussed_creep:
Leconite 21 mei om 4:19 
The inventory related commands seem to pick them up automatically. I found some prototech components in planetary encounters and they displayed along with the rest of the regular components. Same with prototech scrap, displayed right along with the other ores that I had.
Slug 21 mei om 4:08 
@MMaster Sorry to bother you, but have the prototech components/items etc been added to the script as of yet? If not, is there an ETA? Thanks in advance! :happy_creep:
RedGan 5 mei om 14:58 
Hi, I would like to know, is everyone's mod working fine now, everything is great?
Kham 28 apr om 13:21 
As the guide states, the Gravity command "Displays natural, artificial and total gravitational acceleration (in m/s²)"

You're using the individual variants, which you should only use if you only want to display one of them or want them all on different lines.
E P I C M O M E N T 28 apr om 8:06 
Could be me, but I couldn't find anything, and if you just type out all the gravity commands in a row (GravityNatural GravityArtifical GravityTotal) it will only display the first one (GravityNatural)
Leconite 28 apr om 5:10 
It's in the guide, referenced above.
Just might be the gravity command? ...
E P I C M O M E N T 27 apr om 18:24 
quick question, how could I recreate how the gravity is set up on the fourth screenshot? I can't seem to figure out how to get natural, artificial, and total gravity on the same line.
Kham 11 apr om 13:54 
@Swann Glad that got it going. :)
Swann 10 apr om 12:31 
@Kham Thank you for providing a version number. In the end you were right. Even though all my tests have been brand new games and worlds, apparently I've been loading v:2.0184 for the last year from some kind of local copy. Notably that version does support custom titles but only for the Power commands and not the Cargo ones. I'm good now.

Big thanks to Kham and Leconite for helping me.
Kham 6 apr om 10:35 
@Swann the custom title override is still working fine in my test world.
Be sure to check your PB is running the latest version of the script, or at least V2.0194 since that's when the override was added.
Swann 6 apr om 8:47 
Leconite:
That's a good thought but I've tried that all different ways. The braces are definitely not the problem.

None of these work correctly:
Cargo {*} {Stuff:}
CargoAllP {Chas Cockpit} {Junk:}
CargoAllP {Cargo} {Containers:}
CargoAllP {O2/H2 Generator} {O2/H2:}

The custom labels worked about a year ago but they haven't worked for a long time.
Leconite 6 apr om 4:38 
Shameless plug here, but this might give you some of the information that you want.
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3304775408
WardenWolf 5 apr om 1:47 
Could you add a function to estimate how long your ice will last at current consumption levels? Right now we really have no way of knowing this, so figuring out how much of our cargo to devote to ice is nearly impossible.
WardenWolf 1 apr om 16:58 
All right. I'll post on the Water Mod, then, since it sounds like the problem is there.
MMaster  [auteur] 1 apr om 16:56 
As I'm saying all the script does is ask the game: Tell me the Sealevel elevation of this ship controller (cockpit) and the game returns the value that the script shows.

Here is the code:
if (!primaryController.TryGetPlanetElevation(MyPlanetElevation.Sealevel, out seaElevation))
seaElevation = double.NaN;

There is nothing more to it. So there are few options: either the game is wrong about what it is telling in-game scripts, or the weather mod is wrong, or all of it is wrong :D But unfortunately there is nothing I can do about it.
WardenWolf 1 apr om 16:51 
It doesn't match the Water Mod's own Altitude option, which shows height above sea level.