Mean_Machine - Page 19
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Mean_Machine

Started by Snowman, 12 October, 2003, 11:35:38

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

[G-T-E]Gate?

Thanks Snow,
 Worked llike a charm .
 Looking forward to use more of your work, Keep it up !!

Shame I cant get the Ptokax 0.3.3.0, would love to test it out with your script. And running a 10mb line aswell ..

Keep smiling U'all

MrZ

[G-T-E]Gate? said

"isnt a wise way to find out.. "


I only tried to be nice and helpful, and i HAVE done all the upgrades,,,
Always remember that you are unique... just like everyone else :-D

AMoo-Miki

#452
ver: 2.2.7.3

the file Guarding.p2p has lines such as
Overture Services (formerly Goto.com) OVERTURE-BLK-1:(NET-66-228-160-0-1):66.228.160.0-66.228.191.255


that cause trouble with "blockip" function.
the reason is the extra ":" in the info field of the line.
it causes the var ip11 to be nil and to cut it short, the script doesn't check the IPs that come after it.

a quick patch (my first expirience in LUA) would be to change the 14th line in the function to find the last ":" in the string.

function blockip(curUser)
	local ips =""
	_,_,ip1,ip2,ip3,ip4 = strfind(curUser.sIP,"(%d+).(%d+).(%d+).(%d+)")
	ip1 = tonumber(ip1)
	ip2 = tonumber(ip2)
	ip3 = tonumber(ip3)
	ip4 = tonumber(ip4)
	go = 0
	readfrom("Mean_Machine/Guarding.P2P")
	while 1 do
		local line = read()
		if (line == nil) then
			break
		else
			[COLOR=red]-- temp = strLast(":",line)        This is the line #14 with problem[/COLOR] 
			[COLOR=blue]tmpLine = line
			local tempx = 0
			temp = 0
			while 1 do
				tmpLine = strsub( tmpLine, tempx + 1)
				tempx = strfind( tmpLine, ":")
				if tempx ~= nil then
					temp = temp + tempx
				else
					break
				end
			end[/COLOR] 
....
....
....
....
....


being my first touch in LUA, i hope i havn't written it stupidly.

Miki

Snowman

AMoo-Miki:
Ooohh... Nice one there... Never saw that more than one ":" was used per line.
Thanks a lot for the tip.
This will be corrected in the new version :))


Snowman
\"The day Microsoft makes a product that doesn\'t suck, it will be a vacuumcleaner\"

Mean-Machine Homepage

mau108

about the syntax nil error me and mrZ are having....

i think it has to doo with 0b people and search bots entering the hub....

maybe you can implement a feature to block those kinda people ?

thats my take on this error message, not sure if its correct.

Chris2k

#455
Hey id like to get a copy of the new script but i cant access the website could anyone email me it pls ?

Chris

edit: email  ashn12@dsl.pipex.com

thanks

Boss

If you make a mistake and want too remove a timeban ?

!unban nick/ip cant do it   ....so what do I do to remove a timebannede nick / ip ??

Percyonline

Hi, used mean machine for ages here, not an expert on scripts.. far from it ! but havnt done an update on mean machine for a while (idle-i-tus), noticed the orig web addy i have is inactive, is there anyway of getting hold of the latest vers anymore or an update for the older vers im currently running ( v 1.11.20.1   ) .. anyhow full compliments to the creator ....    nice work snowman keep it up
aka (UKR)Nemesis  :rolleyes: Why is it when you buy a tin of evaporated milk the tin is always full ??   answers on a post card please....    8)

Snowman

I'm sorry to tell you all that my server is down and has been down for about 14 days now.
This includes the webserver so my mail AND homepage is unavailable at the moment.
The worst side effect of this is that all my script development was on that server.
I AM working on a solution to get it running again but I have NO idea as to how long it will take :(


Snowman
\"The day Microsoft makes a product that doesn\'t suck, it will be a vacuumcleaner\"

Mean-Machine Homepage

MrZ

Hia Snowy.. nice to have ya back :))

Yes i notesed all that,, have been trying to reach ya by mail to notice u about the temp lua board..

Anyway stay kool and lets hope they got the server backup running again..

The mean thing,, ur back

Z ya dude
Always remember that you are unique... just like everyone else :-D

MrZ

Hia again... Snowman we realy need a fix for this:

Syntax error: bad argument #1 to `strfind' (string expected, got nil)
stack traceback:
   1:  function `strfind' [C]
   2:  function `NewUserConnected' at line 1092 [file `...tokaX-0.326.TestDrive4\scripts\Mean_Machine.lua']

Were having a badtime lag over here now and it looks like this synt error appers everytime a user connects.

Any idea ??
Always remember that you are unique... just like everyone else :-D

Snowman

#461
Thx MrZ

VERY unfortunate that my mail crashed about the same time as the LUA board...
Never knew a temp board was running :)


Snowman
\"The day Microsoft makes a product that doesn\'t suck, it will be a vacuumcleaner\"

Mean-Machine Homepage

MrZ

Hia dude....

Keep this addy somewere as the temp boad is there to stay as a temp board...

http://www.intersabre.com/~uknnet5/lua/index.php?sid=4d139a8c7c6e65d8689b8e4c3a0413f8.


I am about to ansver ur PM i just have to prepare it..

Z ya
Always remember that you are unique... just like everyone else :-D

Snowman

Beside the sad thing that it crashed at all it also happened while I don't have much spare time.
I just started on an education as a Microsoft Certified Professional Administrator which requires MUCH reading and preparation.

I have created a temporary e-mail address at my ISP: Mean-Machine@pc.dk


Snowman
\"The day Microsoft makes a product that doesn\'t suck, it will be a vacuumcleaner\"

Mean-Machine Homepage

MrZ

hehe i know im MCSE + I but in the old NT4..
Also is one of those who made the famous "Exellerated exam" the upgrade to W2K :))

Now I'm on the Novell track (mutch better ;)

Z ya
Always remember that you are unique... just like everyone else :-D

Snowman

\"The day Microsoft makes a product that doesn\'t suck, it will be a vacuumcleaner\"

Mean-Machine Homepage

SlasH

Snowman U still with us? Am anxiously waiting new release..Hope U got ur server problems striaght !!

Snowman

I am still here but have been quite busy so my attempts at restoring the server has not been that intense... Sorry about that...


Snowman
\"The day Microsoft makes a product that doesn\'t suck, it will be a vacuumcleaner\"

Mean-Machine Homepage

sander815

damn, i need a copy of this scripts....thought i still had it

MrZ

#469
Hia

here ya go sander815

--> :D <--

Z ya
Always remember that you are unique... just like everyone else :-D

SlasH

Snowman,
 was the last release 2.2.7.3 ?

MrZ

i know my name isnt snowman,,and yes i know ur right about the latest release...

that was the best i could do
Always remember that you are unique... just like everyone else :-D

Snowman

VERY sad news...
ALL my work is lost... The harddrive has bad sectors all over and the data-parts I was able to save was corrupted :(
Wonder why I didn't get any warnings from S.M.A.R.T.!?!??
I have a lot of notes and I DID print out the most of the requests but this IS a MAJOR setback...
Starting from scratch... :(


Snowman
\"The day Microsoft makes a product that doesn\'t suck, it will be a vacuumcleaner\"

Mean-Machine Homepage

BeeR

what can i say

find no words :(
A cold BeeR is stunning !!

sander815

argh...just wanted to switch to meanmachine...
thought i had an older copy somewhere, but can't find it

SMF spam blocked by CleanTalk