The Doki Doki Mod Manager SDK gives developers access to special features, exclusive to DDMM. Here’s how to install it.
Link to latest version: https://raw.githubusercontent.com/DokiDokiModManager/SDK/master/ddmm_sdk.rpy
Download the latest version of the SDK, and save it as a
.rpy in your mod’s game directory. The name doesn’t matter,
but it’d be sensible to choose a name like
Even though the current default is to use the SDK server at all times, using it without specifying support is deprecated.
You need to use a
ddmm-mod.json file with
uses_sdk set to
true. For more information, see the Mod Metadata article.
Your achievements need to be registered before they can be earned. This should be done in an
init block - these typically
go in the
overrides.rpy file. See the example below:
init 10 python: ddmm_register_achievement("ACHIEVEMENT_1", "Achievement Name", "Achievement Description") ddmm_register_achievement("ACHIEVEMENT_2", "Achievement Name 2", "Achievement Description 2")
When a user has earned an achievement, you must let the SDK know. The player will only be notified the first time they earn the achievement, so even if the criteria for an achievement is met more than once, there will be only one notification.
Function - registers an achievement.
Complete Monika's route)
Function - grants the user an achievement. Note that if the achievement has not been registered, an error will occur.
True if the mod was launched through DDMM,