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 » Scripting Helpers
Home Search
 

Re: How do I retrieve the picture of a hat, gear, etc.?

Previous Thread :: Next Thread 
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
03 Jun 2013 01:55 PM
I want to get the picture from a hat, but I'm not interested in saving the picture then uploading it because this is inefficient. Anyone know how?
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
03 Jun 2013 01:57 PM
I have no clue, but you could always just deal with the 3D model by insertion?
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
03 Jun 2013 02:11 PM
What do you meant the picture? The texture?
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
03 Jun 2013 02:20 PM
No, I said that picture. I was quite clear with giving you an example of the inefficient way I was using before.

If you look at a hat in the catalog you can see the picture of the hat. I want to get that picture, understand?

Nothing to do with meshes or textures.

~ The ATR Fishie ~
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
03 Jun 2013 02:22 PM
I doubt it. Roblox only lets you access the internet resources through their api (such as loadAsset)
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
03 Jun 2013 02:22 PM
You did not have to answer with such rudeness.

I guess you can get it with

game:GetService("MarketplaceService"):GetProductInfo(111111)
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
03 Jun 2013 02:23 PM
^Thats a thing? o:
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
03 Jun 2013 02:24 PM
Yes, it is

http://wiki.roblox.com/index.php/GetProductInfo_(Method)
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
03 Jun 2013 02:25 PM
@get
Thanks I'll look into it

On another note, people feel the need to post on my threads when they have no clue what they are talking about all the time. If they take the time to read what I actually said, they wouldn't say what they say. Yesterday I asked if anyone knew the script that builds terrain for you out of triangles and someone asked me if I meant CFrame.

~ The ATR Fishie ~
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
03 Jun 2013 02:26 PM
-.- "Returns a table"... WHATS IN THE TABLE!?!!
Report Abuse
velibor is not online. velibor
Joined: 24 Nov 2009
Total Posts: 1003
03 Jun 2013 02:27 PM
The data encoded in JSON
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
03 Jun 2013 02:31 PM
@magna

I think the price, description, name, etc... Not sure if it contains the picture. You could go through the table and see what you get.

It might be a JSON table, so

local info = game:GetService("MarketplaceService"):GetProductInfo(111111)
info = assert(LoadLibrary("RbxUtility"):DecodeJSON(info)) -- if it is JSON
for i = 1, #info do
print(info[i])
end

I guess
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
03 Jun 2013 02:34 PM
I saw someone getting the picture of a model. It is in JSON.

~ The ATR Fishie ~
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
03 Jun 2013 02:38 PM
Line two breaks. Assertion failed?

~ The ATR Fishie ~
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
03 Jun 2013 03:06 PM
local info = game:GetService("MarketplaceService"):GetProductInfo(27112438)
for k,v in pairs(info) do
print(tostring(k) .. " : " .. tostring(v))
end


Sadly does not contain the picture ):
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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