At some point there will be a new version of Ares code available and you’ll want to upgrade the code on the game server.
Table of Contents
There are a few special conditions that require advanced upgrade procedures.
If none of those apply, upgrades are super easy.
From the web portal (in v0.54 and higher):
-or- From the game (in your usual MU client):
upgrade/start
to begin the upgrade.upgrade/finish
to complete the upgrade.Some upgrades affect the core game engine and require that the game be shut down and restarted. The release notes or the upgrade process will tell you when a restart is required.
To restart the game:
upgrade/start
to begin the upgrade.shutdown
command in-game or Admin -> Manage -> Shutdown from the web portal to shut down the game. (See Shutting Down the Game for help.)bin/startares
from the aresmush directory. (See Starting the Game for help.)When you start making custom code changes, your upgrade process becomes more involved. The specifics depend on how you’re managing your code. Don’t be afraid to ask for help if you’re not sure what to do.
If you have your own GitHub fork, here’s how you upgrade:
If you’ve been making changes via FTP or direct editing, here’s how you upgrade:
upgrade/start
in-game to commit any local changes and get the latest game code from GitHub. If you see any CONFLICT notices from the upgrade, you’ll need to edit the code on the server shell as explained in ‘Resolving Conflicts’ below.The upgrade scripts are designed with the standard install environment in mind–notably the standard install directories of /home/ares/aresmush
and /home/ares/ares-webportal
. If you have a custom environment, you’ll need to tweak the path/user names for the scripts in the ‘bin’ directory of both the game and web-portal. Ask for help if you’re not sure what to do.
Sometimes there may be conflicts between code that changed in the new version and code/configuration changes you’ve made yourself. When that happens, you’ll see a message during the upgrade like:
CONFLICT! Merge conflict in plugins/channels/channels.rb
You’ll need to edit the files in question to resolve the conflict. You’ll see lines like this where there are conflicts between your code and the main Ares code:
Some code.
<<<<<<< HEAD
your original version will be in this section
=======
the upgraded main Ares code will be in this section
>>>>>>> master
Edit the file manually to choose which version you want, and get rid of all the <<< >>>
junk. The final file should look clean, like:
Some code.
your modified code
Sometimes, rather than dealing with the conflict it’s easier to just copy/paste the code for that file from GitHub and start fresh. Once you have the new main Ares version, you can redo your custom changes.
If you run into trouble resolving conflicts, don’t be shy about asking for help.
Community contributions (plugins or themes) are upgraded independently from the main code. See Upgrading Plugins.
See Server OS Upgrades.