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
- Critical Sections
- Utilities
- File
- System
- Zip
- Player
- Math
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();
}
- Edit plugin_handler.h then recompile the server with a clean obj directory:
#define MAX_SCRIPTFUNCTIONS 256
Pre-Requisites:
Build Command:
mkdir build && cd build
cmake .. --preset linux
cmake --build .
Pre-Requisites:
Build Command:
mkdir build && cd build
cmake .. --preset windows
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.