Alright guys. I was trying to reinsert all of the code changes I made to the game's previous version to fit the new version but I kept running into issues so instead I made a mod patcher so that I can automatically patch and depatch the game with all my mods everytime a new update rolls around. I'm not sure if a tool like this already exists, but I'll upload the game files with the patch tool with all the mods I use.
You guys can make your own mods too if you want.
KittyPatcher.py
This allows you to apply any and all mods you have in your mods folder to the game in a double click.
1. Put the mods in the mods folder.
2. Double click KittyPatcher.py
After doing these two steps, the patcher works by automatically replacing code in the HTML to modify the game code.
You need the latest version of python installed for it to work.
Mods Folder
Store mods here so the patcher can patch your game.
Create Mods
1. Find the code you want to modify, for example:
{
passage: "EventQuadPartyGainCrush",
tags: ["quad party", "chat"],
frequency: 40,
crush: true,
},
2. Create a text document in any kind of software like Notepad
3. Enter the code you want to modify:
{
passage: "EventQuadPartyGainCrush",
tags: ["quad party", "chat"],
frequency: 40,
crush: true,
},
4. Then add a ~ symbol so the program knows where to separate the old code from the new code, then add the new code you want:
{
passage: "EventQuadPartyGainCrush",
tags: ["quad party", "chat"],
frequency: 40,
crush: true,
},~
{
passage: "EventQuadPartyGainCrush",
tags: ["quad party", "chat"],
frequency: 640,
crush: true,
},
This mod modifies the frequency of the gain crush event so that you're more likely to gain a crush at the Quad Party.
5. Save it as [Mod Name].mod. Must have a .mod extension.
6. Then put it inside your mod folder if it isn't already there.
Files Attached:
Course Of Temptation v0.5.4e.zip contains the Mod Patcher, all the mods, and the modded game.
contains the Mod Patcher and the Mods Folder.
KittyMods.zip just contains the mods.
Tips:
1. You have to make sure there is only 1 instance of the thing you're trying to replace. If you try to replace frequency: 40, with frequency: 640, thousands of instances of frequency: 40, will be changed and you'll have to delete the CourseOfTemptation.html file entirely.
2. If you're creating mods, it's best to do so in Notepad++.
3. You can also replace dialogue, but it's very tricky.
4. Try to avoid putting spaces before or after the ~ key separator.
You should also be able to modify any other Twine HTML game with this but you'd need to change the HTML name in KittyPatcher.py.