LeGo Setup
Danger
LeGo depends on Ikarus script packet, if you didn't install it yet check the Ikarus Setup. This guide assumes that you already have Ikarus running.
Download
First you need to download LeGo from the official github repository. We recommend using the dev
branch as it contains the latest and most up-to-date version of the package. However, you can also download a specific release if needed.
File location
If you followed the Ikarus Setup guide you probably have a "MOD" (or any other named) folder inside the <Gothic-dir>\_work\Data\Scripts\Content
directory. If not create it.
Unpack the downloaded files into this folder. The archiver should create a folder named LeGo-dev
or LeGo-X.X.X
. For better readability change its name to just LeGo
.
Tip
It's a good practice to delete any unused files, so delete files for other gothic version than this you are using.
Parsing
LeGo has a special header files, one for each supported engine version. All you need to do is to include them in Gothic.src
right after the Ikarus files.
Initialization
Before you can use LeGo and its packages, it must be properly initialized.
Warning
Gothic 1 by default doesn't have its own INIT_GLOBAL
function inside Startup.d
file. If you haven't created it yet see how to do it here.
You initialize LeGo by calling the LeGo_Init(var int flags)
function and specifying the flags.