MFPS 2.0 and Steamworks

Support for MFPS 2.0

User avatar
jony12
Contributor
Contributor
Posts: 209
Joined: Mon Sep 24, 2018 12:46 pm

MFPS 2.0 and Steamworks

Postby jony12 » Mon Jun 10, 2019 6:05 am

Hi Lovatto can you tell which part of Ulogin code should change to automatically take Steam Name.

User avatar
haskoman
Contributor
Contributor
Posts: 67
Joined: Wed Aug 22, 2018 1:57 pm

Re: MFPS 2.0 and Steamworks

Postby haskoman » Tue Jun 11, 2019 9:31 am

nice idea i need too, but i try add now item steam ;)

User avatar
Lovatto
Admin
Admin
Posts: 928
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Re: MFPS 2.0 and Steamworks

Postby Lovatto » Tue Jun 11, 2019 11:34 am

You mean how to register an account using steam or simple use the steam account name?
you already have integrated steam SDK? which C# wrapper are you using? Steamworks C# or the Facepunch one?

User avatar
jony12
Contributor
Contributor
Posts: 209
Joined: Mon Sep 24, 2018 12:46 pm

Re: MFPS 2.0 and Steamworks

Postby jony12 » Tue Jun 11, 2019 11:53 am

I want to use steam account name.
In this simple way will you record the progress of the player (Level, ..) ?

I've installed Steamworks.NET_12.0.0.unitypackage.

User avatar
haskoman
Contributor
Contributor
Posts: 67
Joined: Wed Aug 22, 2018 1:57 pm

Re: MFPS 2.0 and Steamworks

Postby haskoman » Tue Jun 11, 2019 12:11 pm

i like this https://steamworks.github.io/ ;) never use Facepunch

very nice for use i have it on my frist game survival on steam and now i go try too in my other game have MFPS on steam ^^

User avatar
jony12
Contributor
Contributor
Posts: 209
Joined: Mon Sep 24, 2018 12:46 pm

Re: MFPS 2.0 and Steamworks

Postby jony12 » Wed Jun 12, 2019 6:33 am

I want to use Player Name on Steam.
But to work add Level System, Clan, ..

Lovatto Can you help ?

User avatar
websbk
Contributor
Contributor
Posts: 104
Joined: Fri Aug 04, 2017 5:34 pm

Re: MFPS 2.0 and Steamworks

Postby websbk » Wed Jun 12, 2019 8:57 am

jony12 wrote:I want to use Player Name on Steam.
But to work add Level System, Clan, ..

Lovatto Can you help ?

If you were able to get the player name from Steam then you need to pass it to the variable playerName in bl_Lobby.cs

User avatar
Lovatto
Admin
Admin
Posts: 928
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Re: MFPS 2.0 and Steamworks

Postby Lovatto » Wed Jun 12, 2019 12:37 pm

Yes, like websbk say, if you only wanna use the steam username, just pass it to playerName or PhotonNetwork.NickName,
that's why I ask you what are you trying to do, but if you are trying to authenticate / login using steam account, then is a little more complex but not hard to do.

Like many other system like Facebook when you auth with their API, they provide an unique user ID, so you have to use this ID instead of the default 'Login Name - Password',
that require some changes in local scripts as well in some php scripts of ULogin Pro which with basic knowledge you can do it.

I can implement this, but until the next update of MFPS, I still have some other things to do and as I have said before I just work in MFPS on weekends.

User avatar
jony12
Contributor
Contributor
Posts: 209
Joined: Mon Sep 24, 2018 12:46 pm

Re: MFPS 2.0 and Steamworks

Postby jony12 » Wed Jun 12, 2019 2:53 pm

I do not want the player to write a name or password.
I want to automatically take the name from Steam when I start game.
But the progress of the player and Level .. to keep in the Ulogin Pro.

If you can when you have time to help. It's not urgent.

User avatar
websbk
Contributor
Contributor
Posts: 104
Joined: Fri Aug 04, 2017 5:34 pm

Re: MFPS 2.0 and Steamworks

Postby websbk » Wed Jun 12, 2019 8:34 pm

jony12 wrote:I do not want the player to write a name or password.
I want to automatically take the name from Steam when I start game.
But the progress of the player and Level .. to keep in the Ulogin Pro.

If you can when you have time to help. It's not urgent.

This is all not difficult to do First you need to create a method in bl_LoginPro through which you will send the player name in php script , and in php already do the check , if the name does not exist in the database , then register and if there is then authorize With all the achievements will be stored and recorded in your database

Return to “Support”

Who is online

Users browsing this forum: No registered users and 2 guests