主站 / 小组 / 上古卷轴5:天际 / 上古卷轴5:重置版MOD 存档重新包装

上古卷轴5:重置版MOD 存档重新包装

上古卷轴5:重置版MOD 存档重新包装

发布用户:bity_1700368256发布类型:转载

原创作者:Miles B Huff所在平台:互联网

发布日期:2023-07-17 07:38:54更新日期:2024-10-27 00:58:30

是否开源:否是否免费:是

审核人员:甜面酱(违规侵权资源,点击直接联系可快速删除!)

模组标签:杂项整合运行环境:上古卷轴5:重置版

浏览次数:26

快捷访问:查找资源

MOD介绍:

自述

================================================== ==============================

作者

-------------------------------------------------- ------------------------------

此存储库中的所有源代码均由Miles B Huff编写,版权所有

(C)2018年给他,并根据小GNU普通公众的条款获得许可

许可证v3.0 +。该许可的完整条款可在`/ Copyright.txt`找到。

大多数7-Zip也是根据LGPL许可的,虽然是v2.1 +,而不是v3.0 +。

7-Zip的其余部分根据BSD3获得许可。请参阅`archivers \ 7z Copyright.txt`

了解更多信息。谢谢你制作了这么棒的节目,伊戈尔巴甫洛夫!

关于

-------------------------------------------------- ------------------------------

此存储库包含PowerShell脚本和7-Zip的64位PE二进制文件

v18.05的CLI工具。

所述PowerShell脚本查找给定目录中的每个.7z和.zip文件,以及

使用强大的压缩算法重新打包它们。这可以节省几百

高级用户的“下载”文件夹中的兆字节数;但它确实闪耀的地方是

当你使用某种下载使用的包管理器或mod管理器时

低于恒星的压缩强度。

作为一个案例,我在每个文件夹上运行此脚本

`%应用程序数据\漫游\涡\ Downloads`。我的SkyrimSE文件夹(减去.rar文件)了

从26.6GiBs到25.1GiBs  - 节省1.5GiBs,或约6%!虽然6%可能

看起来并不多,有几个档案在之后减少了25%以上

再压缩。总数是6%而不是25%的原因是因为

大多数26.6GiBs [谢天谢地]已经被最大限度地压缩了。之间

Vortex的SkyrimSE和Skyrim下载文件夹,我的用户下载文件夹,

我大概节省了大约2GiB的空间而没有删除任何东西。

“为什么有人会使用弱压缩算法?”,你可能会想知道。

嗯,有时候一个较弱的压缩算法是有用的 - 

通常用于需要经常访问的数据(一个很好的例子)

一个用于轻压缩的用例,是透明的,分区级压缩。)。

但是当你有很多你不想删除的存档数据时就是这样

主要是收集灰尘,用更强大的压缩算法重新包装它

可以是一件好事。

用法

-------------------------------------------------- ------------------------------

`$ archive-repacker.ps1

[路径\到\目录\到\优化]

[留空,除非你想在提取后暂停]`

提取后暂停的选项非常有用 - 您可以使用它

例如,中断运行纹理优化器的时间段,并节省更多空间。

笔记

-------------------------------------------------- ------------------------------

如果您仍在使用32位操作系统,则需要下载32位版本的

7z.exe。最新版本可以在这里找到:www#7-zip#org/download.html。

当前配置此脚本的方式,每个存档的内容将

失去修改日期。这会获得略微更好的压缩比。

虽然这对最终用户来说可能没问题,但对于mod作者来说也不太可能。如果

您正在使用此脚本来优化您自己的存档,您可以保留它

通过删除`,' -  mtc-'`的所有实例来修改日期。

如果您想使用这些设置创建存档而无需使用

在此脚本中,您可以将7-Zip文件管理器配置为强制创建

压缩档案。为此,请创建一个新存档,然后使用以下命令

选项:

 - 存档格式:.7z

 - 压缩等级:超

 - 压缩方法:LZMA2

 - 字典大小:128 MB

  (如果没有太多RAM,你可能需要减少这个。使用128MB DS,我

  每个大型档案馆都使用大约4GiB的RAM。)

  (请注意,32位计算机的最大容量为128MB。)

 - 字号:273

  (Afaik,这里没有理由不使用最大值。)

 - 实心块尺寸:实心

  (这会产生巨大的差异。)

请求归档创建者

-------------------------------------------------- ------------------------------

如果您要创建要通过Internet发布的存档,请

使用强大的压缩形式。使用弱压缩算法(1)浪费

带宽(这会给主机和用户带来额外的费用。),(2)进行下载

较慢,(3)浪费了服务器主机和最终用户的磁盘空间。

创建档案时,请不要使用.rar等专有格式。这些

格式是(1)性能和压缩比通常较差

Free / Libre格式如.7z,以及(2)这些格式无法创建

免费/自由档案馆,如7z。将所有内容移动到.7z或.zip的标准

在Windows上将使每个人的生活更轻松。

未来的扩张

--------------------------------------------------------------------------------

因为我比Windows更常使用Linux(至少在家里),所以我很可能

最终制作这个脚本的bash版本。 如果我这样做,我甚至可能

试着把它放在AUR上 - 我们只需要看看。 bash版本会

因为我可能支持比PowerShell版本更多的压缩算法

