Update package

Each Update consists of 3 parts (folder names may differ between versions): Server (executables, Data, SQL scripts), Client (Main.dll and client data) and Web (website). The Server part looks like this:

Server\
  START.exe  ConnectServer.exe  LoginServer.exe  ServerLink.exe  GameServer.exe  EDITOR.exe
  Data\...        (only the changed Data files)
  SQL\*.sql       (database update scripts, names start with the date)

[NEEDS CHECKING: structure of the update package delivered to customers (folder names, whether Update notes are included)] Always read the notes that come with the Update: there may be special steps for that particular version.

Step-by-step procedure

  1. Check the license. If the new version is not yet included in your license (see START → Overview → Version), START will not launch the new exe. Upgrade the version on the website first (License).
  2. Back up.
    • Back up the databases MuOnline and LogMuOnline (SSMS → right-click the database → Tasks → Back Up).
    • Copy the entire Server folder to another location (or at least the files that will be overwritten).
  3. Notify players and shut down safely using the Stop all button in START, and wait until every Server shows "Stopped" (see Safe Server shutdown). Then exit START (so that START.exe can be replaced).
  4. Run the SQL scripts of the Update on the correct database, in ascending date order, in SSMS (select the database, then open the file and Execute). Only run files newer than your previous update; run each file once.
  5. Copy the executables from Server\ into the correct folders: ConnectServer.exe into 1.ConnectServer, LoginServer.exe into 2.LoginServer, ServerLink.exe into 3.ServerLink, GameServer.exe into every GameServer folder (4.1, 4.2, 5, 6, 7...), and START.exe and EDITOR.exe into their corresponding folders. Do not mix exes from two different versions.
  6. Copy Data\ from the Update into your Data folder. If you have edited those files (rate, drop, shop...), compare before overwriting and merge your changes into the new files. Do not touch your .conf, START.ini and ServerMap.xml files unless the Update notes require it.
  7. Open START and click Start all. START reloads License.sig automatically when needed.
  8. Check the logs of each Server: there should be no database version errors or missing-file errors.
  9. Update the client (Client\Main.dll and client data) via the Launcher / EDITOR, see the Tools section. The client and server must be the same version.

Database version

Each server version requires a specific database version (the db_version row in the srv_config table). The Server will not start if the database version is wrong, and it writes a log entry telling you which SQL files need to be run (see Troubleshooting). For this version, the main database version and log version is 1.0.0.

Rolling back to the old version

Shut down safely, restore the backed-up Server folder, and restore the database from the backup file if you have already run the SQL scripts of the new version (do not count on the update scripts having a rollback step).