找回密码
 register

QQ登录

只需一步,快速开始

查看: 85|回复: 0

[游戏教程] 引擎报错:Obj_Monster::SetCooldown: Index out of range!的解决办法

[复制链接]

[游戏教程] 引擎报错:Obj_Monster::SetCooldown: Index out of range!的解决办法

[复制链接]
  • 打卡等级:热心大叔
  • 打卡总天数:94
  • 打卡月天数:17
  • 打卡总奖励:94
  • 最近打卡:2025-01-18 01:28:20
Waylee

主题

0

回帖

1万

积分

仙帝

积分
12364
Waylee 2023-5-31 23:45 | 显示全部楼层 |阅读模式

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×
文章编辑人员:雪舞
内容测试时间:2023-5-31 23:44:04
测试版本:新武侠世界

这个报错信息来自:/home/tlbb/Server/ServerTest 中,在新武侠世界中并不会导致引擎崩溃,但是其他引擎未知哦!

详细报错日志:
Assert:
[./Obj/Obj_Monster_Skill.cpp][25][virtual void Obj_Monster::SetCooldown(CooldownID_t, Time_t)][NULL]
[[Obj_Monster::SetCooldown]: Index out of range!]
Assert:Stack:[./Obj/Obj_Monster_Skill.cpp][27][virtual void Obj_Monster::SetCooldown(CooldownID_t, Time_t)][FALSE]
Assert:Stack:[./Skills/SkillLogic/SkillLogic.cpp][660][void Combat_Module::Skill_Module::SkillLogic_T::SetCooldown(Obj_Character&, CooldownID_t, INT) const][FALSE]
Assert:Stack:[./Skills/SkillLogic/SkillLogic.cpp][299][void Combat_Module::Skill_Module::SkillLogic_T::CooldownProcess(Obj_Character&) const][FALSE]
Assert:Stack:[./Skills/SkillLogic/SkillLogic.cpp][211][BOOL Combat_Module::Skill_Module::SkillLogic_T::Action_ActivateOnceHandler(Obj_Character&) const][FALSE]
Assert:Stack:[./Skills/SkillLogic/SkillLogic.cpp][166][BOOL Combat_Module::Skill_Module::SkillLogic_T::StartLaunching(Obj_Character&) const][FALSE]
Assert:Stack:[./Skills/Skill_Core.cpp][277][BOOL Combat_Module::Skill_Module::SkillCore_T::ActiveSkillNow(Obj_Character&) const][FALSE]
Assert:Stack:[./Skills/Skill_Core.cpp][108][BOOL Combat_Module::Skill_Module::SkillCore_T:rocessSkillRequest(Obj_Character&, SkillID_t, ObjID_t, const WORLD_POS&, FLOAT, GUID_t) const][FALSE]
Assert:Stack:[./Module/SkillAction.cpp][90][virtual ORESULT SkillAction::Start(const _ACTION_START_PARAM*)][FALSE]
Assert:Stack:[./Obj/Obj_Action.cpp][299][ORESULT Obj_Action::StartSkill(SkillID_t, ObjID_t, const WORLD_POS*, FLOAT, GUID_t)][FALSE]
Assert:Stack:[./Obj/Obj_Character_Logic.cpp][495][ORESULT Obj_Character:o_UseSkill(SkillID_t, ObjID_t, const WORLD_POS*, FLOAT, GUID_t)][FALSE]
Assert:Stack:[./AI/State.cpp][170][ORESULT State::UseSkill(const AI_Character*, ObjID_t, ObjID_t, FLOAT, FLOAT, FLOAT, GUID_t)][FALSE]
Assert:Stack:[./AI/AI_Character.cpp][168][ORESULT AI_Character::UseSkill(ObjID_t, ObjID_t, FLOAT, FLOAT, FLOAT, GUID_t)][FALSE]
Assert:Stack:[./AI/AIScriptFunction.cpp][839][INT AIS_ToSkill(const Obj_Character*, INT, INT, INT)][FALSE]Assert:Stack:[./AI/AIScript.cpp][704][BOOL AIScript::ExcuteToDoExpress(const TreeNode*, const AI_Character*)][FALSE]
Assert:Stack:[./AI/AIScript.cpp][643][BOOL AIScript::ExcuteToDoScript(TreeNodeList*, const AI_Character*)][FALSE]Assert:Stack:[./AI/AIScript.cpp][551][BOOL AIScript:rocessScript(INT, AI_Character*)][FALSE]
Assert:Stack:[./AI/AI_Monster.cpp][2209][BOOL AI_Monster::ExcuteAIScript(INT)][FALSE]Assert:Stack:[./AI/AI_Monster.cpp][789][virtual void AI_Monster::AI_Logic_Combat(UINT)][FALSE]
Assert:Stack:[./AI/State.cpp][310][void State::AI_Logic_Combat(AI_Character*, UINT)][FALSE]Assert:Stack:[./AI/State.cpp][486][virtual BOOL CombatState::StateLogic(AI_Character*, UINT)][FALSE]
Assert:Stack:[./AI/State.cpp][248][BOOL State:ogic(AI_Character*, UINT)][FALSE]Assert:Stack:[./Obj/Obj_Character.cpp][299][virtual BOOL Obj_Character::HeartBeat(UINT)][FALSE]
Assert:Stack:[./Obj/Obj_Monster.cpp][422][virtual int Obj_Monster::HeartBeat(unsigned int)][FALSE]./Obj/MonsterManager.cpp 713 virtual BOOL MonsterManager::HeartBeat(UINT) (-796918940)(T0=2023-5-31_22:38:9 T1=991.4600)
SSScenePlayerCountHandler ServerID=0 PlayerPoolSize=1 OK  (-612906176)(T0=2023-5-31_22:38:15 T1=997.1980)
ERROR: IncomingPlayerManager::SaveExtLog open file error! 

原因AI扩展中的技能ID出错,改成怪物支持的技能即可!
\home\tlbb\Public\Data\AIScript\script351.ai ~354.ai



您需要登录后才可以回帖 登录 | register

本版积分规则

雪舞知识库 | 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 |天天打卡

GMT+8, 2025-1-20 01:39 , Processed in 0.103501 second(s), 7 queries , Redis On.

Powered by XueWu Licensed

Copyright © Tencent Cloud.

快速回复 返回顶部 返回列表