hengineer / CaptainsMess

A local multiplayer networking library for making games like Spaceteam in Unity
MIT License
184 stars 20 forks source link

CaptainsMessDebugGUI won't compile for Windows Store #2

Open AvinZarlez opened 8 years ago

AvinZarlez commented 8 years ago

Minor issue, but thought I'd document it as I noticed it.

The "Network" class was for Unity's old multiplayer system. It is still included for legacy reasons on platforms like Windows, Mac, Android, etc. But it is not included on the newer "Windows Store" build target for Windows 8.1 or Windows 10

The line in question is #21:

serverString += "Hosting at " + Network.player.ipAddress + "\n";

I tried searching around, but I didn't see an easy/direct replacement for getting the current device's actual local IP address (rather than something less useful like "localhost")

Luckily, since this is just debug information, I commented out the line and now things seem to be working nicely for Windows Store builds.

May be worth trying to find an alternate method to get the local IP in order to allow for maximum cross platform compatibility. Also because Network is deprecated, it may be removed in future versions.

hengineer commented 8 years ago

Thanks for the tip, I'll try to find something.