After installing docker and setting up Ares, I get the following error when running /bin/startares:
2023-03-23 19:04:17 ERROR - Error in Updating game info with AresCentral.: client= error=undefined method `api_game_id’ for nil:NilClass
!!Game.master.api_game_id
backtrace=["/ares/aresmush/plugins/arescentral/public/arescentral_api.rb:33:in `is_registered?'", "/ares/aresmush/plugins/arescentral/events/game_started_event_handler.rb:7:in `block in on_event'", "/ares/aresmush/engine/aresmush/error_block.rb:6:in `with_error_handling'", "/ares/aresmush/plugins/arescentral/events/game_started_event_handler.rb:5:in `on_event'", "/ares/aresmush/engine/aresmush/commands/dispatcher.rb:127:in `block (2 levels) in on_event'", "/ares/aresmush/engine/aresmush/error_block.rb:6:in `with_error_handling'", "/ares/aresmush/engine/aresmush/commands/dispatcher.rb:119:in `block in on_event'", "/ares/aresmush/engine/aresmush/commands/dispatcher.rb:117:in `each'", "/ares/aresmush/engine/aresmush/commands/dispatcher.rb:117:in `on_event'", "/ares/aresmush/engine/aresmush/commands/dispatcher.rb:32:in `block (2 levels) in queue_event'"]
As I’m just testing, I’d rather not have my game registered with AresCentral, and I have no idea what any of this means since I’m not that knowledgeable in Ruby.
All games are registered with AresC, even test games. They’re just not public until you make them so.
The problem isn’t related to AresC though - it sounds like maybe your Game instance wasn’t initialized. Did you run these two steps from the docker instructions? Were there any errors?
bundle exec rake configure $*
- Use 127.0.0.1 for the host
- Use default ports (this setup will not work with different ports)
- Ignore the warning about the web portal directory not being found - that's OK.
bundle exec rake init
Maybe try running the bundle exec rake init again, because it looks like there may have been an error setting up the initial game instance. (and possibly other things).
Note: This will wipe out the other things in your database, but I’m guessing by the nature of the error you would not have been able to create anything.
Also, not related to the problem you’re having but still important: you don’t start the game with bin/startares in the docker, but per the docker instructions you should use :
cd aresmush
bundle install
bundle exec rake startares[disableproxy]