Skip to content

[Bug] RegisterActEvent 事件注册无效。 #55

@Eiskomet

Description

@Eiskomet

模块范围

Public API(公开 API)

严重程度

Broken feature(功能不可用)

发生了什么?

在几个版本前,我编写了一个事件将其注册在密林Act下,在经过测试可以正常运行。今天在开发另一个事件时通过指令切换事件发现我很多之前开发的事件都不见了。
测试后发现使用RegisterActEvent 注册的事件都失效了,改为[RegisterSharedEvent]后正常。

复现步骤

1.任意编写一个继承ModEventTemplate的事件
2.将其注册为[RegisterActEvent(typeof(Overgrowth))]
3.开启任意游戏,输入进入事件的指令。

期望行为

Event 'xxxxxxxxxx'not found

日志 / 堆栈

[INFO] [VanillaExtension] [Content] Registered relic: EnergyStone (id=VANILLA_EXTENSION_RELIC_ENERGY_STONE) -> SharedRelicPool
[INFO] [VanillaExtension] [Content] Registered relic: WhiteGemstone (id=VANILLA_EXTENSION_RELIC_WHITE_GEMSTONE) -> SharedRelicPool
[INFO] [VanillaExtension] [Content] Registered act event: PrisonerDilemmaEvent (id=VANILLA_EXTENSION_EVENT_PRISONER_DILEMMA_EVENT) -> Underdocks
[INFO] [VanillaExtension] [Content] Registered act event: SnakebiteEvent (id=VANILLA_EXTENSION_EVENT_SNAKEBITE_EVENT) -> Overgrowth

无error log

RitsuLib 版本

0.4.19

运行环境

windows 10 / 游戏版本V0.107.0 / RitsuLibV0.4.19

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiPublic API, contracts, or compatibility surface.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