{"record":{"id":"33fd2ba88c7cbb9f","repo":"egametang/ET","slug":"scene-config-count-is-not-one-zone-zone-scene","errorCode":null,"errorMessage":"scene config count is not one, zone: {zone}, sceneType: {sceneType}, count: {configs.Count}","messagePattern":"scene config count is not one, zone: (.+?), sceneType: (.+?), count: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"Packages/cn.etetet.startconfig/Scripts/Model/Server/StartSceneConfig.cs","lineNumber":48,"sourceCode":"        {\n            return this.sceneNameScenes[sceneName];\n        }\n\n        public List<StartSceneConfig> GetBySceneType(int zone, int sceneType)\n        {\n            string sceneTypeName = SceneTypeSingleton.Instance.GetSceneName(sceneType);\n            return this.GetAll().Values.Where(config => config.Zone == zone && config.SceneType == sceneTypeName).ToList();\n        }\n\n        public StartSceneConfig GetOneBySceneType(int zone, int sceneType)\n        {\n            List<StartSceneConfig> configs = this.GetBySceneType(zone, sceneType);\n            if (configs.Count == 1)\n            {\n                return configs[0];\n            }\n\n            throw new Exception($\"scene config count is not one, zone: {zone}, sceneType: {sceneType}, count: {configs.Count}\");\n        }\n        \n        partial void EndRef()\n        {\n            foreach (StartSceneConfig startSceneConfig in this.GetAll().Values)\n            {\n                this.processScenes.Add(startSceneConfig.Process, startSceneConfig);\n                this.sceneNameScenes.Add(startSceneConfig.Name, startSceneConfig);\n            }\n        }\n    }\n    \n    public partial class StartSceneConfig\n    {\n        partial void EndInit()\n        {\n        }\n    }","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/egametang/ET/blob/5cab01f7a8bee5f49f4781eebe9e2b1c6d7ebe0f/Packages/cn.etetet.startconfig/Scripts/Model/Server/StartSceneConfig.cs#L30-L66","documentation":"Error \"scene config count is not one, zone: {zone}, sceneType: {sceneType}, count: {configs.Count}\" thrown in egametang/ET.","triggerScenarios":"StartSceneConfig 按 zone + sceneType 查询到的配置数量不是 1（为 0 或多条），配置表中存在重复或缺失","commonSituations":"See trigger scenarios.","solutions":["检查 StartSceneConfig 配置表中该 zone 与 sceneType 的组合应恰好有一条记录","删除重复的配置行或补齐缺失行后重新导表","确认 zone 编号与 sceneType 枚举值正确"],"exampleFix":"在 Luban 配置中保证 (zone, sceneType) 唯一，重新导出配置后重启进程。","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"}