Auto script writer 24/4/2024 The 'AutoLCD' part just needs to be there.Įasy way to know the index of the screen is when you look at the control panel of the cockpit, find the list of the LCD panels and pick one. 0 is the first screen, 1 is the second screen, etc. Where is the index of the screen you want to write to. They need to be on their own separate line. Here is example of how the Custom Data of cockpit can look AutoLCDĮcho This will be shown on first AutoLCDĮcho This will be shown on second AutoLCDĪs you can see there are special headers telling the script which screen you want to write to. In order to use other screens you have to tell the script which screen you want to write to. If you need only this screen, you can write commands to Custom Data of the cockpit just as you do with LCDs. So by default you add to the name of the cockpit in order for the cockpit to be recognized by the script.Īs soon as you do that the first screen on the cockpit will be controlled by the Automatic LCDs 2 and should display the usual message that you should write commands to custom data of the panel. In order to do that you have to mark the cockpit (or other block) with the LCD_TAG as you did with LCDs. You can use this script on cockpit screens as well as screens of other blocks. Note: If you already use Custom Data to display stuff on Programmable block screens (check 'How to use with cockpits?' section of the guide to understand how):Īdd the line to the beginning of Custom Data and separate it from the commands by using line - eg: If you don't understand why it now looks even on connected grids please read the 'Same grid filtering' section of this guide. Script will now update all panels containing even on connected grids Click Recompile button in Programmable Block control panelĦ. Open control panel of programmable block that contains Automatic LCDs 2ĥ. You have LCDs connected using rotors and you want them to be managed by the script.ġ. How to change the LCD_TAG?You can change the LCD_TAG by editing the Custom Data of programmable block that runs the script. You need to chose unique names for your blocks to prevent this. Also if you use eg "Container 1" it will show even "Container 10" and "Container 100", etc. So all of these would be shown: My Cargo Container 1, My Cargo Container A, Second My Cargo Container. This will show inventory of blocks which have "My Cargo Container" (without quotes) in name. You can enter multiple words in single argument by using even if you use just one word. This will show all items from blocks which have (including ) in name. This will show all items from blocks which have Storage in name. This will show all items from all blocks. Arguments of each command are explained separately for each command.Įach argument is always just one word - which means everything not separated by space.įirst argument usually specifies filter for name of blocks You can specify filters and other things by using command arguments. This line would do exactly the same thing as the lines above. Time Base Stats - Time: Echo Power Echo Cargo You can also separate commands on single line with Those lines will display text "Base Stats - Time:" following with current time You can enter one command per line in Custom Data of LCD Next you need to set some commands to those LCDs.Ĭommands are entered into Custom Data that you can find in control panel of each LCD.Īll commands usually work without entering any arguments unless command description says otherwise. Look at 'How to update' section to learn how to update scripts in your programmable blocks.Ĭheck the steam workshop page regularly or follow my twitter for notifications. I highly recommend touching the programmable block now and then to update the script if there were any new features added or bugs fixed. Use Debug or Monospace font of any size you like on your LCDs. German client users: your will probably not work. Add to the end of the name of your panels. You can use even Wide LCD or Text panel.ģ. You don't need to touch the programmable block anymore.Ģ. (If you don't see Edit button you need to Enable in-game scripts in Advanced World settings) Load this script into programmable block. Also don't forget to enable in-game scripts in advanced world settings.ġ. Programmable blocks and in-game scripts are now in "Experimental mode" in game that you need to turn on in game options.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |