-
Notifications
You must be signed in to change notification settings - Fork 82
3. Custom Modules
Prefabs that have the KMBombModule component will be treated as new modules and added to the pool of available modules during Freeplay rounds. There are several examples in the mod kit that you can examine to see how a module is constructed.
OnActivate and OnDeactivate callbacks that the game uses to let your module know when the bomb is active. Your module shouldn't do anything active and any displays should be off until it has received OnActivate.
HandlePass and HandleStrike are the methods that you can call into to inform the game that the module has been successfully solved or a mistake was made.
Each module should have a manual page associated with it similar to the pages in the official manual. The official manual is written in HTML so the best way to create a custom manual page would be to grab the HTML version of the manual from www.bombmanual.com and modify one of the module pages.
There is a mechanism for packaging the pdf version of your manual by saving the pdf to the appropriate folder under Manual/pdfs. During mod load a combine and mods only manual will be compiled from all mods that are loaded. It can be found by copying this into the address bar in windows explorer: %UserProfile%\AppData\LocalLow\Steel Crate Games\Keep Talking and Nobody Explodes\Manual
This mechanism unfortunately doesn't work on OS X due to limitations in our PDF merging library.