Sign In Register

How can we help you today?

Start a new topic
Answered

Multiple profiles per player

Dear Gamesparks-Team, I am currently evaluating which mBaaS to use. Currently, I am focusing on GameSparks, App42 and PlayFab. My issue is, that for our game a user/player will be able to create multiple profiles. For each profile I want to store the information that is provided by GameSparks out of the box - currencies, achievements, virtual goods etc. and use the respective functionality. Unfortunately, only Playfab supports multiple profiles (called Characters at Playfab) per player. My current workaround for GameSparks would be to create a player that owns other playsers (the profiles) and store the ownership-relation in a collection called "Profiles". Upon launching the game, the owner would log in and could see all its profiles and when selecting a profile, the respective profile would be authenticated and logged in. Unfortunately, with this approach I would be using many more MAUs than necessary. Imagine I have 5k MAUs with 2 profiles each, I would end up with 3*5k = 15k MAU already exceeding the free limit. Is there any suggestion how to implement multiple profiles per player and keeping all the functionality from GameSparks for the profiles without breaching the MAUs? You can also move this thread to the "Feature Request" section if you feel it fits better there. Best regards, Heiko

Best Answer

 Hey Heiko,

It is possible for you to build this kind of framework yourself, as our customers have, in the past implemented systems with a single player account having multiple characters. However, it will always need to be tied to a single player account and would need some modification of the out-of-the-box features to work.
But it is possible, yes.

Sean


2 people have this question

I just realized that the free limit for the Indie plan is 100k MAU and not 10k MAU. However, the question still arises (just presume I did the calculation with 50k MAU with 2 profiles each).

Hey did you find out more about this? Did you implement your multiple profiles under one user?

Answer

 Hey Heiko,

It is possible for you to build this kind of framework yourself, as our customers have, in the past implemented systems with a single player account having multiple characters. However, it will always need to be tied to a single player account and would need some modification of the out-of-the-box features to work.
But it is possible, yes.

Sean

Hello, Did someone managed to make it work or would share how to do it? Thanks!

Nevermind. I found it.

What did you do?
I use now a "Player" for each of my Profiles and link the Account (also a "Player") with its Profiles

Yeah this is what I do.

I have a collection for the characters that only contains the Player Id and the character name.

Each document contains the ID and the character name.


I then always add in my other collections both values (Name and ID).

And,I search my info by using these two values (Name and ID).


There are no other ways to do that right now I think.

It's a shame they don't have this feature yet still. But it seems that the custom workaround would block the ability to use their other systems because of things like buying virtual goods. They'd just be assigned to the single player account, rather than being able to assign them to the specific profile, right?

Hi Guys,


If you plan on using multiple characters by give them a specific ID value in a document in a collection then what you could do is store the current active characters ID in the players scriptData. Then when something needs to change in the character inventory, the current id can be retrieved from scriptData and the correct character document can be updated. You would just need an event to set the scriptData value when a player decides what character to play with.


Regards,

Liam

Liam,


What do you suggest is that you would only need to pass that info once, when the player selects his character. Then after that we would need to refer to the scriptData from the cloud code?

Is that right?

Liam,


your solution is 100% custom code though right? It means none of the GameSparks features can be used. Like currency and virtual goods, etc..

@Gareth:

you can, if each of the Characters / Profiles is a GameSparks "Player".

You can use its ID to use the GameSparks features. (or you just authenticate with your character in your game).

These answers are too vague. How do we give one user two profiles? That's why these question rounds go on so long.

each profile is a user (player).

you link multiple profiles (users/players) to one "main" user / player (that you have assigned to be the "account")

Login to post a comment