Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Zachary Harland · Jan 19, 2021 at 01:37 AM · Player Datadata

I have an existing Java backend with user data stored in MYSQL, want to move that data to PlayFab.

Hi there,

I help manage & run a rather small game. We have maybe 200 users at most.

We've been running SmartFoxServer 2X as our backend & using MYSQL to store player data.

We don't want to use the multiplayer section of PlayFab, as we still want to use SmartFox as the realtime communicator. However, we do want to run PlayFab alongside SmartFox to utilize it's play storage, currency, catalog, etc. types of features.

From what I'm to understand, we need to migrate our player data to PlayFab, we're not looking to retain values besides their username, email, password, and currency count.

But the documentation has my head spinning a bit, and perhaps one of you could point me in the right direction? Like I said we're SmartFox as the backend right now, which uses Java. There are servlets we can use to POST & GET, but a part from that, I'm not really sure where to start in regards to getting our data over to PlayFab. Also, player passwords are stored in BCrypt so we'll need to retain that encryption. Not sure if PlayFab is capable of that.

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Rick Chen · Jan 20, 2021 at 02:04 AM

Currently, importing users data directly from MySQL to PlayFab is not supported. I would recommend that implementing PlayFab in parallel to your existing backend services, so that you can create player accounts in PlayFab service as players sign in. However, the PlayFab does not support authentication with BCrypt, the players may have to pass their password directly into PlayFab. For game currency, you can upload JSON to PlayFab in [Your GameManager]->[Economy]->[Currency]. You can also upload your catalogs in [Your GameManager]->[Economy]->[Catalogs]. For players’ currency, you can grant the players with currency in PlayFab using AddUserVirtualCurrency API.

Comment
Zachary Harland

People who like this

1 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Zachary Harland · Jan 20, 2021 at 03:43 PM 0
Share

Thank you, this helped point me in the right direction, we've updated the flow of the login to retain our BCrypt security in our initial backend while still being able to login and register PlayFab accounts separately.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Player data limit 1 Answer

    Custom data from the catalog item is not returned correctly. 1 Answer

    Append to User Data 1 Answer

    Photon Disconnecton & Error Logs 2 Answers

    How do I store arrays in player data? 2 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges