Mods in multiplayer

A network game plays the room host's mods. Everyone else gets them automatically: there is nothing to install by hand.

In a room

The host turns mods on and off for the room in the room's MODS panel (ON / OFF, UP, DOWN), as in Options. The host's game loads the new set at once, and every player follows.

A dedicated server's room plays the mods it was started with (--mods), and players fetch them from it the same way.

What makes two mods the same

A mod set names each mod by its key: id, version and the first 12 digits of a hash of every file in the mod (id@version#hash). Two players hold the same mod only when all three match, so a mod changed on one machine and not bumped in version is still told apart. The lobby and the game server compare whole sets, in order.

What is sent

Loading in place

Mods load without restarting the game: the old mods are let go, their data packs, pictures, sounds and tables are read again with the new set, and the screen is made again. This happens when you leave Options with the mods changed, and when a room's set comes and goes. It never happens during a game: a running game keeps the mods it started with.