This document is about: SERVER 4
SWITCH TO

Unity Grid Demo

The MMO demo is discontinued and we don't offer support for it anymore. The current documentation and the sample provided in the SDK are left temporarily and will be removed in the next update. For MMO we recommend following examples of Das Tal or Albion Online.

The MMO Grid Demo is a 3D demo client that uses the MMO Application. You can either run it many times to get an impression of the interest management done or you can use it cooperatively with the "Win Grid" Client described in its own page.

Start Server

Before you try to run any of the clients, make sure to start the Photon Server. What you need to do to make it work:

  1. Open "MmoSolution": "src-server\Mmo\Photon.Mmo.sln".
  2. Select the project "Photon.MmoDemo.Server" and build it.
  3. Copy server app binaries (all files) from "src-server\Mmo\Photon.MmoDemo.Server\bin" to "deploy\MmoDemo\bin".
  4. Start "PhotonControl" from "deploy\bin_WinXX\PhotonControl.exe".
  5. Start "MmoDemo" Instance from "PhotonControl". (you can find it in tray icon)
You can automate the 3rd step by adding a build event to "Photon.MmoDemo.Server" VisualStudio project to auto copy files on every build. This is optional but productive if you are going to change MMO sever app code.
Now you can start any of the clients.

Setup Client

  1. Navigate to: "src-server\Mmo\Photon.MmoDemo.Client.UnityGrid".
  2. Open the scene "mmodemo.unity" in the Assets folder.
  3. Unity will upgrade the scene if needed but might fail doing so. If the process crashes, try again! Unity usually recovers after an initial issue.
  4. When the editor is open, the compiler might list two errors (open the console view). Double-click to open the log entry and simply comment out those source lines.

After this is done, you can start the scene in the editor and run around but you are alone. The demo client does not provide bots or multiple connections.

More players

To simulate more players on a single machine, use the WinGrid Demo. It is also in the Server SDK but must be built first.

Back to top