/DU-Lua-Scripts

A collection of useful scripts and learning tools for Lua programming in Dual Universe.

Primary LanguageVisual Basic .NETGNU General Public License v2.0GPL-2.0

DU-Lua-Scripts

A collection of potentially useful scripts and tools for Lua programming in Dual Universe.
Nothing super complicated here, but perhaps you find some of these scripts useful to learn from.

List of available open-source scripts:

  • Construct ID License Plate
    • Uses a construct's ID to generate a unique license plate with configurable display settings.
  • Conway's Game Of Life
    • GOL done in lua. Runs on an in-game screen. (currently not working)
  • Custom Font From Image
    • Uses sub-regions of an image to render text as if it were using a custom font. Supports custom colors, and per-character coloring.
  • Databank Key Viewer
    • Used to manually inspect the contents of a databank, when it contains many values or large tables. Output retains heirachical JSON structure.
  • Developer Utility Screen
    • General screen debug, built with basic re-usable example functions to serve most UI purposes.
  • Door Control
    • Touch-control screen with 4-digit passcode, for "securely" regulating access to doors or other elements.
  • Drawing Board 1.1
    • Draw images by hand on a screen using custom colors and a minimalistic UI.
  • DU Image To Lua-string Converter
    • Convert images to string which can be loaded and displayed by a single Screen element.
  • DU OpenMarket Advertisement
    • An advertisement billboard for DU OpenMarket, my Market API for DU. Cycles between 4 states.
  • Infinite Image Slideshow
    • Displays a slideshow of images, with support for an infinite number of them. Smooth scrolling transitions and configurable parameters.
  • Image To Movie
    • Uses sub-regions of multiple large images to display a quick frame sequence, which looks like an animation or movie clip. Adjustable parameters, supports a theoretically infinite number of images. On-screen pause and seek control using mouse.
  • Item ID Scraper
    • Runs a loop which repeatedly checks the game server for a given item ID, and if the item exists, pulls its data and appends it to a screen's renderscript for copying.
  • Lighting RGB Control
    • Simple screen UI with 3 sliders which can interact with a PB to change the color of light elements.
  • Matrix Code Rain
    • Creates a "Matrix"-like scrolling backdrop, using a non-Cyrillic character set.
  • Particle System
    • 2d Particle simulation with adjustable parameters. Can be used to emulate snow or rain, or as an art-piece.
  • Terminal Emulator
    • Emulates an active terminal, scrolling text with editable technical jargon and color.
  • TYR Mining Unit Control Uplink
    • Displays calibrations and stats for up to 7 Mining Units. Updates in real-time.
  • TYR Ship Info Kiosk
    • Displays flight-stats and images of constructs, fully configurable. Screen ONLY, no order placement.
  • Voxelmancy Space Gyro Tool
    • Very simple script that maps 3 Gyroscope elements to 3 toggle keys, for building in space.