generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Decal asset ID to texture ID

Previous Thread :: Next Thread 
NVI is not online. 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 is not online. NVI
Joined: 11 Jan 2009
Total Posts: 4744
04 Jul 2013 07:03 PM
Apparently it's -1...?
Report Abuse
StealthKing95 is online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
04 Jul 2013 07:03 PM
url = 2323223

function getidfromurl(url)
return url - 1
end

print(getidfromurl(url))
Report Abuse
777MrEpic is not online. 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 is not online. 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 is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
04 Jul 2013 07:26 PM
Use the thumbnail image link?
Report Abuse
woot3 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image