1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Off-Topic

How do patches work?

  • dux
  • July 7, 2008 at 12:07 AM
  • dux
    • July 7, 2008 at 12:07 AM
    • #1

    What I mean is, I just reinstalled Diablo 2 the other week and the latest patch 1.12 is around 30-40mb. And there have been a lot of patches for Diablo 2 over the years all averaging 30-40mb. As I was installing it and looked through the version histories I wondered how do they include all the previous fixes and only have it accumulate to 30-40mb everytime? If the fixes were all included in every patch wouldn't it be totalling around 100-200+ mb by now? It is late so maybe I'm being slow about this.

  • Taylor
    • July 7, 2008 at 12:47 AM
    • #2

    Because the patches contain revised versions of the same files and overwrite them.

    IIRC whenever there's a new patch it just dumps all the new information into patch.mpq (Blizzard archive) overwriting as it goes, and the game itself just loads whatever is in the patch.mpq with a prority over the release mpq's. If they've changed all the monster and item files every patch then you don't store (and have no need to store) every revision. I imagine most of the updates to Diablo II are along the lines of stat tweaks, opposed to new graphics.

  • Jetsetlemming
    • July 7, 2008 at 7:32 AM
    • #3

    Actually overwriting the files that are updates is inefficient- Diablo 2 and LOD together is just under 2 gigs total of data. Intelligent patch installers can find the file it needs to update, and change it to match the new version instead of fully deleting it and copying over a full copy of the new one.

  • Sentura
    • July 7, 2008 at 7:38 AM
    • #4
    Quote from Jetsetlemming

    Actually overwriting the files that are updates is inefficient- Diablo 2 and LOD together is just under 2 gigs total of data. Intelligent patch installers can find the file it needs to update, and change it to match the new version instead of fully deleting it and copying over a full copy of the new one.

    uhh... yeah, that's called overwriting. patching is like using svn/subversion; it makes sure the files are in sync.

  • Thrik
    • July 7, 2008 at 9:28 AM
    • #5

    I think he meant it only changes the part of the file that's changed, which is what some games' patchers do.

  • Sentura
    • July 7, 2008 at 6:41 PM
    • #6
    Quote from Thrik

    I think he meant it only changes the part of the file that's changed, which is what some games' patchers do.

    yeah but that's still overwriting.

  • Defrag
    • July 11, 2008 at 12:21 AM
    • #7

    It probably just does a binary diff on a load of files. It knows which bytes in a file it has to change to get to the desired state, so it doesn't have to store all of the information.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Let's go!

    Thrik
    November 18, 2026 at 6:48 PM
  2. [TF2] koth_arctic - revisiting my old winter map

    zlatan24
    November 18, 2026 at 1:06 PM
  3. Hello from Normandy: Metin, working on a tactical FPS

    zlatan24
    November 17, 2026 at 6:29 PM
  4. Mapcore Introductions Thread

    bergman
    November 16, 2026 at 12:21 PM
  5. BELEK: turning Rouen into competitive FPS maps (Godot project, feedback wanted)

    zlatan24
    November 12, 2026 at 6:23 PM
  6. CS2 sticker critique | Would the eye or blade read first on an AK?

    EmberKrakenCS2
    November 9, 2026 at 10:21 PM
  7. dod_poznan

    Smile_2000
    November 9, 2026 at 9:10 AM
  8. [cs2][WIP] De_digital (A side only) Looking for Feedback

    Howw3
    November 5, 2026 at 9:22 PM
  9. How do I setup CS1.6 mapping on linux?

    zlatan24
    November 2, 2026 at 6:43 AM
  10. CS:S | de_honor | Map creation process by D'artagnan

    Dartagnan
    November 1, 2026 at 5:41 PM
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™