|
| 27 Jan 2016 07:58 PM |
Because I'm going to make a function to turn instances into string and strings into instances
https://www.youtube.com/watch?v=cWP_HSS6Ckw |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:00 PM |
| And now I'm starting over because I decided if I'm going to go through all this trouble I need to also make tables of their functions and events |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:01 PM |
http://wiki.roblox.com/index.php?title=API:Class_reference/Dump
I wanted to use that to do what you're doing but I haven't had the time.
I also have some old explorer gui script I stole with something like that(It's like 2011 old and I don't think I have it anymore) |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:04 PM |
Aha! I found it. There's 15,000 lines of property data(lol)
Here's the first few lines:
lib.Classes = { ShirtGraphic = { Inherits = "CharacterAppearance", Events = { }, ClassName = "ShirtGraphic", Callbacks = { }, Properties = { { Name = "Graphic", Type = "Content" } }, Methods = { } }, BevelMesh = { Inherits = "DataModelMesh", deprecated = true, Events = { }, ClassName = "BevelMesh", Callbacks = { }, Properties = { }, notbrowsable = true, Methods = { } }, |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:05 PM |
| That seems like it would be helpful to this project but, maybe I'm looking at it wrong, it doesn't contain all the properties of things |
|
|
| Report Abuse |
|
|
rvox
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 5380 |
|
|
| 27 Jan 2016 08:07 PM |
| It contains all the properties that were not inherited |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:12 PM |
I just realized instead of manually pasting things into the script I could have the http service get it for me
I'm gonna revise what I'm doing, keeping the dump link in mind I really appreciate you guys trying to save me some time, I'll see what I can come up with |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 27 Jan 2016 08:12 PM |
| Just parse through it. I already have a script that does all of this |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:12 PM |
It contains all the properties that were not inherited[2]
It would save time and energy to just give it all the properties inherited afterwards(thus, Object oriented languages)
My goal was to more or less parse the API dump(to a json or something, perhaps on my site)
Since it's the primary API of roblox(and by roblox), updates will be applied instantly to any API change. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:15 PM |
print(game.HttpService:getAsync("http://wiki.roblox.com/index.php?title=API:Class/BindableEvent", false))
How do I proxy the wiki .-. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:17 PM |
I must be missing something, according to the way I'm reading the dump parts only have 1 property
Class Part : FormFactorPart Property PartType Part.Shape |
|
|
| Report Abuse |
|
|
rvox
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 5380 |
|
|
| 27 Jan 2016 08:19 PM |
| It inherits from FormFactorPart, so you can then add all of the properties of FormFactorPart. FormFactorPart also inherits (I think) from, and you get all the stuff from that, etc. |
|
|
| Report Abuse |
|
|
rvox
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 5380 |
|
|
| 27 Jan 2016 08:19 PM |
| there's supposed to be a BasePart in there |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:20 PM |
No no, you parse this: http://wiki.roblox.com/index.php?title=API:Class_reference/Dump [unless there's a more raw version]
It contains every bit of information needed: class, inheritance and for properties: Prop type, val type, corresponding class.key [additional information[
it's quite amazing really... |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:22 PM |
Class Part : FormFactorPart inherits basepart which has:
Class BasePart : PVInstance [notbrowsable] Property bool BasePart.Anchored Property float BasePart.BackParamA Property float BasePart.BackParamB Property SurfaceType BasePart.BackSurface ... |
|
|
| Report Abuse |
|
|
Aethex
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
|
| 27 Jan 2016 08:22 PM |
@MakerModelLua there's the ?action=raw more raw version: http://wiki.roblox.com/index.php/API:Class_reference/Dump/raw?action=raw |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:24 PM |
Or you could parse the reflection meta data XML(this would be easier in another language, any .NET and php will work)
http://wiki.roblox.com/index.php?title=API:Class_reference/ReflectionMetadata |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:24 PM |
http://wiki.roblox.com/index.php/API:Class_reference/Dump/raw?action=raw
yes that would be ideal. Then you can skip the html parsing. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:26 PM |
I still need a proxy though print(game.HttpService:GetAsync("http://wiki.roblox.com/index.php/API:Class_reference/Dump/raw?action=raw"))
Trust check failed, The operation completed successfully. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:32 PM |
I figured out how the dump works, thanks everyone I still need the proxy to make it auto update though |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2016 08:35 PM |
classy-studios dot com/APIs/Proxy.php?Subdomain=wiki&Dir=index.php/API:Class_reference/Dump/raw?action=raw
pls no spam :) |
|
|
| Report Abuse |
|
|