作者laechan (小太保)
看板mud_sanc
标题Re: [圣殿] 今日的 debug.log
时间Fri Dec 5 07:45:13 2008
今日的 debug.log, 39K
快要进入无 bug 情况了。
大部份都是常见讯息,有一个我比较在意的...
locals were: "执行时段错误: *Bad argument 1 to call_other()
Expected: string or array or object Got: 0.
程式: u/l/laechan/area/sc/terran2/mob/command_center1.c:65
物件: 0
0 "heart_beat" std/gmonster.c:118
/adm/daemons/mob_d "continue_attack" adm/daemons/mob_d.c:578
/adm/daemons/mob_d "execute_attack" adm/daemons/mob_d.c:653
0 "special_fun" u/l/laechan/area/sc/terran2/mob/wraith2.c:42
0 "shut" std/mob/living.c:147
/adm/daemons/mob_d "shut" adm/daemons/mob_d.c:819
/adm/daemons/shut_d "shut_tar" adm/daemons/shut_d.c:291
/adm/obj/simul_efun "show" adm/simul_efun/show.c(adm/obj/simul_efun.c):136
0 "receive_damage" std/mob/attack.c:28
0 "die" u/l/laechan/area/sc/terran2/mob/command_center1.c:65
而且不只 terran2 的 command_center 有问题, terran3(另一个任务)
的也有, 换句话说是 command_center 本身写法的问题.
string or array or object Got: 0. 的一般原因是...
一、物件 die 了、remove 了却还把该物件当参数传送.
二、玩家 quit 了以致於没该玩家了,怪物却还认为有该玩家存在.
三、在攻击时指定的对象在 shut 过程中已消失却还认为它存在.
我暂时在 mob_d.c 的第 578 行那边加了一个 if(me) 的判断..
if(me)
execute_attack(me);
不过这错误还是会很常发生(只是发生在它处),反正看到一个就加
一个判断。
Laechan
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.170.102.197
※ 编辑: laechan 来自: 118.170.102.197 (12/05 07:45)
1F:推 bahatest :所以毒竹的log都写了些啥? 12/05 12:21
2F:→ laechan :跟上面的差不多 12/05 14:22
locals were: "执行时段错误: *Bad argument 1 to call_other()
Expected: string or array or object Got: 0.
程式: adm/daemons/room_d.c:60
物件: /adm/daemons/room_d
/d/fither/kaioh/room/k6-1 "reset" std/ob/room.c:42
/adm/daemons/room_d "reset" adm/daemons/room_d.c:60
/adm/daemons/room_d "CATCH" adm/daemons/room_d.c:60
这个房间被载入的原因不明。
> update /d/fither/kaioh/room/k6-1
档案不存在: /u/8/8850/kaioh/mob/ghost
[不能Clone] ,Bug原因:*Bad argument 1 to call_other()
Expected: string or array or object Got: 0.
/std/ob/room.c: 更新及载入了.
/d/fither/kaioh/room/k6-1: 档案不存在: /u/8/8850/kaioh/mob/ghost
^^^^^^^^^^^^^^^^^^^^^^^^^^^
[不能Clone] ,Bug原因:*Bad argument 1 to call_other()
Expected: string or array or object Got: 0.
更新及载入了.
so..我再观察看看。
Laechan
※ 编辑: laechan 来自: 118.170.232.210 (12/05 20:50)