gsclib acts as a standard library extension for the Call of Duty 4 scripting language.
gsclib
acts as a standard library extension for the Call of Duty 4 scripting language. The features this library provides consists of an FTP/FTPS/SFTP client, an HTTP/HTTPS client, Regular Expression (PCRE2) support, Language Integrated Query (Linq) support, a MySQL connector for databases, casting/type conversion/fmt and other type utilities, ZIP files, async workers, and much more. More detailed information on each feature can be found in the documentation section.
In order to use this library, you'll need to compile the binary and place it to the CoD4 plugins
directory.
Then you can simply use loadplugin gsclib
in your server.cfg
or as CLI arguments.
To initialize gsclib library you need to call GSCLIB_Init()
at the start of your mod entry point.
main()
{
GSCLIB_Init();
}
#define MAX_SCRIPTFUNCTIONS 256
Pre-Requisites:
Build Command:
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=.vcpkg/linux.cmake
cmake --build .
Pre-Requisites:
Build Command:
mkdir build && cd build
cmake .. -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=.vcpkg/windows.cmake
cmake --build .
For resolving missing dependencies you can use the ldd command for Linux, and Dependency Walker for Windows.
Note: If you would like to contribute to this repository, feel free to send a pull request, and I will review your code. Also feel free to post about any problems that may arise in the issues section of the repository.