Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 26 Jan 2013 07:02 PM |
What this plugin does is allow you to generate scripts to recreate an instance and its descendants. Simply select an instance in Explorer and click the "Serialize" button, and a script will be created which recreates the selected instance and its descendants.
Here is the source: http://t.co/YIhjgHZD
I have been working on it for quite a while so I would appreciate some feedback, positive or negative.
Notes: - it does not serialize properties like Script.Source because Scripts cannot set that property - it only serializes classes which can be instantiated with Instance.new - the generated script errors if there are more than 200 instances being serialized. This is easy to fix |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 07:03 PM |
| What could we use this for? |
|
|
| Report Abuse |
|
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 26 Jan 2013 07:06 PM |
| I put it in my plugins folder and it will not run. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 26 Jan 2013 07:07 PM |
It is mainly useful when * you don't want to have an object in the object hierarchy but you want to be able to create it anytime * you are dealing with GUIs and don't want to have to do a bunch of WaitForChild hacks |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 26 Jan 2013 07:08 PM |
@Garnished
You must put it inside a folder which is inside the roblox plugins folder. |
|
|
| Report Abuse |
|
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
| |
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 26 Jan 2013 07:10 PM |
"it will not run"
Explain. You mean it errors? You mean the button doesn't show up under your plugins toolbar? |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 07:11 PM |
I made the same thing last week. Took me like 20 minutes.
-- I am on a seafood diet. I see food, and I eat it. |
|
|
| Report Abuse |
|
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 26 Jan 2013 07:14 PM |
| It doesn't change it and it just errors on the output. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 26 Jan 2013 07:17 PM |
@IAm
Your solution doesn't look very robust.
@Garnished
Well, what does the error message say? |
|
|
| Report Abuse |
|
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 26 Jan 2013 07:21 PM |
| Studio doesn't allow copy and paste on mac |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 26 Jan 2013 07:23 PM |
| Use your memory or write the error message down on paper, and then type it up. |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 07:23 PM |
So I could use this to "compress" my Admin GUI into a single script? Just to construct it, I mean.
<< AʙsᴏʟᴜᴛᴇLOL - Fᴏʀsᴀᴋᴇɴ Pʀɪᴍᴇ Gᴇɴᴇʀᴀʟ >> |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 26 Jan 2013 07:25 PM |
| Yes. At this point I would suggest checking the generated code to make sure it's correct though. |
|
|
| Report Abuse |
|
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 26 Jan 2013 07:25 PM |
| Error: cannot find plugins folder |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 26 Jan 2013 07:27 PM |
| Go to Tools > Open Plugins Folder to make sure the plugin is in that folder. |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 07:36 PM |
Code written manually usually looks much better and is much more readable than code automatically generated.
I also find it easier to create GUIs in code than to create them with the studio. |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 07:40 PM |
| I might one of these a while back. Not too hard to do. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 26 Jan 2013 07:41 PM |
> Code written manually usually looks much better and is much more readable than code automatically generated.
Have you even tried my plugin? |
|
|
| Report Abuse |
|
|
| |
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 26 Jan 2013 07:50 PM |
@kirky
I used your plugin on ROBLOX's bus and here is the output:
Bus = Instance.new("Script") Bus.Name = "Bus" Bus.Parent = game.Workspace |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jan 2013 07:53 PM |
| Actually nevermind, type() can only identify certain things. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 26 Jan 2013 07:53 PM |
| I did use the type function. What makes you think I didn't? |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 07:55 PM |
| Sorry I just looked through the code and found it. lol. |
|
|
| Report Abuse |
|
|