Hub script help

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Locked
burning_sword
Posts: 9
Joined: 2003-11-26 12:41

Hub script help

Post by burning_sword » 2003-11-26 12:53

I'm using the the neomodus hub v.2, and I need help with scripts?

Specifically, I found a script on the board for a mininum share, the script can viewed here http://dcplusplus.sourceforge.net/forum ... 548fe1250d

do I need a special program to input the script?

Also what other types of scripts would you recommend since I fairly new to this stuff?

thanks for any advice that can be provided.

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-11-26 13:05

unless you have a VB compiler, your out of luck with NMDCH2.
NMDCH2 was only accepting plugins the last time i check it.
beside NM web page clearly state that this hub is for programmers.

look the sticky about other hub soft available.
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

burning_sword
Posts: 9
Joined: 2003-11-26 12:41

Post by burning_sword » 2003-11-26 13:37

The v1 of the software didn't work, unless you had an older version of the client. Beside there are some missing components in the hub, I guess that has to do w/ compatibility issue between client and hub. v2 is said to be recommended, for the win2000+XP and I have had success with v2.

I guess I'll check into another hub software, thanks for the help TheNOP.

ButterflySoul
Posts: 210
Joined: 2003-01-23 17:24
Location: Nevada
Contact:

Post by ButterflySoul » 2003-11-26 13:57

The script you saw is a script in VBS (Visual Basic Script). They are commonly used on the "old" neomodus hub (NMDCH), but there are many alternative hub softwares out there that will run VBS scripts as well. For example Ryalth's DC Hub (RDCH), old versions of SBHub (recent versions run with pascal scripting), or Shadows DC Hub (SDCH) support vbs scripting and all 3 run far better than NMDCH.

The "new" neomodus hub (the v2 you mentioned) doesn't run VBS scripts. It runs Visual Basic (VB) plugins. Eventhough, in the end, the speed of a piece of code depends more on the internal logic and structure used inside, and on the creativity of its author; an equivalent piece of code will run slightly faster as a VB plugin than as a script. That's why the author of NMDCH switched to VB plugins for the latest version of his hub software.

do I need a special program to input the script?
For a script, you don't need any special program, aside from the hub software itself, of course. For a plugin, you need a compiler.

Also what other types of scripts would you recommend since I fairly new to this stuff?
First, you should be aware that many (actually most) of the alternate hub sofwares offer the functionality of the specific script you mentioned (checking min share size) already built in the hub.

Second, you should also be aware that there are many alternative hub softwares out there supporting a large number of languages (Vbs, Vb, JScript, C#, Pascal, C++, Perl, Lua, etc) for their scripts and plugins. Eventhough someone with the knowledge of 2 programing languages can "convert" most script from one language to another, you should know that it typically takes a lot of time and efforts to adapt a script from one language to another (not only because of the language itself, but also because different hubs offer different functions to their scripters). So except for an exception here and there, you will generally not be able to run a C++ plugin on a Perl hub, and vice versa. In any case, you won't be able to do so without the help of someone knowing both languages and both hub softwares.

Since Vbs-based hubs have been around for years before any other scripting language became available, it's in that language that you will find the largest collection of scripts. Lua has now been around a for a while as well, and you'll find a fair collection of scripts in that language too. Pascal has some excelent hub softwares out there as well, and it's particularly easy to adapt scripts from Vbs to Pascal, so it's another good choice if you know the language a bit (or know someone who does =).

In the end, which script you should run depends on what you want your hub to look like. If you just want a basic hub that will check for minimum share, enforce a given set of rules, and you would only need scripts to help you automate some of the "police" work in your hub, I'd recommend picking one of the alternative softwares out there with all these things already built-in the hub. That's the most performant way to enforce them, and you won't need to ever worry about scripting at all.
If on the other hand you'd like scripting to help you bring some life to your hub, build a community and turn your hub into something more than just a dull download supermarket, you'll find many scripts to help you there. There are many games (trivia, blackjack and anagrams are popular ones), many utilities (internal "message boards" scripts, internal messaging of all kinds), many specialised scripts (the first that comes to mind there is AngelCore from Paradox, which looks up anime titles from the online database of Anime.nfo and pastes the description and review back into your hub... awesome addition to an anime-specialised hub) or even simple little basic things that make your user's life easier (like an in-hub conversion from uk/us to metric, when people want have everyday life conversations and talk about the weather in celcius, cooking recipes with cups, or just say they're 1m92 and 76kg and have everyone understand).

There's not really anything anyone can recommend to you, since, in the begining it depends on how you want to shape your hub, and in the end, it also depends on what your regular users will want/like/dislike.
I'd still suggest having a look at the sticky on top of these forums entitled "hub script site list" and see what's available for each scripting language.
[CoZ] Children of Zeus
-----
Shadows DC Hub - VBS and JS scripting at their best

ButterflySoul
Posts: 210
Joined: 2003-01-23 17:24
Location: Nevada
Contact:

Post by ButterflySoul » 2003-11-26 14:02

Oh, I almost forgot... If you want a list of which hub software supports which scripting language, go have a look on the very good FAQ from :

http://www.broadbandreports.com/faq/dc?r=683
(The section 7 and 7.1 of it)
[CoZ] Children of Zeus
-----
Shadows DC Hub - VBS and JS scripting at their best

Locked