本模组需要 Compact Machines 模组,但由于该模组尚未发布到 Modrinth,因此我无法将其注册为依赖项。
FPSCompress
一款适用于 NeoForge 1.21.1 Minecraft 的模组,通过智能速率缓存实现工厂压缩。在无需加载区块的情况下运行你的工厂,通过缓存生产速率并以数学方式进行模拟。
它做什么?
FPSCompress 允许你在 Compact Machines 房间内建造工厂,并在虚拟状态下运行它们,而无需保持这些区块处于加载状态。该模组会在校准期间测量你工厂的实际生产速率,然后在工厂维度未加载时,使用分数数学来模拟生产。
结果:对于重度工厂型建筑,服务器性能获得巨大提升。
核心概念:预制件(PreFabs)
预制件(Prefabricated Factories,简称 PreFabs)是跨维度的通道,用于实现工厂输入/输出缓存。该模组的主要目的是缓存生产速率,使工厂能够在不加载区块的情况下“虚拟”运行。
三方块系统:
- 预制件方块(主世界)- 路由资源,控制状态机
- 导入器方块(CM 维度)- 资源进入工厂的入口门
- 导出器方块(CM 维度)- 资源离开工厂的出口门
工作原理:
- 玩家在 CM 工厂房间内放置导入器/导出器
- 预制件的各个面链接到特定的导入器/导出器(基于 UUID)
- PULL 面:主世界箱子 → 预制件 → 导入器 → 工厂机器
- PUSH 面:工厂机器 → 导出器 → 预制件 → 主世界箱子
- SIMULATING(模拟中)阶段:当 CM 区块加载时,测量实际速率
- CACHED(已缓存)阶段:使用分数数学模拟生产,CM 区块卸载
玩家体验:
- 在紧凑型机器房间内部建造工厂
- 在 CM 房间内部署导入器/导出器方块(作为输入/输出门)
- 右键点击 CM 方块并使用“预制件升级模板”物品 → 变为预制件
- Shift+右键点击预制件并使用仿真扳手 → 打开面配置 GUI
- 配置每个面:
- 设置模式(PULL/PUSH/DISABLED)
- 设置过滤器(ITEMS/FLUIDS/ENERGY)
- 链接到特定的导入器/导出器(从下拉菜单中选择)
- 在主世界中将箱子/漏斗连接到预制件的面
- 空手右键点击预制件 → 打开控制面板 → 开始 SIMULATION(模拟)
- 预制件观察实际生产速率(CM 区块加载)
- 空手右键点击预制件 → 停止模拟 → 进入 CACHED(已缓存)模式(CM 区块卸载)
- CACHED 模式:预制件根据缓存的速率使用数学方法模拟生产
状态机
BUILDING(建造中) → 玩家配置面,部署导入器/导出器
SIMULATING(模拟中) → 预制件测量实际生产速率(CM 区块 LOADED)
CACHED(已缓存) → 预制件以数学方式模拟生产(CM 区块 UNLOADED ← 性能提升!)
HALTED(暂停) → 输入枯竭或输出阻塞(CM 保持卸载状态,玩家修复主世界侧的问题)
示例设置
主世界:
[煤炭箱] → [预制件 NORTH 面: PULL ITEMS → 导入器 #1]
CM 维度(处于 SIMULATING 状态时):
[导入器 #1] → [熔炉] → [导出器 #1]
(预制件测得:每刻 0.213 个铁锭)
主世界:
[预制件 SOUTH 面: PUSH ITEMS ← 导出器 #1] → [铁箱]
在 CACHED 模式下:
- CM 维度区块卸载
- 预制件累积分数生产量(每刻 0.213)
- 大约每 5 刻,预制件推送 1 个铁锭到输出箱
- 无区块加载 = 更好的服务器 TPS!
当前状态
⚠️ 本模组正在积极开发中。
已实现的核心系统:
- ✅ 带 GUI 的面配置系统
- ✅ 带 UUID 链接功能的导入器/导出器方块
- ✅ 资源传输(PULL/PUSH 模式)
- ✅ 带增量计数的速率测量
- ✅ 基于分数数学的缓存生产
- ✅ 预制件作为物品的便携性系统
- ✅ 带有实时状态和资源显示的增强 GUI
- ✅ 保留速率的 HALTED 状态恢复
- ✅ 原版方块支持(箱子、熔炉、漏斗)
正在进行中:
- ? AE2/Refined Storage 集成
- ? 工厂控制器方块
- ? 多个预制件管理
- ? 反作弊验证
- ? 优化与错误修复
- ? 性能优化
This mod requires the Compact Machines mod, but it hasn't been published into modrinth, so I cannot register it as a dependency.
FPSCompress
A NeoForge 1.21.1 Minecraft mod that enables factory compression through intelligent rate caching. Run your factories without chunk loading overhead by caching production rates and simulating them mathematically.
What Does It Do?
FPSCompress allows you to build factories inside Compact Machines rooms and run them virtually without keeping those chunks loaded. The mod measures your factory's actual production rates during a calibration period, then uses fractional math to simulate production while the factory dimension stays unloaded.
The Result: Massive server performance gains for factory-heavy builds.
Core Concept: PreFabs
PreFabs (Prefabricated Factories) are cross-dimensional conduits that enable factory input/output caching. The mod's primary purpose is to cache production rates so factories can run "virtually" without chunk loading.
Three-Block System:
- PreFab Block (Overworld) - Routes resources, controls state machine
- Importer Block (CM dimension) - Input gates where resources enter factory
- Exporter Block (CM dimension) - Output gates where resources exit factory
How It Works:
- Player places Importers/Exporters inside CM factory room
- PreFab faces link to specific Importers/Exporters (UUID-based)
- PULL face: Overworld chest → PreFab → Importer → Factory machines
- PUSH face: Factory machines → Exporter → PreFab → Overworld chest
- During SIMULATING: Measure actual rates while CM chunks loaded
- During CACHED: Simulate production using fractional math, CM chunks unloaded
Player Experience:
- Build factory inside a Compact Machine room
- Place Importer/Exporter blocks inside CM room (input/output gates)
- Right-click CM block with "PreFab Upgrade Template" item → becomes PreFab
- Shift+Right-click PreFab with Simulation Wrench → Open face config GUI
- Configure each face:
- Set mode (PULL/PUSH/DISABLED)
- Set filter (ITEMS/FLUIDS/ENERGY)
- Link to specific Importer/Exporter (select from dropdown)
- Connect chests/hoppers to PreFab faces in Overworld
- Right-click PreFab with empty hand → Open control menu → Start SIMULATION
- PreFab observes actual production rates (CM chunks loaded)
- Right-click PreFab with empty hand → Stop simulation → Enters CACHED mode (CM chunks unload)
- CACHED mode: PreFab uses math to simulate production based on cached rates
State Machine
BUILDING → Player configures faces, places Importers/Exporters
SIMULATING → PreFab measures actual production rates (CM chunks LOADED)
CACHED → PreFab simulates production mathematically (CM chunks UNLOADED ← Performance!)
HALTED → Input starved or output blocked (CM stays unloaded, player fixes Overworld side)
Example Setup
Overworld:
[Coal Chest] → [PreFab NORTH face: PULL ITEMS → Importer #1]
CM Dimension (while SIMULATING):
[Importer #1] → [Furnace] → [Exporter #1]
(PreFab measures: 0.213 iron ingots/tick)
Overworld:
[PreFab SOUTH face: PUSH ITEMS ← Exporter #1] → [Iron Chest]
During CACHED mode:
- CM dimension chunks unload
- PreFab accumulates fractional production (0.213/tick)
- Every ~5 ticks, PreFab pushes 1 iron ingot to output chest
- No chunk loading = Better server TPS!
Current Status
⚠️ This mod is in active development.
Core systems implemented:
- ✅ Face configuration system with GUI
- ✅ Importer/Exporter blocks with UUID linking
- ✅ Resource transport (PULL/PUSH modes)
- ✅ Rate measurement with delta accounting
- ✅ Cached production with fractional math
- ✅ PreFab-as-Item portability system
- ✅ Enhanced GUI with live status and resource display
- ✅ HALTED state recovery with preserved rates
- ✅ Vanilla block support (chests, furnaces, hoppers)
In progress:
- ? AE2/Refined Storage integration
- ? Factory Controller block
- ? Multiple PreFab management
- ? Anti-cheat validation
- ? Polish and bug fixes
- ? Performance optimizations
评论 0
登录后参与评分
还没有评论,来抢沙发吧