Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 04 Jul 2015 10:58 AM |
| somebody please explain to me why everybody has been making these 'wrappers' and why and what are they |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2015 11:02 AM |
Wrappers 'wrap' an or every object.
By 'wrap' I mean, the object that is getting 'wrapped' still has all its functionality, but with the benefits of custom methods/properties.
So, one use is to wrap, let's say a Model, and add the method, DestroyAllChildren, which would be used instead of ClearAllChildren.
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
|
| Report Abuse |
|
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
| |
|
|
| 04 Jul 2015 12:38 PM |
Wrappers can also remove properties or methods.
-Ticker of da Tocks | SFBC |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 04 Jul 2015 12:53 PM |
| Wrappers are wonderful constructions that sit ontop of an object in order to 'modify' its behaviour by proxying requests and messing with stuff behind the scenes. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 04 Jul 2015 12:58 PM |
| Wrappers are not worth your time. End of story. |
|
|
| Report Abuse |
|
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 04 Jul 2015 04:31 PM |
'cause using regular functions and the already super high level API provided to you by ROBLOX is WAY too mainstream
|
|
|
| Report Abuse |
|
|
|
| 04 Jul 2015 04:35 PM |
"'cause using regular functions and the already super high level API provided to you by ROBLOX is WAY too mainstream" Actually, it's because the super high level API provided by roblox allows for kicking of players and other possibly malicious actions. Wrappers make it so you can block those malicious actions, effectively creating your own sandbox for use in a script builder.
-Ticker of da Tocks | SFBC |
|
|
| Report Abuse |
|
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 04 Jul 2015 04:36 PM |
| 'cause having a script builder where people can just join in and script like they should be able to without learning entire new ways of doing things is WAYYYY too mainstream. |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2015 04:42 PM |
"'cause having a script builder where people can just join in and script like they should be able to without learning entire new ways of doing things is WAYYYY too mainstream." Actually, it's because some players who are more advanced can simply ban all other players and hog the server. So you would want to sandbox functions like :Kick()
-Ticker of da Tocks | SFBC |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2015 04:43 PM |
gg
i dont find any good usa for wrappers but i want to know how to write one |
|
|
| Report Abuse |
|
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 04 Jul 2015 04:45 PM |
"more advanced" lol, usually it's the n00biest of the n00bs who do that
and nvm I got confused with people writing their own custom behaviors and such but you could also sandbox and it'd be called a wrapper |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 04 Jul 2015 04:45 PM |
"Wrappers are not worth your time. End of story."
JQuery. |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2015 04:47 PM |
Unless, of course, you want to make a script builder or need custom methods. Only nobs think a wrapper isn't worth your time. It may not be right now, but it will be.
-Ticker of da Tocks | SFBC |
|
|
| Report Abuse |
|
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 04 Jul 2015 10:19 PM |
| But if you write one for a script builder, it should be seamless!! And if you want "custom methods" just don't and use functions like you normally would instead |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2015 10:21 PM |
Not sure what you mean by seamless, but lookit oxcool's SB. he uses custom methods to quite a good result.
-Ticker of da Tocks | SFBC |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 04 Jul 2015 10:21 PM |
Script building places are a waste of time. End of story.
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 04 Jul 2015 10:22 PM |
@Time
Not everyone cares about how you view things
Keep salt to yourself ty |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 04 Jul 2015 10:23 PM |
I like to voice my opinion regardless of what people think. I don't give a sht. Lol
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
| |
|
Tynezz
|
  |
| Joined: 28 Apr 2014 |
| Total Posts: 4945 |
|
|
| 04 Jul 2015 11:11 PM |
Wrappers are basically useless.
Fun to use though |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 05 Jul 2015 04:03 AM |
Wrappers are basically useless to these people because they haven't found use for their application yet*
- Sandboxing - Obfusication - Ease of use - Scripting |
|
|
| Report Abuse |
|
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 05 Jul 2015 06:09 AM |
- Sandboxing Valid
- Obfusication You can find a sufficient Lua obfuscator on the net very easily...
- Ease of use What are you gonna make easier? As I said the ROBLOX API is already super high level. If they can't use that, they probably can't use the wrapper.
- Scripting What....what do you even mean? |
|
|
| Report Abuse |
|
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 05 Jul 2015 06:10 AM |
| So are lots of people making script builders or did all the skids learn of metatables now? |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 05 Jul 2015 06:18 AM |
Actually I asked the Scripters forum to all make wrappers, because I decided that the logic behind making a wrapper functional and seamless is very interesting, because a lot of people think they've got a solution when they really really don't.
Obfusication is because you can hide what you're doing to the level of methods. Ease of use is because it can just be loaded into the environment, and then it hides all of the behind-the-scenes stuff seamlessly. Scripting, because that's what Lua does anyway - It's a layer of abstraction ontop of C, where the wrappers are a layer of abstraction ontop of Lua. Not quite the same, but still valid as a point in my mind. |
|
|
| Report Abuse |
|
|