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.
- HTTP/HTTPS client
- FTP/FTPS/SFTP client
- Regular expression (PCRE2)
- Language Integrated Query (Linq)
- MySQL
- Utilities
- File
- System
- Zip
- Player
- Math
In order to use this library, just download the archived file down below, and extract it to the Call of Duty 4X plugins/gsclib
directory.
Pre-Requisites:
- Edit plugin_handle.h then recompile the server with an empty obj directory:
#define MAX_SCRIPTFUNCTIONS 256
Build Command:
conan remote add iswenzz-conan https://iswenzz.jfrog.io/artifactory/api/conan/iswenzz-conan
mkdir build && cd build
conan install .. --build missing --profile:host ../.conan/linux_host.conf --profile:build ../.conan/linux_build.conf
cmake ..
cmake --build .
Pre-Requisites:
- Edit plugin_handle.h and recompile your server:
#define MAX_SCRIPTFUNCTIONS 256
- CGSC and it's pre-requisites.
- CMake and Conan.
- Visual Studio with Clang toolset.
Using the Developer Command Prompt for Visual Studio Build Command:
scripts/build_libcom.bat
conan remote add iswenzz-conan https://iswenzz.jfrog.io/artifactory/api/conan/iswenzz-conan
mkdir build && cd build
conan install .. --build missing --profile ../.conan/windows.conf
cmake .. -A Win32 -T ClangCL
cmake --build .
Note:
VCPKG integration need to be disabled vcpkg integration remove
.
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.