About this mod
Facilitates the reading of json packages from a monitored folder or through a TCP connection to allow the execution of scripts. This allows streamers to have interactive chat commands that modify the game.
- Requirements
- Permissions and credits
- Mirrors
- Changelogs
MWSE-Lua mod
Facilitates the reading of json packages from a monitored folder or through a TCP connection to allow the execution of scripts. This allows streamers to have interactive chat commands that modify the game.
Requirements & Installation:
This mod uses MWSE. If you encounter any issues please post a report, ideally on the MWSE bug tracker. You can download the latest nightly build from the link below.
This mod requires Morrowind Graphic Extender XE. Older versions will not work with MWSE 2.0+. Additionally, it will require the latest nightly build of MWSE. Be sure to run the MWSE updater before installing this mod.
To install the mod, extract the archive into your Data Files folder. There is no ESP to activate.
Features:
- Monitor a (configurable) folder for json packages. The package will be deleted after execution. This feature can be disabled.
- Accept json packages as a (configurable) TCP connection. This feature can be disabled. Normal network security cautions apply.
- A json package can define mwscript, lua, or a file to execute. mwscript will be executed as if from the console. lua freestanding or file-associated execution will be sandboxed to not pollute the global environment. Additionally, the externalCommands variable is defined. It contains a package field that contains the decoded json that prompted the file's execution. This can be used to pass variables in, such as who triggered the command.
Package Format:
The package format is simple json. If sent over over TCP, ensure that the package is terminated by a newline. Below is an example package that will execute the Data Files\MWSE\mods\ExternalCommands\files\cliffy.lua file, which comes packaged as an example with the mod:
{ "type": "file", "file": "cliffy" }