Hello World - Part 2 Tutorial [Solved]
Hello,
I am following the "Hello World - Part 2" tutorial, and I'm currently in the PeerStatusCallback section. I have run into a problem that I hope someone can help me solve. In the following code:
LiteOpKey does exist.
LiteOpKey.RoomName does not exist. ('Cannot resolve symbol RoomName')
Am I doing something wrong?
Thank you for your time,
Mark
I am following the "Hello World - Part 2" tutorial, and I'm currently in the PeerStatusCallback section. I have run into a problem that I hope someone can help me solve. In the following code:
case StatusCode.Connect: Console.WriteLine("Calling OpJoin ..."); Hashtable opParams = new Hashtable(); opParams[(byte)LiteOpKey.RoomName] = "MyRoomName"; peer.OpCustom((byte)LiteOpCode.Join, opParams, true); break;
LiteOpKey does exist.
LiteOpKey.RoomName does not exist. ('Cannot resolve symbol RoomName')
Am I doing something wrong?
Thank you for your time,
Mark
0
Comments
-
It seems that:
LiteOpKey.DebugString
is missing as well.
Thanks in advance for any help that you can provide.0 -
My apologies, but I solved the problem.
Like an idiot, I added the wrong PhotonDotNet.dll reference. I added the one from the server which works fine for Hello World Part 1, but does not work for Part 2. I have since removed that reference and added the one from the dotNet client, and all works well so far.
Again, apologies for the posts.0 -
Good to know you found it! I immediately wondered how the demo was working0
-
I can't promise anything for part 3 at the moment. The guy who's working on the tutorial is distracted and pretty busy with some stuff with deadlines. I constantly bug him to finish, though0
-
using ExitGames.Client.Photon.Lite;
is missing from the tutorial and the reason I got errors with LiteOpKey not found.
EDIT: OK, it's included at the end where the code is provided in whole. Just following along and you'll get stuck, if you cheat and just paste the code you'll succeed. Takes the fun out of a step by step though..0 -
Good point. We will take a look and add the pointers where needed.
Sorry for the hassle.0