游戏狂人
![Rank: 6](static/image/common/star_level3.gif) ![Rank: 6](static/image/common/star_level2.gif)
- 贡献度
- 51
- 金元
- 14241
- 积分
- 1628
- 精华
- 0
- 注册时间
- 2011-5-21
|
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)
|
|