This is yet another application for tracking your Final Fantasy XIV Triple Triad card collection written in Ruby on Rails and powered by Saint Coinach. This application strives to be as autonomous as possible by pulling its card and NPC data from the game files via Saint Coinach. This ensures that manual data entry is only required for data not available on the client side, such as instance drop locations. Even if the card source is unknown, the cards themselves will still be created and the source can easily be updated later when it becomes known.
The functionality of this application has been migrated to ffxiv-collect.
All of this application's data is made available through a RESTful JSON API. See the documentation for details.
- Ruby (3.1)
- Rails (6.1)
- MySQL
- Redis
git clone https://github.com/mattantonelli/ffxiv-triple-triad
cd ffxiv-triple-triad
bundle install
bundle exec rake app:update:bin
Create the MySQL databases triad_development
and triad_test
as well as a database user with access to them
- Create a new Discord app for user authentication. Take note of the client ID and secret.
- Set the redirect URI on the OAuth2 page of your app:
http://localhost:3000/users/auth/discord/callback
- Set the redirect URI on the OAuth2 page of your app:
- Configure the credentials file to match the format below using your data.
rm config/credentials.yml.enc
rails credentials:edit
mysql:
development:
username: username
password: password
discord:
client_id: 123456789
client_secret: abc123
Extract card images from the game data by following the instructions in the data repository.
bundle exec rake db:schema:load
bundle exec rake data:initialize
Run whenever
to schedule the application's cronjobs.
bundle exec whenever -s 'environment=INSERT_ENV_HERE' --update-crontab
Please note that if you did not install your Ruby using rbenv, you will need to change the bundle command located in config/schedule.rb
rails server
When new cards & NPCs become available on patch day, they can be loaded into the database by running the data:update
rake task.
bundle exec rake data:update
bundle exec rake assets:precompile
# Restart the application
bundle exec rails console
[Card, NPC].each { |model| puts "#{model}: #{model.where('created_at > ?', Date.current.beginning_of_day).update_all(patch: 'CURRENT PATCH')}" }
exit
This data is available once the data repository has been updated with the latest patch data.
More action may be required in the event of complex game updates (e.g. new card types, packs, etc.) Patch data must be populated manually.
Images are no longer provided by the data repository and must be extracted from the game data. Click here for details.
FINAL FANTASY is a registered trademark of Square Enix Holdings Co., Ltd.
FINAL FANTASY XIV © SQUARE ENIX CO., LTD.