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: stud

Previous Thread :: Next Thread 
WebGL3D is online. WebGL3D
Joined: 04 Sep 2013
Total Posts: 28311
14 Nov 2013 02:09 AM
So.. I'm working on this library called 'stud'. It's going to help people remove errors, and it's going to have useful functions, methods etc.
Well I just spent the past 3 days collecting information about every instance, method, property, service, and event there is.
Put them all in a giant table, and now I can access information about any item by putting,

local info = stud.lib.Instance:GetClassInfo("basepart") -- Capitalization not required :D
print(info.Description)
print(info.Uncreatable)
> BasePart is an abstract class that part classes inherit from.
> true

Uncreatable is set to true because calling Instance.new("BasePart") would error, as BasePart is not an object class.

for n,o in pairs(info.Properties)do
print(n,o.Type,o.Name)
-- Each property object has much more than this, but this is just an example
end
> A list of properties BasePart has (There's 47 of them), what type the property is, and the name of the property



Thought this might be the right forum to mention this in c:


~ 1Topcop ~ Java3D ~ WebGL3D ~ Hoard3D ~ Thug3D
Report Abuse
WebGL3D is online. WebGL3D
Joined: 04 Sep 2013
Total Posts: 28311
14 Nov 2013 02:12 AM
Yes, stud will be free to the public when complete. ^_^
Now, it's 3:11 AM, and I'm off to bed x:


~ 1Topcop ~ Java3D ~ WebGL3D ~ Hoard3D ~ Thug3D
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
14 Nov 2013 02:13 AM
That seems like too much of effort for something like that. It's faster to open wiki and search of instance.
Report Abuse
NinjaShadow1 is not online. NinjaShadow1
Joined: 03 Mar 2009
Total Posts: 2689
14 Nov 2013 02:35 AM
I could see it being SUPER useful for some building tool with an explorer/properties panel.
Report Abuse
Merely is not online. Merely
Joined: 07 Dec 2010
Total Posts: 17266
14 Nov 2013 03:08 AM
Sounds like your scope is too large. You should focus on one main idea in your library instead of trying to pack in misc. features.

Sidenote: Quenty already created a Roblox API script that has full information on Roblox classes, enums, and properties.

http://www.roblox.com/ROBLOX-API-item?id=106722053
Report Abuse
Charl3s7 is not online. Charl3s7
Joined: 07 Dec 2007
Total Posts: 4146
14 Nov 2013 03:10 AM
Sounds pretty useless. If someone's trying to instance a BasePart, then they shouldn't be making games on here.
Report Abuse
WebGL3D is online. WebGL3D
Joined: 04 Sep 2013
Total Posts: 28311
14 Nov 2013 07:02 AM
@Merely didn't realize Quenty had made one already s:
Mine's a bit different though, mine includes descriptions of each object, examples on how to use them (only on a few, but I plan on a lot more in the future, for now it's just the basics, :FindFirstChild, :GetChildren, etc).

Maybe I will make the instance list separate though, and still keep one in stud?

@charl explain this useless below plz
local g = stud.lib.Gui
local Frame = script.Parent
g.TweenRGB(g.rgb(255,0,0),g.rgb(0,255,0),5,function(color)
Frame.BackgroundColor3 = color
end)
-- over the course of 5 seconds, 'color' transitions from red (255,0,0), to green (0,255,0)



~ 1Topcop ~ Java3D ~ WebGL3D ~ Hoard3D ~ Thug3D
Report Abuse
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
14 Nov 2013 07:05 AM
You're making a dictionary?

EOS db 0x00 ;End of String Marker
Report Abuse
WebGL3D is online. WebGL3D
Joined: 04 Sep 2013
Total Posts: 28311
14 Nov 2013 07:39 AM
^ That's one word for it I guess


~ 1Topcop ~ Java3D ~ WebGL3D ~ Hoard3D ~ Thug3D
Report Abuse
AndroidKitKat is not online. AndroidKitKat
Joined: 21 Sep 2013
Total Posts: 1525
14 Nov 2013 07:58 AM
Dictionary != Library.

EOS db 0x00 ;End of String Marker
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
14 Nov 2013 08:08 AM
Has anyone ever thought of modding everything to your needs w/ metatables? Like adding events & properties to objects. ;P
Report Abuse
RyanDolan123 is not online. RyanDolan123
Joined: 05 Mar 2009
Total Posts: 17919
14 Nov 2013 08:32 AM
Wow. This is actually exactly what I need.


Ok you see I have this ROBLOX plugin called RoFinder which is used by thousands of people already (it hit 3333 takes yesterday, but more people most likely use it than people that have taken it)

Basically, it is able to search through your place, and display everything that matches it.
And, you can search for objects to insert (without any restrictions like with the Basic Objects search)
And, you can type in math equations and it can solve it.
And, you can insert assets based on their asset id.
It also has its own plugin API for other scripters to use.

I, for a while after I released it, have had an idea to incorporate a sort of convenient wiki you can look up things in, like objects, properties, events, etc.

This would be pretty helpful to make that actually happen.
I would just need to come up with a system to build up the Gui based "pages" for each object, and plug the data for everything into them.
Report Abuse
RyanDolan123 is not online. RyanDolan123
Joined: 05 Mar 2009
Total Posts: 17919
14 Nov 2013 08:37 AM
Also, a little fun fact, RoFinder has (almost) every single instance name indexed, including pretty much all the base classes and services, along with typical things you would find in every game.

