Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否收集并允许用户查看掉落的具体时间 #21

Open
ghost opened this issue May 11, 2016 · 25 comments
Open

能否收集并允许用户查看掉落的具体时间 #21

ghost opened this issue May 11, 2016 · 25 comments

Comments

@ghost
Copy link

ghost commented May 11, 2016

有不少人都承认(或说有这种感觉)舰C的随机系统很可能是伪随机的,不同时间的掉率很可能不一样。我想是否能够像岛风go的数据库那样,自动收集和显示“玄学掉落时间”?

@Gizeta
Copy link
Member

Gizeta commented May 12, 2016

时间已经收集了,但是目前还没有整理的代码。还没有动手的主要原因是在斟酌颗粒度的大小(1分钟/5分钟/10分钟/1小时),希望能找到一个最佳的平衡点。

@ghost
Copy link
Author

ghost commented May 12, 2016

可否考虑设置一个scroll bar或者menu之类的,让用户自行选择想查看的时间跨度,poi只负责生成统计图表就好

@Gizeta
Copy link
Member

Gizeta commented May 12, 2016

可否考虑设置一个scroll bar或者menu之类的,让用户自行选择想查看的时间跨度,poi只负责生成统计图表就好

这个暂时不会考虑,数据库压力会很大。如果有想做验证的,(最好电脑跑这种吃内存的数据库也无压力的),我可以提供原始的掉落数据。

@yukixz
Copy link

yukixz commented May 12, 2016

初期以天为粒度我觉得可行

@c933103
Copy link

c933103 commented May 14, 2016

還有就是排除或只顯示海域有限定掉落的掉落率

@ghost
Copy link
Author

ghost commented May 15, 2016

那么可以提供这些原始数据下载吗?

@Gizeta
Copy link
Member

Gizeta commented May 15, 2016

那么可以提供这些原始数据下载吗?

http://poi.0u0.moe/dump/poi-production.tar.gz

@ghost
Copy link
Author

ghost commented May 15, 2016

非常感谢!!
顺便问一下,这些数据是自动地、实时更新的吗?按照这个链接,在不同时间下载,得到的数据也是不一样的吗?

2016-05-15 12:18 GMT+08:00 Gizeta [email protected]:

那么可以提供这些原始数据下载吗?

http://poi.0u0.moe/dump/poi-production.tar.gz


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#21 (comment)

@Gizeta
Copy link
Member

Gizeta commented May 15, 2016

顺便问一下,这些数据是自动地、实时更新的吗?按照这个链接,在不同时间下载,得到的数据也是不一样的吗?

那个链接就是数据库的dump。数据源是poi那边的,数据库会定期dump一次。至少能保证一天更新一次。

@Gizeta
Copy link
Member

Gizeta commented May 15, 2016

@Westernnero
数据库是MongoDB,collection的定义可以看https://github.com/poooi/poi-server/tree/master/models/report

@ghost
Copy link
Author

ghost commented May 15, 2016

好的,感谢!正在低速下载中……

@DavidDiao
Copy link

@Gizeta
那个dump打开404,是地址换了还是怎么了么?

@yukixz
Copy link

yukixz commented Sep 26, 2017

http://poi.0u0.moe/dump/dropshiprecords.gz
Drop ship records only.

@yukixz
Copy link

yukixz commented Sep 26, 2017

1.3G gzip compressed, 5G WiredTiger compressed, maybe 50G uncompressed.
Take care of your disk.

@DavidDiao
Copy link

@yukixz
我想看的是开发数据
果然没有方法能只截取较新的数据啊

@yukixz
Copy link

yukixz commented Sep 26, 2017

REPLACE/dropshiprecords/createitemrecords/
无法判断「较新的数据」

@yukixz
Copy link

yukixz commented Sep 26, 2017

Learn how to parse timestamp from ObjectID: https://steveridout.github.io/mongo-object-time/

@DavidDiao
Copy link

@yukixz 非常感谢
7%的压缩率真是感人呐。。

@DavidDiao
Copy link

@yukixz 这个要怎么导入或者查看啊。。看到的导入好像只有JSON/CSV/TSV格式的

@yukixz
Copy link

yukixz commented Sep 27, 2017 via email

@DavidDiao
Copy link

@yukixz 这个我知道但是然后呢

@Gizeta
Copy link
Member

Gizeta commented Sep 27, 2017

@DavidDiao
mongorestore恢复备份 https://docs.mongodb.com/manual/reference/program/mongorestore/

mongorestore --gzip --archive=createitemrecords.gz -d poi-production

查询的话

function objectIdWithTimestamp(timestamp) {
    if (typeof(timestamp) == 'string') {
        timestamp = new Date(timestamp);
    }
    var hexSeconds = Math.floor(timestamp/1000).toString(16);
    var constructedObjectId = ObjectId(hexSeconds + "0000000000000000");
    return constructedObjectId;
}
db.createitemrecords.find({ _id: { $gt: objectIdWithTimestamp('2017/09/12') } });

@xiao-FLLLLLLL
Copy link

请问建造统计的掉率是计算哪段时间段内的呢

@Gizeta
Copy link
Member

Gizeta commented Sep 28, 2017

@xiao-FLLLLLLL 如果还有疑问请开新的issue

普建:2017/02/12 ~ NOW()
大建:2017/09/12 ~ NOW()

为什么普建是02/12的,因为在硬盘里保留的最早的数据就是02/12的

@xiao-FLLLLLLL
Copy link

@Gizeta
收到,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants