Space Engineers

Space Engineers

Not enough ratings
LCD Image Rotation
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
238.557 KB
7 Aug @ 11:37am
7 Aug @ 11:54am
2 Change Notes ( view )

Subscribe to download
LCD Image Rotation

Description
This script rotates lcd's between their selected images that feels a bit better/more random than the vanilla change interval.

This is done via letting the PB run every 200 ticks/~3 seconds and "choosing" a some of the included lcd's to change their image
after an lcd has gone through all their images it also shuffles the list so the images are in a new order.

** Usage:
- Put the script in a programmable block.
- Set the settings as you wish.
- Assign the set prefix/suffix/keyword to the lcd's you want to be rotated
- Done!

** Adding lcd's:
- Just place an lcd, add their images and give it its prefix/suffix/keyword
- (If not using the RandomizeUpdateOrder setting) recompile the script


** Notes:
- If the prefix/suffix/a keyword is set in the options, then they all need to be in the lcd's names.

- If an lcd has no images/isn't in "text and images" mode the lcd is skipped and the script will retry next time it encounters that lcd.

- Adding images while the script is running is fine.

- Removing images could cause a problem when using the RandomizeOrder setting, as if you remove the lcd's "first" image then the script won't see that it's removed and it won't randomize the lcd's images. I'll update this script later with a fix when I have the time.


** Settings:
Cycle Time: The script uses "cycles" as in one complete run where it changed all lcd's images.

Spread lcd's over cycle: This setting makes it so that not all the lcd's change their image at the beginning of a cycle but throughout the cycle.

Randomize order: With this setting the order of the images will be randomized when all images have been shown.

Randomize update order: This setting makes it so that the order in which the lcd's update throughout a cycle gets randomized each cycle

Pick random: With this setting each lcd will just take a random image out of its list instead of going over to the next image.

Pick twice: Use this setting if you want that "pick random" can pick one image two times in a row


If you encounter any bugs/something doesn't work, feel free to let me know.

The code also has a couple of comments so if you want feel free to see how it works.