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: Roblox Catalog API fetching into places?

Previous Thread :: Next Thread 
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
16 Nov 2012 08:41 AM
Hello ppls.


I'm working on rewamping a GUI I made... years ago, probably.

Now, after seeing the Roblox Website API for the catalog, I'd like to have a way to fetch it into the player's game, just like with Catalog Heaven.

http://wiki.roblox.com/index.php/Website_APIs


I've tried some methods, but because the file is json (I think), and not .lua, then I cannot get fetched that easily.

http://wiki.roblox.com/index.php/Function_Dump/Core_Functions


Do you know how to solve this? I'll need it for: Getting the recently updated hats. Getting the recently uploaded shirts. Getting the recently uploaded pants. (Following urls)

http://www.roblox.com/catalog/json?Subcategory=8&CurrencyType=1&pxMin=0&pxMax=0&SortType=0&SortAggregation=3&SortCurrency=0&IncludeNotForSale=true&Category=3&ResultsPerPage=20

roblox.com/catalog/json?Subcategory=11&CurrencyType=1&pxMin=0&pxMax=0&SortType=0&SortAggregation=3&SortCurrency=0&IncludeNotForSale=true&Category=3&ResultsPerPage=75

roblox.com/catalog/json?Subcategory=12&CurrencyType=1&pxMin=0&pxMax=0&SortType=3&SortAggregation=3&SortCurrency=0&IncludeNotForSale=true&Category=3&ResultsPerPage=75





- Thank you for the help, As.
Report Abuse
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
16 Nov 2012 09:03 AM
Hm...

A shame, I cannot finish stuff without this. Otherwise I could just go get ROBLOX's ... wait, u cannot use InsertService to get the hats of a player >_<... D:
Report Abuse
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
16 Nov 2012 09:59 AM
Absolutely NO answers D:

Don't you know any solutions... or just passing by... ?
Sorri for the somehow-spam.
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
16 Nov 2012 10:34 AM
No you cannot use that. However, try looking into these;
http://wiki.roblox.com/index.php/GetUserCategories_(Method)
http://wiki.roblox.com/index.php/GetFreeModels_(Method)
http://wiki.roblox.com/index.php/GetFreeDecals_(Method)
http://wiki.roblox.com/index.php/GetCollection_(Method)
http://wiki.roblox.com/index.php/GetBaseCategories_(Method)
Report Abuse
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
16 Nov 2012 10:45 AM
hm.

Yeah, I can get ROBLOX's models and decals ect. ... I'm not sure about hats and clothing.

Also, I cannot use GetFree(Models/Decals), as models that's not owned by ROBLOX (or the place creator, nvm with that) cannot be inserted + They may contain unwanted scripts and laggy stuff.


So, I'm just putting in IDs for some existing hats, shirts and pants. Got any?... As I'm not very good at "What's hot".
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
16 Nov 2012 11:14 AM
Did you check out the GetUserCategories? Because that returns the sets - and if you make a new set, where you put the stuff in, you can actually retrieve a good list of items (hats too)
Report Abuse
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
16 Nov 2012 12:07 PM
yeah, Iknow.


But: Because this will end up as a Free Model, then everyone can take it.

One of my previous projects required InsertService, and due to restrictions, I found out that Sets DON'T count in when using ":UserHasBadge()" or whatever you can do to check if someone has a model. (Notice, UserHasBadge can be used for other things than badges, like chothes, hats, models, decals... everything (Also Game Passes I think)!)


So: I can end up with a list of names of models and their IDs, but... then it cannot be inserted to Random-Player's game?
Report Abuse
ExoticEpicNinja is not online. ExoticEpicNinja
Joined: 06 Mar 2012
Total Posts: 4186
16 Nov 2012 12:14 PM
i dunt liek readin paragraphs su lolololol no
Report Abuse
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
16 Nov 2012 12:18 PM
Uhu, what?
Report Abuse
ExoticEpicNinja is not online. ExoticEpicNinja
Joined: 06 Mar 2012
Total Posts: 4186
16 Nov 2012 12:20 PM
loolloololololol cant yu readdd lololololol



~ lol no ~
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
16 Nov 2012 12:26 PM
This API isn't release yet and on the second note, Catalog Heaven does it differently. He runs a program gathering data using a socket. Not hard to do, and you can do it in Lua as well with luasocket and simple string parsing (don't question me, because I've done it)
Report Abuse
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
16 Nov 2012 12:30 PM
Oh. I did unterztoht ur w1erdow-speeek, bawt I cudn't find da meening. *Wierdo-speaking on purpose*.


@Nate,
Ah... but... This isn't something off-site? Or...

As long as you can make it in Roblox Studio, then I'll give it a try.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
16 Nov 2012 03:49 PM
Nope, you cannot... This is why he updates manually.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
16 Nov 2012 03:50 PM
He updates using a bug I think..
Report Abuse
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
16 Nov 2012 04:01 PM
Okidoki.


I've already found alot of hats and shirts. Wait a sec, here's the result ATM (I'll need to find pants, and I didn't want to make a huuuuuuuuuuuuuuuuge list of shirts + pants, so... ID!)


And yeah, thank u all for the help :D So the API can only be used for website-purposes >_> Ok, and stuff like apps ect...


http://roblox.com/ROBLOX-CreateCharacterGui1-preview1-nov2012-item?id=97900658


*quack*

Also, there was a catalog heaven script in the free models catalog. Wierd stuff, I think it missed some other scripts... ofc, it used global variables, and was only 1 script >_>
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
16 Nov 2012 05:06 PM
Seranok just updates a model which he inserts. Not a big deal.
Report Abuse
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
16 Nov 2012 05:12 PM
...

So you say that he has to shutdown all the servers before they'll be updated?

To make things effective, I'd then suggest a script that will go use InsertService to load a catalog every minute (or more), then find a "Version" IntValue or whatever you'd like, checking it for either no version in the old catalog, or version in the old catalog less than just-got-version.


Quite simple, just about 5-10 lines of code.


And yeah... but... It must be boring?
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
16 Nov 2012 06:29 PM
Once you insert an asset, it will not get the newest update of it.
It will just use the one you had earlier.
Report Abuse
As8D is not online. As8D
Joined: 24 Dec 2009
Total Posts: 2907
16 Nov 2012 07:37 PM
Hm. Now,... is there then any way to... "bypass" this? LocalScripts, normal scripts,... I made an InsertService-updater to one of my friends. Seem'd to work, but... we didn't tested if it updated at the moment the model was updated.


*yawn* Gotta go sleep, bye.
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
16 Nov 2012 08:21 PM
You're not going to be able to do it in Roblox. If you're doing something outside of roblox (ie an app), I have source code I'd be willing to share some pieces of.
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
17 Nov 2012 04:35 AM
No...

You can insert the model every minute (for example) and then let a script check if its a new "version" (has changed). If yes, then it executes a code that updates the game. If not, delete the model.
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