作者laechan (小太保)
看板mud_sanc
标题[闲聊] 20140226修改事项
时间Wed Feb 26 10:26:25 2014
今天状况不错。
一、929 debug.log
程式: 0:0
物件: 0
执行时段错误: *Illegal to move or destruct an object
(/u/l/laechan/skycastle/room/skyfarm_worm2#817232)
defining actions from a verb function which returns zero.
这个 bug 最近又开始跑出来,原因我还在查,视情况我会关闭
农场的生怪。
locals were: "执行时段错误: *Bad argument 1 to call_other()
Expected: string or array or object Got: 0.
程式: /adm/daemons/room_d.c:56
物件: /adm/daemons/room_d
/d/map/cir/room/cir082 "reset" /std/ob/room.c:50
/adm/daemons/room_d "reset" /adm/daemons/room_d.c:56
/adm/daemons/room_d "CATCH" /adm/daemons/room_d.c:56
奥玛村有个房间有问题,已修正。
locals were: "执行时段错误: *Bad argument 1 to userp()
Expected: object Got: 0.
程式: /std/mob/g_attack.c:19
物件: /d/dfire/caresa/npc/hydra#736709
生物名: hydra
0 "heart_beat" /std/gmonster.c:111
/adm/daemons/mob_d "continue_attack" /adm/daemons/mob_d.c:392
/adm/daemons/mob_d "execute_attack" /adm/daemons/mob_d.c:430
0 "special_fun" /d/dfire/caresa/npc/hydra.c:30
0 "shut" /std/mob/living.c:145
/adm/daemons/mob_d "shut" /adm/daemons/mob_d.c:522
/adm/daemons/shut_d "shut_tar" /adm/daemons/shut_d.c:126
/adm/obj/simul_efun "new_defance" /adm/simul_efun/new_defance.c
(/adm/obj/simul_efun.c):144
/std/user#934 "set_special_attack" /std/user.c:203
/std/user#934 "dump_special_attack" /std/user.c:190
/std/user#934 "shut2" /std/user/attack.c:172
/adm/daemons/user_d "shut2" /adm/daemons/user_d.c:1464
/adm/daemons/shut2_d "shut_tar" /adm/daemons/shut2_d.c:75
/adm/obj/simul_efun "show" /adm/simul_efun/show.c
(/adm/obj/simul_efun.c):250
/d/dfire/caresa/npc/hydra#736709 "receive_damage" /std/mob/g_attack.c:19
问题点在 new_defance 的独孤反击段,已做前期修正。
执行时段错误: *Value being indexed is zero.
程式: /u/j/justinj/area/sky/mob/sworm5.c:33
物件: /u/j/justinj/area/sky/mob/sworm5#703150
生物名: worm
/u/j/justinj/area/sky/mob/sworm5#703150 "heart_beat"
/u/j/justinj/area/sky/mob/sworm5.c:33
这个会请 justin 查一下。
二、修正 /std/pexp.c 程式段 bug
玩家 kelofox 反映队长队员之间均分经验似乎有问题,经检
查後发现确实有错,已修正如下
if(leader_level-r>leadership ||
leader_level-r<-leadership)
continue; // 无法均分
假设队长等级 60,leadership 100,队员等级 10,则无法
均分经验的判断式是
if(
60 - 10 > 100/10 || 60 - 10 < -100/10)
满足了前面的算式。反过来说如果队长等级 10,leadership
0,队员等级 60
if(10 - 60 > 0/10 ||
10 - 60 < 0/10)
满足了後面的算式。若队长等级 60,leadership 500,队
员等级 40
if(60 - 40 > 500/10 || 60 - 40 < -500/10)
两者都不满足,就能均分经验值。
kelofox 可申请回报 bug reward。
三、
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.61.157.53
※ 编辑: laechan 来自: 210.61.157.53 (02/26 10:42)
1F:→ laechan :农场生怪暂时关闭, 已在 note 公告 02/26 13:50
2F:→ laechan :gintama 讯息已关闭 02/26 13:51
3F:→ longhairpan :虫除了在 form 之外,在home也会生... 02/26 14:59
4F:→ longhairpan :home往street/farm 时,是不会被战斗卡住的.... 02/26 15:00
5F:→ longhairpan :所以只要farm->home->street,或street->home->farm 02/26 15:01
6F:→ longhairpan :在home生出的虫就没被打死,会一直累积,不知是否有关 02/26 15:01
home 会生是因为虫会跑,在 home 与 farm 之间有 tunnel
存在,worm 在 farm 一段时间後有机会透过 tunnel 跑到
home 去。
虫基本上还是在 farm 出生,在 home 看到的就是跑过去的
解决方法就是让 worm 不会跑过去即可,我要看 code 一下
※ 编辑: laechan 来自: 1.165.163.159 (02/26 23:32)
7F:→ laechan :kelofox reward 已给 02/26 23:36