I want to know if they’re on PC, phone, tablet, or console.
If there isn’t you could always set up a remote event
Unfortunately, no. You can figure out on the client based on if it is a 10 foot interface or has a touch screen, but that info never reaches the server. Although I can’t find a video of the presentation, you can view the slides from RDC to get a bit of an idea why.
Why do you want to know what type of device a player is on? Depending on your use case there are different solutions. For example, if you are trying to check if the player has a gamepad, checking if they are on an Xbox One is not a good solution because PC players can also be using gamepads.
Why is it called TenFootInterface though?
Dev Stats requires to know what type of device the player is on.
I understand this argument; however, Developer Stats for analytics shows us there could be reasons to want to know what type of device the player is on. MrHistory may be onto something by wanting to add his own analytics that the Developer Stats lack. Perhaps it would be beneficial to all to know what those things are, and maybe it could be added to the pipeline?
Because players typically sit further away (i.e. ten feet) from the screen when playing console. (https://en.wikipedia.org/wiki/10-foot_user_interface)
Ooohhh that makes a lot of sense, thanks.
Makes sense why we don’t have a form factor API. I don’t see why we can’t have a device string (i.e. “windows”, “xbox one”, “ipad 2”) though.
We don’t want Developers special casing devices by exposing an API that allows Developers to see what device they are on. If there is something you want in Developer Stats, please post it in Feature Requests or here so that I can make note of it when Developer Stats gets overhauled.
It’s so you can’t make you game really fully compatibility with every device you have to guess that it will work on every device and work on the 4 stats of Tablet, Phone, Computer or Console. The main worry is that you’ll give a person playing on a computer a really powerful weapon and punish people playing on a console because there’s a few developers here that would abuse a feature like that. It can be already done to some extent because I’ve been to 1 game where;
TouchEnabled == true then GuiText = "Sorry you can't play on mobile because you suck" player:kick()
It’s a shame such paranoia and strict privacy exists because it really cripples developers ability to make the game compatible for every device that supports ROBLOX. It’s a shame ROBLOX can’t follow in any other game engines footstep and allow access to more specific device information like every game in steam collects basic information from you like RAM, CPU, GPU and OS but nothing more and nothing that can say “hey this user is Bobby from France” developers on steam use this information to make sure they can isolate issues for certain machines and configurations and help resolve issues in the game.
Then ROBLOX starts to filter your game from devices and you the developer try frantically to find out why but you can’t. Maybe iPad 2 crashes but not iPad 3? How could you tell, easy with one stat “Tablet” now go off and find out why it’s crashing. Eventually you give up and destroy mobile support completely to make it less of a headache and frustration to a problem with no solution.
You are correct that is a major concern. We really want to follow the vision of “Create once and play anywhere.” As we take a look at Analytics this year we truly believe that there is a lot missing and we are more than happy to take Feature Requests.
I was recently talking about the possibility of supplying such information to developers and believe it is something that we will do in the future. We also understand that being filtered on Mobile devices may not be ideal for everyone but we have already taken steps in order to expose this to developers. There is a lot that can be improved upon in this case.
We know. We are listening.
I want to be able to use player device types in my own analytics, which is a valid use-case. Maybe if the player’s device type was only exposed on the server, then it would be much less likely for people to special-case their user-facing client code
I don’t see how special casing would hurt anyone but the developer. In order for it to hurt the Roblox playerbase as a whole, a large portion of the developer community would have to agree to do something bad to a particular device, which would never happen.
They have an Enum for it, but they don’t have a way for us to get the platform. http://wiki.roblox.com/index.php?title=API:Enum/Platform Roblox has a function that lets you get the platform, but it’s Roblox security locked, so you can only access it from CoreScripts.