Why mods break today
Think of the game as a book. Each page holds the lines that draw one part of your screen. A mod wants to change one line, but today it must swap the whole page. Then two things go wrong:
- Two mods want the same page. The game takes only one of the two pages. The mods collide, and the only way to resolve this is to use only 1 mod and disable other.
- The game gets an update. When the Valve updates the game in a way that replaces one of original pages, the .vpk mod still holds outdated page! Keeping such mod enabled means effectively erasing Valve's update, and usually causing bugs. Your only options are to wait for the mod maker to fix it, or disable the mod.
DiffMod fixes both issues
How it works:
- A mod brings a small note that lists only the lines it changes.
- Your import it to a mod manager that knows how to use these notes.
- It writes the lines from every note onto that page. The game gets one finished page.
Example: two mods want the same page
Today
The game takes only one of the two pages. The big health bar is gone.
With DiffMod
One page with both changes. Both mods work.
Show me a real note
The note is a small file next to the mod file:
pak50_dir.vpkthe mod, the same as todaypak50_dir.vpk.patchthe note, this is new
This is the whole note. The green line is what the mod adds.
Example: the game gets an update
Today
The mod still swaps in its old page. The new page from the update never shows.
What the update adds is gone. Your screen can break.
With DiffMod
Your mod manager takes the new page from the update and writes the note onto it.
You keep the update, and you keep the mod.
No clash and no update? Then your mod manager leaves your mods as they are.
What you get
If mod makers and mod managers follow the rules, everyone benefits. Find your group.
If you play with mods
- Mods that work together.
- Fewer broken mods after an update.
- A way to see what a mod changes before you add it.
- You add mods the same way as today.
- No mod manager? Mods work the same as today.
If you make mods
- Fewer "your mod broke my game" messages.
- Less panic after each game update.
- Faster fixes. The note shows the exact spot.
- The same work as today, plus one small note.
If you make a mod manager
- An answer to "Is it compatible?" before the player starts the game.
- Clashes that your app can merge by itself.
- After an update, a list of the mods that need a fix.
- Mods with no note load the same as today.
What it does not fix (yet)
DiffMod is not magic. Open a line to read more.
common nowExisting mods that come without attached notes
DiffMod helps only if your mods come with notes AND your mod manager supports reading the notes. A mod with no note works exactly as it does today: no better, no worse. That is why your message to mod makers counts.
sometimesAn update that changes the exact spot a mod changes
Today a mod can break each time an update touches its page. With DiffMod, breakages are far less likely to happen than usual .vpk collisions. Still, DiffMod collisions are possible in two cases:
- A Valve update completely changes the internal layout (e.g. a Source engine bump).
- Two DiffMods change the exact same spot.
rareTwo mods that fight over the exact same spot
Today two mods clash if they touch the same page. With DiffMod they clash only if they change the same spot, such as one health bar that both mods resize. Then you pick one.
not coveredMods that swap pictures, skins or sounds
Version 1 of the rules covers mods that move, resize, restyle, add or hide things on your screen, such as the HUD, the shop and the menus. Those clash the most, because they all change the same few pages. The note does not cover pictures (such as icons and portraits), skins, models or sounds. Those mostly swap things of their own, so they rarely clash.
Complex mods that change many things still get the help. Take a mod that changes your HUD and also swaps models, textures or sounds. It comes the same way: the mod plus a note. The note covers the HUD changes, so those get the full help. The models, textures and sounds work as they do today. Nothing gets worse.
not yetGames other than Deadlock
Version 1 of the rules is for Deadlock. The same rules can grow to other Source 2 games later, such as CS2 and Dota 2.
Make it real
Players get none of this until mod makers add notes and mod managers read them. Pick your part.
Want DiffMod to happen?
Star it on GitHub. Each star shows mod makers and mod manager makers that people want this.
The rules are open. Read them. They belong to diffmod, a group on GitHub. We invite mod makers and mod manager makers to join it.
Questions or ideas? Ask on GitHub. Found a mistake in the rules? Report it. Want the news? Join the Discord.