Security Sandbox Environment

From Blue Mars Developer Guidebook

Jump to: navigation, search
There are security restrictions on this article

Overview

Scripts provided by third party developers are executed in the security sandbox environment. In this sandbox environment, the following functionalities are disabled:

  • Local disk access
  • Executing system functions
  • Overriding existing global functions/variables

A separate sandbox is created for each developer. Say your script files are located under Game/Levels/EXAMPLE/Common/Scripts/, then a sandbox called "EXAMPLE" will be generated.

Limitations

Following predefined Lua tables/functions are not accessible:

  • _G
  • os
  • io
  • debug
  • package
  • dofile
  • load
  • loadfile
  • require

Global variables defined by other developers are not accessible. Some "internal use" functions are also hidden by the sandbox.

Problems with this wiki page? Contact us either by: Support Email or Support Ticket System

Blue Mars Guidebook Privacy Policy
Blue Mars Guidebook Community Guidelines

Personal tools