Mods, Auto Updates, DRM, and Git - Can Git be used to preserve moddable game versions?



  • Can Git be used to store and archive snapshots of moddable game versions that are part of a client like Steam or UPlay?

    I recently had this idea because a game updated tonight (by accident) and broke my mod setup.

    I was wondering if I could store local snapshots of the game folder with Git or if UPlay's DRM would make that impossible.



  • It's definitely possible, but don't just put your entire game folder under version control. Some advice:

    1. Git is not optimized for storing non-text files. It cannot calculate diffs for them and has to store full copies instead. So your repo will continue to grow significantly if you for example try to save bunch of textures there. Imagine having multiple copies of the same game on disk - effect will be like this.

    2. Sometimes games modify some files during run - some logs, configurations, saves. Don't version control them, otherwise you would have to commit these changes after each session.

    As an alternative you can store you mod folders separataly from the game itself and provide symbolic link from game folder to actual mod folder. Switching mods will be as easy as updating one link.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2