Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CaptainsMessDebugGUI won't compile for Windows Store #2

Open
AvinZarlez opened this issue Mar 11, 2016 · 1 comment
Open

CaptainsMessDebugGUI won't compile for Windows Store #2

AvinZarlez opened this issue Mar 11, 2016 · 1 comment

Comments

@AvinZarlez
Copy link
Contributor

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants