Skip to content

Zed-z/c2-mod-loader

Repository files navigation

Croc 2 Mod Loader

ASI Mod Loader and Modding API for Croc 2

Feature overview and install instructions are available on the official website.

Mod development

Prerequisites

Windows

  1. Install Visual Studio with C++ desktop tools
  2. Install CMake and Ninja

Linux

  1. Install a 32-bit MinGW toolchain (mingw-w64)

Mod creation

  1. Copy ModTemplate/ located in the Mods/ directory
  2. Adjust the copied Resource.rc metadata fields
  3. Modify code in dllmain.cpp as needed
  4. The toolchain should automatically build any additional .cpp files, including subdirectories

Building

Windows

  1. Run ./build.ps1 -Configuration Release
  2. Mods are autodetected from Mods/ and built to build/Release/*.asi
  3. For automatic mod installation and game launching, put Croc 2 game files in Croc2/mods/ and use the -Deploy or -Launch flags

Linux

  1. Run ./build.sh
  2. Mods are autodetected from Mods/ and built to build/Release/*.asi
  3. For automatic mod installation and game launching, put Croc 2 game files in Croc2/mods/ and use the -d or -l flags

Third-Party Licenses

This project uses the following third party assets:

  • Dear ImGui - Copyright (c) 2014-2025 Omar Cornut
  • MinHook - Copyright (c) 2009-2017 Tsuda Kageyu
  • Scabber Font by GGBotNet, licensed under the Creative Commons Zero v1.0 Universal license.
  • Inter Font by Rasmus Andersson, licensed under the SIL Open Font License 1.1.
  • Roboto Mono Font by Christian Robertson, licensed under the SIL Open Font License 1.1.

Licenses for the above mentioned are available on the GitHub repository.

Special thanks

  • Thanks to ThirteenAG for developing Ultimate ASI Loader (support here)
  • Thanks to Dege for developing dgVoodoo2 (support here)
  • Thanks to ocornut for developing Dear ImGui (support here)
  • Thanks to TsudaKageyu for developing Minhook (support here)
  • Thanks to Thermospore, hdc0, limbus, Ray and Rartrin from the Croc & Stuff Discord server for valuable insight about the game!
  • Thanks to Argonaut Games for developing Croc 2!