Kistan 2.0 Doc
  • Furniture
  • Sound cables
  • Roof LED
  • Pipes
  • Inputs/Outputs
  • Mixer
  • Amplifiers
  • DALI
  • DMX
  • Roof LED
  • LMixer
  • Sound mixer defaults
  • Bar computer to Kitchen speakers
  • Server: IN-SMN
  • Server: IN-ITK
  • SSO / Login
  • Grafana
IT-Sektionen
  • Furniture
  • Sound cables
  • Roof LED
  • Pipes
  • Inputs/Outputs
  • Mixer
  • Amplifiers
  • DALI
  • DMX
  • Roof LED
  • LMixer
  • Sound mixer defaults
  • Bar computer to Kitchen speakers
  • Server: IN-SMN
  • Server: IN-ITK
  • SSO / Login
  • Grafana
IT-Sektionen
  • LMixer

    • LMixer
    • LMixer scripting
    • Mixing technique
    • LMixer examples
    • LMixer Addons

      • Addons
      • Addon Development
      • Built-in addons
      • Kistan Specific Addons
      • LMixer Addon Suite

        • Addon Suite
        • Effects
        • Addon Suite Extensions
        • Utility Functions
    • Reference

      • Layers in kistan
      • Macros
      • Fixture Types in Kistan
      • Fixtures in Kistan's LMixer
      • Fixture Config File
    • LMixer Technical Info

      • Technical LMixer Info
      • MQTT Topics
      • Compatibility

Compatibility

Global Scope Scripts

Scripts used to be stored in the global scope. If a script existed called rainbow, it could be called like this:

rainbow:start()

This has the issue of polluting the global scope with every script name. That is why they were moved into Scripts., the same code now looks like this:

Scripts.rainbow:start()

Since this is a breaking change, multiple things exist to allow for compatibility.

builtin/compatibility/MakeScriptNamesGlobalScope Addon

Since removing scripts from the global scope, having a translation layer does not work, instead this addon sets a flag to revert almost all of the changes.

It makes scripts exists in the global scope again.

light_mixer/code/+ removal

The MQTT topics light_mixer/code/+ were removed and replaced with multiple, more specific. The old system has all of these execute the published code directly, however in practice light_mixer/code/run is the main one used.

light_mixer/code/run tries to translate the code to support the move to Scripts.. The start and stop topics exists as a bridge; they support both Scripts. and Global Scope, and switch their behavior to match.

Edit this page
Prev
MQTT Topics