playMaker

Author Topic: Photon Game and Hash Table Management  (Read 1801 times)

SeriousRPG

  • Playmaker Newbie
  • *
  • Posts: 45
Photon Game and Hash Table Management
« on: July 19, 2015, 07:11:01 PM »
Hi,
I am doing something wrong. I have a photon game. I have a Game Manager like the demo.
I want this game manager to exist and function for both players (singleton?). While I only see one in my editor window when I run the editor (Player 1) and the standalone EXE (player 2), my hashtable on that object does not show both players, it only shows the player who was loaded via the editor instance (not the standalone instance).

How do I create this manager so it manages the whole game and all players?

Thanks,

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Photon Game and Hash Table Management
« Reply #1 on: July 20, 2015, 06:17:35 AM »
Hi,

The question is what features you want to control with this single Manager? I anyway strongly suggest you don't use one manager for two players, that will be tricky.


Bye,

 Jean

SeriousRPG

  • Playmaker Newbie
  • *
  • Posts: 45
Re: Photon Game and Hash Table Management
« Reply #2 on: July 20, 2015, 11:45:25 AM »
I was attempting to manage the number of each "category" of player, so I could determine spawn points (if more than one student, student 1 goes here, student 2 goes here, etc.)

After reading another question, I think I could set up a custom property per category on the Photon Room and track it that way, since the "room" is a shared resource. I am going to try that and see if I can get it to work.

Thanks,