Week 2 - No progress; Week 3 - Making our SubServer

Forums:

Well everyone, unfortunatly the last 2 weeks have been at zero productivity. Real life interfered. This weekend is my 10th wedding anniversary so we are going away for a long weekend. The previous week has flashed by with work getting ready for a release and by the time i get home I have no motivation to do any programming. After this weekend I hope to pick back up, but at the end of the month I also have a tournament my daughter and I am participating in. Hopefully you guys will hang in there. Again, I've been writing notes in my development notepad while I'm at work or when an idea strikes me so I'm not putting the project on the shelf any time soon. Just bear with me for the rest of the month till things can slow down again.

Thanks for keeping up with this and being patient with me.

OK I lied. I sat down, got frustrated that I hadn't done anything and went ahead and implemented the stub for the SubServer and OutgoingMasterServerPeer. They are stubs for the most part but they will compile. The next piece from where I am now is to set up the messages to and from the MasterServer for the SubServer. Once a subserver is able to connect to the master server I will create a 5 server cluster and begin implementing the methods for each of the 3 server types, Login, Chat, and Region. I'm glad to have made some progress and I'll hopefully make more tonight.

Well I'm about to take a break. I have debugged the server, and I can see that I am getting 2 regions connecting to the server. I'm trying to get logging to work so that I can show, through logs, that it is working. Once I get that done I will begin a new post series for Photon 3.0 to show the progress so far.

So just before i decided to take a break I took one last look at my setup. The logger setup is looking for something called BinPath. This is a value set up by Exit Games, it points to your PhotonServer.config BaseDirectory and adds on /bin. I moved my files into a folder called bin and I got my logs to show up. Whats even better is that when i looked in my logs my 2 region servers output the debug message that they connected to the master server.

With this code working and in place, I will now begin to create my 5 server cluster. If i didn't post this somewhere else, this means that I will have 5 servers. 1 master server, 1 login server, 1 chat server, and 2 region servers because i want to make sure that the region servers talk to each other and get their data straight.

I'd say tonight was successful. The code will be up on GitHub by the time you read this for those that are interested in what I've done. Tomorrow I will start the blogs showing what has been done to this point and why.

Enjoy.

lazalong's picture

Cool - I hope you get frustrated often ;)

Btw be sure to test the disconnections. I have some problems to make it right in my test code (especially when combined with the IOperationHandler disconnect methods).
Its not easy to see what's happening during disconnection.
Sometimes it seems that everything was shut down correctly but the task manager is showing that the process PhotonSocketServer is still running and consuming sometime more and more memory.
I didn't have any issues with Photon 2.x but it wasn't -of course- the load balancing code.

(Btw I can now select my character again. I will now try to enter the game on a game server).