Re: [聖殿] 今日的 debug.log
看板mud_sanc (Sanctuary - 聖殿)作者laechan (小太保)時間17年前 (2008/12/05 07:45)推噓1(1推 0噓 1→)留言2則, 2人參與討論串4/4 (看更多)
今日的 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)
推
12/05 12:21, , 1F
12/05 12:21, 1F
→
12/05 14:22, , 2F
12/05 14:22, 2F
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)
討論串 (同標題文章)
完整討論串 (本文為第 4 之 4 篇):
mud_sanc 近期熱門文章
PTT遊戲區 即時熱門文章
21
49