Search found 209 matches

by ButterflySoul
2003-05-13 18:32
Forum: Protocol Alley
Topic: Distributed DC network
Replies: 72
Views: 33073

Each slave must effectively handle 1,000 users Ah yes, indeed. Make that 62k users instead of 250k. Even so, I think that's still a lot of work for CPUs running the dc clients. I'm not sure how many fellow users a DC++ client can manage on an average CPU (and I know it depends a lot on the size of ...
by ButterflySoul
2003-05-13 02:08
Forum: Hubs and scripts
Topic: Damned NMDC hub !!!!
Replies: 3
Views: 2006

In fact I added the IPs of the users wich have more than 20 hubs opened, and perhaps at one time if he quits quickly the hub it could put this blank line. Since this morning I've deleted this function and now it works well If you add the user's IP to a variable a the begining of your $MyInfo analys...
by ButterflySoul
2003-05-13 01:34
Forum: Hubs and scripts
Topic: Bot needed: To redirect double connects with same ip
Replies: 1
Views: 1267

It's a very bad idea to check only if they have the same IP. I would suggest that you compare at least their share size, too. Some users have the same IP as other users if they're behind the same proxy/router/firewall/etc... That doesn't mean they're the same person as the other user, and definitely...
by ButterflySoul
2003-05-12 16:25
Forum: Protocol Alley
Topic: Distributed DC network
Replies: 72
Views: 33073

This problem is not applicable to the idea with master and slave hubs as far as I understand it. Well, I didn't think it would end up "competing" alongside the other ideas already presented in the thread, but since there are a few posts about it, I thought it might do some good to elaborate a bit. ...
by ButterflySoul
2003-05-11 18:20
Forum: Hubs and scripts
Topic: Damned NMDC hub !!!!
Replies: 3
Views: 2006

It's not a problem with the nmdc hub, it's probably your script. If you try to reset or edit (or simply view) it from the hub script editor, you will truncate the file at 64K, so even if it's coded well, trying to restart it from the hub might cause unexpected results here and there. If the problem ...
by ButterflySoul
2003-05-10 23:02
Forum: Hubs and scripts
Topic: My users get disconnected
Replies: 7
Views: 3281

If I understood it properly, you have a switch handling your LAN traffic, and the switch's uplink goes into your router, which in turn goes into your (cable/dsl/whichever connection you use). If your router has several plugs and you can add extra connections on it, the next thing I'd try would be to...
by ButterflySoul
2003-05-10 22:31
Forum: Hubs and scripts
Topic: Scripts - IPLIST and ANTI MLDONKEY
Replies: 8
Views: 3906

errr.. It's not a standalone script, but a sub to plug to your main script. You probably already have a script handling bans commands, user info, etc, so it would be a terrible waste to have one script scan all incoming data for all your other commands, while a second script scan all incoming data j...
by ButterflySoul
2003-05-10 14:41
Forum: Hubs and scripts
Topic: Script/Bot Help
Replies: 1
Views: 1355

how do I do this? Pretty simple. You lookie at the top of the "hubs and scripts" forum, and you'll see a post that says "Hub Script site list". Amazingly enough, there's plenty of script websites listed in that post. Just visit a few of them, browse around, and pick a script (or more) that you like...
by ButterflySoul
2003-05-09 07:06
Forum: Hubs and scripts
Topic: Scripts - IPLIST and ANTI MLDONKEY
Replies: 8
Views: 3906

Something like that ? : Sub IPList(objOP) Dim objUser, sMsg, x sMsg = colUsers.Count() &" users connected :" &vbCrLf For Each objUser in colUsers x = x+1 sMsg = sMsg &x &") " &objUser.sName &" / IP : " &objUser.IP() &vbCrLf If x Mod 75 = 0 Then frmHub.DoEventsForMe Next objOP.PrivateMessage "IPListe...
by ButterflySoul
2003-05-09 05:04
Forum: Hubs and scripts
Topic: My users get disconnected
Replies: 7
Views: 3281

That's a really weird one. I don't recall anyone who had that problem yet, so I can't magically pull out a solution for you based on what worked the last time; but here are the steps to narrow down the problem a bit. 1) Make sure you have the NeoModus client installed on the computer running the hub...
by ButterflySoul
2003-05-08 01:32
Forum: Hubs and scripts
Topic: NMDC source code
Replies: 5
Views: 2844

At best, what you can get in nice proper english with a decompiler is the name of the forms used and the properties of all the controls. you can't magically generate a "source code" that you can open, read and modify in a VB Editor (at least not to my knowledge). You can also get a lot of other info...
by ButterflySoul
2003-05-07 23:12
Forum: Hubs and scripts
Topic: How do i start a hub for a band?
Replies: 5
Views: 2769

I signed up and i downloaded their software that is kinda useless right now. i recieved my password through e-mail and i am now logged in. i look at their offers and discover that i couldn't find any that were free. I'm also not sure what i'm doing right now. I'm not sure either, but the page descr...
by ButterflySoul
2003-05-07 05:22
Forum: Hubs and scripts
Topic: An idea for hub security against bots
Replies: 1
Views: 1341

The only problem with gateway / portal hubs is that many clients don't automatically follow redirects; so the whole process can't be automated. There are already many portal hubs running. Usualy a few OPs check your share, your client, then create you an account on the main hub and give you the righ...
by ButterflySoul
2003-05-07 03:02
Forum: Hubs and scripts
Topic: How do i start a hub for a band?
Replies: 5
Views: 2769

How do i have or start my own address or website thing that people would type at hub address to connect. Do i have to pay for anything or are there any free sites to have a server thing or whatever? That's a DNS service. You'll find some for free (http://www.no-ip.com/ for example). For some reason...
by ButterflySoul
2003-05-06 02:16
Forum: Hubs and scripts
Topic: How do i start a hub for a band?
Replies: 5
Views: 2769

If you're completely lost and don't know where to start to setup a hub, I would recommend those 2 threads. http://dcplusplus.sourceforge.net/forum/viewtopic.php?t=1098 http://dcplusplus.sourceforge.net/forum/viewtopic.php?t=1611 If after reading these you have more specific questions, there's plenty...
by ButterflySoul
2003-05-06 02:02
Forum: Hubs and scripts
Topic: How to create HUB on a webserver?
Replies: 10
Views: 4968

Can you please help me with / give me the code that genereates the Keu from the ?$Lock ? There's a very nice explanation at the bottom of this webpage (the Appendix A): http://www.lwave.ca/shasta/protocol.html ----- I saw a php script that allows to host a IRC server on a normal webserver that supp...
by ButterflySoul
2003-05-04 23:48
Forum: Hubs and scripts
Topic: Hub on 2 ports
Replies: 6
Views: 3406

I have question. Can i may run hub on two ports (example on 411 and 666) and whats range ports i can use for this ? If you meant a backup port (like "use 666 if 411 is busy"), yes you can do it in some hub softwares, however not in the standard neomodus hub software. If you meant run one hub on two...
by ButterflySoul
2003-05-03 04:28
Forum: Hubs and scripts
Topic: Slow script - database connections
Replies: 2
Views: 1710

Ok, I never had any problems with my own DB (once the code was working, that is), but then again, I never had over 100 users, except for a stress of a few minutes =p The fact that you end up 'taking too long to execute" might be due to an endless loop, which are very easy to get into when piloting a...
by ButterflySoul
2003-05-01 09:13
Forum: Protocol Alley
Topic: Distributed DC network
Replies: 72
Views: 33073

there's no real reason to demand that a hub can only connect to other hubs. It'd be better to say that the hub should give priority to other hubs, if that's what's wanted, but to make the "only other hubs" rule is to slightly cripple the network. If I remember properly, the few approaches of distri...
by ButterflySoul
2003-05-01 08:45
Forum: Protocol Alley
Topic: Distributed DC network
Replies: 72
Views: 33073

Re-read first lines of the very first post of the thread, all the way at the top : Background: we are running a semi-closed HUB network, with 900+ users on the biggest hubs. We can't let in more users, we have tried Hacked NMDC HUBs, PtokaX and now a Linux HUB SW. It seems, that the network utilizat...
by ButterflySoul
2003-05-01 07:00
Forum: Protocol Alley
Topic: Distributed DC network
Replies: 72
Views: 33073

have you tried ptokax hub software supports alot more users whit less resources Ok, that Ptokax thing is really getting on my nerves. Just for your info, there's several other hubs than Ptokax that support alot more users with less ressouces. There's even 3 of them that unlike P. support vbs script...
by ButterflySoul
2003-04-30 03:40
Forum: Protocol Alley
Topic: DC Protocol Guide (Complete)
Replies: 14
Views: 8628

Very nice doc =) A few comments for the "$MyInfo" section, in "client to server" : I'm not sure if it's permitted for a client to send this again if the information changes. Yes, it's permited. Actually, they're even expected to =) Clients might also resend their $MyInfo on a regular basis, even if ...
by ButterflySoul
2003-04-28 03:26
Forum: Hubs and scripts
Topic: Nick ban not workin'
Replies: 3
Views: 2024

Well, the idea of nick bans is precisely to avoid having to ban a whole provider to get rid of someone... or you soon end up with most common providers banned, and barely anyone in your hub... As for fixing the name ban... maybe you should start telling us which script you're using to nameban them, ...
by ButterflySoul
2003-04-25 23:59
Forum: Hubs and scripts
Topic: Problem with a script I tried to write.
Replies: 3
Views: 1962

Essentially, visual basix scripts, visual basic (and the visual languages as a whole if I'm not mistaken) work based on events, instead of a linear execution. For example, someone clicking on a button is an event, and has some code linked to it, and the code won't execute unless the event happens =)...
by ButterflySoul
2003-04-25 00:43
Forum: Hubs and scripts
Topic: Between2First Function
Replies: 25
Views: 9010

ok, I didn't have a text version of the bible, so I did with the Egytian Book of the Dead, saved to a nice txt file of 241KB. It's not as long as the bible, but it make a reasonably long string nonetheless I also checked, re-checked, double checked and triple checked (and re-rechecked once more to r...
by ButterflySoul
2003-04-24 14:25
Forum: Hubs and scripts
Topic: Between2First Function
Replies: 25
Views: 9010

You have a good test there really ONLY if the runtime growth of the algorithims are equal. Actually, they are not. My algo has a fixed cost which is diming a variable, then a proportional growth depending on the string lenght. The other algo (which is essentially a combination of 2 other algos) has...
by ButterflySoul
2003-04-24 11:29
Forum: Hubs and scripts
Topic: Between2First Function
Replies: 25
Views: 9010

This is a wrong way to analyse a algorithm (in windows and other multi processes OS's) I absolutely agree with you, it is a wrong way, this is why I ran the test several times for each function before posting =) The 3 last decimals were different on each test, but both results stayed proportional o...
by ButterflySoul
2003-04-23 17:45
Forum: Hubs and scripts
Topic: Between2First Function
Replies: 25
Views: 9010

I've run a test on the bytes version, in VB. Here are the results for 1 000 000 loops : BigString = BeforeFirst(AfterFirst("chocochocolatpistachevanilleframboise", "chocolat"), "vanille") took 5.4922 seconds to assign BigString = Between2First("chocochocolatpistachevanilleframboise", "chocolat", "va...
by ButterflySoul
2003-04-23 17:02
Forum: Hubs and scripts
Topic: running a hub on a web server
Replies: 13
Views: 4732

Oh, you can do that too...
Since all your original links were about servers hosted in a facility, I thought you wanted to follow that path; in which case, they'll want you to have a rack server... But any rack server will run fine from home as well, of course =)
by ButterflySoul
2003-04-23 16:43
Forum: Hubs and scripts
Topic: running a hub on a web server
Replies: 13
Views: 4732

At $50 for a complete server, the price is definitely great; but it's a 4U. Racks come in different sizes : 1U, 2U, 3U, 4U, 5U, and 7U. Essentially, a 2U is twice the height of a 1U, etc etc. I'm sure you'll understand the hosting company will charge you more to rent 1 connection and 4 racks as what...
by ButterflySoul
2003-04-23 15:42
Forum: Hubs and scripts
Topic: running a hub on a web server
Replies: 13
Views: 4732

I would suggest starting here to make your original price list and have a good idea of the what makes the price difference between the racks. The page above is just to give a price idea on a fair range of servers and prices. I'm not trying to advertise for them or anything. Then of course, look arou...
by ButterflySoul
2003-04-23 15:15
Forum: Hubs and scripts
Topic: running a hub on a web server
Replies: 13
Views: 4732

Actually, if you're looking to run your hub on a dedicated server hosted somewhere in a facility, I would suggest you give an eye to small cheapie racks first. A DC hub is not very straining compared to huge website of large corporations, so even something cheap (relatively speaking) might do. It's ...
by ButterflySoul
2003-04-22 15:55
Forum: Hubs and scripts
Topic: Next generation of VB hub scripting
Replies: 58
Views: 18516

The Settings (clsSettings) section of Tasman's file has a few objects missing because I'm still playing with them, but you probably saw them in the GUI screenshots : DCMaxHubs As Byte DCOSlots As Byte MinSlots As Byte DCValidateTags As Boolean DCIncludeOPed As Boolean KickMLDC As Boolean OPBypass As...
by ButterflySoul
2003-04-22 13:56
Forum: Hubs and scripts
Topic: Next generation of VB hub scripting
Replies: 58
Views: 18516

i see youve add kick donkey users u must of heard about the cliernt detection modded dc++ Actually, it's not based on a Lock/Key client detection (might be added later though). At this point, it's just a hub built-in version of the check I use in Zeus for quite some time now. You'll find several va...
by ButterflySoul
2003-04-20 22:00
Forum: Hubs and scripts
Topic: Auto-reconnect not working now
Replies: 10
Views: 4063

(the <Hub-Security> Your ASS is banned (or something) message usually is sent immediately instead of $Lock) Actually, the original NMDC send a very nice and polite "Your IP is banned". The version you mentioned is a popular message resulting from the combined use of hubmods and subtle neo-american ...
by ButterflySoul
2003-04-20 08:35
Forum: Hubs and scripts
Topic: Auto-reconnect not working now
Replies: 10
Views: 4063

Ok, according to my personal experience, the "disconected" message means that you were disconected by the hub and that it wasn't a "network accident" (i.e. you have been disconected by an OP, the hub stoped running, the host crashed, etc). "Connection reset by server" on the other hand usualy happen...
by ButterflySoul
2003-04-19 13:10
Forum: Hubs and scripts
Topic: Auto-reconnect not working now
Replies: 10
Views: 4063

You didn't mention it in your post, so just in case : the common thing people forget when installing a new hub from scratch and running DC++ as their client is that the hub needs some of the libraries installed by the NeoModus client =) So even if never plan on using it or even launching it (the cli...
by ButterflySoul
2003-04-19 09:52
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

Awww.. You were not wrong, your way is working fine as well =) It's just that back when Zeus was just 10 lines long, I had written a bunch of different scripts to test the whole "variable declaration inside an If statement" thing in VBS, and after all the optimisations you taught me, I had an oportu...
by ButterflySoul
2003-04-19 09:25
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

After the If statement, the values of any variables declared within are erased
Then you wouldn't get a PM from debug telling you :
<Debug> y is equal to : 1

But instead you'd get
<Debug> y is equal to : (0/Null/Blank String/whatever)
by ButterflySoul
2003-04-19 09:13
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

Are you talking about this one? Yes, that post =) If you don't declare your variables, the first time you use it, it get declared, right? Yes and no : - By default, yes, it gets declared. It's called implicit declaration. - Under an "Option Explicit" statement, no, it doesn't get declared. It gener...
by ButterflySoul
2003-04-19 08:30
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

