Re: [圣殿] debug.log 肥大处理

楼主: laechan (挥泪斩马云)   2014-06-22 07:23:17
执行时段错误: *call_other() couldn't find object
程式: /adm/simul_efun/find_object_or_load.c(/adm/obj/simul_efun.c):20
物件: /adm/obj/simul_efun
/std/user#1253 "cmd_hook" /std/user.c:140
/cmds/std/_quest "cmd_quest" /cmds/std/_quest.c:347
/adm/obj/simul_efun "find_object_or_load"
/adm/simul_efun/find_object_or_load.c(/adm/obj/simul_efun.c):20
347 行的 if(ob=find... 改成 if(catch(ob=find...))) continue;
会出这 error 代表某个 quest 目前的加载是有问题的。
执行时段错误: *Bad type argument to +. Had array and int.
程式: /open/justin_data/merc/merc_data.c:20
物件: /open/justin_data/merc/merc_data
/std/user#1253 "cmd_hook" /std/user.c:140
/cmds/std/_quest "cmd_quest" /cmds/std/_quest.c:988
/open/cmds/quest/j/j019 "step3_end" /open/cmds/quest/j/j019.c:62
/open/justin_data/merc/merc_data "merc_set"
/open/justin_data/merc/merc_data.c:20
这个建议至少 inherit DAEMON; 我已经先加上去了。
为何要这么做的原因是因为这样在做 find_object_or_load 或
是直接做 "/open/justin_data/merc/merc_data"->xxx 时,会
比较没问题。
有 inherit DAEMON 跟没有 inherit DAEMON 的差异,就在于
有无 create 函数,前者有,find_object_or_load 一般是会
成功的。
以前这 bug 经常出在没有 inherit DAEMON 的指令上,以目前
改 tmi2_v3 时遇到的状况来看情况是一样的。

Links booklink

Contact Us: admin [ a t ] ucptt.com