LawMaker - Page 4
 

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

LawMaker

Started by bastya_elvtars, 05 September, 2004, 18:16:24

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zinden

More bugs ;)


---------------------------2004-10-30 19:59:10---------------------------
Exception 'EZeroDivide' in module PtokaX.exe at 000723C8
Floating point division by zero



http://board.univ-angers.fr/thread.php?threadid=2541&boardid=8&styleid=1&sid=1665999c9aabeb5aabfeda904064a20c

Read that thread too  :)
And im only using lawmaker as script... This isnt first time i get the error

I hope you can find the error in script.....
The script is kinda compiled so its hard to find the error by myself.
Xion++ - Where it all begins
http://www.zinden.net

bastya_elvtars

QuoteOriginally posted by zinden
More bugs ;)


---------------------------2004-10-30 19:59:10---------------------------
Exception 'EZeroDivide' in module PtokaX.exe at 000723C8
Floating point division by zero



http://board.univ-angers.fr/thread.php?threadid=2541&boardid=8&styleid=1&sid=1665999c9aabeb5aabfeda904064a20c

Read that thread too  :)
And im only using lawmaker as script... This isnt first time i get the error

I hope you can find the error in script.....
The script is kinda compiled so its hard to find the error by myself.

gonna release a new RC with vipchat and op announce, but gonna try finding those bugs too, the warn part may be buggy, i keep forgetting, but trying 2 do it right now :P
Everything could have been anything else and it would have just as much meaning.

bastya_elvtars

#77
OK guys, what i have worked on is done:

LawMaker 0.7 released  

reinstall completely please!

new features:

special operator announce and leave messages (try it, hard 2 describe here)

fixed many performance-related issues

added vipchat with possibility to enable/disable.

Starting work on LM0.8, the following features are planned:

Logs

Metatable functioning

Multilanguage may be done

I am planning a GUI as well, but i must get my friend 2 write it :P

And more...

[edit]

please test the script, there can be errors, altho it is running error-free here but who knows. Thx for all the people who tested it before, and the ones who will test it in the future!
Everything could have been anything else and it would have just as much meaning.

zinden

#78
3 bugs discovered:


Syntax error: attempt to index a nil value
stack traceback:
   1:  function `scanmyinfo' at line 237 [file `lawmaker_0.7.lua']
   2:  function `checkhubsslots' at line 276 [file `lawmaker_0.7.lua']
   3:  function `DataArrival' at line 3939 [file `lawmaker_0.7.lua']


must be as it says in error, about max hubs.
i put it as: max 10 hubs at same time.
But users gets in with more than that.


Edit:

Syntax error: bad argument #1 to `getn' (table expected, got nil)
stack traceback:
   1:  function `getn' [C]
   2:  function `OpDisconnected' at line 3798 [file `lawmaker_0.7.lua']

Edit again:

Syntax error: attempt to concat local `nick' (a nil value)
stack traceback:
   1:  function `DataArrival' at line 3989 [file `lawmaker_0.7.lua']


Found that too  :)
Xion++ - Where it all begins
http://www.zinden.net

zinden

A request.

Is it possible to add offline info?
or atleast something so i can get why a user got kicked.
if i kick a user, i want to have a command so i can see why he got kicked


I hope its a request you can add  :)
Xion++ - Where it all begins
http://www.zinden.net

bastya_elvtars

#80
QuoteOriginally posted by zinden


Syntax error: attempt to index a nil value
stack traceback:
   1:  function `scanmyinfo' at line 237 [file `lawmaker_0.7.lua']
   2:  function `checkhubsslots' at line 276 [file `lawmaker_0.7.lua']
   3:  function `DataArrival' at line 3939 [file `lawmaker_0.7.lua']



This must be caused by a weird connection type, or a corrupted myinfo, gonna take a look.

QuoteOriginally posted by zinden

Edit:

Syntax error: bad argument #1 to `getn' (table expected, got nil)
stack traceback:
   1:  function `getn' [C]
   2:  function `OpDisconnected' at line 3798 [file `lawmaker_0.7.lua']


yea, stupid mistype, fixed


QuoteOriginally posted by zinden


Edit again:

Syntax error: attempt to concat local `nick' (a nil value)
stack traceback:
   1:  function `DataArrival' at line 3989 [file `lawmaker_0.7.lua']


Found that too  :)

hmm, this 1 is related 2 builtin kick somehow, this needs testing. PM me your hub address. (i do not want op status or whatever just take a look)

BTW THX for the reports, more & more please! :)

*** edit ***

about the request: yes, i am planning it. As soon as it1s ready, you will know!
Everything could have been anything else and it would have just as much meaning.

zinden

My Requests:

1: Topkickers  = So i can see which ops that actually kicks and some ops compete on this  :)   (include vips if they can kick)

2: Offline info  = To see why a user been kicked etc..

