- Source code
- No source provided
压缩解压缩MOD 2026年3月14日14:35:19发布<br>加载本mod,添加超级压缩机,可以1万比1比率进行极致压缩,添加超级破碎机,可以还原被压缩的矿物<br>欢迎大家到QQ群661324134共同讨论分享.<br><b><color=red>蜂功伟业为大家倾情奉献</color></b>

模组介绍
本模组为《Captain of Industry》简易功能模组,由蜂功伟业制作。模组新增两台自定义工业设备:超级压缩机、超级破碎机,用于游戏内物料压缩与还原作业,丰富工厂物料处理方式。
模组内容
- 超级压缩机:自定义压缩设备,支持游戏原版各类可压缩物料压缩处理,高效整合松散物料。
- 超级破碎机:配套还原设备,可将压缩后的物料重新破碎还原,完成物料压缩、还原闭环流程。
更新日志
本mod 首发版本 2025年UP3版本
2025年8月4日23:43:26 完成基本配方 - 新增超级压缩机、超级破碎机两台自定义设备及对应配方 - 首次发布模组
2026年03月14日 UP4更新
- 修复UP3版本兼容UP4版本
- 2026年3月16日16:00:24 添加垃圾堆等压缩解压缩配方
2026年05月23日 优化修复更新
- 修复两台自定义机器的动画资源缺失报错问题
- 清理大量冗余日志输出,模组加载日志干净无报错
- 优化设备渲染逻辑,适配游戏 v0.8.4b 版本原版规则,提升运行稳定性
使用方式
加载模组后,在游戏固体废料分类中即可找到超级压缩机、超级破碎机,放置设备接入流水线即可正常使用,适配原版所有压缩物料体系。
交流社群
欢迎加入QQ交流群:661324134,交流模组玩法、工厂建造与模组定制!
蜂功伟业 倾情制作


# **Copyright Notice**
Copyright Notice
作为本mod作者,有鉴于中国QQ群号:458776254 发布共享盗版游戏,侵犯作者权益违背社区公约.
本人宣布,在任何时候,任何情况下,永久禁止该群用户使用本人设计的任何mod.
As the author of this mod, given that Chinese QQ Group No. 458776254 has distributed and shared pirated games, infringing upon the author's rights and violating community rules.
I hereby announce that users from this group are permanently prohibited from using any mods created by me at any time and under any circumstances.
v6.0.1 Modify search dictionary
v6.0.1 修改搜索字典,
原 PinyinHelper.cs 的 BuildPinyinDict() 方法中有 120 行手工抄录的汉字字符串数组( groups ),只覆盖了部分常用字, 大量工业词汇汉字缺失 (如钢 U+94A2、橡 U+6A61、胶 U+80F6 等),导致:
GetInitial() 返回 \0 → 字符被静默丢弃 → 搜索无结果
AddRange() 方法是个空壳,从未执行过任何注册
PinyinHelper.cs — 从 139 行简化为 48 行
移除 120 行手工字典 BuildPinyinDict() + AddRange() + groups 数组
改用 NPinyin.Pinyin.GetInitials(text) 获取汉字首字母
覆盖 2万+ 汉字(GB2312/GBK/GB18030 全字库),包括生僻字
保持原有 GetPinyinInitials() 和 MatchesPinyinInitials() 公共 API 不变
The original BuildPinyinDict() method in PinyinHelper.cs contains a manually transcribed string array of Chinese characters (groups) spanning 120 lines. It only covers some commonly used characters and lacks numerous Chinese characters for industrial terminology (e.g., 钢 U+94A2, 橡 U+6A61, 胶 U+80F6, etc.), resulting in:
GetInitial() returns \0 → characters are silently discarded → empty search results
The AddRange() method is an empty stub and has never performed any registration.
PinyinHelper.cs — simplified from 139 lines to 48 lines
Removed the 120-line manual dictionary implementation including BuildPinyinDict(), AddRange(), and the groups array
Adopted NPinyin.Pinyin.GetInitials(text) to retrieve the first letters of Chinese characters
Supports more than 20,000 Chinese characters (full character sets of GB2312/GBK/GB18030), including rarely-used characters
The original public APIs GetPinyinInitials() and MatchesPinyinInitials() remain unchanged
本次更新针对中国区玩家的使用习惯.This update caters to the usage habits of players in the China region.
V6.0 Version Announcement
V6.0版本公告 V6.0 Version Announcement
压缩与解压缩mod,历经1年的发展,版本更替非常多次,从up3到现在up4-up4.2
为了适应最新版本的规则.我在5.0.0版本试图加入更多的产品以及更加规范的编程手法.但是很遗憾.大量的陈旧的手写注册写法使得代码维护困难重重.
The compression and decompression mod has been in development for a year with numerous version updates, ranging from up3 to the current up4-up4.2.
To comply with the rules of the latest version, I attempted to add more products and adopt more standardized programming practices in version 5.0.0. Unfortunately, extensive outdated manual registration implementations have made code maintenance extremely challenging.
现在决定全面重构.使用全新的自动注册逻辑,自动识别逻辑,自动分类逻辑,以及对中文更好的支持方案.
It is now decided to conduct a comprehensive refactoring. Brand-new automatic registration logic, automatic recognition logic, automatic classification logic will be adopted, along with a solution providing better support for Chinese.
1,本版本支持用户自定义设定操作如下 This version supports the following user custom setting operations.

