这是跟踪您在Ruby on Rails上写的最终幻想XIV收藏的另一个应用程序。游戏数据由Saint Coinach提供支持。该应用程序通过从Saint Coinach提取尽可能多的数据来努力尽可能自治。其余的是我自己和一小群主持人使用社区来源的数据来维护的。
所有此应用程序的数据都可以通过RESTFUL JSON API提供。有关详细信息,请参见文档。
git clone --recurse-submodules https://github.com/mattantonelli/ffxiv-collect
cd ffxiv-collect
bundle install
bundle exec rake app:update:bin
创建MySQL数据库ffxiv_collect_development
和ffxiv_collect_test
以及具有访问它们的数据库用户
http://localhost:3000/users/auth/discord/callback
rm config/credentials.yml.enc
rails credentials:edit
mysql :
development :
username : username
password : password
discord :
client_id : 123456789
client_secret : abc123
通过按照数据存储库中的说明从游戏数据中提取图像和音乐样本。
bundle exec rake db:schema:load
bundle exec rake data:initialize
whenever
运行以安排应用程序的cronjobs。
bundle exec whenever -s 'environment=INSERT_ENV_HERE' --update-crontab
请注意,如果您不使用RBENV安装Ruby,则需要更改位于config/schedule.rb
中的捆绑包命令
rails server
bundle exec sidekiq -C config/sidekiq_character.yml
bundle exec sidekiq -C config/sidekiq_free_company.yml
当新数据在补丁日提供时,可以通过运行data:update
耙任务。
git submodule update --remote
bundle exec rake data:update
bundle exec rake assets:precompile
# Restart the application
bundle exec rails console
[Achievement, Mount, Minion, Orchestrion, Emote, Barding, Hairstyle, Armoire, Fashion, Facewear, Frame, Card, NPC].each { |model| puts "#{model}: #{model.where('created_at > ?', Date.current.beginning_of_day).update_all(patch: 'CURRENT PATCH')}" }
exit
一旦数据存储库已更新了最新的补丁数据,就可以使用此数据。
如果进行复杂的游戏更新,可能需要采取更多操作。补丁数据必须手动填充。
图像必须从游戏数据中提取。单击此处以获取详细信息。
《最终幻想》是Square Enix Holdings Co.,Ltd.的注册商标。
最终幻想XIV©Square Enix Co。,Ltd。