{"record":{"id":"9961be031f71bd0e","repo":"egametang/ET","slug":"create-buff-fail-buffid-buffconfigid-casteri","errorCode":null,"errorMessage":"create buff fail: {buffId} {buffConfigId} {casterId}","messagePattern":"create buff fail: (.+?) (.+?) (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"Packages/cn.etetet.spell/Scripts/Hotfix/Share/BuffComponentSystem.cs","lineNumber":69,"sourceCode":"                self.configIdBuffs.Add(buffConfigId, buff);\n            \n                if (buffConfig.TickTime > 0)\n                {\n                    buff.TickTime = buffConfig.TickTime;\n                }\n                if (buffConfig.Duration >= 0)\n                {\n                    buff.ExpireTime = self.GetSingleton<TimeInfo>().ServerNow() + buffConfig.Duration;\n                }\n                else\n                {\n                    buff.ExpireTime = long.MaxValue;\n                }\n                return buff;\n            }\n            catch (Exception e)\n            {\n                throw new Exception($\"create buff fail: {buffId} {buffConfigId} {casterId}\", e);\n            }\n        }\n\n        public static void RemoveBuffByConfigId(this BuffComponent self, int configId)\n        {\n            self.configIdBuffs.Remove(configId, out var buffs);\n\n            if (buffs == null)\n            {\n                return;\n            }\n            \n            foreach (Buff buff in buffs)\n            {\n                if (buff == null)\n                {\n                    continue;\n                }","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/egametang/ET/blob/5cab01f7a8bee5f49f4781eebe9e2b1c6d7ebe0f/Packages/cn.etetet.spell/Scripts/Hotfix/Share/BuffComponentSystem.cs#L51-L87","documentation":"Error \"create buff fail: {buffId} {buffConfigId} {casterId}\" thrown in egametang/ET.","triggerScenarios":"BuffComponentSystem.CreateBuff 创建 Buff 实体失败，通常是 buffConfigId 对应配置不存在或 buff 工厂返回空","commonSituations":"See trigger scenarios.","solutions":["确认 buffConfigId 在 BuffConfig 配置表中存在且已正确加载","检查 buffId 对应的 Buff 类型是否已注册","确认 casterId 对应实体未 Dispose"],"exampleFix":"在创建前校验 BuffConfigCategory.Instance.Contain(buffConfigId)，配置缺失时先排查 Luban 导表。","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5cab01f7a8bee5f49f4781eebe9e2b1c6d7ebe0f","analyzedAt":"2026-08-13T21:10:40.377Z","schemaVersion":2},"datasetVersion":"2026-08-14T00:17:13.853Z"}