Variant build: variant_gates.py refuses SRO_LEVEL_CAP=100

未关闭 适合新手
#4,943 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
go

调研方向

从 scripts/variant_gates.py 开始,重点查看 gate_level_cap,并将其接受的值和 gate 条件与 progression.Degree10LevelCap 以及 apps/server/config/shard-settings.json 中的 shard 设置进行比较。使用 SRO_LEVEL_CAP=100 运行 scripts/build_alexandria_variant.py,以重现失败。完成标准是构建接受 100,且 Arabia、Sky Temple 和 Roc 的导入使用匹配的 cap 条件。

由索引模型根据 Issue 内容生成。

描述

scripts/variant_gates.py refuses the level cap the shard now ships, so the Alexandria variant build stops when it reads its flags from apps/server/config/shard-settings.json.

Steps: export the shard settings into the environment (SRO_LEVEL_CAP=100 since #4924) and run scripts/build_alexandria_variant.py.

Result: stage 2 stops in the gates step:

File "scripts/variant_gates.py", line 345, in gate_level_cap
ValueError: SRO_LEVEL_CAP must be off, 90 or 110, not '100'

Cause: gate_level_cap knows only the native values ("", 0, off, false, 90 -> 90) and 110. The server has accepted 100 since #4924 (progression.Degree10LevelCap), and the shard ships it, so the build and the server disagree on which caps exist.

Fix: accept 100 and clamp the gate conditions to it, as the server does. The Arabia, Sky Temple and Roc imports take their cap from the same function.

主要语言
Go
星标
97
派生
61
平均合并
4 小时 2 分钟
30 天内合并 PR
969

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

opensro-dev/opensro 的其他 Issue

查看 opensro-dev/opensro 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。