NVI
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 4744 |
|
|
| 04 Jul 2013 07:02 PM |
Is there any easy way to convert these? If not, this could be a big problem for me. I want people to be able to take the ID from the URLs of decals and paste them into a textbox so I can show the decal in-game. The IDs seem to differ (thanks Obama) and I get "unknown format" errors.
Maybe an API somewhere? |
|
|
| Report Abuse |
|
|
NVI
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 4744 |
|
| |
|
|
| 04 Jul 2013 07:03 PM |
url = 2323223
function getidfromurl(url) return url - 1 end
print(getidfromurl(url)) |
|
|
| Report Abuse |
|
|
777MrEpic
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 3998 |
|
|
| 04 Jul 2013 07:04 PM |
actually I made a Numbervalue for my game that it bring the value then it -1's it then there. |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
|
| 04 Jul 2013 07:11 PM |
Its actually decal asset ID to image asset ID.
And subtracting the ID by 1 is not always the case.
For example: http://www.roblox.com/Home-item?id=89660689
You need to minus that ID by 2 to actually get the image. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 04 Jul 2013 07:26 PM |
| Use the thumbnail image link? |
|
|
| Report Abuse |
|
|
woot3
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 3599 |
|
|
| 05 Jul 2013 06:05 AM |
>Use the thumbnail image link?
That, it means you don't need a conversion. |
|
|
| Report Abuse |
|
|
itunes89
|
  |
| Joined: 19 Jan 2011 |
| Total Posts: 1957 |
|
|
| 05 Jul 2013 08:06 AM |
| The problem is it's not always -1.. I've had times where I had to subtract 5 from it.. |
|
|
| Report Abuse |
|
|