2,使用了更加明显的压缩机类菜单!本mod的所有注册建筑将会归为一类建筑,大家更加容易找到和识别.
- A more prominent compressor category menu is adopted! All registered buildings of this mod will be grouped into one category for easier discovery and identification.

3,建筑分为散装压缩机对应U型传送带的货物.
平板压缩机,对应平板运输的货物.
液态压缩机对应液态和气体类货物.
加入产品选择器,用户可以手动设置配方,可以通过产品选择器来选择产品,自动识别自动匹配配方,可以更快的操作.
为了方便大家快速查找物品,特别是针对中国区玩家,根据中国抖音主播 Cap_伊万的提醒和建议,加入中文字典,专门针对中国用户习惯,加入了拼音首字母快速检索方案.支持首字母大小写模糊查询.游戏中用户不用频繁切换汉字和英文.直接英文输入字母即可.
输入为,拼音首字母,例如铁 ,搜索T或者t
不同类型的建筑搜索不会出现其他的类型的物品,只会查询出当前支持的品类.
品类按照运输类型衡量.
因为是模糊查询并不准确,因此敬请原谅,但是这样已经加快了搜索速度.
并且本mod对游戏中所有注册表ids类产品自动识别添加自动加入压缩序列.因此会产生双倍产品目录
因此,本mod的查询逻辑将会覆盖原本的产品选择器所有逻辑.比如包括仓库.
- Buildings are categorized as follows: Bulk Compressors handle goods transported via U-shaped conveyors.
Flatbed Compressors handle flat-transported goods.
Liquid Compressors handle liquid and gaseous goods.
A product selector has been added. Users can manually set recipes or select products via the selector to enable automatic identification and recipe matching for more efficient operations.
To help players locate items quickly, especially players from China, following the suggestions and feedback from Chinese Douyin streamer Cap_伊万, a Chinese dictionary has been integrated. Tailored to the usage habits of Chinese users, a rapid search function using the first letters of Pinyin is included, supporting fuzzy search for both uppercase and lowercase initials. Players do not need to frequently switch between Chinese and English input in the game; they only need to type Latin letters directly.
Input the first letter of the Pinyin. For example, to search for iron, enter T or t.
Searches within different building types will only return items belonging to the currently supported category without displaying items from other categories. Categories are defined based on transportation types.
Please note that inaccuracies may occur due to fuzzy search, but this approach significantly improves search speed.
Furthermore, this mod automatically identifies all products with registry IDs in the game and adds them to the compression sequence, which results in duplicate product catalog entries.
Accordingly, the search logic of this mod overrides all original logic of the built-in product selector, including that of warehouses.

4,本产品不使用外部的图标,但是保留了自定义图标功能和逻辑.使用游戏内置的图标和素材,百分百的支持原版游戏的所有产品.
因为使用全自动注册方式,因此理论上支持所有mod的产品都能被本mod压缩.不再局限现在已有的原版游戏产品.而是全品类全部被注册产品都会自动检索自动形成压缩配方,不再需要手工注册和手工设置,实现全自动处理.
自动读取注册产品的类型,自动识别类型自动分类,自动添加压缩和解压缩配方.
代码量极度压缩,是V5.0的3分之一.源码量是33k.
用最少代码,最少资源,实现了更加广泛兼容性.对086a实现全面兼容,且使用原版所有内置纹理和图标信息不使用外部添加的任何图文内容,极大提高性能节省了性能开支.
理论支持所有注册式写法的所有MOD,无论他是什么语言版本mod,他的产品一律可以识别和压缩.
对u型传送带和平板传送带的产品一律定义为堆,对于所有气体和液体压缩物一律定义为罐.
- This product does not use external icons, but retains the functions and logic for custom icons. It utilizes the game's built-in icons and assets, offering full compatibility with all items from the vanilla game.
Thanks to the fully automatic registration method, items from virtually all mods can be compressed by this mod. Support is no longer limited to existing vanilla game items. Instead, all registered items across all categories will be automatically detected, with compression recipes generated automatically. Manual registration and configuration are no longer required, enabling fully automatic processing.
The system automatically reads the types of registered items, identifies and sorts them automatically, and adds compression and decompression recipes without manual intervention.
The codebase has been heavily streamlined, standing at one-third the size of V5.0 with a source code volume of 33k.
Broader compatibility is achieved with minimal code and resource consumption. Full compatibility with 086a is guaranteed. The mod adopts all native built-in textures and icon data without any externally added image or text resources, greatly boosting performance and reducing resource overhead.
In theory, this mod supports all mods developed using the registration framework. Items from these mods can be recognized and compressed regardless of the language version of the mod.
Items transported via U-shaped conveyors and flat conveyors are all defined as stacks, while all compressed gaseous and liquid substances are defined as tanks.
5.本版本不兼容以往本mod前置的所有系列版本产生的旧存档.本mod必须重新开局.特警告不要用于旧存档使用⚠️
This version is incompatible with old save files generated by all previous series versions of the prerequisites for this mod. A new playthrough is mandatory for this mod. Special warning: Do NOT use it with old save files ⚠️
6.本版本默认支持英文和中文双语.但是快捷查询方案针对中国用户设计.
- This version supports both English and Chinese by default. However, the quick search solution is designed for Chinese users.
V5.0.0 supports 086 and is brand new
V5.0.0 supports 086 and is brand new
1,本次更新,不再兼容V4.0
2,本次兼容做了全面的大改
#添加大量的配方支持更多的物品的压缩.
#分为固体,液体,农业三种压缩和对应解压缩机器.
#固体压缩机承担平板运输类和u型运输类物品.
#液体压缩机承担液体和气体类以及核能类的产品压缩.
#农业压缩机承担了大多数农产品和食品的压缩.
因此原本建筑被分拆成3个机器,产品根据平板运输,u型运输,管道运输来分类.
因,本mod不兼容4.0的旧存档!一律新开游戏
<canvas_command>
<action>answer</action>
<parameter>
<response>1. This update is no longer compatible with V4.0.
- Comprehensive overhauls have been made to the compatibility mechanism in this update.
A large number of recipes are added to support the compression of more items.
Three types of compression machines and corresponding decompression machines are available, including solid, liquid and agricultural types.
The solid compressor handles items for flat transportation and U-shaped transportation.
The liquid compressor compresses liquid, gas and nuclear energy products.
The agricultural compressor is responsible for compressing most agricultural products and food items.
根据用户反馈,取消了所有作者自定义图标,使用系统自带图标.用户可以自定义图标放入Assets目录中被识别.
Based on user feedback, all custom icons created by authors have been removed, and system default icons are adopted. Users can place custom icons in the Assets directory for recognition.
Therefore, the original single building has been split into three independent machines. Products are classified by flat transportation, U-shaped transportation and pipeline transportation.
This mod is not compatible with old save files of V4.0. A new game is required.
v4.0是最后兼容旧存档的版本v4.0 is the last version compatible with old save files
v4.0 is the last version compatible with old save files
从游戏版本086后,将会发行V5版本,V5版本正在研发,因为进行全面系统性底层重构,将会加入更多的产品,对底层逻辑进行全盘改变,因此会引起不兼容性,在现在还未确定的情况下.V5版本已经进入最后验证和美工阶段.
因此特告知所有用户,V4.0版本将会是最后安全兼容085-086存档过度的版本.
而未来发布的V5.0版本,因为全面底层重构,将会极大可能不兼容旧存档.
V5.0版本,将会分为固体压缩机和液体压缩机.对应解压缩机.
固体分为,平板运输类和u型传送带运输类.
液体分为,液体和气体,包括核能部分产物.
农业食品压缩机,将会对农产品种子和食品进行压缩.
V5.0的变化将会是巨大的,将会尽可能收集所有游戏中已知存在的能够被明确压缩的物品全部列入清单.
压缩和解压缩mod,能够在这么多年来被用户广泛认可,在于其的确从性能上对游戏有巨大提升.
对于几十万几百万数量的矿石可以轻松的实现轻量化专用提供的途径.
但是,因为这个mod是手工编写,其代码混乱,一次一次迭代到了一个屎山代码的程度,已经无法继续维护和支撑大规模扩展.
所以,利用086游戏优化升级的契机,彻底重构项目,新的版本新的面目,将会尽可能压缩更多品类的产品都被运输.
<canvas_command>
<action>answer</action>
<parameter>
<response>After game version 086, the V5 version will be released. Currently under development, V5 features a comprehensive and systematic underlying reconstruction. It will add more items and completely revamp the underlying logic, which will result in incompatibility with previous versions. While some details remain unconfirmed, the V5 version has entered the final verification and art design phase.
We hereby inform all users that V4.0 will be the last version that safely supports save file migration from version 085 to 086.
The upcoming V5.0 version will most likely be incompatible with old save files due to the full underlying reconstruction.
V5.0 will introduce solid compressors and fluid compressors, along with their corresponding decompressors.
Solid compression covers flatbed transportation and U-shaped conveyor belt transportation categories.
Fluid compression applies to liquids and gases, including partial nuclear energy byproducts.
The agricultural food compressor can compress agricultural seeds and food items.
V5.0 will bring massive updates. We will compile a full list of all clearly compressible items confirmed in the game.
The compression and decompression mod has been widely recognized by users over the years for its significant optimization of game performance.
It enables lightweight processing for massive quantities of ores ranging from hundreds of thousands to millions with dedicated efficient solutions.
However, as this mod was hand-coded, its code structure is disorganized. Years of iterative updates have led to severe technical debt, making it impossible to maintain further or support large-scale functional expansions.
Therefore, we take the opportunity of the optimization and upgrade of game version 086 to completely reconstruct the project. The brand-new version will support the compression and transportation of more types of items to the greatest extent possible.</response>
</parameter>
</canvas_command>
支持国际化和配置方案Supports internationalization and configuration schemes
Supports internationalization and configuration schemes

