Forum Multiplayer Universal Windows App Plans?

Discussion and help relating to the PlayerIO Multiplayer API.

Universal Windows App Plans?

Postby srgfraser » June 28th, 2017, 7:47 pm

Are there any plans to get this library to work with Universal Windows Apps or with Xamarin?

to see the fail simply

create an out of the box UWP and in the MainPage.xaml.cs after this.InitializeComponent() paste:
-or-
create an out of the box Xamarin Form and in the Portable project and in the MainPage.xaml.cs after this.InitializeComponent() paste:

var client = PlayerIO.Authenticate(
"<game tag>", // Fill in your game tag
"public", //Your connection id
new Dictionary<string, string> { //Authentication arguments
{ "userId", "MyUserName" },
},
null //PlayerInsight segments
);

DatabaseObject myPlayerObject = client.BigDB.LoadMyPlayerObject();
myPlayerObject.Set("awesome", true); // set properties
myPlayerObject.Save(); // save changes

var connection = client.Multiplayer.CreateJoinRoom("my-room-id", "bounce", true, null, null);
Debug.WriteLine("Joined Multiplayer Room");

// on message => print to console
connection.OnMessage += delegate (object sender, PlayerIOClient.Message m) {
Debug.WriteLine(m.ToString());
};

// when disconnected => print reason
connection.OnDisconnect += delegate (object sender, string reason) {
Debug.WriteLine("Disconnected, reason = " + reason);
};


Basically you get:

System.TypeLoadException: 'Could not load type 'System.Net.WebRequest' from assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.'
srgfraser
 
Posts: 19
Joined: February 1st, 2013, 7:40 am

Re: Universal Windows App Plans?

Postby Henrik » July 2nd, 2017, 2:28 am

Right now, the .Net ecosystem is a complete !&!?$$%! mess.

Microsoft is trying to fix it with .Net Standard, and it seems like .Net Standard 2.0 is going to have enough APIs and support that we can make that the target framework for the PlayerIO .Net client library, but there's still time for them to !&%!?&$ it up, and it's a constant "work in progress", so who knows.

So the answer to your question is: Yes, eventually, but not right now.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Universal Windows App Plans?

Postby srgfraser » July 2nd, 2017, 5:48 am

You do realize it took me less than 2 hours to reverse engineer your framework to get it to work flawlessly with Universal. (I can send you the code if you want. I did it to see what the big deal was).. I just have not used it in my apps because I'm sure it goes against the license.
srgfraser
 
Posts: 19
Joined: February 1st, 2013, 7:40 am


Return to Multiplayer