a8166330 发表于 2012-11-4 20:33

国外网站冰龙BUG修复方法,求高人指点

I had the same crash, so I modified the lua script to remove the animation at death of the stack of Ice dragon
我也有同样的崩溃问题,所以我修改了lua脚本,去除了冰龙死亡时的动画效果
I found the lua script here :
我在这找到了lua脚本
E:\Programs\SteamApps\common\King's Bounty - Warriors of the North\sessions\addon

the lua script generating the error for me is :
对我来说,lua脚本产生的问题是:
"unit_features_ondamage.lua" (edit with notedpad) in the "ses.kfs" (open with zip)

the line in error is the 390 : (activate status bar in notepad)

Quote:
function features_ondamage_dragon_ice(wnm, ts, dead)
if dead then
local ahc = Attack.act_after_hit_cell(0)
local initsize = Attack.act_initsize(ahc)
local manaval, rageval = Game.CurLocRand(initsize, 5*initsize), 0
local dmgts = 1 + Game.Random(0, 10)/100
spawn_energetic_attack(ahc, dmgts, manaval, rageval)

if initsize == 1 then
Attack.log(dmgts, "add_blog_ice_dragon_death_1", "name"," "..blog_side_unit(0), "special", mana_count)
else
-- Attack.log(dmgts, "add_blog_ice_dragon_death_1", "name"," "..blog_side_unit(0), "special", mana_count)
end
end
return true
end


I just put the -- before the line, so it will be inactive in the lua script.
我只是把--放在那行前面,那样在lua脚本就不会使用它了
Works like a charm for me.
(sorry for my english)
Hope it can help.
(the file is 1.5mo compressed, so I prefer not join it)

a8166330 发表于 2012-11-4 20:34

盗版找不到那个文件夹,找到了也不知道修改...望高人指点

破碎 发表于 2012-11-4 20:52


内牛满面
被恶心了半天终于用楼主的方法过了
感谢楼主{:3_107:}

dwabc 发表于 2012-11-4 20:57

在某个KFS文件里

破碎 发表于 2012-11-4 20:58

不过里面其实是
    if initsize == 1 then
      Attack.log(dmgts, "add_blog_ice_dragon_death_1", "name","   "..blog_side_unit(0), "special", mana_count)
    else
      Attack.log(dmgts, "add_blog_ice_dragon_death_2", "name","   "..blog_side_unit(0), "special", mana_count)
    end
end
return true
主楼没写是前面那条加--还是后面那条加--
我索性两条都加了,然后再打冰龙果然不会跳出了

破碎 发表于 2012-11-4 21:04

a8166330 发表于 2012-11-4 20:34 static/image/common/back.gif
盗版找不到那个文件夹,找到了也不知道修改...望高人指点

就在游戏目录\sessions\addon里面
ses.kfs这个文件,打开以后在里面找unit_features_ondamage.lua这个文件,然后改上面的句子就好了

liuxingzhiqiang 发表于 2012-11-4 21:36

我是小白,这个文件怎么打开

liuxingzhiqiang 发表于 2012-11-4 21:38

好吧,我看到了,外国大大的指点里面写着有

liuxingzhiqiang 发表于 2012-11-4 21:48

试验成功,恶心死我了

动漫暴风雨 发表于 2012-11-5 08:47

能不能把修改后的文件发上来我打开是乱码

椰树是圆的 发表于 2012-11-5 14:17

:L:L:L:L:L:L

keane123 发表于 2012-11-7 18:30

用winrar打开

dougou601 发表于 2012-11-9 15:35

--.............- -

kuitun58 发表于 2012-11-9 16:11

自己去下
http://bbs.3dmgame.com/forum.php ... &page=1#pid70387879

level4 发表于 2012-11-9 16:18

我打冰龙没有发生这样的故事啊。矮油。奇怪啊。

csyyses 发表于 2012-11-9 17:10

下我的吧,没改系统文件,而且修复的比这多
http://bbs.3dmgame.com/thread-3516085-1-1.html
页: [1]
查看完整版本: 国外网站冰龙BUG修复方法,求高人指点