3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 4110|回复: 15
打印 上一主题 下一主题

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

  [复制链接]

20

主题

377

帖子

1628

积分

游戏狂人

Rank: 6Rank: 6

贡献度
51
金元
14241
积分
1628
精华
0
注册时间
2011-5-21
跳转到指定楼层
主题
发表于 2012-11-4 20:33 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
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)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-3-29 03:04 , Processed in 0.026977 second(s), 15 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表