Skip to content

[SI] SingularityIteration-0.1.10.22-beta

Pre-release
Pre-release

Choose a tag to compare

@2132937983 2132937983 released this 26 Oct 06:23
48a857e

0.1.10.22

基于 0.1.10.21。核心系统改进方案第二阶段之二:电网 G3、G4、G5、G7(G6 为可选项,未实施)。详细说明见 docs/releases/0.1.10.22/UPDATE.md。

  • 经济次序(G3):发电机分为必须运行(太阳能、风力、水力、核能等)与可调度(燃料、地热、半流体、柴油、斯特林、经验、掉落物发电机)。新配置 EnergyNet.dispatchMode:merit(默认:必须运行 → 燃料 → 储能,燃料仍为储能充电)、economic(必须运行 → 储能 → 燃料,燃料不为储能充电)、rotation(之前的轮流)。此前燃料发电机与太阳能轮流供电,太阳能的余量直接损失。离线模拟 20 个昼夜:燃料消耗 2,939,488 → 2,006,480(merit)→ 1,340,000 EU(economic,理论最小)。新公共 API DispatchClass / IGridDispatch。
  • 负荷优先级(G4):用电器与储能可设为重要 / 普通 / 可延后(新公共 API LoadPriority / ILoadPriority,AbstractEnergyBlockEntity 保存)。公平分配按优先级依次满足,电力不足时先停可延后的负荷,最后才停重要负荷。全部为普通时分配与之前完全相同(20,000 个随机轮逐项比较)。
  • 断路器与保险丝(G5):新方块 EU断路器导线与 EU保险丝导线。反时限过载(2 倍额定时经过设定延时)、10 倍短路即时、超过额定电压即时断开;电压保护在施加过电压效果之前判定,后方导线与机器不受损。断路器 3 秒后自动重合,连续第 4 次跳闸闭锁;保险丝一次性,用新的保险丝右击恢复。空手右击打开设置界面。
  • 电网监控面板(G7):能源管理终端的“面板”按钮打开全屏面板:概览(供电按电源类别、重要负荷缺口、本网络的引擎耗时)、单线系统图、设备(设置优先级)、保护(断路器状态与复位、警报记录)。GameTests:Round1122GameTests(5 项)。检查工具 check_1122.py,离线测试 verify-si1122(40 项)。

0.1.10.21

基于 0.1.10.20。核心系统改进方案第二阶段之一:期货交易所 M2~M5。详细说明见 docs/releases/0.1.10.21/UPDATE.md。

  • 国库(M2):市场收购的物品进入国库,市场只出售国库库存与每天少量的进口(importPerDay 默认 64 个,加价 importPremium 10%);此前市场无限出售,暴跌后买入、回升后卖出的利润只受每日上限限制。市场为库存不足的货品发布委托(systemCommissionsPerDay 默认 3 个,报酬为买入价的 1.15 倍,新发行),委托开放期间不出售该货品(否则从市场买入再交付即可套利)。账本按天记录发行与销毁的货币。服务器保留原来菜单的买入/卖出按钮编号,改为即时订单(先与玩家挂单成交);新界面使用下单面板。
  • 盘口与委托(M3):限价订单(即时或挂单 7 天),价格时间优先,同一玩家或队伍不成交,买单冻结货币、卖单冻结普通物品,成交价为挂单方价格,卖方手续费 exchangeFee(1%)销毁。邮箱保存离线成交所得、退款与放不下的物品。委托的报酬可以是货币(手续费 2%)、物品或 UU 物质(手续费 5 货币),托管、按比例支付、过期退还;不能交付自己的委托。UU 账户:从容器存入 UU 物质、取出到空容器。
  • 自动上市与货币区分(M3):7 天内 3 名不同委托人(游戏时间满 120 分钟)、3 个完成的委托、至少 2 名交付者时,物品上市为只在玩家之间交易的“玩家上市品”(单人:不同日期完成 3 个)。初值为货币单价的稳健中位数,限制在基本价值(UU 价值 × 校准的每桶货币价值)的 0.5~3 倍。合成深度达到 uuDepth(3)的物品以 UU 物质交易;深度由全部配方计算,只由配方循环产生的物品视为原料。30 天无成交下市。
  • 期货(M5):3 天或 7 天的现金结算合约,全额保证金,结算为保证金的 0~2 倍。合约价格由市场自身价格模型的蒙特卡罗模拟决定(当前事件、新事件、随机步与取整、调价周期;8,000 条路径,同日固定),多头加、空头减一半价差。最初按均值回归预测的远期价格定价时,离线测试中空头每 64 份期望 +165、上涨趋势中的多头 +8,640(情报物品会显示事件);新定价下两方期望均为负。价格模型移到 FuturePriceModel(机器行为不变)。
  • 数据面板(M4):期货机界面换成全屏数据面板,分为行情(自选列表、K 线与成交量、均线、基本价值、盘口深度、下单面板、最近成交)、委托、期货、挂单与邮箱、国库 5 页。每个操作由服务器重新检查(界面打开、8 格内、速率限制、每次成功操作消耗一次交易的 EU)。
  • 管理命令 /mio_icif market audit [组数]:交易所概况、7 天的发行与销毁、互相交易量最大的玩家组合。GameTests:Round1121GameTests(6 项)。检查工具 check_1121.py,离线测试 verify-si1121(55 项)。

