aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 23 Sep 2011 03:55 PM |
Anyone wanna do a forum collab of a large library of functions made for all ranges of skill level in Lua?? I'm thinking a lot of debug functions would be nice, an extended math library, extended string library (shortcuts with string patterns??), extended table manipulation such as creating arrays of more than one dimension in one function, etc.
Whatcha guys think??
Discuss.
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
sckum555
|
  |
| Joined: 20 Aug 2008 |
| Total Posts: 6576 |
|
|
| 23 Sep 2011 04:13 PM |
What do you mean "library"?
.:/!#sckum#!\:. |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 23 Sep 2011 04:15 PM |
^
Proof you don't belong here.
| Incase of latepost @sckum555 |
~ Mitch |
|
|
| Report Abuse |
|
|
sckum555
|
  |
| Joined: 20 Aug 2008 |
| Total Posts: 6576 |
|
|
| 23 Sep 2011 04:15 PM |
OOOooookkkkkk but you can have lots of different kinds of libraries........
.:/!#sckum#!\:. |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2011 04:16 PM |
Like
_G.extra = {}
function stinkypie(pwny) pwny:fart() end
table.insert(_G.extra, stinkypie)
That kinda library. Right? |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
|
| 23 Sep 2011 04:17 PM |
@myrco, See thats why I did the Incase of latepost. Yea, it was proof that sckum doesnt belong here.
~ Mitch |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2011 04:17 PM |
| He wasn't saying you don't belong here, myrco, he was pointing at skcum. |
|
|
| Report Abuse |
|
|
sckum555
|
  |
| Joined: 20 Aug 2008 |
| Total Posts: 6576 |
|
|
| 23 Sep 2011 04:18 PM |
Qwerty you don't belong here because you were wondering what he means -randomnumbarz0l0lfdasjk;
.:/!#sckum#!\:. |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 23 Sep 2011 04:25 PM |
You guys in for it?? The debug for lua is disgusting so a debug library would be amazing. Something like pcall (or using pcall) that attempts to fix the error if it finds one, then reruns the function again.
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2011 04:26 PM |
Wow. I would LOVE that. But here's one major problem in that idea: There's no way to search a script for variables.
Unless I'm totally out of it....
|
|
|
| Report Abuse |
|
|
sckum555
|
  |
| Joined: 20 Aug 2008 |
| Total Posts: 6576 |
|
|
| 23 Sep 2011 04:27 PM |
Ooooohhhh! I didn't read the whole post -__-". Debug library, I get it. I just didn't get what you wanted to make? It could fix all the stupid camelCase errors too like "moveTo should be MoveTo".
.:/!#sckum#!\:. |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2011 04:27 PM |
| @aboy: how exactly would you fix the errors? if it were as simple as you might think it is, then it would be far more common in IDEs. i dont know of any that will actually fix errors for you, though an IDE i use does actually point to where it thinks the error is in the output window thingy. |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 23 Sep 2011 04:27 PM |
I'm thinking with the entire Scripters forum we could use some fancy string matching :P And even just fixing syntax would be better than nothing.
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2011 04:27 PM |
"There's no way to search a script for variables."
getfenv()
even though that's getting removed in 5.2 |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
| |
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 23 Sep 2011 04:29 PM |
If then is expected, 'then' is inserted into the function and re-executed. If an end is missing it auto-places one at the end. If the wrong form of = or == was used then it would be fixed.
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
sckum555
|
  |
| Joined: 20 Aug 2008 |
| Total Posts: 6576 |
|
|
| 23 Sep 2011 04:30 PM |
But how could you do that????
.:/!#sckum#!\:. |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2011 04:31 PM |
| Not only that, but Source is locked. How could you search a script without access to Source or some crazyness that would make it easier to manually debug than to try? |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 23 Sep 2011 04:31 PM |
Use the current string library???
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|
aboy5643a
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2785 |
|
|
| 23 Sep 2011 04:32 PM |
@Qwerty
My idea of the debug function is like pcall, taking a function as an argument.
"I like dooly-bops" -- ArceusInator |
|
|
| Report Abuse |
|
|