c2-mod-kit is a modding utility that aims to enable modders to better use in-game debug information and engine capabilities to mod Commandos 2 more easily. It works only on C2:DP 1.42 and C2-Nightingale mod.
It has a scripting prompt where you can execute commands and see the changes in game.
note: I have dropped C3 support.
Current features (Updated on 2016/06/22):
- Toggle overlay debug info (FPS, Mouse location info, ...).
- Toggle debug render options (Sectors, Sector Ids, Masks, ...)
- Getting a list of all objects in the scene.
- Spawning custom objects.
- Logging opened files and parsed tags.
Instructions:
- Download latest binary from here.
- Extract files into your Commandos 2 folder, where "comm2.exe" is.
- Run "c2-mod-kit.exe"
- In the console type the following command and press enter:
%resume
Spawning:
While in a mission, you can spawn cigarettes by pressing CTRL+Z and German soldiers by CTRL+X.
Logs:
Logs are written in "c2-mod-kit.log".
Console:
You can run commands in the console and see the changes in the game:
Here are two example scripts to write and execute (Press enter after each line):
g = c2.getCurrentGame() g.toggleDebugOverlay(1) v = g.getMainViewport() v.enableDebugRenderOption(2, 0)
g = c3.getCurrentGame() g.toggleDebugOverlay(1) v = g.getMainViewport() v.enableDebugRenderOption(20, 0)
You can change the input to the functions and see other debug options. Be careful that some settings will crash the game.
Edited by Nightingale1, 25 June 2016 - 05:41 PM.