Space Engineers

Space Engineers

View Stats:
I need a script to replace custom data of LCDs
Hello, I am coming to ask for help coding something.

I am not a programmer, I could never wrap my head around anything outside of HTML event trying many types of languages, I have tried JAVA to C++ and many others, I did not take any advanced math classes so self-teaching my self now is very hard even with tonnes of video watch time.

Even watching some tutorials on youtube they never really explain how to do something as a project as it is nearly imposable to code everything is known to man it's quite endless when it comes to coding from what I understand.

On that note, I need someone to help me out if someone has time to make some script to change custom data using programmable blocks so I can change the LCD screens.

I am using "MMaster's Automatic LCDs 2" and that uses custom data to output commands and text, I am just wondering if it's posable to replace the script in the custom data of the LCD screen to replace the commands from this mod.

This is MMaster's guide, it may come in handy if you want to try getting this to work.
https://steamcommunity.com/sharedfiles/filedetails/?id=407158161

Basically what I would do is have one programmable block per screen then just run the script from the flight seat to update the screen in front of me when flying.

Is this possible to begin with?
And are you willing to help out?

Thanks for your time guys, I hope someone can help. :steamhappy:
< >
Showing 1-3 of 3 comments
Mr B. (Banned) May 13, 2018 @ 11:25pm 
I can see how that would be useful.

Especially if it could trigger automatically on certain events.
Loues.S.Cat May 13, 2018 @ 11:33pm 
Originally posted by NorthWestTrees:
Is this possible to begin with?
And are you willing to help out?

Yes
Maybe

Looking into it, though you know you likely dont need one block per LCD. The same script could be commanded to update diffrent data displays with diffrent commands.

Generaly speaking I dont modify other peoples work (mostly because reading it can often be a mind bending experiance), especialy if it still works as is.
Last edited by Loues.S.Cat; May 13, 2018 @ 11:35pm
NorthWestTrees May 14, 2018 @ 1:48pm 
So after posting this, I found a workaround, its very complex and it does have its Pros and Cons I will explain what I figured out below.

Setup:
1: You need to stop the scrolling of the LCD using this text in the name: !NOSCROLL

2: If you have more than one screen you need two timer blocks to run a script.

3: First you need to set up the first timer to scroll up the Text using the text below:

scrollUp {name of LCD} 17

There are 17 lines on a full block LCD screen so setting it to 17 will scroll one page up or down.

4: You will need to run the LCD programmable block with the LCD script with the line above.
When you select RUN it will open a sub-window with a text box where you input the text.

5: do that for every LCD Screen to scroll up

6: Repeat the process but rather than scrollUp have scrollDown instead on the second timer.

7: So now you have one timer to scroll up and one to scroll down.
All you need to do is link the timer blocks to your cockpit and it should scroll pages however it's still not the best way as it is a pain for several reasons I will get into that in a sec.

Pros:
1: Scrolling more than one LCD Screen at a time.

2: Only requires two extra blocks there for saves space.

Cons:
1: Screens take a few seconds to update which could be a problem in a battle.

2: You have to use the Echo command to add empty space to fill pages which is a lot of work.
Each line used by one command on the page will still count as a line so if you have something that takes up 16 lines you need one echo before you add your next page.

3: The custom data is long and hard to find things that may need to be updated as you are using one data table.

Like I said its a workaround I think it would be better to use a script to update custom data even though it may not be able to do all the screen at a time or maybe it can with timers it will depend on how you set it up in game.

Thanks for your replays so far.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: May 13, 2018 @ 4:00pm
Posts: 3