Hmmmmm are you sure about it always being dimmed? The variable can't be accessed outside the if statement, and I would think that the VBScript interprets line by line sort of thing (so it wouldn't reach the Dim statement if the If was false) Well, look back at my first runtime test (maybe you misse...
by ButterflySoul
2003-04-19 06:46
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

*off to replace all his Chr() with strings then* =p ----- And, yes, you can reuse them in two different subs, of course =p My point was just that Dim x If <condition> Then Dim y <do stuff> End If is absolutely the same as Dim x, y If <condition> Then <do stuff> End If Wether the condition is true or...
by ButterflySoul
2003-04-18 23:12
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

If you prefer a real runtime error rather than some message from the syntax checker (or whatever it's called) you can use : Option Explicit Sub DataArival(curUser, sCurData) On Error Resume Next Dim x x = 1 If x = 1 Then y = 1 End If ColUsers.ItemByName("TasMan").PrivateMessage "Debug", "y is equal ...
by ButterflySoul
2003-04-18 22:33
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

I just realised that you placed the Dim after the If; instead of its usual position at the begining of the sub : Sub DataArival(curUser, sCurData) If LeftB(sCurData, 8) = "$MyI" Then Dim aInfo (...) so my comment about aInfo being dimed each time the sub is triggered was maybe not obvious. Try this ...
by ButterflySoul
2003-04-18 21:48
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

Yes, they do =/ Btw, in your fix, you replaced the Chr(36) in the Split by a "$" Coming from you, it caught my attention =p Is it faster to use strings even when they consist of a single character ? I used the Chr function a lot in Zeus precisely because I assumed Chr was faster in that specific cas...
by ButterflySoul
2003-04-18 21:21
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

While a MyInfo string doesn't come too often, DataArival is triggered a lot, so it's usualy a bad idea to Dim stuff (explicitely or implicitely) in DataArival (which is why I had declared it globaly, which is still better than diming and killing it each time a command arrives to the hub). If you wan...
by ButterflySoul
2003-04-18 21:05
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

Of course, once again, it should LeftB(sCurData, 8) *grumbles* *wishes for an "edit post" button somewhere on these forums* *flails*
by ButterflySoul
2003-04-18 21:03
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

Open script collection (any registered SF user can submit scripts) Since you like Byte functions, I'm sure you'll love this very optimized version of your "Anti-MLDonkey" script : Dim aInfo Sub DataArival(curUser, sCurData) If RightB(sCurData, 8) = "$MyI" Then aInfo = Split(MidB(sCurData, 25),Chr(3...
by ButterflySoul
2003-04-18 20:22
Forum: Hubs and scripts
Topic: Script Request: Log UserName, IP Address and ShareSize
Replies: 35
Views: 10321

Yes, indeed, should have been LeftB *blush* I still get confuzled with where the left and the right are sometimes, eventhough it's usualy when I give directions; not so often in scripting =p