Skip to content

[Bug] RitsuLib 开发者工具(控制台)模块行为异常反馈 #101

Description

@hotwords123

模块范围

Other(其他)

严重程度

Broken feature(功能不可用)

发生了什么?

问题反馈

使用开发者工具的「状态预设」功能时:

  • 在「玩家牌堆」中添加、删除、修改卡牌时,有概率出现 Broken Card
  • 在「玩家牌堆」中修改预设牌的升级、费用、重放次数、关键词、附魔后,预设界面能正常展示,但实际「应用」时均无效
  • 在「玩家牌堆」中点击预设牌编辑详细参数时,在弹出的编辑窗口上拖拽时会拖拽窗口下层的卡牌
  • 在「玩家牌堆」中编辑已创建的预设时,左侧预设列表中对应名字不会添加「未保存」提示
  • 在「遗物」「药水」「能力」中添加对应模型时,点击对应遗物按钮后面板不刷新,只有关闭弹出的添加窗口后才刷新
  • 在「玩家牌堆」中预设卡牌的默认值均为 0,「遗物」「药水」「能力」中预设模型所有的 DynamicVar 默认值均为 -999999999,而不是相应 canonical var 的默认值
  • 在上述选项卡中添加模型时,搜索框也被纳入滚动区域,而不是常驻顶部

功能建议

  • 建议为未保存的预设添加醒目的颜色或符号标识以提醒用户
  • 建议将「玩家牌堆」中设置为不修改的页面标题中的数字改为 / 或 - 等占位符,或直接去掉数字后缀,以示区别

复现步骤

见上节

期望行为

No response

日志 / 堆栈

测试过程中观测到一些报错,可能与上述问题有关:

Tried to free object <Control#2621440020129> (MegaCrit.Sts2.Core.Nodes.Cards.NCard) back to pool MegaCrit.Sts2.Core.Nodes.Pooling.NodePool`1[MegaCrit.Sts2.Core.Nodes.Cards.NCard] but it's not part of the pool!
   at MegaCrit.Sts2.Core.Nodes.Pooling.NodePool`1.Free(T obj)
   at MegaCrit.Sts2.Core.Nodes.Pooling.NodePool.Free(IPoolable poolable)
   at Godot.Callable.<From>g__Trampoline|1_0(Object delegateObj, NativeVariantPtrArgs args, godot_variant& ret)
   at Godot.DelegateUtils.InvokeWithVariantArgs(IntPtr delegateGCHandle, Void* trampoline, godot_variant** args, Int32 argc, godot_variant* outRet)

RitsuLib 版本

0.5.17

运行环境

Windows 11, StS2 v0.111.0, BaseLib v3.4.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/otherArea is unclear or does not fit existing categories.priority/p1High priority regression or high-impact work.severity/brokenA feature path is effectively unusable.status/confirmedConfirmed and actionable.type/bugDefect or incorrect behavior in RitsuLib.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions