当前页面脚本 发生错误
行 485
Char 6
错误 ‘time'未定义
代码 0
URLfile:///D:/美服/英雄联盟(美服)/html/js/launcher.js
点 是后自动关闭窗口 没动静.....
原先 有帖子说 下载某名为 vcredist_x86.part1.rar 的文件 就可以解决问题....
但是 多次尝试仍无法解决问题
485行的内容是
RecordError(time, message, 0, 0);
I'm replying to let you and others know that this isn't the solution to correct the issue you are having here. I'm having the same issue and the solution is much easier.
The lines that you added:
Code:
var currentTime = new Date()
var time= currentTime.getTime();
are not needed at all..
The block that is causing the issue is simply missing the time parameter in the function declaration and as an argument in the callback function.
If you look at the function above the function causing the error you will notice that the time parameter is defined:
Code:
function __launcher_reportPatcherError(error, time, message)
{
if (Launcher.patcherErrorCallback != null)
{
RecordError(time, message, 0, 0);
Launcher.patcherErrorCallback(error, time, message);
}
}
However it is missing in the function which is responsible for the error:
Code:
function __launcher_reportLauncherError(error, message)
{
if (Launcher.launcherErrorCallback != null)
{
RecordError(time, message, 0, 0);
Launcher.launcherErrorCallback(error, message);
}
}
The fix is as simple as adding the time parameter to the function rather than creating the time inside the function. You must also add the time argument to the Launcher.launcherErrorCallback function. The calling code is expecting to include the time value in the function call. So the fix is as follows:
Code:
function __launcher_reportLauncherError(error, time, message)
{
if (Launcher.launcherErrorCallback != null)
{
RecordError(time, message, 0, 0);
Launcher.launcherErrorCallback(error, time, message);
}
}
It's as simple as that.
I have print screen'ed the error and attached it.
I would also like to mention that altering files in the installation directory for LoL may cause issues with the application during an update as it will recognize that changes have been made to the original files which may require you to uninstall the game completely and reinstall. I've made the above change as well as editing the bad word filter and the above rendered my installation broken upon patch update. I can't be sure that this was because of editing the launcher.js file or the bad words filter list or a combination but those were the only files I edited.
To reporduce the the error I believe you need to leave the LoL client open for an extended period of time until PvP Chat disconnects (session is closed). Then click reconnect and I believe attempting to join any game will close the session and then the __launcher_reportLauncherError() function is called. I'm assuming this also prevents the report from being sent.
Attached Thumbnails
================
英文版的解答方法,楼主看不懂的段子谷歌一下吧
=================
或是直接用U9超级助手的修复功能,具体下载地址什么的我空间里有追问
The lines that you added:
Code:
var currentTime = new Date()
var time= currentTime.getTime();
are not needed at all..
The block that is causing the issue is simply missing the time parameter in the function declaration and as an argument in the callback function.
If you look at the function above the function causing the error you will notice that the time parameter is defined:
Code:
function __launcher_reportPatcherError(error, time, message)
{
if (Launcher.patcherErrorCallback != null)
{
RecordError(time, message, 0, 0);
Launcher.patcherErrorCallback(error, time, message);
}
}
However it is missing in the function which is responsible for the error:
Code:
function __launcher_reportLauncherError(error, message)
{
if (Launcher.launcherErrorCallback != null)
{
RecordError(time, message, 0, 0);
Launcher.launcherErrorCallback(error, message);
}
}
The fix is as simple as adding the time parameter to the function rather than creating the time inside the function. You must also add the time argument to the Launcher.launcherErrorCallback function. The calling code is expecting to include the time value in the function call. So the fix is as follows:
Code:
function __launcher_reportLauncherError(error, time, message)
{
if (Launcher.launcherErrorCallback != null)
{
RecordError(time, message, 0, 0);
Launcher.launcherErrorCallback(error, time, message);
}
}
It's as simple as that.
I have print screen'ed the error and attached it.
I would also like to mention that altering files in the installation directory for LoL may cause issues with the application during an update as it will recognize that changes have been made to the original files which may require you to uninstall the game completely and reinstall. I've made the above change as well as editing the bad word filter and the above rendered my installation broken upon patch update. I can't be sure that this was because of editing the launcher.js file or the bad words filter list or a combination but those were the only files I edited.
To reporduce the the error I believe you need to leave the LoL client open for an extended period of time until PvP Chat disconnects (session is closed). Then click reconnect and I believe attempting to join any game will close the session and then the __launcher_reportLauncherError() function is called. I'm assuming this also prevents the report from being sent.
Attached Thumbnails
================
英文版的解答方法,楼主看不懂的段子谷歌一下吧
=================
或是直接用U9超级助手的修复功能,具体下载地址什么的我空间里有追问
我用了U9的超级助手的修复功能还是不行
追答你是从U9下载的懒人包的吗?
不行的话只能按照这英文的方法改了
还有WIN7貌似是不行的
温馨提示:答案为网友推荐,仅供参考
第1个回答 2011-03-29
现在回合人气比较牛的应该还是《问道》呢。建议大家可以试试。
第2个回答 2011-03-29
每次都为找(游戏)玩而烦恼,太没劲了《问道》 比较实在点,不错哦
第3个回答 2011-03-31
可以尝试用U9超级助手的修复功能。工具→游戏修复