/AcornLib

A lightweight modular Squirrel framework for Left 4 Dead 2 VScripts.

Primary LanguageSquirrelMIT LicenseMIT

AcornLib

A lightweight modular Squirrel library for Left 4 Dead 2 VScripts.

Usage

To load the library in the current scope use:

IncludeScript("AcornLib")

To load the library in a new table use:

AcornLib <- {}
IncludeScript("AcornLib", AcornLib)

Module loading

AcornLib.LoadModule("logger")

Module unloading

AcornLib.UnloadModule("logger")

API

The wiki has detailed documentation about the main AcornLib script and modules.

Installation

To install, download AcornLib.zip from the latest release and unzip the scripts into the scripts/vscripts folder in your addon or game installation.

Or if you want the absolute most recent version of the scripts, download the source files and place the scripts in the AcornLib folder into your scripts/vscripts folder.

You may want to place the files in a AcornLib folder to organize them, just make sure the modules and the main AcornLib script are in the same folder.