从V3版本开始支持中文和英文.
从V3版本开始加入自定义配置方案,现在用户可以点击图标,在mod加载前首先根据自己需求来决定压缩比例和解压缩比例.
Chinese and English languages have been supported starting from Version V3.
Custom configuration options are introduced as of V3; users can now click the icon to set compression and decompression ratios based on their individual requirements prior to mod loading.
v6.0.5
Latest- Game version
- 0.8.6
- Released
- Aug 13, 2026
- File size
- 1.7 MB
- License
- CoI-Keep
* 感谢Vladovlak 反馈的缺少垃圾压缩配方的问题. * 实测,原本考虑原版压实机已经具备垃圾压缩功能不再添加到mod中,但是实测时发现的确缺失垃圾压缩是一件痛苦的事情.特加入垃圾 压缩,思路是在散装压缩机里面加入垃圾压缩成压缩垃圾的配方,这和游戏内压实机的配方一致,但是我们数量更大. 而在平板压实机里面加入压缩垃圾被压缩成 压缩垃圾 堆 如此实现了1800个垃圾被压缩为18个压缩垃圾,1800个压缩垃圾被压 缩为18个压缩垃圾 堆. * Thanks to Vladovlak for reporting the missing garbage‑compression recipe issue. * After practical testing, we originally considered that the vanilla compactor already had garbage‑compression functionality, so we did not add it to the mod. However, real‑world testing revealed that the lack of garbage compression is indeed a frustrating problem. Garbage compression has therefore been added. The approach is to add a recipe in the bulk compactor to compress garbage into compressed garbage, which matches the recipe of the in‑game compactor but with much larger processing quantities. Meanwhile, a recipe has been added to the flat‑bed compactor to further compress compressed garbage into compressed garbage piles. This enables 1800 units of garbage to be compressed into 18 units of compressed garbage, and 1800 units of compressed garbage to be compressed into 18 compressed garbage piles.
v6.0.4
- Game version
- 0.8.6
- Released
- Aug 05, 2026
- File size
- 1.7 MB
- License
- CoI-Keep
2026年8月6日00:50:51 * 修复machine?.Prototype 返回 null的日志报错问题. * Fix the log‑reporting error where machine?.Prototype returns null.
v6.0.3
- Game version
- 0.8.6
- Released
- Aug 05, 2026
- File size
- 1.7 MB
- License
- CoI-Keep
* 健壮代码,加入NULL检查,避免日志报错的问题. * Robustify the code and add NULL checks to avoid log‑reporting errors.
v6.0.2
- Game version
- 0.8.6
- Released
- Aug 05, 2026
- File size
- 1.7 MB
- License
- CoI-Keep
* 修复空引用的日志报错问题. * 减少非必要日志的输出. * Fix the log error caused by null reference. * Reduce the output of unnecessary logs.
v6.0.1
- Game version
- 0.8.6
- Released
- Jul 31, 2026
- File size
- 1.7 MB
- License
- CoI-Keep
v6.0.0
- Game version
- 0.8.6
- Released
- Jul 30, 2026
- File size
- 1.7 MB
- License
- CoI-Keep
v5.0.1
- Game version
- 0.8.6
- Released
- Jul 21, 2026
- File size
- 3.2 MB
- License
- CoI-Keep
v5.0.0
- Game version
- 0.8.6
- Released
- Jul 21, 2026
- File size
- 2.4 MB
- License
- CoI-Keep
v6.0.5 | 2026-08-13
* 感谢Vladovlak 反馈的缺少垃圾压缩配方的问题. * 实测,原本考虑原版压实机已经具备垃圾压缩功能不再添加到mod中,但是实测时发现的确缺失垃圾压缩是一件痛苦的事情.特加入垃圾 压缩,思路是在散装压缩机里面加入垃圾压缩成压缩垃圾的配方,这和游戏内压实机的配方一致,但是我们数量更大. 而在平板压实机里面加入压缩垃圾被压缩成 压缩垃圾 堆 如此实现了1800个垃圾被压缩为18个压缩垃圾,1800个压缩垃圾被压 缩为18个压缩垃圾 堆. * Thanks to Vladovlak for reporting the missing garbage‑compression recipe issue. * After practical testing, we originally considered that the vanilla compactor already had garbage‑compression functionality, so we did not add it to the mod. However, real‑world testing revealed that the lack of garbage compression is indeed a frustrating problem. Garbage compression has therefore been added. The approach is to add a recipe in the bulk compactor to compress garbage into compressed garbage, which matches the recipe of the in‑game compactor but with much larger processing quantities. Meanwhile, a recipe has been added to the flat‑bed compactor to further compress compressed garbage into compressed garbage piles. This enables 1800 units of garbage to be compressed into 18 units of compressed garbage, and 1800 units of compressed garbage to be compressed into 18 compressed garbage piles.
v6.0.4 | 2026-08-06
2026年8月6日00:50:51 * 修复machine?.Prototype 返回 null的日志报错问题. * Fix the log‑reporting error where machine?.Prototype returns null.
v6.0.3 | 2026-08-05
* 健壮代码,加入NULL检查,避免日志报错的问题. * Robustify the code and add NULL checks to avoid log‑reporting errors.
v6.0.2 | 2026-08-05
* 修复空引用的日志报错问题. * 减少非必要日志的输出. * Fix the log error caused by null reference. * Reduce the output of unnecessary logs.
This mod has no dependencies.
No other mods depend on this mod yet.

