starfi5h-LossyCompression icon

LossyCompression

Compress dyson shells, solar sails, and belt data to reduce save size. Lay load dyson shells to reduce RAM usage. 压缩戴森壳,太阳帆,传送带的存档数据。延迟加载戴森外壳以减少内存占用。

Last updated 8 months ago
Total downloads 9833
Total rating 6 
Categories Dyson Nebula Compatible Optimization
Dependency string starfi5h-LossyCompression-0.3.5
Dependants 0 other packages depend on this package

This mod requires the following mods to function

xiaoye97-BepInEx-5.4.17 icon
xiaoye97-BepInEx

BepInEx5.4.17 mod plugin framework, Mod框架

Preferred version: 5.4.17
CommonAPI-DSPModSave-1.1.4 icon
CommonAPI-DSPModSave

Library that allows to store mod save data separately from vanilla saves

Preferred version: 1.1.4

README

Lossy Compression

demo
Compress belt & cargo data(-80%), dyson shells(-85%) and solar sails to reduce save size.
There is a toggle button in performance test panel to activate/deactivate compression.
Suggest to backup your saves before using this mod.

If there is an old compressed save, please roll back the game version first and then save it as a uncompressed(vanilla) save.

Configuration

Run the game one time to generate starfi5h.plugin.LossyCompression.cfg file.

  • CargoPath (Default: false)
    Lossy compress for belts & cargo data. Position and orientation will be slightly distorted.
    The compressed data is stored in game save so the new save can only be opened with this mod.

  • DysonShell (Default:true)
    Lossless compress for dyson shells. It will take some extra time to rebuild models during loading.
    The compressed data is stored in separated file .moddsv.
    The new save can load without this mod or the file, it will appear like there is no shells.

  • DysonSwarm (Default:true)
    Lossy compress for solar sails. Sail life and position will be distorted, absorbing sails will reset.
    The compressed data is stored in separated file .moddsv.
    The new save can load without this mod or the file, it will appear like there is no sails.

  • LazyLoad (Default:true)
    Delay generation of shell model until needed (veiwing, vanilla exporting).
    Can reduce RAM usage by disabling layer display in Dyson editor panel.

  • ReduceRAM (Default:false)
    Further reduce RAM usage when lazy load is enabled by deleting shell model data after vanilla save export.
    Recommend to enable it when there are too many shells in a save.

Compatibility


有损/无损压缩

提供传送带(-80%), 戴森壳(-85%)及太阳帆的存档数据压缩。
在性能测试面板可以启用/停用压缩。
使用前建议先备份存档保险。

游戏改版之前建议另存原档避免mod失效。
若游戏改版后有无法正常读取的压缩存档, 请先回滚游戏版本再储存成未压缩(原版)存档。

設置

.cfg文件需要先运行过游戏一次才会出现,修改后要重启游戏才会生效。
管理器安装: 左边选项Config editor -> 找到starfi5h.plugin.LossyCompression -> Edit Config
手动安装: 更改BepInEx\config\com.starfi5h.plugin.LossyCompression.cfg文件

  • CargoPath (默认停用 false)
    有损压缩传送带数据。位置和方向会些微失真。
    启用后新的存档必须有mod才能开启。

  • DysonShell (默认启用 true)
    无损压缩戴森壳数据。代价是载入时需要重建模型。
    压缩的数据会另外存在.moddsv档案中。
    在没有mod或档案时存档依然可以开启, 只是会丢失所有的壳。

  • DysonSwarm (默认启用 true)
    有损压缩太阳帆数据。大致的寿命分布会保存,位置会失真,吸收中太阳帆会重置。
    压缩的数据会另外存在.moddsv档案中。
    在没有mod或档案时存档依然可以开启, 只是会丢失所有的太阳帆。

  • LazyLoad (默认启用 true)
    延迟载入戴森壳的模型,只有在需要时(看到模型, 写入原生存档)才会产生模型。
    因此只要在戴森球面板隐藏壳层显示就不会载入,可以减少内存的使用量。

  • ReduceRAM (默认停用 false)
    当启用延迟加载时,在写入原生存档后删除戴森球模型数据。
    可以避免球壳模型长时间占用内存。代价是每次保存原生存档会花额外的时间生成模型。

MOD相容性


Acknowledgements

All trademarks, copyright, and resources related to Dyson Sphere Project itself, remain the property of Gamera Game and Youthcat Studio as applicable according to the license agreement distributed with Dyson Sphere Program.