从nao报告提升信息的工具。
ascension_kit的Python项目详细描述
你好,欢迎来到扬升工具包!
这是什么?
Ascension Kit是我一起破解的一个项目,从NAO播放器文件中显示了Ascension的详细信息。
我怎么得到它?
PIP
pip install ascension_kit
易于安装
easy_install ascension_kit
我建议您在虚拟环境中工作,如果您有这种选择的话,可以这样做:
➜ virtualenv --no-site-packages ak New python executable in ak/bin/python2.7 Also creating executable in ak/bin/python Installing setuptools, pip...done. ➜ activate (ak)➜ pip install ascension_kit
它是做什么的?
很高兴你这么问。它显示关于玩家提升的信息,并且将 如果传递了多个用户名,则返回一个用户数据表。
单用户
ascension-kit -l zomgreg Fetching games for user(s) ['zomgreg'] File is still fresh. Using local cached file for zomgreg. [ Ascensions ] Total Games 367 Ascensions 37 (10.08%) Average turns/ascension 58,000 Fastest Ascension 33,107 Slowest Ascension 123,889 Total Ascension Turns 2,146,018 Total Points 140,066,286 Average Points/Ascension 3,785,575 Time Spent Ascending 27 days 15 hours 59 minutes
多个用户
多用户调用的格式是表。
ascension-kit -l zomgreg,bose,stth,anselmus,stenno,raisse,rschaff Fetching games for user(s) ['zomgreg', 'bose', 'stth', 'anselmus', 'stenno', 'raisse', 'rschaff'] File is still fresh. Using local cached file for zomgreg. File is still fresh. Using local cached file for bose. No cache found for stth, downloading. No cache found for anselmus, downloading. No cache found for stenno, downloading. No cache found for raisse, downloading. No cache found for rschaff, downloading. +----------+-------------+------------+----------+------------+---------+---------+-------------+--------------+-------------+---------------+ | Player | Total Games | Ascensions | Pct | Avg. Turns | Fastest | Slowest | Total Turns | Total Points | Avg. Points | Time Spent | +----------+-------------+------------+----------+------------+---------+---------+-------------+--------------+-------------+---------------+ | anselmus | 317 | 66 | 20.82 % | 8230 | 0 | 34405 | 543194 | 105952222 | 1605336 | 15d 17h 19m | | stenno | 2463 | 112 | 4.547 % | 21367 | 13572 | 44155 | 2393117 | 209373612 | 1869407 | 39d 7h 48m | | bose | 1419 | 57 | 4.017 % | 41232 | 26566 | 62440 | 2350273 | 209160008 | 3669473 | 118d 15h 34m | | raisse | 5988 | 56 | 0.935 % | 49041 | 31391 | 72425 | 2746299 | 186718579 | 3334260 | 52d 18h 43m | | stth | 1416 | 504 | 35.593 % | 55808 | 20357 | 439465 | 28127462 | 3504005732 | 6952392 | 373d 2h 14m | | zomgreg | 367 | 37 | 10.082 % | 58000 | 33107 | 123889 | 2146018 | 140066286 | 3785575 | 27d 15h 59m | | rschaff | 1159 | 207 | 17.86 % | 65794 | 35290 | 270229 | 13619559 | 1017595855 | 4915922 | 126d 14h 10m | +----------+-------------+------------+----------+------------+---------+---------+-------------+--------------+-------------+---------------+
玩家表是按平均轮数按升序排序的(嘿,明白了吗?)命令。 xlog文件中的一些数据是不完整的,这就是为什么anselmus看起来 玩了一场0回合提升的游戏。我不太确定是什么 造成这种异常的原因,但我认为这与早期的游戏版本有关。
这是怎么工作的?
nao(http://alt.org/nethack/)上的每个播放器都有一个用于 他们玩过的游戏。此实用程序获取该文件,并将其解析为 显示所示数据。
文件被提取并保存到/tmp目录和缓存超时 周期为24小时,这意味着实用程序不会尝试下载 xlog文件,如果它是24小时前下载的。这是一种努力 对nao服务器很好。