Jump to content

Lua Sandbox DLL  1.0.0

   (0 Reviews)

1 Screenshot

About This File

The Lua Sandbox DLL provides a more secure environment for your mods.

This DLL plugin is designed to enhance your security by preventing mods from accessing potentially dangerous Lua functions. It blocks unsafe operations such as reading and writing files, executing shell commands, and other actions that could compromise your system's integrity. By restricting these functions, the sandbox helps ensure a safer environment for running untrusted Lua code from any mods you install.

Lua is a scripting language embedded within the game, commonly used for advisor messages, rewards, and automata generators. Although many plugins include Lua scripts, there is generally no need for a plugin to access the file system. To ensure security, the sandbox prevents plugins from performing such operations.

Compatibility

The Lua Sandbox DLL is compatible with nearly all plugins, so it is advisable to keep it always installed. You can monitor the DLL's .log file to see whether any plugin attempted to call a restricted Lua function.

Incompatible with: DAMN, BSC Regional Tracking, Cori Reports.

In case you have mods that only require read-access to the file system, you can enable file-read operations in an optional INI file, while still blocking write-access.

System requirements

  • SimCity 4, version 1.1.641 (the digital edition) (more info)
  • Windows 10+ or Linux

Installation

Copy the DLL into the top-level directory of either Plugins folder (place it directly in <Documents>\SimCity 4\Plugins or <SC4 install folder>\Plugins, not in a subfolder).

Alternatively, the mod can be installed with Sc4pac: memo:lua-sandbox-dll

Troubleshooting

The DLL should write a .log file in the folder containing the DLL. The log contains status information for the most recent run of the DLL. In particular, the log shows if another plugin attempted to call a restricted Lua function.

If no .log file is written, the DLL failed to load. In this case, make sure the Microsoft Visual C++ 2022+ x86 Redistributable is installed.

This DLL is provided on a best-effort basis, without guarantees it can prevent every potential exploit.

  • Like 1
  • Thanks 1



User Feedback

Create an account or Sign In to leave a review

You need to be a member in order to leave a review

Sign In  

Already have an account? Sign in here.

Sign In Now

Create an Account  

Sign up to join our friendly community. It's easy!  

Register a New Account

There are no reviews to display.

×

Thank You for the Continued Support!

Simtropolis depends on donations to fund site maintenance costs.
Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

Make a Donation, Get a Gift!

Expand your city with the best from the Simtropolis Exchange.
Make a Donation and get one or all three discs today!

STEX Collections

By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

Each donation helps keep Simtropolis online, open and free!

Thank you for reading and enjoy the site!

More About STEX Collections