|
| 02 May 2014 04:18 PM |
| To scripters near and far: what is the biggest or grandest thing you've ever scripted that you would call "hackish?" |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 04:19 PM |
yo moma
sorry couldn't help it |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 02 May 2014 04:24 PM |
Such a hack that is in all Roblox places thanks to me:
local Create = LoadLibrary('RbxUtility').Create
local intValue = Create'IntValue'{ Name = 'blah'; Parent = Workspace; [Create] = function(this) print(this.Name) --> Value end; [Create.E'Changed'] = function(newValue) print("Value changed -> "..newValue) end; Create'IntValue'{ Name = 'Child'; }; } |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 04:26 PM |
| I don't feel safe anymore. |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 02 May 2014 04:58 PM |
Probably I could say the dirtiest thing I've done, is attempt to keep mouse locked within first person, while having camera attached to helicopeter and still getting mouse movement delta.
It kind of did work, but it was also very derpy and unstable at same time. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 05:02 PM |
Not sure if you would call it hackish, but i pretty much made a custom wait() function via coroutines
sleep = function(time) if not time or time == 0 then local T = tick() coroutine.yield(coroutine.resume(coroutine.create(function() end))) return tick()-T end local t = 0 repeat local T = tick() coroutine.yield(coroutine.resume(coroutine.create(function() end))) t = t + (tick()-T) until t >= time return t end |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 05:09 PM |
Mine's pretty much exactly what zars' is.
-God Bless- |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 02 May 2014 06:00 PM |
@SN0X So you're his grandparent...? |
|
|
| Report Abuse |
|
|
| |
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 02 May 2014 06:21 PM |
| Web crawler in ruby, 90% regexs, ignores robots.txt, and it core dumps around the 100k indexed point. Fun though. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 06:30 PM |
A program in VB that moves your mouse around to random positions really quickly. A program in VB that, when you try to close it, opens 5 more windows. A program in VB that shows a fake "Network Wipe Wizard"
All this in my school comp sci class XD |
|
|
| Report Abuse |
|
|
MrChubbs
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 02 May 2014 06:31 PM |
| Son, visual basic doesn't count for anything. |
|
|
| Report Abuse |
|
|
| |
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 02 May 2014 06:32 PM |
Oh man, regexes. That reminds me of a particularly nasty bit of regex I wrote recently:
pattern:gsub('([%(%)%^%$%%%.%+%-])', '%%%1'):gsub('%*', '[^\n]-')
What exactly it does is left as an exercise to the reader. |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 02 May 2014 06:38 PM |
| @Nikola: You should of made a program that moved a window with the mouse. Mouse moves up, window moves up, mouse moves down, window moves down. Or a program that appears messed up by doing a random event that the buttons label doesn't suggest. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 06:40 PM |
@stravant
Ok, so after deciphering the third section I was able to locate the rat's skull at the base of the hollow tree. However, the Vignere cipher in the subexpression is really catching me up.
WHAT CAN IT BE? |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 02 May 2014 06:47 PM |
It's actually not as ugly as it looks:
:gsub('([%(%)%^%$%%%.%+%-])', '%%%1')
Replaces all pattern matching special characters with the escaped versions of themselves. EG: `^` -> `%^`
:gsub('%*', '[^\n]-')
Replace all `*`s with matches of the fewest number of arbitrary characters to satisfy the match.
It's for implementing a search function on Lua code in which you can input a "wildcard" in the form of `*`, but all other special characters are treated literally, rather than as regex special characters. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 06:51 PM |
@stravant
Don't know if smart and useful or troll-ish.
>____________> |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 02 May 2014 06:54 PM |
@small You asked what is the biggest or grandest thing you've ever made, SN0X (OneTrueGodTheHolyCow) replied with "yo moma". I then went on to ask for confirmation that SN0X was your grandparent. What's hard to understand? |
|
|
| Report Abuse |
|
|
Maroy
|
  |
| Joined: 15 Mar 2009 |
| Total Posts: 59 |
|
|
| 02 May 2014 10:54 PM |
| I'm sure I have some truly despicable Javascript laying around somewhere, but the most recent thing I can think of is the RichTextLabel script I made for Roblox, which involves lots of .TextBounds and .AbsolutePosition properties getting passed around from client to server. So hideous. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 11:22 PM |
I'm pretty sure reading heap metadata to find the next valid allocation is significantly hacky, in both senses. Bonus points for using a known allocation to leak the heap XOR security key. Other then that, I've written some truely hideous regex... |
|
|
| Report Abuse |
|
|
MettaurSp
|
  |
| Joined: 20 Mar 2010 |
| Total Posts: 3179 |
|
|
| 03 May 2014 12:37 AM |
| In a game I am working on, I am unloading the main script's environment into a lot of ModuleScripts in order to break it up and have to change barely anything. Each ModuleScript that does that has ugly methods of doing so. |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 12:41 AM |
| Uh... this? http://www.roblox.com/External-HTTP-Image-Renderer-place?id=112306627 |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 02:18 AM |
"So you're his grandparent...?"
...Urr, maybe... |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 08:58 AM |
| @dennis Isn't that a bit edgy? XD |
|
|
| Report Abuse |
|
|