English Extended Wrapper icon

5 comments
15.04.19 06:24:26 pm
like 1 likes it!
9 kb, 572 Downloads
Cebra
User
Offline Off
This is an updated version of the LUA-Wrapper.

Added functions >


The ZIP-Archive contains 3 files:
wrapperExt.lua: Contains only the new functions.
wrapper.lua: Merged out of the original wrapper.lua and the wrapperExt.lua
CS2DWrapper.lua: llike wrapper.lua, but cs2d is used as namespace for the functions [user Avos' idea]



updates here
edited 12×, last 22.05.19 09:00:13 pm
ok This file has been reviewed and approved by DC (17.04.19 08:23:54 pm)

Comments

5 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
22.04.19 02:05:21 am
Up
Cebra
User
Offline Off
@user Avo: thanks for the suggestion, i added a file with the namespace
18.04.19 11:14:58 pm
like I like it!
Up
Avo
User
Offline Off
It is a good file. It would be even better if all functions were in one namespace, so they can be called like
cs2d.banname(...)
17.04.19 08:29:30 pm
Up
Cebra
User
Offline Off
@user Mami Tomoe: thanks for reporting the error i've fixed it

I had created the file at some point and thought, like you, that someone might find it useful and can save time.
In addition, I think if there is already a wrapper file, it should be complete
17.04.19 08:26:24 pm
Up
DC
Admin
Offline Off
@user Mami Tomoe: If it's useful for others it's a good file.

Also a wrapper makes sense because it's less error prone than calling parse directly. Also many people still don't seem to understand how string concatenation in Lua works and do entirely wrong or useless stuff like
'something'..''
. This nonsense could be reduced with wrappers.

The overhead is absolutely negligible.
17.04.19 07:53:25 pm
Up
Mami Tomoe
User
Offline Off
Now here's a good question: This file took about 10 minutes to create thus is not a good file, but it is a file that someone might find useful...

What conquers what, usability or time of creation?

Also one of your functions is named bot_freez instead of bot_freeze.

FILE: I'd personally stick to parse, uses less memory (no extra function, just a line) and is mostly fail-proof.
To the start Previous 1 Next To the start