• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by AndreaMar · Jan 20 at 12:30 PM · leaderboardintegrationserviceleaderboardsbackend

A backend service for my double-valued leaderboard?

Hello devs.


I'm trying to set up an online leaderboard for my game. For each completed level I want to update the player's score with two variables: Cookies and Time. I want a leaderboard system ordered by Time but filtered by Cookies.


I've been trying LootLocker and PlayFab, but unsuccessfully. Both of them allow one single value for each leaderboard entry. So they ask me to make two different leaderboards, retrieve both lists when needed and then sort them on my own as needed.
Unfortunately, I can't follow this path, because I currently have 40 levels and I'm planning to create more of them. So I'd have to manually create 4 leaderboards (4 Time leaderboard for each possible Cookies value, which goes from 0 to 3) for each one of the 40 levels, which would mean to manually create 160 leaderboards.
Also, my leaderboard is permanent, it's supposed to never reset, so if it'll ever get to host thousands of player it'd be impossible to sort and filter them all locally by retrieving data via web request.


I need a backend service that allows me to create leaderboards with multiple variables, or some other way to do this (I don't have servers nor the coding skills to manage one). Any experience?


PS: My game is going to be available for different platforms, mainly mobile. So I need a single custom system. I don't want to use Google Play Services or Game Center.

Comment
andrew-lukasik
Bunny83

People who like this

2 Show 0
10 |3000 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

Answer by Captain_Pineapple · Jan 20 at 02:32 PM

my personal favorite here would be to just rent some minimal webspace with space for a few sql tables. Any insert/overwrite operation is not really complicated. On Top you can then query for data exactly as you'd like it and subdivide your leaderboards in any style you'd like. Mostly this will also be the cheaper variant as you'll have to put in a bit work by yourself.

Comment
Bunny83
AndreaMar

People who like this

2 Show 2 · Share
10 |3000 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 Bunny83 · Jan 20 at 03:12 PM 2
Share

Same. A simple webspace with PHP support and a mysql / mariaDB server would do it. Though be careful with their terms of services. Some hosters do not allow pure backend usage (they expect you to host "websites", however they define that). Also some have an automatic proxy in front that injects anti bot javascript stuff into the response that you can't deactivate. Other than that it's quite trivial.

avatar image AndreaMar · Jan 21 at 09:57 AM 0
Share

My last resort... I've never done that before. I want also to authenticate players with their Facebook or Google account. Keep track of their progress, collectables, etc... I see there are many third party services that have all these things built-in. It would take me too much time.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

153 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Lootlocker Live Leaderboard not working 2 Answers

Google play services leaderboards 1 Answer

Could a mobile app have a service application compiled targetting a higher version of .net? 0 Answers

GameCenter Integration in Unity 1 Answer

Wrong values for ILeaderboard.maxRange 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges