| Lua Sandbox DLL | |
|---|---|
| Type | DLL Plugin |
| Author | memo |
| Desc | Blocks unsafe Lua functions that mods could use |
| Version | 1.0.0 (March 2026) |
| Downloads | GitHub releases Simtropolis |
| Source | memo33/sc4-lua-sandbox-dll |
The Lua Sandbox DLL is a DLL plugin for SimCity 4 that stops mods from using unsafe Lua functions. The game uses Lua scripts for advisor messages, rewards and automata generators. Plugins generally have no need to access the file system, so the DLL blocks this.
Features
- Blocks unsafe Lua functions, such as reading and writing files and running shell commands.
- Writes a log file that shows if a plugin tried to call a blocked function.
- An optional INI file can allow file reading, while still blocking file writing.
- Works with nearly all plugins. It is not compatible with DAMN, BSC Regional Tracking and Cori Reports.
Requirements
- SimCity 4 version 1.1.641 (the digital release), on Windows 10 or later, or Linux.
- The Microsoft Visual C++ 2022 or later x86 Redistributable.
The DLL is also available in sc4pac as memo:lua-sandbox-dll.
Note: This article is a stub. You can help by expanding it.