Golbat
1.0.0
Golbat 是 Pokemon Go 的实验性原始数据处理器。最初设计为与 RDM 数据库兼容,它将能够通过不需要保留向后兼容性而更快地发展。
有一个 Discord 服务器用于支持和讨论。目前这可能主要是开发讨论。
去1.22
config.toml.example
复制到config.toml
go run .
make
pm2 start ./golbat --name golbat -o "/dev/null"
docker-compose.yml.example
复制到docker-compose.yml
docker-compose up -d
数据源应配置为发送到 Golbat 的 URL,即http://ip:port/raw
可以将扫描规则添加到配置中。这些将按顺序处理,第一个匹配适用 - 并允许禁用处理某些类型的游戏对象。
扫描规则可以将对象与地理围栏相匹配,或者在原始发件人支持时使用扫描仪“模式”(看看你的 Flygon!)
[[ scan_rules ]]
areas = [ " MainArea " ]
nearby_pokemon = false
[[ scan_rules ]]
context = [ " Scout " ]
[[ scan_rules ]]
pokemon = false
这里的主要区域不会处理附近的神奇宝贝。以“侦察”模式到达的消息将处理所有内容;默认情况下不会处理任何神奇宝贝(因此侦察服务不会传送主要区域之外的区域)
口袋妖怪 - 任何口袋妖怪处理(也禁用生成点)
wild_pokemon - 处理来自转基因生物的野生神奇宝贝
Nearby_pokemon - 处理来自 GMO 的附近的神奇宝贝
天气 - GMO 中的过程天气
健身房 - GMO 中的加工健身房
pokestops - GMO 中的处理 pokestop
cells - 处理单元更新(禁用此功能也会禁用自动堡垒清理)
PvP 的额外配置可在配置文件的pvp
部分中找到。
# The level caps used in rankings, defaults to [50, 51]
level_caps = [ 50 , 51 ]
# Gohbem uses tied rankings by default (1,1,3,4). Use the following config option to eliminate tied rankings (1,2,3,4,5) and align to external PvP Calculators like GO Stadium and PvP IVs
ranking_comparator = " prefer_higher_cp "
文件 protos.md 包含由 Golbat 解码的 proto 列表
这些选项可以极大地帮助您提高性能。
# This should be 50% of RAM, leaving space for golbat
innodb_buffer_pool_size = 64 G
# Log file size, should certainly be >= 1GB, but on a big system this is more appropriate
innodb_log_file_size = 16 G
# This should be number of cores
innodb_read_io_threads = 10
innodb_write_io_threads = 10
innodb_purge_threads = 10
# Some people receommend at least 1 per gb, so could be increased above
innodb_buffer_pool_instances = 8
# allow big sorts, in memory temp tables
max_heap_table_size = 256 M
# extend wait timeout for locks to ensure a good chance to finish requests
innodb_lock_wait_timeout = 15
# logs are written once per second rather than after
innodb_flush_log_at_trx_commit = 0
# background tasks can work at high iops
innodb_io_capacity = 1000
# Number of maximum available IOPS to background tasks
innodb_io_capacity_max = 2000
# Trust disk system at the expense of recovery
innodb_doublewrite = 0
最后两个选项可防止 ibdata1 文件持续增长以及空间不被重复使用。如果您遇到此问题,您可以添加这些,但请注意这需要重新创建 ibdata。
# Efficiently use ibdata
innodb_undo_log_truncate = 1
innodb_undo_tablespaces = 4