v0.0.27 — WASM 独立包与配置体验修复
本版提供可供第三方直接使用的独立 WASM 计算包,并改善配置默认值、导入提醒和中文显示。
- 独立 WASM 包:包含引擎、配套游戏数据、TypeScript 类型、
use-pobr-wasm技能及可执行 demo。版本 CI 验证解压后的实际计算,发布校验和与体积报告。 - 配置默认值:修复前端默认勾选与计算结果不一致的问题。固定任务奖励、战斗默认项遵循当前 PoB2 数据;互斥奖励默认“无”,导入设置优先。
- 导入提醒:使用可关闭的页面内提示,引导检查任务奖励、敌人档位与战斗状态。
- 中文与菜单:补齐符文结界、地脉、同伴生命等配置文本和奖励选项;风舞者触发技能与职业套装名显示中文;主技能下拉使用深色样式并支持键盘操作。
下载 pobr-wasm-v0.0.27-web.tar.gz 和 SHA256SUMS,核对校验和后运行(Node.js 22+):
tar -xzf pobr-wasm-v0.0.27-web.tar.gz
cd pobr-wasm-v0.0.27-web
node example.mjs使用方法与接口说明见 WASM 集成文档。游戏数据版本为 4.5.5.2。体积报告中的 pob-web 基线为近似值;包大小及 demo 通过不代表全部机制已与 PoB2 数值一致。
完整改动:#90。
PoBR WASM v0.0.27
Data: 4.5.5.2; JSON schema: 4; source commit: 9a100e1.
| Component | Raw bytes | gzip bytes (level 9) |
|---|---|---|
| pobr_wasm.js | 22868 | 3591 |
| pobr_wasm_bg.wasm | 5058651 | 1846179 |
| Data bundle (70 files) | 61754698 | 4720593 |
| Disk / transfer comparison | MiB |
|---|---|
| PoBR WASM + JS + compressed data | 9.348 |
| pob-web approximate reference (same compression convention) | 4.966 |
| PoBR gzip transfer estimate (WASM + JS + data) | 6.266 |
| Complete release archive (also includes types, docs, example) | 6.247 |
PoBR / approximate reference: 1.88x.
Reference: krauthaufen/pob-web. User-provided approximate disk sizes; upstream revision and measurement date unknown. Not a live measurement or a feature-parity claim.
The reference is Lua WASM + JS + compressed PoB Lua code/data; PoBR compiles calculation code into WASM.
PoBR includes every JSON from the Web data manifest, including catalogs, localization and derived data.
These scopes and supported mechanics differ. This is a size report, not a performance or parity gate.
gzip estimates assume server compression for JS/WASM; the data file is already compressed.
Disk and compressed transfer sizes do not measure runtime memory.