I am using NOrmcore for Multiplayer, and I was wondering if there is any documentation on making a login-password system?
Hello.
I am using Normcore for multiplayer, as the title suggests, and I am looking for anything that can point me in the direction of making a login-password system.
I played around with Photon and PlayFab, but they are just soooo expensive. Especially for an Indie Dev all by her lonesome.
I am wondering if there is even a way to make a login-password system with Normcore. From my searches, I have found only PlayFab really lets you do that, or if you host your own server, which isn't very possible right now, seeing that this game might not go anywhere.
Normcore has better pricing than Photon by far, and I really want to stick with it. I am making a VR game too, and Normcore directly supports VR.
Thank you for the help :)
Answer by GetLitGames · Dec 11, 2021 at 09:22 PM
You will want to just use PlayFab, it is much better than building your own and they handle password recovery. You get a whole web user interface to manage the players. It is literally a few lines of code to authenticate. Similar to below, you will need your own user interface to allow them to enter a username/password and register and another user interface for login.
if (AppSettings.IsRegistered)
{
print($"Using email and password to autlogin: {AppSettings.EmailAddress}");
var requestEmail = new LoginWithEmailAddressRequest { Email = AppSettings.EmailAddress, Password = AppSettings.Password };
PlayFabClientAPI.LoginWithEmailAddress(requestEmail, OnAutoLoginSuccess, OnAutoLoginFailure);
return;
}
else
{
#if UNITY_STANDALONE
var requestCustomId = new LoginWithCustomIDRequest { CustomId = SystemInfo.deviceUniqueIdentifier, CreateAccount = true };
PlayFabClientAPI.LoginWithCustomID(requestCustomId, OnAutoLoginSuccess, OnAutoLoginFailure);
return;
#endif
#if UNITY_ANDROID
var requestAndroid = new LoginWithAndroidDeviceIDRequest { AndroidDeviceId = SystemInfo.deviceUniqueIdentifier, CreateAccount = true };
PlayFabClientAPI.LoginWithAndroidDeviceID(requestAndroid, OnAutoLoginSuccess, OnAutoLoginFailure);
return;
#endif
#if UNITY_IOS
var requestIOS = new LoginWithIOSDeviceIDRequest { DeviceId = SystemInfo.deviceUniqueIdentifier, CreateAccount = true };
PlayFabClientAPI.LoginWithIOSDeviceID(requestIOS, OnAutoLoginSuccess, OnAutoLoginFailure);
return;
#endif
}
basically it checks a PlayerPref to see if they are registered, and if so uses a stored playerpref saved username and password. If not, it does anonymous login. There is a call you can make to associate a username/password with the anonymous login.
Your answer
Follow this Question
Related Questions
Need Help with groundwork of a Multiplayer-Endless Runner Game 0 Answers
Part of code from Blackthornprod's Multiplayer Character Selection is missing 0 Answers
Network multiplayer 0 Answers
How to use a script to control the nickname of online players 0 Answers
Problema multiplayer al agregar vehiculo 0 Answers