3: Feature from Y-Hub to get trace kick = If a user gets kicked he must somehow modify his share before he can enter again (dont know if its possible in lua)   <--- The most requested by my ops/vips

4: antiadvertise = can be good if someone advertises to all users in pm ( disable/enable button for it )

5: Fake username in mainchat = can be fun for ops/masters   and also maybe put in !con and !coff  thats for get pm message who use fake username command. (!con = commandon !coff = command off)

6: make immune better = if you use immune, then that user cant be kicked because he is immuned

7: Flood command / Nuke command = only for masters and good for fake users that are totally ignoring your kicks etc....

8: Tip of the day = a good tip shows everyday for users like: if you dont get any hits when search for "Age of empires 2 - Age of kings" try instead to search only "Age of empires" ( or maybe tip links for good sites)

9: Upgrade Status = upgrade maybe a op to master, reg to vip etc...

10: Invisible = Makes a user invisible to the rest ( i know this caused problems before on td4, but how about 0.3.3.0 ptokax? )


Well atleast thats what i call a Request post :)
those first 3 ones is for me most importent ones.
Xion++ - Where it all begins
http://www.zinden.net

bastya_elvtars

1: maybe later, but yes, sure

2: working on it

3: hmm so the same share amount wont let him reenter? Not hard 2 do, but not everyone gets kicked 4 bad share

4: later

5: i do not like it, possible attack area for flooders and can be abused as well

6: yea, why not (will b optional thou)

7: to flood a user? No way

8: a hub ad at certain  timestamps? or what?

9 yea, ok, not bad

10: very easy
Everything could have been anything else and it would have just as much meaning.

zinden

i forgot the most importent one after offline info.

About clear 1 user from tempban log.
like: !clear nick
<-LawMaker-> Nick is cleared from tempban
And i know the script needs to create a own tempban log and from that one it cleans 1 user that has been tempban.

I usually got long tempban minutes.
That would be very good for operators to let in 1 user that been kicked and they dont need to clear the whole tempban log all the time. That kinda annoying.

Seems like no script got this feature so i hope you will be the first one to make it  ;)
Xion++ - Where it all begins
http://www.zinden.net

bastya_elvtars

QuoteOriginally posted by zinden
i forgot the most importent one after offline info.


About clear 1 user from tempban log.
like: !clear nick
<-LawMaker-> Nick is cleared from tempban
And i know the script needs to create a own tempban log and from that one it cleans 1 user that has been tempban.

I usually got long tempban minutes.
That would be very good for operators to let in 1 user that been kicked and they dont need to clear the whole tempban log all the time. That kinda annoying.

Seems like no script got this feature so i hope you will be the first one to make it  ;)

this cannot be done, as ptokax does not save tempban list file, only the perm. It will be done in next ptokax release, or dunno if its already done, PPK could answer.
Everything could have been anything else and it would have just as much meaning.

bastya_elvtars

lawmaker 0.8 test1 coming soon

logging part done. only bans will be logged, ips are already being logged. In the logs there can be search, logs can be cleared too.

userinfo rewritten, will use bigger memory but absolutely no CPU. It will not use more than average 15M with 300 users.

also kicks / bans wont stuff up the main any longer. will add a kickwatch command for ppl who are curious
Everything could have been anything else and it would have just as much meaning.

bastya_elvtars

#86
This is now a beta version available for public. tested on 300+ user hubs with no major issues. this may be harder to config (reinstall please), and.. what else? enabled logging, can be searched right from DC++, also kicks can only be seen by those who sign up..

====================================

IMPORTANT: PLEASE DELETE THE FOLLOWING  3 files from scripts/lawmaker/dats folder:

ips.dat

lastseen.dat

myinfo.dat


OTHERWISE THE SCRIPT WON'T LOAD
====================================

this version uses more memory than the others (about 30M in average on a 300 user hub) but MUCH less cpu.

download HERE

i cant rewrite my sig somehow... :S

also news is that i started 2 build a separate lawmaker website... coming soon, but busy a bit these days.

take care!
Everything could have been anything else and it would have just as much meaning.

zinden

#87
Hello, ive been getting some weird errors.


Syntax error: attempt to index global `immunelist' (a nil value)
stack traceback:
   1:  function `DataArrival' at line 4134 [file `lawmaker_0.8_zinden.lua']


Syntax error: attempt to index global `immunelist' (a nil value)
stack traceback:
   1:  function `NewUserConnected' at line 4090 [file `lawmaker_0.8_zinden.lua']


Problably i used a weird dc but anyway it shouldent give errors   :))
Xion++ - Where it all begins
http://www.zinden.net

bastya_elvtars

QuoteOriginally posted by zinden
Hello, ive been getting some weird errors.


Syntax error: attempt to index global `immunelist' (a nil value)
stack traceback:
   1:  function `DataArrival' at line 4134 [file `lawmaker_0.8_zinden.lua']


Syntax error: attempt to index global `immunelist' (a nil value)
stack traceback:
   1:  function `NewUserConnected' at line 4090 [file `lawmaker_0.8_zinden.lua']


Problably i used a weird dc but anyway it shouldent give errors   :))

new beta is on the way...
Everything could have been anything else and it would have just as much meaning.

zinden

about that error, it destroys the rightclick commands and opchat too  :(

so i cant hardly wait for an update  :))
Xion++ - Where it all begins
http://www.zinden.net

bastya_elvtars

ok done

if runs smoothly at zinden, we can release the new beta.

but suggestions needed as i am out of ideas.
Everything could have been anything else and it would have just as much meaning.

zinden

It runs perfect, no errors yet.
And some ideas....well how about:

Add in mass message who wrote the mass message

Immune, make also immune against get kicked.

offline info :)  Well this takes a bit resources, but maybe a addon script for lawmaker? (while you at it, add kick info in offline info)  he he

More DC++ mods in settings to allow more tags. Like accept dc pro tag etc...

Self register as 1/0  on off setting (if on, a message appear in mainchat that "user" has registered himself

and if a op reg a user, a message appear too


Well just tiny things, except the offline info :)
i hope you get some ideas
Xion++ - Where it all begins
http://www.zinden.net

bastya_elvtars

mass: done

offline info: its already in. try an offline nick with !userinfo

kick info? there are logs, kicks arent logged (well, dont set kicktime to 1 hour, just 5 mins. there is ban on 3 kicks and its logged - i won't add such feature, it would make loads of logs.)

DC:PRO tag is supported. Dunno about new versions, but i made a full support even at start

"More DC++ mods" <--- like what? I will not add any unpublic clients to waste RAM. Ask the developer of XR++ to make it public, then i will support it.

selfreg: nice idea, but you did not want it before.

"and if a op reg a user, a message appear too" - ok, not hard
Everything could have been anything else and it would have just as much meaning.

zinden

About Reg, was more for kaotkbliss :)  thats why i wanted a off settings too.

dont know about this, but how about add in description {reg} if a user is registered in hub. A script can add a tag in description depending if he is reg/vip/op/master.
maybe takes memory, but if not, then i wouldent mind seeing that in feature.

Last thing i wouldent mind to see is:
about adding links to sites, like !link http://www.altavista.com Alstavista search engine

then i type maybe !addy search

-LawMaker- Found 1 link in database
http://www.altavista.com

That looks cool and could be very usefull to alot of ppl


Well seems i just type alot of crap, but atleast i try to come up with new stuff  :P

So keep up the good job and continue to make the script even better.
Xion++ - Where it all begins
http://www.zinden.net

bastya_elvtars

adding the tag in description would mean that at least twice as much bandwidth would be used. Son i won't add, as i do not wanna make this script for users with a few Mbits b/w.

The !link: hmm it will be in dc++ i guess

gonna look @ it
Everything could have been anything else and it would have just as much meaning.

kaotkbliss

hey there bastya, was wondering if I could get a script that has only the nifty hubstats (the peak usercount, share, memory etc.) from lawmaker.

bastya_elvtars

QuoteOriginally posted by kaotkbliss
hey there bastya, was wondering if I could get a script that has only the nifty hubstats (the peak usercount, share, memory etc.) from lawmaker.

the whole routine is to be rewritten, so yes, cause i try out new routines in separate scripts.

if you are lucky, i will release it this year ;)
Everything could have been anything else and it would have just as much meaning.

bastya_elvtars

in the last week we tested lawmaker under a big load

ptokax ate about max 5% of CPU time and ram usage was quite acceptable too, thou i cannot say it cause i fully tweaked my windows mem management :)

at least we can say that it is wuite stable.

the only question is:

should i leave this kickwatcher there, or make a separate !silentkick feature and make dc++ builtin kick a setting where you can define if  its silent or not - i will in no way kill random kick messages, but do not wanna kill the mainchat too.

now rc1 test 4 seems stable and gives excellent results :

QuoteAlltime peak user count : 741 users. (Time: Saturday the 18th of December, 17:38:39 Year 2004)

will release after ome aditional testing and your opinions on this kick.

later i will add useruptime, extend the stats and some more tiny things ;)

cheers and wish you all a merry christmas, gonna be off for christmas.
Everything could have been anything else and it would have just as much meaning.

zinden

i wouldent mind to make the kicks all silent if you manage to add kick info inside the !info (meaning maybe using little more cpu, but maybe a on/off thingy for it?

As you know, we got alot of kicking messages in my hub. Would be nice to keep it totally clean  :]
Xion++ - Where it all begins
http://www.zinden.net

bastya_elvtars

ok gonna ad a kicklog then in new year

fiat voluntas tua :)(ask skrollster to translate this :P)
Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk