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. Custom Gamemodes Contest

    Angel
    July 20, 2026 at 11:46 AM
  2. FAQ

    Angel
    July 20, 2026 at 10:14 AM
  3. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  4. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  5. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  6. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  7. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  8. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  9. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  10. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™