战网中国

标题: 懂JSP语言的朋友请进 [打印本页]

作者: botfan2012    时间: 2013-6-7 20:24
标题: 懂JSP语言的朋友请进
韩国BOT的item log,应该是用jsp语言写的,最后log的效果是按时间早的显示在最上面,晚的显示在最下面,求教高手如何修改可以让时间晚的显示在最上面呢?
以下是mylog的模块文件:
[attach]6224[/attach]
作者: windforce    时间: 2013-6-7 20:43
sfsfsf
作者: botfan2012    时间: 2013-6-9 23:05
顶起哦~~
作者: botfan2012    时间: 2013-6-13 23:49
..........
作者: botfan2012    时间: 2013-6-16 19:21
还没人能解答啊?
作者: brucehero    时间: 2013-6-16 20:58
頂吧~~~~~~~~~~~~~~~~
作者: botfan2012    时间: 2013-6-20 09:04
无人解答啊。。。。
作者: hammerdin    时间: 2013-6-27 16:34
不懂,帮顶
作者: joeaxx    时间: 2013-8-16 11:54
试试这样改
将这段 _log += \"<tr><td><nobr>\" + My.Log.GetDate() + \"</td><td>\" +

                me.charname + \"</td><td>\" +

                My.Log.GetQualityColorName(1, item) + \"</td><td><nobr>\" +

                GetBaseStat(\"itemtypes.txt\", item.itemtype, 0) + \"</td><td bgcolor=\\\"#A9A9A9\\\"><font onmouseover=\\\"showTooltip(\" +

                _logId + \");\\\"onmouseout=\\\"hideTooltip(\" +

                _logId + \");\\\"style=\\\"cursor:help;\\\"color=\\\"\" +

                My.Log.GetColor(1, item) + \"\\\"><nobr><b>\" +

                _name + \"</font>

<div id=\\\"\" +

                _logId + \"\\\"><table border=\\\"4\\\"bordercolor=\\\"#8C8C8C\\\"bgcolor=\\\"#696969\\\"><tr><td><font color=\\\"\" +

                My.Log.GetColor(1, item) + \"\\\">\" +

                My.Log.GetItemDesc(item, 1) + \"</font></td></tr></table></div></td><td><nobr>\" +

                areaName + \"</td><td>\" +

                _level + \"</td><td>\" +

                (item.buyitem ? item.socket : item.GetStat(194)) + \"</td><td>\" +

                ((item.itemflag & _NTIPAliasFlag[\"ethereal\"]) ? \"O\" : \"X\") + \"</td><td>\" +

                ((item.itemflag & _NTIPAliasFlag[\"runeword\"]) ? \"O\" : \"X\") + \"</td>\";


改成
_log = \"<tr><td><nobr>\" + My.Log.GetDate() + \"</td><td>\" +

                me.charname + \"</td><td>\" +

                My.Log.GetQualityColorName(1, item) + \"</td><td><nobr>\" +

                GetBaseStat(\"itemtypes.txt\", item.itemtype, 0) + \"</td><td bgcolor=\\\"#A9A9A9\\\"><font onmouseover=\\\"showTooltip(\" +

                _logId + \");\\\"onmouseout=\\\"hideTooltip(\" +

                _logId + \");\\\"style=\\\"cursor:help;\\\"color=\\\"\" +

                My.Log.GetColor(1, item) + \"\\\"><nobr><b>\" +

                _name + \"</font>

<div id=\\\"\" +

                _logId + \"\\\"><table border=\\\"4\\\"bordercolor=\\\"#8C8C8C\\\"bgcolor=\\\"#696969\\\"><tr><td><font color=\\\"\" +

                My.Log.GetColor(1, item) + \"\\\">\" +

                My.Log.GetItemDesc(item, 1) + \"</font></td></tr></table></div></td><td><nobr>\" +

                areaName + \"</td><td>\" +

                _level + \"</td><td>\" +

                (item.buyitem ? item.socket : item.GetStat(194)) + \"</td><td>\" +

                ((item.itemflag & _NTIPAliasFlag[\"ethereal\"]) ? \"O\" : \"X\") + \"</td><td>\" +

                ((item.itemflag & _NTIPAliasFlag[\"runeword\"]) ? \"O\" : \"X\") + \"</td>\" + _log;











作者: botfan2012    时间: 2013-8-21 09:44
谢谢楼上的朋友,试过了,还是不行
作者: botfan2012    时间: 2014-5-22 16:38
顶起啊
作者: botfan2012    时间: 2014-5-29 12:45
这个没人懂么?
作者: botfan2012    时间: 2014-6-3 12:29
继续顶起,希望有人解答
作者: cyfeel08    时间: 2014-6-6 17:24
这个真心难。研究了15分钟没搞明白,而且怀疑是不是从这里调整
作者: botfan2012    时间: 2014-6-9 12:19
[quote=cyfeel08,89560]这个真心难。研究了15分钟没搞明白,而且怀疑是不是从这里调整[/quote] 应该是这里调整的,整个log文件的生成及新记录的加入,都是在这里完成的
作者: botfan2012    时间: 2014-6-9 12:22
[quote=cyfeel08,89560]这个真心难。研究了15分钟没搞明白,而且怀疑是不是从这里调整[/quote] 大概流程是先检查log文件有没有,没有的话,生成新的文件,固定写文件头,然后再最后追加每一条新的记录,所以记录都是按时间顺序从早到晚排列的。我自己对JSP语言不熟悉,着实不知道该怎么修改,或者有人懂JSP的,能告诉我怎么改变顺序也可以,我自己尝试实践亦可
作者: botfan2012    时间: 2014-6-9 12:23
顶啊顶啊
作者: botfan2012    时间: 2014-6-18 13:03
晕,仍然无人能解答。。。
作者: 白色曼陀螺    时间: 2014-6-18 16:08
这个log很重要吗?我觉得把手里的仓库整理好才是最有用的吧。
作者: botfan2012    时间: 2014-6-19 16:37
回楼上的,不玩游戏,看log也是件很惬意的事情,看的不痛快心里不舒服,呵呵
作者: booksworm    时间: 2014-6-19 16:55
纠结个一年半载的太执着了楼主
作者: booksworm    时间: 2014-6-19 16:58
你要倒过来写太麻烦了,想象一下,本来应该是有记录就往log文件最后加上一条,但是你这要每次都插队到最前面
作者: botfan2012    时间: 2014-6-20 16:02
请教下南瓜大大,能不能把log写出其他格式,然后用另外的方式读取文件,好像d2nt 3.0就是这样的




欢迎光临 战网中国 (http://battlecn.net/) Powered by Discuz! X3.1