General Information
IMPORTANT
Status: Supported
Minimum version: 1.0
The addon system is a storage of various gamedata and .db archives that work without interfering with each other.
Basics
Addons directory
$arch_dir_addons$– folder with addons. By defaultixr_addons\\
Operating principle: folder
- An addon in the form of a folder must contain an
addon.initfile inside it.
.
script: – entry point of the script systems of your addon (optional). More details below!
script entry
The initialization script file is executed at the moment of engine/location/save loading. Therefore, it should only assign callbacks for the further operation of the addon.
Example:
lua
SemiLog("Initial test addon script")
RegisterScriptCallback("update", my_script.update) --// calls code during actor:update
RegisterScriptCallback("save", my_script.save) --// calls code during actor:saveOperating principle: archive
- It is enough to place the archive into the addons directory.
![image](https://github.com/user-attachments/assets/f0c93315-5efe-4cf1-b953-a893e0d5d45c