0.1.10.22

Based on 0.1.10.21. Core system improvement plan phase 2 part 2: Power Grid G3, G4, G5, G7 (G6 was optional and not implemented). See docs/releases/0.1.10.22/UPDATE.md for details.

  • Economic Dispatch Order (G3): Generators are divided into "must-run" (solar, wind, hydro, nuclear, etc.) and "dispatchable" (fuel, geothermal, semi-fluid, diesel, Stirling, experience, loot generators). New config EnergyNet.dispatchMode: merit (default: must-run → fuel → energy storage, fuel still charges storage), economic (must-run → energy storage → fuel, fuel does not charge storage), rotation (previous round-robin). Previously fuel generators and solar took turns supplying power, and solar surplus was lost directly. Offline simulation of 20 day-night cycles: fuel consumption 2,939,488 → 2,006,480 (merit) → 1,340,000 EU (economic, theoretical minimum). New public API DispatchClass / IGridDispatch.
  • Load Priority (G4): Consumers and energy storage can be set to High / Normal / Deferrable (new public API LoadPriority / ILoadPriority, saved in AbstractEnergyBlockEntity). Fair allocation satisfies demands sequentially by priority; when power is insufficient, deferrable loads are stopped first, and high priority loads are stopped last. When all are Normal, allocation is exactly the same as before (compared item-by-item across 20,000 random rounds).
  • Breakers and Fuses (G5): New blocks EU Breaker Wire and EU Fuse Wire. Inverse-time overload (2x rated after a set delay), 10x short circuit instantaneous, instantaneous trip when exceeding rated voltage; voltage protection is judged before applying overvoltage effects, so downstream wires and machines are not damaged. Breakers auto-reclose after 3 seconds, locking out on the 4th consecutive trip; Fuses are one-time use, restored by right-clicking with a new fuse. Right-click empty-handed to open the settings UI.
  • Grid Monitoring Panel (G7): The "Panel" button on the Energy Management Terminal opens a fullscreen panel: Overview (power supply by source category, high-priority load deficit, engine time of this network), single-line system diagram, Devices (set priority), Protection (breaker status and reset, alarm records). GameTests: Round1122GameTests (5 items). Check tool check_1122.py, offline test verify-si1122 (40 items).

0.1.10.21

Based on 0.1.10.20. Core system improvement plan phase 2 part 1: Futures Exchange M2~M5. See docs/releases/0.1.10.21/UPDATE.md for details.

  • Treasury (M2): Items bought by the market enter the treasury; the market only sells treasury stock and a small daily import (importPerDay default 64, markup importPremium 10%); previously the market sold infinitely, and profit from buying after a crash and selling after a rebound was only limited by the daily cap. The market posts commissions for items with insufficient stock (systemCommissionsPerDay default 3, reward is 1.15x the buy price, newly issued); the item is not sold while a commission is open (otherwise arbitrage by buying from the market and delivering). The ledger records currency issued and destroyed per day. The server retains the original menu's buy/sell button IDs, changed to instant orders (match with player limit orders first); the new UI uses an order placement panel.
  • Order Book and Commissions (M3): Limit orders (instant or 7-day pending), price-time priority, no matching between the same player or team, buy orders freeze currency, sell orders freeze regular items, execution price is the order placer's price, seller fee exchangeFee (1%) destroyed. Mailbox saves offline trade proceeds, refunds, and items that didn't fit. Commission rewards can be currency (2% fee), items, or UU Matter (5 currency fee), escrowed, paid proportionally, refunded on expiry; cannot deliver to your own commission. UU Account: deposit UU Matter from containers, withdraw to empty containers.
  • Auto-Listing and Currency Distinction (M3): When 3 different clients (120 minutes of playtime) within 7 days, 3 completed commissions, and at least 2 deliverers, the item is listed as a "Player-Listed Item" traded only between players (Singleplayer: 3 completed on different days). Initial value is the robust median of currency unit price, clamped between 0.5~3x of the base value (UU value x calibrated currency value per bucket). Items with a crafting depth reaching uuDepth (3) are traded in UU Matter; depth is calculated from all recipes, and items produced only by recipe loops are considered raw materials. Delisted after 30 days without a trade.
  • Futures (M5): 3-day or 7-day cash-settled contracts, full margin, settlement between 0~2x the margin. Contract prices are determined by Monte Carlo simulation of the market's own price model (current events, new events, random steps and rounding, adjustment period; 8,000 paths, fixed for the same day), long adds and short subtracts half the spread. When originally priced using mean-reverting forward prices, offline tests showed shorts expected +165 per 64 contracts and longs +8,640 in an uptrend (intel items display events); under the new pricing, both sides have negative expectation. Price model moved to FuturePriceModel (machine behavior unchanged).
  • Data Panel (M4): The futures machine UI is replaced with a fullscreen data panel, divided into 5 pages: Market (watchlist, candlestick and volume, moving averages, base value, order book depth, order panel, recent trades), Commissions, Futures, Pending Orders and Mailbox, Treasury. Every operation is re-checked by the server (UI open, within 8 blocks, rate limit, each successful operation consumes one trade's EU).
  • Admin command /mio_icif market audit [count]: Exchange overview, 7-day issuance and destruction, player pairs with the highest mutual trading volume. GameTests: Round1121GameTests (6 items). Check tool check_1121.py, offline test verify-si1121 (55 items).