This page outlines any breaking changes between breaking game releases to help with updating mods.
Due to forward compatibility and technical reasons, custom Markup
from MGD (not Ren'Py) are now enclosed with []
square brackets instead of {}
curly braces.
There is a regex you can use in VS Code and Atom to find and replace all instances of {markup}
with [markup]
:
VS Code
- Go to File -> Add Folder To Workspace...
- Go back to the
game
folder, click onMods
, click on your mod folder, click Select Folder/Open.
- Add your mod to your workspace/project view:
- Press
ctrl
/⌘
+shift
+f
to open up workspace/project-wide search and replace. - Add the search and replace values:
Search field:
\{(ThePlayerName|THEPLAYERNAME|TPN|DamageToPlayer|DamageToEnemy|FinalDamage|PlayerOrgasmLine|MonsterOrgasmLine|DisplayPlayerChoice|DisplayMonsterChoice|ProgressDisplay|AttackerName|AttackerName2|AttackerName3|AttackerName4|AttackerName5|TargetName|AttackerYouOrMonsterName|TargetYouOrMonsterName|FocusedMonsterName|AttackerHeOrShe|TargetHeOrShe|AttackerHisOrHer|TargetHisOrHer|AttackerHimOrHer|TargetHimOrHer|SexAdjective|SexWords|PlayerLevel|PlayerMoney|ColorEnd)\}
Replace field:
[$1]
- Ensure the regex button is turned on in your text editor:
- Press 'replace all' in your respective text editor. It will take a few minutes to complete.
[SexWords]
in particular is now[SexWord]
due to a technical issue with old saves.- In your text editor, do the above regex first, and then make sure the regex button is disabled therafter.
- Search your project for:
[SexWords]
- Replace with:
[SexWord]
- Removed
{UseSetColor}
and{SetTextColor}
.
{UseSetColor}
is replaced by[StoredColor]
, working largely the same.{SetTextColor}
is replaced bySetStoredColor
. You can make use ofcallscenethenreturn
orcallscenethenreturn
to cleanly set all the colors at any point.- See
coloredtextmarkup
for more information on the new syntax.
{Pink}
is the one exception to the square bracket change by technicality, but now must be closed with{/Pink}
.
ChangeImageForFunc
, replaced byChangeImageLayer
. Threshold has not stated a planned version for removal.