I am working on a game using Google Play Services real-time multiplayer. Everything is working fine however the participants always have generic names. I need to show their names but instead of showing usernames it shows some generic player_[somenumber].
I am using test accounts, both test accounts have given public access to the app. Their display names show perfectly on their own mobiles but it doesn't show on the other player's mobile.
The API reference says
If the identity of the player is unknown, this will be a generic handle to describe the player.
I want to know, what are the cases when the identity of the player is unknowing while the game is being played.
Thanks.
In automach game also person in my circle have obfuscated id.
The identity of a person is unknown to a user when they are not in the user's circles. In such cases you will get a generic handle and no profile picture.
Related
I am working on an android game(which is created using Unity3d engine) and I was trying to use google game service features when I stumbled upon a question implementing leaderboards.
Is there any way to sort player scores based on their location?
I want players to know their rank in their country, continent, etc. Something like google's time based leaderboards(daily, weekly and monthly)
Do I have to implement this feature myself? If so leave your thoughts and ideas.
Creating your own leaderboard means you have to write a Server (i.e. a HTTP Server) that can store the players, the scores and the locations (preferably in a database).
Getting the location of your users depends on the final build (browser, app, windows exe, etc.)
i am developing a game in android i want to implement multilayer concept using Google play
game services
i wanted to know that how i get profile information of participant i mean name and profile
picture of player when user connected to game in android
and second question is
when i play game using random play it give the player5068 joined but i want exact name of
the
player how it possible please help me
thanks in advance
First of all you need to think what type of multiplayer game are you going to implement with gpgs. Either it will be a real time multiplayer or turn based multiplayer.
In real time multiplayer you have to implement real time event listener class abstract methods. from there you can get list of participants that have joined ur room. from the participant object you can get its name , id , picture url and other properties.
Secondly you have asked about random players name , you can get it by fetching participants list in room .
I'm currently showing a leaderboard in my game using Google Play Games. Now I want to add an "Invite" button in order to engage more users to the game, the idea is when you press the button, show a popup with all the friends in your circles, select one or more and then send the invites.
I've looked through the API but can't find anything. Weird thing is that this feature appears in the landing page of Google Play Services (https://developers.google.com/games/services/):
Help players ask friends to take specific action in a game, like "challenge", "attack", or "accept gift".
So maybe I'm missing something. Is this possible to do? How?
The invitations that you mention are for multiplayer games only.
Whats the point of inviting to another person to a leaderboard?
Maybe what you want instead is to post the fact that you have unlocked an achievement, let's say on google+, for that I will sugest the following aproach:
https://developers.google.com/+/mobile/android/share/
Also, hold for the 4.1, I believe P2P wont be the only way to do multiplayer games and other stuff may be added too.
im trying to develop a multiplayer game using google play game service.
In my game i have some game logic that will run only one players set ,which i prefr to call host.
i would like to determine the host by player who created the room.
but i see room creator id can be different in different players set on a single game,and each returns as creator in auto match game.
so what should be the ideal way to find a host ,apart from sorting the player list and use the first participant as host ?
Google provided a video specifically on Google Play Games: Choosing a specific user which explains how to work around agreeing and assigning a specific user a special roll. In summary: sort the participantIds and have the first by sorted order randomly choose the host and broadcast that to the other players. This ensures that all users agree on the host and the host is randomly chosen each time.
I am implementing a pure Holo Soundcloud app and I would like to avoid having to authenticate the users as soon as they open the app the first time.
This kind of connection wall puts off a lot of users that simply close the app and never open it again.
Since I need an authenticated user to interact with the Soundcloud API, can I create a 'dummy' account used by all my users until they authenticate ?
This account would be able to consult the list of hot songs and use the player, but unable to share sounds, like a track or do anything else that suppose a real user account (and be presented with the connection screen instead).
Is it something possible with the Soundcloud API or will I encounter a limit (for example on the number of people that can use the account at the same time) ?
You don't need to be authenticated to access much of the API. Only the actions you'd expect, actually: things like getting the current user, their current tracks, editing, favoriting, uploading etc. Getting hot tracks, playing tracks, finding all the tracks and playlists of a user, etc, don't need any authentication.