二进制Diff Wrapper - 用于esm修补的工具

收藏人数:305
点赞次数:1319
下载次数:2699
资源大小:825 KB

资源介绍


详细介绍

简单简介

在3DM Mod站下载上古卷轴5:重置版最新的二进制Diff Wrapper - 用于esm修补的工具 Mod,由Michalius制作。tsang1379在我们的平台上分享了这个免费且高质量的游戏模组,让玩家们可以享受到更加丰富的游戏体验。快来3DM Mod站下载并尝试吧!

详细介绍

Mod作者: Michalius Mod版本: 1.0 Mod大小: 825 KB 更新时间: 2019-05-19 14:11:07 发布时间: 2019-05-19 14:11:07

详细说明

去Oldrim版本


它是什么


它是一个用Java编写的开源程序(源代码),它是另一个用于二进制差异的开源工具(bsdiff)的包装器。那是什么?嗯,基本上有两种方法可以更改文件。你可以用一个知道它正在做什么的程序,正确地打开它,知道它的结构并且能够进行不破坏的改变......或者你把文件视为长串的零和零,并尝试找出删除的位置以及添加更多的零和零的位置,以便获得预期的结果。二进制差异是第二种方法,并且在发布新版本软件时广泛用于修补.exe文件(以避免再次发送整个文件)。


它是如何工作的


程序本身就是.jar文件。要运行它,您需要在系统上安装Java Runtime Environment。当你这样做时,你可以通过双击它来使用它。运行后,它将在当前目录中找到每个.diff文件,并尝试运行其中包含的更改。

每个.diff文件实际上都是一个包含两个文件的.zip文件 - 配置.json文件和实际补丁。 Json文件包含哪些文件是补丁和散列的信息,以确保您在为其创建的文件完全相同的文件上运行差异。如果哈希匹配,则执行实际修补(将原始文件保存在备份文件夹中),并通过将结果文件哈希与config中的预期文件哈希进行比较来确认它是否成功。如果它有效 - 瞧,您的文件更改与提供.diff文件的人想要的一样。运行多次是安全的(对于与其配置中保存的哈希不匹配的文件不会做任何事情),除非.diff文件的创建者本身是恶意的,否则它不会破坏计算机上的任何内容。


DLC清洁


除了程序,我还包括一组4个.diff文件,可以将最新版本的Skyrim DLCs esms和Update.esm更改为清理版本。我使用TES5Edit / SSEEdit(适用于游戏)3.2来完成清洁。遵循本指南的信函。对于Oldrim CRC结果文件的校验和将完全如该指南中所示,对于SSE它们将有所不同(因为.esm文件似乎随游戏更新而略有变化)。


要使用它们,只需将程序本身(.jar文件)和四个diff文件放在Skyrim Data文件夹中,然后再运行它。当Windows提示您这样做时,允许bspatch.exe执行此操作(在Windows 10上,它会询问每个要修补的文件)。您可以查看创建的BinaryDiffLog.txt文件中发生的事件的日志。


创建自己的DIFF文件


正如将在下一节中明确指出的那样,在创建.diff文件时需要考虑一些重要的事情,因此我没有包含任何可以简化创建更多内容的功能 - 但它完全可能而且不是很难。有关此的说明,请参阅Github上的项目页面。每个人都可以自由地将他们的差异文件发布到他们认为合适的地方。


安全警告


二进制差异是一种不灵活但功能强大的工具。原则上没有什么可以阻止任何人发送一个.diff文件,将你的Skyrim.esm变成10小时的Rickroll视频。或受感染的文件。这就是为什么鼓励每个用户谨慎对待它们的原因。


此外,虽然这种格式可以轻松分发小的变化,而不用担心破坏版权 - 完全可以用它来破坏版权法。如上所述,diff可以将文件更改为完全不同的文件。在极端情况下,空文件和某些受版权保护的文件之间的区别是整个受版权保护的文件。已知压缩文件会改变它们的整个结构,对其内部进行最小的更改,这可能使diff文件包含的信息比版权所有者所熟悉的更多。对任何分发.diff文件的人都要非常谨慎,比如他们正在改变的文件的10%。

