Building

Instructions for compiling Plugify from source to customize it for specific game modding needs.

This guide provides instructions for building MM-Loader, a specialized version of Plugify designed for Counter-Strike 2 servers. The build process is nearly identical to building the core Plugify library, with one key difference: the target name should be plugify-metamod-loader instead of plugify.

Key Difference

When building MM-Loader, ensure that you specify the target name as plugify-metamod-loader instead of plugify. For example:

cmake --build . --target plugify-metamod-loader

Steps to Build MM-Loader

Clone the Repository

Clone the MM-Loader repository to your local machine:

git clone https://github.com/untrustedmodders/plugify-metamod-loader.git --recursive
cd plugify-metamod-loader

Generate Build Files

Create a build directory and generate the build files using CMake:

mkdir build
cd build
cmake ..

Build the Project

Build the project using the following command. Note: The target name is plugify-metamod-loader.

cmake --build . --target plugify-metamod-loader

Verify the Build

Once the build process is complete, the compiled files will be located in the build directory. Verify the build by checking for the following files:

  • plugify.dll (Windows)
  • plugify.so (Linux)

Detailed Build Instructions

For more detailed instructions on building Plugify (e.g., configuring CMake options, enabling tests, or building documentation), refer to the Building Plugify guide. The process is identical, except for the target name (plugify-metamod-loader instead of plugify).

Troubleshooting

Common Issues

  1. Build Fails:
    • Ensure that you have the correct version of CMake and a compatible C++ compiler installed.
    • Verify that all dependencies are available and properly configured.
  2. Target Not Found:
    • Double-check that you are using the correct target name (plugify-metamod-loader).
  3. Missing Files:
    • Ensure that the repository was cloned correctly and that all files are present.