This document is about: SERVER 4
SWITCH TO

Unity Grid 데모

The MMO Grid 데모는 3D 데모 클라이언트로 MMO 어플리케이션을 이용합니다. 여러 번 실행하여 관심 관리라는 인상을 받거나 자체 페이지에서 설명된 "Win Grid" 클라이언트 협력하여 사용할 수 있습니다.

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.

클라이언트 설정

  1. "src-server\Mmo\Photon.MmoDemo.Client.UnityGrid" 으로 이동합니다.
  2. Assets 폴더내의 "mmodemo.unity" 씬을 오픈합니다.
  3. 필요시 Unity는 씬을 업그레이드 하지만 실패가 발생할 수 도 있습니다. 프로세스가 중단되는 경우 다시 시도해주세요! Unity는 초기 문제 발생이후 일반적으로 복구합니다.
  4. 에디터가 오픈되었을 때, 컴파일러는 2개의 오류를 표시할수도 있습니다(콘솔 뷰를 오픈합니다) 로그 항목을 오픈하기 위해 더블클릭하고 이 소스 라인을 주석처리합니다.

이 작업이 되면, 에디터에서 씬을 시작할 수 있고 돌아나닐 수 있지만 혼자 입니다. 데모 클라이언트는 봇을 제공하지 않거나 여러개의 연결을 제공하지 않습니다.

더 많은 플레이어들

단일 머신에서 더 많은 플레이어들을 시뮬레이션 하기 위해서, the WinGrid Demo를 이용합니다. 서버 SDK에 포함되어 있으나 먼저 빌드를 해야합니다.

Back to top