——————————————————————————————————————————————

go to Oldrim version

WHAT IS IT

It's an open source program written in Java (source code) that's a wrapper around another open source tool (bsdiff) for binary diffing. What's that? Well, there are basically two ways in which you can change a file. Either you do that with a program that knows what it's doing, opens it correctly, knows it's structure and is capable of making changes that don't break that... Or you look at the file as a long string of ones and zeroes, and try to find out where to delete and where to add more ones and zeroes so that you get the expected result. Binary diff is the second approach, and is widely used in, for example, patching .exe files when releasing new version of software (to avoid sending the entire file again).

HOW DOES IT WORK

The program itself is the .jar file. To run it you need to have Java Runtime Environment installed on your system. When you do you can use it by double-clicking it. Once run it will find every .diff file in the current directory and try to run the changes contained within.
Each .diff file is actually a .zip file containing exactly two files - configuration .json file, and actual patch. Json file contains information what file is the patch for and hashes that make sure you run the diff on exactly the same file it was created for. If the hashes match it does the actual patching (saving the original file in the backup folder), and confirms it succeeded by comparing resulting file hash with the expected one from config. If it worked - voila, your file is changed exactly as the person who gave you the .diff file wanted it to be. It is safe to run multiple times (it won't do anything to a file that does not match the hash saved in it's configuration), and unless creator of the .diff file itself was malicious it has no chance of breaking anything on your computer.

DLC CLEANING

Along with the program I include a pack of 4 .diff files that change stock upto date Skyrim DLCs esms and Update.esm into their cleaned versions. Cleaning was done by me using TES5Edit/SSEEdit (as appropriate for the game) 3.2 following this guide to the letter. For Oldrim CRC checksums of resulting files will be exactly as shown in that guide, for SSE they will differ (because .esm files seem to have changed slightly with game updates).

To use them simply place the program itself (the .jar file), and four diff files in your Skyrim Data folder, than run it. Allow the bspatch.exe to do it's work when Windows prompts you to do so (on Windows 10 for me it asks for each file that gets patched). You can see the log of what happened in BinaryDiffLog.txt file that gets created. 

CREATING YOUR OWN DIFF FILES

As will be made clear in the next section there are important things to consider when creating .diff files, therefore I did not include any functionality easing up the process of creating more - but it is entirely possible and not very hard anyway. For instructions for this see project page on Github. Everyone is free to post their diff files anywhere they deem appropriate.

SAFETY WARNINGS

Binary diffing is an inflexible but powerful tool. In principle there is nothing stopping anyone from sending out a .diff file that would change your Skyrim.esm into 10 hour Rickroll video. Or infected files. That's why every user is encouraged to treat them with cautiousness.

Also, while this format makes it easy to distribute small changes without fear of breaking copyright - it is entirely possible to break copyright laws with it. As mentioned above, diff can change a file into entirely different file. In the extreme, a diff between an empty file and some copyrighted file is the whole copyrighted file. Compressed files are known to change their entire structure with the smallest change to it's insides, which could make the diff file contain more information than copyright holders are comfortable with. Be very cautious of anyone distributing .diff files bigger than, say, 10% of the file they're changing.

文件说明

Mod截图

相关作品

同伴及NPC相貌替换美艳版分解包 | 19603-星核全都堆在主机旁的mod —— Get All The Starcores | 辐射4 先驱者套装MOD | 上古卷轴5 人物美化MOD玛丽罗斯种族身形 | 辐射4 烹饪经验值合理提升MOD | 侠盗猎车5 世界顶级豪宅场景MOD |

tsang1379的其他作品

  • 同伴及NPC相貌替换美艳版分解包
  • 19603-星核全都堆在主机旁的mod —— Get All The Starcores
  • 辐射4 先驱者套装MOD
  • 上古卷轴5 人物美化MOD玛丽罗斯种族身形
  • 辐射4 烹饪经验值合理提升MOD
  • 侠盗猎车5 世界顶级豪宅场景MOD