Engine:CVAR lib path: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
Line 16: Line 16:


  [name][platform][.os][.extension]
  [name][platform][.os][.extension]
namex86.dll


Platform names:
Platform names:
Line 30: Line 31:


In some configurations the path is relative to the current directory and not necessarily the actual engine start location.
In some configurations the path is relative to the current directory and not necessarily the actual engine start location.
d:\install\engine\lib\namex86.dll


== Examples ==
== Examples ==

Revision as of 19:44, 16 October 2023

Console commands

Path for loading native 'world' libraries.

set lib_path './lib/'

Arguments

  • name - 'lib_path'
  • value - Full or start folder relative path that contains loadable native world libraries. Default value is './lib/'.

Associations

  • Is by default placed in the 'global' context.

Details

Path to the platform native libraries for the world.

The library file name format uses name suffixes to distinguish between versions of the same library compiled for different platforms. Modules will load by finding the correct one by name, platform, OS, and OS module type extension.

[name][platform][.os][.extension]
namex86.dll

Platform names:

  • x86 - 32-bit x86 platform
  • x64 - 64-bit x64 platform
  • a64 - 64-bit ARM platform

OS names:

  • (none) - Windows, using the '.dll' extension
  • .linux - Linux, using the '.so' extension
  • .osx - Mac OS, using the '.so' extension

The path is either a full OS file system path to the library location, or a path relative to the launch location, which is the location of the executable for the engine.

In some configurations the path is relative to the current directory and not necessarily the actual engine start location.

d:\install\engine\lib\namex86.dll

Examples

Default values

For the path executable path 'd:\install\engine.exe', and a 'lib_path' of './lib/':

\install
   engine.exe
   lib
      gamex86.dll
      gamex64.dll
   data
      ...

Formatted names

namex86.dll
namex64.dll
namex64.linux.so
namex64.osx.so

Notes