I've mainly done this to be able to get the icons of pretty much any instance ever, but it includes a bunch of base classes too.
It also knows which objects can or cannot be inserted, because it would be silly for the Insert Objects feature of RoFinder to attempt to insert something like a CoreScript or something else.


If you'd like a big list of pretty much every instance ever, I can get you one.
Report Abuse
RyanDolan123 is not online. RyanDolan123
Joined: 05 Mar 2009
Total Posts: 17919
14 Nov 2013 08:47 AM
Just insert this into a blank place:
http://www.roblox.com/RoFinder-Source-Code-item?id=132903627

(Or use the RoFinder Developer tools located here: http://www.roblox.com/RoFinder-Developer-Tools-item?id=134634995 to easily fetch it with a click of a button)

There are 2 tables, one indexes insertable objects, the other indexes non-insertable objects.
Each object should say:
OBJECTNAME = p[a number]

The p[a number] is the image RoFinder uses to display the results for that object type
You can remove them for what you're doing, because what you really need is the instance types


I might be missing a few, but it's got a ton of instances that you could research and put into the stud libraries.



Or you could try an API dump.
Report Abuse
WebGL3D is online. WebGL3D
Joined: 04 Sep 2013
Total Posts: 28311
14 Nov 2013 08:57 AM
@little I did c:
If you noticed I put "Capitalization not required :D"
That includes the path to get to it, so you can put like

stud.lIB.iNsTaNcE:gEtClaSsInFo("baSePart")
and it would work just the same

You can also put tostring(stud.lib.instance) and it prints "Instance" instead of table: randomCode


@Ryan
"I might be missing a few, but it's got a ton of instances that you could research and put into the stud libraries."
stud has EVERY method, property, event, enum, and instance name :P



~ 1Topcop ~ Java3D ~ WebGL3D ~ Hoard3D ~ Thug3D
Report Abuse
RyanDolan123 is not online. RyanDolan123
Joined: 05 Mar 2009
Total Posts: 17919
14 Nov 2013 09:02 AM
Or even better, create a script that parses the API dump and returns the data of all the instances, functions, events, and properties there are.
Report Abuse
RyanDolan123 is not online. RyanDolan123
Joined: 05 Mar 2009
Total Posts: 17919
14 Nov 2013 09:04 AM
Really? Wow! Nice.

If I could have stud that would be really really helpful.
Report Abuse
WebGL3D is online. WebGL3D
Joined: 04 Sep 2013
Total Posts: 28311
14 Nov 2013 09:08 AM
did u evn read my post?
> Yes stud will be free when complete


~ 1Topcop ~ Java3D ~ WebGL3D ~ Hoard3D ~ Thug3D
Report Abuse
RyanDolan123 is not online. RyanDolan123
Joined: 05 Mar 2009
Total Posts: 17919
14 Nov 2013 09:13 AM
"stud has EVERY method, property, event, enum, and instance name :P"

"it will be free when complete"

huh

if you have every method property event enum and instance, what else is there to even add?
Report Abuse
WebGL3D is online. WebGL3D
Joined: 04 Sep 2013
Total Posts: 28311
14 Nov 2013 09:16 AM
I repeat "do u evn read my post?"
stud is going to be a library of functions, services, properties, and more. And that instance list is one of them.
I am however right now, taking the instance list out of stud (not removing it, but copying it), and formatting it so people can use it without importing all of stud.


~ 1Topcop ~ Java3D ~ WebGL3D ~ Hoard3D ~ Thug3D
Report Abuse
WebGL3D is online. WebGL3D
Joined: 04 Sep 2013
Total Posts: 28311
14 Nov 2013 10:20 AM
http://www.roblox.com/InstanceTable-item?id=135427799


~ 1Topcop ~ Java3D ~ WebGL3D ~ Hoard3D ~ Thug3D
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
14 Nov 2013 12:57 PM
"You can also put tostring(stud.lib.instance) and it prints "Instance" instead of table: randomCode"

I fail to see how this is worthy of mentioning?

Cool idea though overall; but I see little use unfortunately; particularly so if Quenty has already made your main selling point useless and most Scripters would choose not to use a code library and make their own. Libraries on Roblox are almost obsolete since it's pretty much as simple as you can get without sacrificing the dynamics already.
Report Abuse
RyanDolan123 is not online. RyanDolan123
Joined: 05 Mar 2009
Total Posts: 17919
14 Nov 2013 02:27 PM
Typo on line 2143. It should be Derived, not Dervied.

Besides that, it looks nice.
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
14 Nov 2013 02:32 PM
[ Content Deleted ]
Report Abuse
Charl3s7 is not online. Charl3s7
Joined: 07 Dec 2007
Total Posts: 4146
14 Nov 2013 02:36 PM
"@charl explain this useless below plz
local g = stud.lib.Gui
local Frame = script.Parent
g.TweenRGB(g.rgb(255,0,0),g.rgb(0,255,0),5,function(color)
Frame.BackgroundColor3 = color
end)
-- over the course of 5 seconds, 'color' transitions from red (255,0,0), to green (0,255,0)"

It's some incredibly sloppy code to do something that would otherwise take only a couple more lines to get the same output that would be cleaner.
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