Some (possibly all) games are getting this error when they run the 62 database migration:
/home/ares/aresmush/game/config/page.yml. #<Thread:0x0000558bc6f100c0@/home/ares/.rvm/gems/ruby-2.6.3/gems/eventmachine-1.2.7/lib/eventmachine.rb:1067 run> terminated with exception (report_on_exception is true): Traceback (most recent call last):
If this happens, it just means that there was an error switching over your leveled achievements (scene_participation_10, scene_participation_20, etc.) to a single achievement (scene_participation with a count attached).
To fix it, just put this into the handle
method of your tinker command and run tinker
. FYI this will spam the game channel.
Character.all.each do |c|
c.achievements.each do |achievement|
if (achievement.name =~ /fs3_joined_combat_/)
count = achievement.name.split('_').last.to_i
Achievements.award_achievement(c, 'fs3_joined_combat', count)
achievement.delete
end
if (achievement.name =~ /scene_participant_/)
count = achievement.name.split('_').last.to_i
if (count > 0)
Achievements.award_achievement(c, 'scene_participant', count)
achievement.delete
end
end
if (achievement.name =~ /cookie_received_/)
count = achievement.name.split('_').last.to_i
Achievements.award_achievement(c, 'cookie_received', count)
achievement.delete
end
end
end
If you have any other leveled custom achievements, you can do the same thing for those.