不必使用脚本发送二进制文件。

我可能会添加选项,只查看在特定日期之后修改的文件。

这样,您可以在同一目录上重新运行脚本,而不会浪费时间

重新打包已经优化的档案。 这将需要删除`-stl`

选项,用于将存档的修改日期设置为其文件的修改日期。

此脚本不太可能获得对.rar文件的支持。 如果我确实添加支持,

由于它,我可能无法为rar归档器包含二进制文件

专有许可证。

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

ReadMe

================================================================================

Author

--------------------------------------------------------------------------------

All source code in this repository was written by Miles B Huff, is Copyright

(C) 2018 to him, and is licensed per the terms of the Lesser GNU General Public

License v3.0+.  The full terms of this license can be found at `/Copyright.txt`.

Most of 7-Zip is also licensed under the LGPL, albeit v2.1+, rather than v3.0+.

The rest of 7-Zip is licensed under BSD3.  Please see `archivers\7z Copyright.txt`

for more info.  Thanks for making such a great program, Igor Pavlov!

About

--------------------------------------------------------------------------------

This repository contains a PowerShell script and the 64-bit PE binary of 7-Zip

v18.05's CLI tool.

Said PowerShell script finds every .7z and .zip file in a given directory, and

repacks them with a strong compression algorithm.  This can save a few hundred

megabytes in a power user's Downloads folder;  but where it really shines, is

when you use some sort of package manager or mod manager whose downloads use

less-than-stellar compression strengths.

As a case-in-point, I ran this script on each folder in

`%appdata\Roaming\Vortex\Downloads`.  My SkyrimSE folder (minus .rar files) went

from 26.6GiBs, to 25.1GiBs -- a savings of 1.5GiBs, or about 6%!  While 6% may

not seem like much, there were several archives that were over 25% smaller after

recompression.  The reason the total number was 6% instead of 25%, is because

most of that 26.6GiBs was [thankfully] already maximally compressed.  Between

Vortex's SkyrimSE and Skyrim downloads folders, and my user downloads folder,

I saved probably about 2GiBs of without deleting anything.

"Why would anyone ever use a weak compression algorithm?", you might be wondering.

Well, there are actually times when a weaker compression algorithm is useful --

typically for data that needs to be accessed frequently (A really good example of

a use-case for light compression, is transparent, partition-level compression.).

But when you have a lot of archived data that you don't want to delete and that's

mostly just collecting dust, repackaging it with a stronger compression algorithm

can be a great thing to do.

Usage

--------------------------------------------------------------------------------

`$ archive-repacker.ps1

[path\to\directory\to\optimize]

[leave empty unless you want to pause after extractions]`

The option to pause after extractions can be very useful -- you can use this

break period to run texture optimizers, for example, and save even more .

Notes

--------------------------------------------------------------------------------

If you're still using a 32-bit OS, you'll need to download a 32-bit version of

7z.exe.  The latest can be found here: www#7-zip#org/download.html.

The way this script is currently configured, the contents of each archive will

lose their modification dates.  This gets a marginally better compression ratio.

While this may be okay for end-users, it is not likely so for mod authors.  If

you are using this script to optimize your own archive, you can make it preserve

modification dates by removing all instances of `,'-mtc-'`.

If you would like to create archives with these settings without having to use

this script, you can configure the 7-Zip File Manager to create just-as-strongly

compressed archives.  To do this, create a new archive, and use the following

options:

- Archive format: .7z

- Compression level: Ultra

- Compression method: LZMA2

- Dictionary size: 128 MB

  (You may need to reduce this if you don't have much RAM.  With a 128MB DS, I

  was using roughly 4GiBs of RAM for each large archive.)

  (Note that 128MB is the maximum for 32-bit computers.)

- Word size: 273

  (Afaik, there's no reason not to use the maximum, here.)

- Solid Block size: Solid

  (This makes a *huge* difference.)

Request to Archive Creators

--------------------------------------------------------------------------------

If you are creating an archive that you intend to ship over the Internet, please

use a strong form of compression.  Using weak compression algorithms (1) wastes

bandwidth (This costs hosts and users alike extra money.), (2) makes downloads

slower, and (3) wastes disk- for both server hosts and end-users.

When creating archives, please do not use proprietary formats like .rar.  These

formats are (1) usually inferior in performance and compression ratios to

Free/Libre formats like .7z, and (2) these formats cannot be created by

Free/Libre archivers, like 7z.  Moving everything to a standard of .7z or .zip

on Windows will make everyone's lives easier.

Future Expansion

--------------------------------------------------------------------------------

As I use Linux more often than Windows (at least at home), it's likely that I'll

eventually make a bash version of this script.  If and when I do, I might even

try to get it on the AUR -- we'll just have to see.  The bash version will

likely support more compression algorithms than the PowerShell version, since I

won't have to ship their binaries with the script.

I might add the option to only look at files modified after a certain date.

This way, you can re-run the script on the same directory, without wasting time

repacking already-optimized archives.  This will require the removal of the `-stl`

option, which sets the archive's modification date to that of its files.

This script is unlikely to gain support for .rar files.  If I do ever add support,

I will probably be unable to include the binary for the rar archiver, due to its

proprietary license.

资源查找:

点击进入资源查找列表

回复区

昵称:

邮箱:

内容:

查看更多回复...