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
 

Re: Method: Best way to manage property information?

Previous Thread :: Next Thread 
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
19 Aug 2015 01:37 AM
If I wanted to make a table that contained all the properties of most Roblox object types, what would be the best way to go about doing it?

Example:

_t = {["Part"]={["Name"]="String",["Parent"]="UserData",["Position"]="Vector3"}}

I'd imagine there would be an easier way to index certain properties, like having "Name" apply to ALL valid objects without the need to index it individually.

Anyone have any ideas?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
19 Aug 2015 01:38 AM
Just make an API dump parser, it's what I did and I use it when I need a table of all the properties (in your case, extend it so each property contains the type if returns/takse)
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
19 Aug 2015 01:40 AM
I feel like that involves hosting a web server and using HTTPService.

Neither of which are my forte, therefore I don't want to do it that way. Any way to do it with an actual table? I don't care if I have to physically index it myself.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
19 Aug 2015 01:42 AM
You don't need to do any of those, just copy and paste it as a long string into your script
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
19 Aug 2015 01:45 AM
How do I do that?

I mean getting the data, not copying/pasting >.>
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
19 Aug 2015 01:46 AM
http://wiki.roblox.com/index.php?title=API:Class_reference/Dump
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
19 Aug 2015 01:51 AM
Um...That's a Bastille-wall of text right there. I don't always use string patterns, but when I do, it's not that intensive.

Things just got 10x more complicated. I'd probably finish manually indexing every finite detail of every single object sooner than I'd get the patterning and parsing right for that API :(
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
19 Aug 2015 01:52 AM
I made a pretty bad one but it still works, you can take it if you want (in my models).

Although you have to edit it so it includes the type it returns/takes
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
19 Aug 2015 01:59 AM
Oh ok. Thanks. I'll see if I can play with it until I get those properties.
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