What is possible with Lua Scripts?

Know of something that might be useful to the DC community? Post it here! (Still, no advertising)

Moderator: Moderators

Locked
YeCkeL
Posts: 4
Joined: 2004-08-16 11:25
Location: Kansas City, Mo
Contact:

What is possible with Lua Scripts?

Post by YeCkeL » 2004-08-18 20:12

I have run in to some what of a problem The hub i would like to use BCDC++ clames that the client is bad for lua scripting among a few other reasons i personly have no problem with the features that were hacked in but why is this lua scripting frowned appawn and what is the extent of its possiblies of causing annoicances or harm to a hub/client?

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Re: What is possible with Lua Scripts?

Post by Sedulus » 2004-08-18 20:47

YeCkeL wrote:I have run in to some what of a problem The hub i would like to use BCDC++ clames that the client is bad for lua scripting among a few other reasons i personly have no problem with the features that were hacked in but why is this lua scripting frowned appawn and what is the extent of its possiblies of causing annoicances or harm to a hub/client?
the most common grievances about BCDC++:
- bandwidth limiting
- tag faking
why lua scripting might be viewed as bad:
- you can easily spam people with your own custom messages (i.e. Lua is simpler than C++), and/or try other not-so-liked-functions/commands
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

YeCkeL
Posts: 4
Joined: 2004-08-16 11:25
Location: Kansas City, Mo
Contact:

Post by YeCkeL » 2004-08-18 21:40

I see the bandwidth limiting as the good thing and the tag emulation as the way to get away with it :) Now the lua scripting when you say not so liked fuctions commands are there no limites set by bcdc and if you lower the upload below 5KiB/s you get caped at 10KiB/s so i say that is fine if you are cable and want to act liks isdn hehe

PseudonympH
Forum Moderator
Posts: 366
Joined: 2004-03-06 02:46

Post by PseudonympH » 2004-08-18 22:45

I think my touch.lua script is a pretty good example of how lua scripts can be annoying (although funny). People who hang out in DCDev a lot will know what I mean. :)

ivulfusbar
Posts: 506
Joined: 2003-01-03 07:33

Post by ivulfusbar » 2004-08-19 05:53

why?
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

Gasman1015
Posts: 184
Joined: 2003-05-26 11:29
Location: UK

Post by Gasman1015 » 2004-08-19 13:08

[11:53] <PseudonympH> Because you touch yourself at night.
Always remember you're unique, just like everyone else.

YeCkeL
Posts: 4
Joined: 2004-08-16 11:25
Location: Kansas City, Mo
Contact:

Post by YeCkeL » 2004-08-19 22:52

So what only annoying messages or whispers are the threat. So is it just over hyped how terrible they are?

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-08-20 12:04

I hadn't heard anyone claiming that Lua support in BCDC was another bad feature of it. I know a few other mods specifically incorporate BCDC because of this scripting support.

YeCkeL
Posts: 4
Joined: 2004-08-16 11:25
Location: Kansas City, Mo
Contact:

Post by YeCkeL » 2004-08-20 21:15

Here is what the client approver for the hub said he would like a method like this one

Code: Select all

2. Secured Script Executors
---------------------------

To secure and manage *who* can actually load and execute scripts, BDC use a proprietary protocol extension: $SecuredExecutor.
First, BDC sends a "SecuredExecutor" flag in the $Support command (if the Hub supports the extended protocol), so that hub developpers could support that feature in their Hub's GUI. For exemple, theiy could add a list of granted executors with their rights.
Then, the hub *MUST* send the extended command $SecuredExecutor <rights> to, and ONLY to, the granted executors. The <right> value is a bitflag of what actions are allowed to the user's scripts:
Bit 0 (1) - Can send messages on Central Chat.
Bit 1 (2) - Can send private messages.
Bit 2 (4) - Can send raw commands to the hub.
A value of 0 is permitted and could be used for BOTs that don't need to interact.
Can scripts be executed by any one ? or jsut the client it self

ivulfusbar
Posts: 506
Joined: 2003-01-03 07:33

Post by ivulfusbar » 2004-08-24 05:12

I would love to talk to the admin who wrote the above. ;))
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

PseudonympH
Forum Moderator
Posts: 366
Joined: 2004-03-06 02:46

Post by PseudonympH » 2004-08-24 08:52

"Talk" as in "beat repeatedly with a cluestick"?

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-08-24 11:05

What else do you expect from BlackDC, which is the single-hub DC client with built in CDM that will automatically disconnect users with "bad" clients?

Seriously, please go to a different hub where the operators don't feel the need to control your choice of client. Abusive/annoying Lua scripts can be written in BCDC, but operators can kick for bad behavior, instead of just having the capability to display bad behavior.

cologic
Programmer
Posts: 337
Joined: 2003-01-06 13:32
Contact:

Post by cologic » 2004-08-24 17:53

2. Secured Script Executors
This is insanity.

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2004-08-24 20:11

"Secured" is an incredibly bad name for it anyhow. "Approved" would be better.

Well, in this situation, we really can blame France.

Locked