Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Registering game account with purchase, cross-platform, friend list, etc.

Discussion in 'Multiplayer' started by martin999b, Apr 2, 2015.

  1. martin999b

    martin999b

    Joined:
    Jul 14, 2013
    Posts:
    16
    Hey guys,

    I'm working on a multiplayer arena game and I'd like to hear some ideas or recommendations about something I plan to implement.

    The networking is done with using the Photon Cloud service, matchmaking is going to be random based on my custom matchmaking logic. To let players play with their friends instead of playing with random people all the time, i'll have to create an account system using SQL database to store the information about players.

    So my questions are:

    1.) What is a good and reliable payment processor which will let me to pass the customers e-mail address and password to my database on purchase, so they can use it as their actual game account to log in to the game?

    2.) As the game is going to be cross-platform, and I target android as well, I think I don't want it to be a paid game there (not sure if this is a good idea). If I make this free on android, what would be the best way to handle this? Only idea that came into my mind is letting the PC version owners to log in to their accounts from android as well, and those who don't own the game couldn't use the friend list function until they register an account on their android devices which would be an IAP. Android users who made a purchase on their phones could also play the PC version with their accounts, and the IAP price would be the same as the PC price. I'm a bit lost, and I might overcomplicate things. How would you go about this?
     
  2. Tiny-Tree

    Tiny-Tree

    Joined:
    Dec 26, 2012
    Posts:
    1,314
    you might want to check Playfab.com as you are using photon they are both working well together, you can have a virtual currency when player buy an IAP from whatever service, then decrease this currency on playfab
     
  3. martin999b

    martin999b

    Joined:
    Jul 14, 2013
    Posts:
    16
    Nice, I didn't know about this service, it will come handy, thanks! I have one question, can I implement something like player account generation when they purchase the actual game on my website? I only plan in app registration for mobile, for PC users I want them to generate their accounts at purchase, so they can log in to the game with those accounts once they download the game. Thanks!

     
  4. Tiny-Tree

    Tiny-Tree

    Joined:
    Dec 26, 2012
    Posts:
    1,314
    you could do that yes, when user launch game for the first time, use playerprefs to check if the string "accountName" exist, if not you generate a random name and register in the background without email, then later when user want to register just edit its account and add details, there is a game that do it on mobile: galaxy on fire Alliances
     
  5. martin999b

    martin999b

    Joined:
    Jul 14, 2013
    Posts:
    16
    This is not exactly what I need. I want the players to make the purchase out of the game (on the website) and then let them download the game and log in with their e-mail and password which they filled in at purchase. Can I pass these information to the Playfab database and use it for logging in in the game?

     
  6. Tiny-Tree

    Tiny-Tree

    Joined:
    Dec 26, 2012
    Posts:
    1,314
    you might see this with the devs of playfab, it would be easy to do a webplayer for purchase stuff, but if its using ony a website i have no idea
     
  7. martin999b

    martin999b

    Joined:
    Jul 14, 2013
    Posts:
    16
    Alright, thanks. I think i'll use playfab for my game but still not sure about how should I sell it. Make it a free but limited game, and unlock features like playing with friends, more gamemodes, etc. for paid users... hopefully it works.

     
  8. Brendan-Vanous

    Brendan-Vanous

    Joined:
    Nov 7, 2014
    Posts:
    73
    For those who are interested, the conversation around this continues in the PlayFab forums, here: https://support.playfab.com/discussions/topics/1000055219.

    @martin999b (and everyone else), based on this thread, I should also point out that we also have the ability to generate keys which can be used for unlocking in-game items, as well as for unlocking the game itself. That latter functionality isn't exposed in our public SDK currently, but was used for Planetary Annihilation. We do have this on our roadmap for refactoring, to make it part of the public set, so if that's something you would need, feel free to reach out to us at devrel@playfab.com to talk about what your key dates are.
     
    martin999b likes this.