Back to TPG

TPG.Config.ValidateE2SFSandbox

S🏷️ Config

Part of TPG namespace

TPG.Config.ValidateE2SFSandbox()
View on GitHub|gamemode/config/sh_config.lua:421-436
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Check whether the tpg_e2sf_sandbox addon is mounted, and warn if not. The E2/Starfall tpg* chip functions have to exist as a REAL addon under garrysmod/addons/, normally a junction/symlink to this repo's addons/tpg_e2sf_sandbox folder, since git does not carry filesystem links. That is easy to forget on a fresh deploy, so this checks for one of its files and prints a loud warning rather than letting the chip functions silently not exist. Detection is indirect: it does not check for the sandbox addon itself, it checks for autorun/server/tpg_e2sf_stub.lua under the LUA search path as a stand-in for "the junction is in place". Sets TPG.E2SFSandboxMounted for anything else that needs to know. Even when mounted, the chip functions only work while TPG is the active gamemode, not in plain sandbox; see addons/tpg_e2sf_sandbox and README.md.

Parameters

No parameters.

Returns

TypeDescription
booleanWhether the stub file was found.

Examples

No examples available.

Used In

No usages found in the codebase.