AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 17 Feb 2016 10:00 PM |
Ok so I want to put a character headshot into my game. It USED to be as easy as just using this cookie cutter link and inserting a user ID here:
http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=ROBLOX <---
But, that's for a full body shot image. So I do some research and after about an hour I discover Web APIS found here:
Wasn't so sure how to use the headshot table json thing, but figured it out... and turns out it's stupid.
You take a link like this, put your user ID in it like I have done: http://www.roblox.com/headshot-thumbnail/json?userId=4144654&width=180&height=180
And then it returns a URL, which if you copy and paste it into your browser, you get the headshot. COOL, but when I put it into a decal or something in ROBLOX... NOPE.
Am I just using this wrong or did they "accidentally" forget to test this?
|
|
|
| Report Abuse |
|
|
|
| 17 Feb 2016 10:11 PM |
| Put the body shot into a image label and you can scale the image to 'zoom' in on the head. |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 17 Feb 2016 10:27 PM |
There's a big problem with that. Try it yourself and fit it into a gui while stacking it to other character images that happen to be either directly below or beside each other.
Does not work.
I did some more research and someone said it was depreciated... already? Either that or broken...
Which brings me to the point...... WHY? HA, but why bother asking when none of us know the answer and where a ROBLOX moderator would be very unlikely to respond to this post to explain either...
|
|
|
| Report Abuse |
|
|
XThane
|
  |
| Joined: 08 Apr 2009 |
| Total Posts: 2702 |
|
|
| 17 Feb 2016 10:30 PM |
Put the image into a frame, make the frame have ClipsDescendants on, then zoom in on the head. That should work.
~ Who's awesome, you're awesome ~ |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2016 10:38 PM |
| http://forum.roblox.com/Forum/ShowPost.aspx?PostID=183810629 |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2016 11:48 PM |
| @128 You can't load images straight from the databases into a game :\ |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2016 11:54 PM |
| Yeah you can the link the person posted works. |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2016 11:59 PM |
| You can load the image on your browser but not in game. |
|
|
| Report Abuse |
|
|
|
| 18 Feb 2016 12:00 AM |
| Not true, I tested it in studio. It worked. |
|
|
| Report Abuse |
|
|
|
| 18 Feb 2016 12:02 AM |
Really! which links are you trying? None of these links work http://www.roblox.com/headshot-thumbnail/json?userId=1&width=180&height=180
http://t2.rbxcdn.com/86737c5002424ffdfd16f91b1869ae90
|
|
|
| Report Abuse |
|
|
|
| 18 Feb 2016 12:05 AM |
The second one should work. I tested it when the guy posted it. I'm on my phone right now. |
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 20 Feb 2016 03:27 PM |
Yea I have no clue how you got that to work, I've tried both the .json link that gives you the working image, and the link that holds the .json.
Doesn't work, but I want to see or know what you did to get it to work.
|
|
|
| Report Abuse |
|
|
AxFx
|
  |
| Joined: 14 Aug 2009 |
| Total Posts: 518 |
|
|
| 20 Feb 2016 03:32 PM |
@XThane I like that idea, will be a great work around. But why would ROBLOX show on their Web APIs that it's possible for you to just grab the headshot images, but not actually let you do it...
|
|
|
| Report Abuse |
|
|