PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: bastya_elvtars on 03 March, 2005, 02:07:11

Title: LawMaker
Post by: bastya_elvtars on 03 March, 2005, 02:07:11
Okay, seems I had some spare time. ;)

This version is very-very untested. Functions haven't changed, the only change is the conversion to LUA5. Please test it, and use with caution. Bugs SHOULD be emailed to me and mentioned here. THX, and have fun!

Also, please disable !whois, it won't work.


Download here! (http://www.szote.u-szeged.hu/medgen/lawmaker_0.8RC2_lua5.zip)
Title: bug report
Post by: Skynet on 03 March, 2005, 03:03:18
i had to create
topic.ini
announce.ini
leave.ini
offline.ini
 
in inifiles folder

to work
then getting
Syntax 2lawmaker_0.7_bigmem.lua5.lua:2099: attempt to index local `f' (a nil value)
sky
Title:
Post by: 6Marilyn6Manson6 on 03 March, 2005, 10:46:37
Hello bastya_elvtars;

I'm testing your LaWmaker in LUA 5 for PtokaX 16.04 release and this is a  beautiful job, I think! I have found bug.... in start i have made file ini:

topic.ini
announce.ini
leave.ini
offline.ini

but i have this error:

No syntax errors in script file lawmaker_0.8_RC2_lua5_comp.lua
Syntax 2lawmaker_0.7_bigmem.lua5.lua:2099: attempt to index local `f' (a nil value)
Syntax 2lawmaker_0.7_bigmem.lua5.lua:3133: attempt to index global `NoMotd' (a nil value)
Syntax 2lawmaker_0.7_bigmem.lua5.lua:3133: attempt to index global `NoMotd' (a nil value)

i have disable motd of ptokax but... not resolve; i have change path of file in config.lua :

motdfile="lawmaker/text/motd.txt"

or

motdfile="lawmaker\text\motd.txt"


but not resolve.... It is bug? thanks



------------------------------------------------------------
Current stats:
------------------------------------------------------------
Version: PtokaX DC Hub 0.3.3.0 build 16.04 built on Feb 27 2005 21:04:53
Uptime: 0 days, 1 hours, 5 minutes
Users (Max/Peak/Logged) : 440 / 417 / 413
Chat messages: 370 x
Unknown commands: 0 x
PM commands: 175 x
Key commands: 3325 x
Supports commands: 2582 x
MyINFO commands: 5002 x
ValidateNick commands: 3188 x
GetINFO commands: 1383 x
Password commands: 2 x
Version commands: 2831 x
UserIP commands: 3835 x
GetNickList commands: 2924 x
Search commands: 3963 x
SR commands: 23321 x
CTM commands: 3221 x
RevCTM commands: 1761 x
------------------------------------------------------------
CPU usage (All processes 60 seconds average): 29.4%
CPU time: 0:01:46
Mem usage (Old style): 3052 kB
Mem usage (Peak): 13.46 MB (16.81 MB)
VM size (Peak): 16.96 MB (18.79 MB)
------------------------------------------------------------
SendRests (Peak): 1 (3)
RecvRests (Peak): 1 (6)
SendBytes: 81.90 MB
RecvBytes: 5.09 MB

address:   p2pplanet.no-ip.org
this is my secondary hub for test but if you want bastya_elvtars... i'm in this hub test your bot :) you're welcome
Title:
Post by: 6Marilyn6Manson6 on 03 March, 2005, 11:36:27
Hi.... op Shpalman in my hub use DC++ 0.666 and he use connection type DSL(512-256) or DSL(150-64) but when he connect in hub receive:

[11:31:30] <#[PlaneT]> This hub is running PtokaX DC Hub 0.3.3.0 build 16.04 (UpTime: 0 days, 0 hours, 41 minutes)
- [11:31:33] Your connection type could not be determined. You are being disconnected.
- [11:31:33] *** Disconnected

can you add this 2 connection in config.lua? Thanks :)
Title:
Post by: bastya_elvtars on 03 March, 2005, 11:50:38
@sky: fixed

@MM: topic.ini etc. bug fixed

 Download from my signature.

To add a conn. type you have to edit the table in config. lua. LawMaker does not support R2++ and derivatives with their crap connection types by default, however you can add them. Dunno whether () disturbs anything there, gonna take a look.

And yes,

motdfile="lawmaker/text/motd.txt"
is correct.
Title:
Post by: 6Marilyn6Manson6 on 03 March, 2005, 12:31:06
Hi have new beta bastya and:

first:
Syntax 2lawmaker_0.7_bigmem.lua5.lua:57: could not load package `lawmaker/inifiles/announce.ini' from path `?;?.lua'

i made it manually.. after:
Syntax 2lawmaker_0.7_bigmem.lua5.lua:58: could not load package `lawmaker/inifiles/leave.ini' from path `?;?.lua'

i made it manually and no syntax error. I'm start hub and:
Syntax cannot read lawmaker/inifiles/offline.ini: No such file or directory

i made it manually restart scripts but..... now i have this error:
Syntax lawmaker/usercommands.lua:226: attempt to call global `strfind' (a nil value)

and.... command !rules or +rules not found :)

thanks bastya :)
Title:
Post by: bastya_elvtars on 03 March, 2005, 13:14:40
Thanks for your reports. Fixed the text file handling, also tried to fix the loading crash - successfully. :D

Putting it to web soon.
Title:
Post by: 6Marilyn6Manson6 on 03 March, 2005, 13:27:47
Other bug in this beta. This command not found:

!rules
!hublists
!faq
!dcpphelp
!reg

when I use it :


No syntax errors in script file LawMaker0.8_RC2_fix1_lua5_comp.lua
Syntax 2lawmaker_0.7_bigmem.lua5.lua:2074: attempt to call global `openfile' (a nil value)


Thanks :)
Title:
Post by: bastya_elvtars on 03 March, 2005, 13:41:12
The fixed one is in my sig, extract ALL to the scripts folder, you can keep your current config. All file handlers and file executes are fixed now.
Title:
Post by: 6Marilyn6Manson6 on 03 March, 2005, 13:44:57
Hi bast, this is config.lua :


-- custom cmd #1
customcmdlev1=1
customcmd1="rules"
customtext1="lawmaker/text/rules.txt"
customhelp1=customcmd1.."\t\t\t\t\t\tSee the rules"

-- custom cmd #2
customcmdlev2=1
customcmd2="hublists"
customtext2="lawmaker/text/hublists.txt"
customhelp2=customcmd2.."\t\t\t\t\t\tShow hublists"

-- custom cmd #3
customcmdlev3=1
customcmd3="faq"
customtext3="lawmaker/text/faq.txt"
customhelp3=customcmd3.."\t\t\t\t\t\tShow the FAQ"

-- custom cmd #4
customcmdlev4=1
customcmd4="dcpphelp"
customtext4="lawmaker/text/dcpphelp.txt"
customhelp4=customcmd4.."\t\t\t\t\t\tShow help on DC++"

-- custom cmd #5
customcmdlev5=1
customcmd5="reg"
customtext5="lawmaker/text/reg.txt"
customhelp5=customcmd5.."\t\t\t\t\t\tShow info on registering."

path is correct but i have error
Title:
Post by: MAKAVELI-2PAC on 03 March, 2005, 14:46:17
Hello

I am getting some errors as well:

No syntax errors in script file LawMaker0.8_RC2_fix1_lua5_comp.lua
Syntax 2lawmaker_0.7_bigmem.lua5.lua:4698: attempt to concatenate field `sMyInfoString' (a nil value)
Syntax 2lawmaker_0.7_bigmem.lua5.lua:4698: attempt to concatenate field `sMyInfoString' (a nil value)
Syntax 2lawmaker_0.7_bigmem.lua5.lua:4698: attempt to concatenate field `sMyInfoString' (a nil value)

And one more error:

Syntax lawmaker/usercommands.lua:232: attempt to call global `getn' (a nil value)

BTW: Nice script & keep up the good work :-)

Cya
Title:
Post by: bastya_elvtars on 03 March, 2005, 18:35:29
The usercommands error is fixed.

Syntax 2lawmaker_0.7_bigmem.lua5.lua:4698: attempt to concatenate field `sMyInfoString' (a nil value)
I just don't get why this 1 occurs. This needs a bit more investigation.

@MM: works fine here, these are my settings:

-- custom cmd #1
customcmdlev1=1
customcmd1="rules"
customtext1="lawmaker/text/rules.txt"
customhelp1=customcmd1.."\t\t\t\t\t\tSee the rules"

-- custom cmd #2
customcmdlev2=1
customcmd2="hublists"
customtext2="lawmaker/text/hublists.txt"
customhelp2=customcmd2.."\t\t\t\t\t\tShow hublists"

-- custom cmd #3
customcmdlev3=1
customcmd3="faq"
customtext3="lawmaker/text/faq.txt"
customhelp3=customcmd3.."\t\t\t\t\t\tShow the FAQ"

-- custom cmd #4
customcmdlev4=1
customcmd4="dcpphelp"
customtext4="lawmaker/text/dcpphelp.txt"
customhelp4=customcmd4.."\t\t\t\t\t\tShow help on DC++"

-- custom cmd #5
customcmdlev5=1
customcmd5="reg"
customtext5="lawmaker/text/reg.txt"
customhelp5=customcmd5.."\t\t\t\t\t\tShow info on registering."
Title: lawmaker
Post by: kbeh273300 on 04 March, 2005, 01:39:16
hi.
i realy like your script but have had some trouble with the text files, they seem to only read the first line in the text file and if the first line is juat a space then it doesnt show anything. and also the right click cmds .
Syntax lawmaker/usercommands.lua:232: attempt to call global `getn' (a nil value)
Title:
Post by: bastya_elvtars on 04 March, 2005, 01:47:12
QuoteOriginally posted by kbeh273300
hi.
i realy like your script but have had some trouble with the text files, they seem to only read the first line in the text file and if the first line is juat a space then it doesnt show anything. and also the right click cmds .
Syntax lawmaker/usercommands.lua:232: attempt to call global `getn' (a nil value)

Oki, you told me a really nice bug report. Will look on this right now. I waited for reports on this before releasing the next test version. Thx for report.
Title:
Post by: bastya_elvtars on 04 March, 2005, 02:14:50
OK, done. Download from my sig.


Enjoy!

-- // edit


Found a critical bug. Fixed and DL link updated.
Title: lawmaker
Post by: kbeh273300 on 04 March, 2005, 05:48:51
cool that fixed that :)

now a few more little bugs :)
!addnews
Syntax lawmaker.lua:2303: attempt to compare nil with number
!shownews
Syntax lawmaker.lua:2351: attempt to compare nil with number


i get the same thing from questbook and requests.same errors on all 3.


comeing along good tho. this script rocks :)
Title:
Post by: 6Marilyn6Manson6 on 04 March, 2005, 07:56:50
Hi bastya_elvtars,
I have new version fix2 and now work all:

-- custom cmd #1
customcmdlev1=1
customcmd1="rules"
customtext1="lawmaker/text/rules.txt"
customhelp1=customcmd1.."\t\t\t\t\t\tSee the rules"

-- custom cmd #2
customcmdlev2=1
customcmd2="hublists"
customtext2="lawmaker/text/hublists.txt"
customhelp2=customcmd2.."\t\t\t\t\t\tShow hublists"

-- custom cmd #3
customcmdlev3=1
customcmd3="faq"
customtext3="lawmaker/text/faq.txt"
customhelp3=customcmd3.."\t\t\t\t\t\tShow the FAQ"

-- custom cmd #4
customcmdlev4=1
customcmd4="dcpphelp"
customtext4="lawmaker/text/dcpphelp.txt"
customhelp4=customcmd4.."\t\t\t\t\t\tShow help on DC++"

-- custom cmd #5
customcmdlev5=1
customcmd5="reg"
customtext5="lawmaker/text/reg.txt"
customhelp5=customcmd5.."\t\t\t\t\t\tShow info on registering."

this 5 commands is ok,

motd is ok, all is ok but i have small error:

Syntax lawmaker.lua:4716: attempt to concatenate field `myinfo' (a nil value)

Thanks for all bastya and good work ;)
Title:
Post by: bastya_elvtars on 04 March, 2005, 13:06:02
@kbeh: trying to fix.

@MM: this has already been reported by MAKAVELI-2PAC, and the workaround i made does not work, gotta find another solution.
Title:
Post by: 6Marilyn6Manson6 on 04 March, 2005, 16:00:06
Hi bastya, little bug:

Syntax lawmaker.lua:332: attempt to perform arithmetic on a nil value

And when I use command   !cleanlogs
I see this:
in Main: [16:01] <#[PlaneT]> Starting log cleaning
but not clean it and
In ptokax: Syntax lawmaker.lua:3871: bad argument #1 to `getn' (table expected, got number)

thanks bye ;)

[ very very good version :) ]
Title:
Post by: bastya_elvtars on 04 March, 2005, 16:31:50
Thx, keep flooding me with such bug reports! Really sorry for them but my net is really unstable to test it... :(

A few more bugs and new fix will be released.
Title:
Post by: bastya_elvtars on 05 March, 2005, 00:30:29
QuoteSyntax 2lawmaker_0.7_bigmem.lua5.lua:4698: attempt to concatenate field `sMyInfoString' (a nil value)

What other scripts do you run?
Title: yo
Post by: kbeh273300 on 05 March, 2005, 22:28:26
just wanted to let ya know that the  !uptime   isnt working either,always says Current hub uptime is: 0 minutes
Title:
Post by: bastya_elvtars on 05 March, 2005, 23:49:29
That's a buggy method (due to its running on win) and the whole thing is gonna be replaced. So for now it won't work, it will be in PtokaX as an option reachable from script. Also, lagtest does not work, others are perfect now, so update is not so far away. ;)
Title:
Post by: bastya_elvtars on 07 March, 2005, 22:45:02
New version is:

LawMaker 0.8 RC3 (test1)

Changes:




Download from my sig as usual.

Enjoy!

-----///--------------------///----------------------///


Thx to testers:

Nidaros, kbeh273300, 6Marylin6Manson6, angelsanges, Makavelli-2PAC, Libbe

Special thanks to NightLitch and Hawk for helping me out when needed...

P. S.: Multilanguage is on the way (Italian will be the second language.)
Title:
Post by: 6Marilyn6Manson6 on 07 March, 2005, 22:48:33
QuoteP. S.: Multilanguage is on the way (Italian will be the second language.)


Can I made it? Please
Title:
Post by: bastya_elvtars on 07 March, 2005, 22:49:18
Angelsanges is already making it.
Title:
Post by: MAKAVELI-2PAC on 07 March, 2005, 22:57:32
Cool !

It works great now, only one thing bothers me  :)  and this is:

[22:54:31] Your active IP has been set to xxx:xxx:xxx:xxx

But i can live with that  :)

Great work bastya_elvtars

Cya
Title:
Post by: MAKAVELI-2PAC on 07 March, 2005, 23:20:51
And i found one little bug. When i type command - !showrequest   i get error:

Syntax lawmaker.lua:2376: attempt to compare nil with number

Cya
Title:
Post by: angelsanges on 07 March, 2005, 23:42:15
same bug here
Title:
Post by: 6Marilyn6Manson6 on 07 March, 2005, 23:42:51
QuoteOriginally posted by MAKAVELI-2PAC
And i found one little bug. When i type command - !showrequest   i get error:

Syntax lawmaker.lua:2376: attempt to compare nil with number

Cya


I have this error with commands: !showrequests and !shownews

bye bye
Title: lawmaker
Post by: kbeh273300 on 08 March, 2005, 00:21:13
nice work :) i love this script.ok here is my bug report.

!shownews
Syntax lawmaker.lua:2376: attempt to compare nil with number
!showrequests
Syntax lawmaker.lua:2376: attempt to compare nil with number
!addnews testing
Syntax lawmaker.lua:2328: attempt to compare nil with number
!addrequest testing
Syntax lawmaker.lua:2328: attempt to compare nil with number
!whois kbeh273300
Syntax lawmaker.lua:3830: attempt to call global `connect' (a nil value)



other then that so far everything else seems to work great :)
Title:
Post by: bastya_elvtars on 08 March, 2005, 02:12:46
Yes, forgot to say: disable whois. Also, found the bug, updating script in a few minutes.
Title:
Post by: 6Marilyn6Manson6 on 09 March, 2005, 17:37:38
Hi bastya_elvtars... with command: !userinfo  I have this information:

QuoteInstring.formation on 6Marilyn6Manson6
=====================================

Profile: Superoperator
IP address: xx.xx.xxx.xx
Connection type: DSL
Mode: Active
Shared: 0.00 GB
Total hubs: 27
Hubs as guest: 0
Hubs as registered user: 6
Hubs as operator: 21
Number of slots: 2
Slot/hub ratio: 0.074074074074074
Bandwidth limiting: N/A.
Client type: DC++
Client version: 0.401
Tag: <++ V:0.401,M:A,H:0/6/21,S:2>

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


and with command !getinfo  I have this information:

Quote[17:32] <#[PlaneT]> *** Nick: 6Marilyn6Manson6, IP: xx.xx.xxx.xx, Mode: A, Hubs: 27, Slots: 2, Client: DC++, Ver.: 0.401
[17:32] <#[PlaneT]> *** ShareSize: 0.00 GB

and I things: you can disable command !getinfo? Is it useless... bye ;)
Title:
Post by: 6Marilyn6Manson6 on 09 March, 2005, 17:45:28
QuoteOriginally posted by kbeh273300
nice work :) i love this script.ok here is my bug report.

!shownews
Syntax lawmaker.lua:2376: attempt to compare nil with number
!showrequests
Syntax lawmaker.lua:2376: attempt to compare nil with number
!addnews testing
Syntax lawmaker.lua:2328: attempt to compare nil with number
!addrequest testing
Syntax lawmaker.lua:2328: attempt to compare nil with number
!whois kbeh273300
Syntax lawmaker.lua:3830: attempt to call global `connect' (a nil value)



other then that so far everything else seems to work great :)


I have error with this 4 command and with other:

!delnews   Syntax lawmaker.lua:2399: attempt to compare nil with numberand
!delrequest   Syntax lawmaker.lua:2399: attempt to compare nil with number
bye bye :)
Title:
Post by: bastya_elvtars on 09 March, 2005, 17:56:52
This add/show/delete command is buggy, gonna take a look into that now. I will not disable getinfo, i just disable what is to be disabled.
Title:
Post by: 6Marilyn6Manson6 on 09 March, 2005, 18:14:41
When I use command: !watchkicks on   I have this error:

Syntax lawmaker.lua:4009: attempt to call global `write' (a nil value)


but command   !watchkicks off work.... bye bye
Title:
Post by: bastya_elvtars on 09 March, 2005, 18:50:23
Fixed the bbugs you reported, new version available.

Changes:


Download from my signature.
Title: lawmaker
Post by: kbeh273300 on 09 March, 2005, 19:16:00
ok setting it up and testing it now :)
Title:
Post by: 6Marilyn6Manson6 on 09 March, 2005, 20:08:22
Hi bastya_elvtars:

I have new version but:

[20:00] <#[PlaneT]> I am LawMaker 0.8 RC3 test1 (LUA5 edition) by bastya_elvtars (the rock n' roll doctor).  <--- not correct.... this is test2 not 1 :P:P:P:P

in help:
*** LawMaker 0.8 RC3 test1 (LUA5 edition) by bastya_elvtars (the rock n' roll doctor) <--- idem test2 not 1 :P

bye bye ;) very good work LoL
Title: lawmaker
Post by: kbeh273300 on 09 March, 2005, 20:50:29
hehe yeah i saw that to 6Marilyn6Manson6 :)

i do have one bug i think
[13:12:12] [13:20:37] *** Connecting to houseofkingstwo.utbnet.com...
[13:20:38] *** Connected
[13:20:38] <-=K??g?-??c?r?ty=-> This hub is running PtokaX DC Hub 0.3.3.0 build 16.05 (UpTime: 0 days, 0 hours, 18 minutes)
[13:20:38] Your connection is DSL.
[13:20:38] You are in 26 hubs, and have 2 slots.
[13:20:38] Open 0.1 slots per each hub for your connection type. (Currently you should have at least 2.6 slots open for this amount of hubs.
[13:20:38] You are now being redirected.
[13:20:38] H??? ? K??g?2 - This hub is running LawMaker 0.8 RC3 test1 (LUA5 edition) by bastya_elvtars (the rock n' roll doctor)
[13:20:38] Your connection is DSL.
[13:20:38] You are in 26 hubs, and have 2 slots.
[13:20:38] Open 0.1 slots per each hub for your connection type. (Currently you should have at least 2.6 slots open for this amount of hubs.
[13:20:38] You are now being redirected.
[13:20:38]  *** Connecting to array.utbnet.com:410


looks like its redirecting back to its self once then the redirect goes like it should on the 2nd go around.or maybe the info is just being sent twice hmm.
Title:
Post by: bastya_elvtars on 09 March, 2005, 21:41:28
OK, version number is not a big deal. :)

BTW about redirect: slots, hubs & ratio redirect are now read from PtokaX. So set the appropriate addies in it (from client you cannot yet as it is not finished in PtokaX, and PPK told me to wait.)

So set the share, maxslots, maxhubs, ratio redirect addresses in ptokax.

This is the current redirect engine, this will be the first to rewrite on PtokaX update.

checks.redirectingcrap=function(whatsbad,hmm)
-- if builtinred==1 then return "$ForceMove "..frmHub:GetRedirectAddress().."|"
if whatsbad=="share" then return "$ForceMove "..GetShareRedirAddr().."|"
elseif whatsbad=="limit" then return "$ForceMove "..limitredir.."|"
elseif whatsbad=="slots" then
if hmm=="h" then
return "$ForceMove "..frmHub:GetMaxHubsRedirAddr().."|"
elseif hmm=="s" then
return "$ForceMove "..frmHub:GetSlotsRedirAddr().."|"
else
return "$ForceMove "..frmHub:GetRatioRedirAddr().."|"
end

end
end
Title: lawmaker
Post by: kbeh273300 on 09 March, 2005, 22:13:38
ok cool. well i must say this is script is realy comeing along nicely keep up the great work :) :D
Title:
Post by: bastya_elvtars on 22 March, 2005, 21:23:17
Well, a very minimalistic site has been created.

http://lawmaker.no-ip.org/

Will start working on updated core ASAP, no time atm.

Expect more soon! ;)
Title:
Post by: bastya_elvtars on 28 March, 2005, 23:31:51
I am too slow to follow the development of PtokaX. Now that XML config files are made, LawMaker is incompatible with newer releases (16.07+) and I started to doubt whether I can (and want to) continue it. Sorry.
Title:
Post by: bastya_elvtars on 29 March, 2005, 01:18:54
Now I realised I cannot take this bot alone as i am urrounded with many-many tasks. So Herodes was very kind and promised that he will update the script for the current (momentary) API. Simply, he became a co-developer. I am really grateful, thank you, mate! :)
Title:
Post by: Herodes on 29 March, 2005, 01:24:51
Yep thats right,... :) no new feaures just bringing it uptodate and optimising... I hope that I can fulfill the task ;)
Title: nice !!
Post by: kbeh273300 on 29 March, 2005, 21:44:18
nice goin Herodes
 
your the MAN :)
Title:
Post by: zinden on 31 March, 2005, 20:10:25
about adding text in description from your lawmaker script....

Well one time is good....two times starts to gets annoying........four, five and six times is a pain in the ass  :D

Well as you problably know by now it adds the description over and over and over again....dont know if it only does it if you stop hub and start it...or if it does when you close it and start it.....But it gets there many times...

 - powered by Lawmaker 0.8 RC3 test1

Thats the text it adds over and over again   :)
Title:
Post by: bastya_elvtars on 31 March, 2005, 20:22:25
Yeah, that's a nasty error. I plan to release the optimized version, and features will be added afterwards.
Title:
Post by: bastya_elvtars on 01 April, 2005, 16:30:30
Forum online, please visit (http://lawmaker.no-ip.org/forum/index.php) and say hello!
Title: LawMaker-Chibi
Post by: James on 02 April, 2005, 16:06:36
Hi

how do I have to change lawmaker to get chibi-hub-security into the hub? chibi can't access the hub due to unkown client...
Title:
Post by: bastya_elvtars on 02 April, 2005, 16:12:39
Already answered.
Title:
Post by: James on 02 April, 2005, 16:31:27
Thx^^

could you please explain, what you like to say with 'immune'?
Title:
Post by: zinden on 03 April, 2005, 07:56:41
use this on your bot:
!immune                Immunise a user against ALL on-connect checking, except nick check.

and you can get your chibi-hub-security to get in your hub.
Title:
Post by: James on 03 April, 2005, 16:21:47
Thank You !!!
Title: website
Post by: dragos_sto on 04 April, 2005, 02:44:04
your link to your website dont work
http://lawmaker.no-ip.org/
Title:
Post by: bastya_elvtars on 04 April, 2005, 02:50:44
QuoteOriginally posted by dragos_sto
your link to your website dont work
http://lawmaker.no-ip.org/

Yes, I am reconfiguring the server... patience please! :)
Title:
Post by: bastya_elvtars on 08 April, 2005, 14:07:53
Many questions arrived to me in PM about the bot, so I decided to answer them right here, right now. The bot is undergoing some optimization/bugfix by Herodes, while I am trying to get my English certificate of language and rebuild the campus network. You better not expect a new release in April, maybe in May we can talk of it. I already got a preliminary source from Herodes, and I can assure you that he has done a great job on it. Also tinking of establishing cvs/svn server if people wanna contribute, but I have to decide whether it's necessary at all.
All I want from you is patience, when it's time, it will be available.
Title:
Post by: ConejoDelMal on 08 April, 2005, 19:43:26
Thx for answering....cant wait to see it, but I'll wait  :P
Title: Lawmaker
Post by: Jerry on 29 April, 2005, 11:36:55
Hi,

Where can I download Lawmaker, please?
Because Lawmaker Home (official website) doesn't work :(
Title:
Post by: bastya_elvtars on 29 April, 2005, 12:12:20
QuoteOriginally posted by Jerry
Hi,

Where can I download Lawmaker, please?
Because Lawmaker Home (official website) doesn't work :(

Better not download, it isn't even compatible with 16.09.
Title:
Post by: Dag on 29 April, 2005, 14:03:48
QuoteOriginally posted by bastya_elvtars
it isn't even compatible with 16.09.

How's that?  ?(   8o
Title:
Post by: bastya_elvtars on 04 May, 2005, 20:30:43
QuoteOriginally posted by Dag
QuoteOriginally posted by bastya_elvtars
it isn't even compatible with 16.09.

How's that?  ?(   8o

Because I have to do many things and constantly fight with idiots. After i fulfill my school and sysadmin tasks, I will restart coding (probably in 1-2 weeks for real now). Also, my web server will be reenabled. See you all soon!
Title:
Post by: Dag on 06 May, 2005, 22:35:52
QuoteOriginally posted by bastya_elvtars
I will restart coding (probably in 1-2 weeks for real now).

 It's really good message bastya!!!  :))
Title:
Post by: bastya_elvtars on 29 May, 2005, 23:27:15
Hey ppl,

After a while, deep inside my exam period is going now. In a month, I will go for my holiday, and it is unlikely that I will release a new version till then. ;(

But, here comes the good news: the bot will fully be re-structured, and it will get back its throne: a bot that is not like any other. Expect more news soon.  ;)
Title:
Post by: bastya_elvtars on 30 May, 2005, 14:32:10
I couldn't stand to try my idea yesterday, works great. I think we can reach at least a beta stage... :)

May the LMCA be with you.  :rolleyes:
Title:
Post by: bastya_elvtars on 31 May, 2005, 20:50:07
OK, the actual progress can be viewed here (http://ptxwiki.psycho-chihuahua.net/wikka.php?wakka=LawMakerProgress).
Title:
Post by: bastya_elvtars on 05 June, 2005, 01:13:24
QuoteOriginally posted by bastya_elvtars
OK, the actual progress can be viewed here (http://ptxwiki.psycho-chihuahua.net/wikka.php?wakka=LawMakerProgress).

Link is dead, however 1/3 is done. :)

-- // edit

If you are insterested in the progress, visit this hub (dchub://rnrdoctor.sytes.net).
Title:
Post by: bastya_elvtars on 07 June, 2005, 02:05:04
Hmm, yesterday after replacing my CPU fan the motherboard refused to live any longer. This introduces a major fallback and LawMaker will porobably NOT be released till Sep. I feel terribly sorry for this too, as I cannot access my data, since there no other computers here that could read 200G HDDs.  X(

Take care, and wish me luck! ;)
Title:
Post by: bastya_elvtars on 15 June, 2005, 14:04:17
[14:03:16]
Commands available to you are:
=================================================================================================================================
!faq Show the FAQ
!rules See the rules
!addvip Adds a new VIP.
!deletereg Deletes a registered user.
!banner Sends a banner into main.
!nuke Bans a user permanently. Reason is optional.
!remove Remove a(n) perm/temp invited user from opchat. You can enter many nicks separated by spaces.
!gag Mutes a user for 5 minutes, disabling his/her posting to main.
!unmute Unmutes a user, re-enabling him/her to post into main.
!addop Adds a new operator.
!chpass Changes your password.
!report Report a bad user, who is faking, disconnecting etc.
!help Shows the text you are looking at.
!showrandomkicks Shows the random kick messages' list.
!showrequests Shows the request board.
!addkick Adds a random kick message to the list, which shows after op name, and before kicked user's name.
!showranges Shows a list of banned IP ranges.
!showimmuned Shows all immunised users.
!tban Bans a user for given time. Reason is optional.
!delguestbook Deletes an entry from the guestbook by ID number.
!addsuperop Adds a new superoperator.
!delrequest Deletes an entry from the request board by ID number.
!showmuted Shows all muted users.
!kick Kicks a user and temporarily bans for 10 minutes. Reason is optional.
!addrequest Adds an entry to the request board.
!addreg Adds a new registered user.
!randomkick Enables/disables random kick messages, or shows the current status.
!delnews Deletes an entry from the news bulletin by ID number.
!showascript shows a file in scriptsfolder
!addnews Adds an entry to the news bulletin.
!shownews Shows the news bulletin.
!delkick delkick Deletes a random kick message.
!kickuser Kicks a user and temporarily bans for 10 minutes. Reason is optional.
!addguestbook Adds an entry to the guestbook.
!showguestbook Shows the guestbook.
!opm Sends a PM to every (super)operators in the name of the bot.
!immune Immunise a user against ALL on-connect checking, done by script.
!deleteop Deletes a superop.
!drop Silently kicks a user and temporarily bans for 10 minutes. Reason is optional.
!reg Show info on registering.
!hublists Show hublists
!botpm Sends a PM to a user in the name of the bot.
!banrange Bans an IP range from IP1 to IP2.
!dcpphelp Show help on DC++
!say Makes the bot speak in mainchat, saying the given text.
!mass Sends a private message to all users in the name of the bot.
!invite Invite a user to opchat for one session. You can enter many nicks separated by spaces.
!unbanrange Unbans a banned IP range.
!topic Sets a new topic, with no argument you delete the current one.
!silentkick Silently kicks a user and temporarily bans for 10 minutes. Reason is optional.
!warn Warns a user, after 3 warnings, he/she will be banned for 30 minutes.
!deletesuperop Deletes a superop.
!ban Bans a user permanently. Reason is optional.
!deletevip Deletes a VIP.
!delimmune Delete the user from the immune list, so he/she will be checked again on next reconnect.
!mute Mutes a user for 5 minutes, disabling his/her posting to main.
!perminvite Invite a VIP to opchat until removal. You can enter many nicks separated by spaces.
!resetwarn Deletes all warnings of a nick.
!ungag Unmutes a user, re-enabling him/her to post into main.

All the 59 commands you can use can be typed in main or in PM session with me, and the available prefixes are: ! or # or +
=================================================================================================================================
*** LawMaker 1.0 LMCA alpha edition by bastya_elvtars (the rock n' roll doctor)

Slowly, but going. ;)
Title:
Post by: bastya_elvtars on 06 August, 2005, 18:23:21
I got a net connection, so I will post the new script to the database as soon as I test it with the latest PtokaX. It will kick ass! ;)
Title:
Post by: Psycho_Chihuahua on 06 August, 2005, 19:00:52
hey, welcome back bastya  :D
Title:
Post by: zinden on 06 August, 2005, 19:42:30
Welcome back bastya_elvtars and will be fun for testing your new lovely script  :)
Title:
Post by: bastya_elvtars on 06 August, 2005, 21:09:38
QuoteOriginally posted by zinden
Welcome back bastya_elvtars and will be fun for testing your new lovely script  :)

There is optional kick logging... ;)

And it's great to be with you again.
Title:
Post by: bastya_elvtars on 07 August, 2005, 00:35:05
OK, latest alpha is here:

http://ptxscriptdb.psycho-chihuahua.net/download.php?view.78

Components have their own configuration, which can be edited with this editor (by changing the language to lua, as components have LMC extension): http://notepad-plus.sourceforge.net/uk/site.htm

Unneeded components can be disabled by adding an underscore right to the beginning of the filename. Please still leave all enabled, since this alpha version is for testing purposes only, and is not intended to be used in a production environment. Also debug log should be left enabled. Bug reports and any requests are welcome here or in e-mail.
Title:
Post by: zinden on 07 August, 2005, 17:34:35
bug report:

[17:33] <-LawMaker-> lawmaker/components/checking.lmc:761: attempt to index field `Prefixes' (a nil value)
Title:
Post by: bastya_elvtars on 07 August, 2005, 17:59:04
QuoteOriginally posted by zinden
bug report:

[17:33] <-LawMaker-> lawmaker/components/checking.lmc:761: attempt to index field `Prefixes' (a nil value)

Let me guess, you have the nick check disabled, don't you? I totally forgot about this, and gonna post a new checking.lmc soon.
Title:
Post by: zinden on 07 August, 2005, 17:59:14
While you are here, do you take time to add some requests?
about  !hideshare and !unhideshare
and !hideme  !unhideme

want to see them in the feature    :]
Title:
Post by: bastya_elvtars on 07 August, 2005, 18:09:34
QuoteOriginally posted by zinden
While you are here, do you take time to add some requests?
about  !hideshare and !unhideshare
and !hideme  !unhideme

want to see them in the feature    :]

I do not support the iolation of the DC spirit by adding a share hide option. About a self-hide command: i need to test it, as recent changes in the DC protocol and specially PtokaX hardened the job.
First, I am gonna debug the checking.lmc. What did you enable/disable?
Title:
Post by: zinden on 07 August, 2005, 18:30:59
it was as it is default by you.
Didnt change that part before i saw the error.
nick check problably disabled then  :P
Title:
Post by: bastya_elvtars on 07 August, 2005, 19:19:49
QuoteOriginally posted by zinden
it was as it is default by you.
Didnt change that part before i saw the error.
nick check problably disabled then  :P

PtokaX version?

I doubt that this error can happen under normal circumstances.
Title:
Post by: Psycho_Chihuahua on 08 August, 2005, 11:35:54
well i got a free line (768/128) untill thursday morning so i set up a lawmaker testhub.
Whoever wants to play with the script can go there.

Address: die-klapse.ath.cx (dchub://die-klapse.ath.cx)

But like i said, this is only untill thursday latest lunch time i got to switch it off again - it's a small office line and there's noone around untill thursday afternoon  :D
Title:
Post by: bastya_elvtars on 08 August, 2005, 17:18:22
QuoteOriginally posted by Psycho_Chihuahua
well i got a free line (768/128) untill thursday morning so i set up a lawmaker testhub.
Whoever wants to play with the script can go there.

Address: die-klapse.ath.cx (dchub://die-klapse.ath.cx)

But like i said, this is only untill thursday latest lunch time i got to switch it off again - it's a small office line and there's noone around untill thursday afternoon  :D

Well, I say big thx to you, as here it would be impossible to establish.
Title:
Post by: Psycho_Chihuahua on 10 August, 2005, 12:18:01
hey no problem

As soon as i've finished moving i'll reopen the hub again so testing can carry on....
it'll be something like beginning/middle of next month and will be online for a longer time period  :D
Title:
Post by: bastya_elvtars on 15 August, 2005, 22:48:37
Next alpha will be released this week, any further reports?
Title:
Post by: bastya_elvtars on 16 August, 2005, 20:05:44
1.0.0.2 out.

You will have to reinstall and reconfigure the bot, in the future, only updated components will be released. Sorry for the inconvenience. Download from my sig.

What you might expect to be added:


And of course, request more! :)

Enjoy!
Title:
Post by: bastya_elvtars on 21 August, 2005, 18:51:11
Created an svn repository on plop's server, and you will be able to download the changed components immediatly after the fix, without needing to unpack etc. However, the changed components will still have to be reconfigured, but a one-click update is much more suitable I think. The HOWTO for svn updating is on the way.
Title:
Post by: zinden on 21 August, 2005, 20:07:56
Errors:

[20:01] Syntax lawmaker/components/postman.lmc:190: attempt to index local `f' (a nil value)
[20:04] Syntax lawmaker/components/checking.lmc:761: attempt to index field `Prefixes' (a nil value)

using latest lawmaker + latest Ptokax


Edit: Hurry :)  got kinda many prefixes error.....
Title:
Post by: bastya_elvtars on 21 August, 2005, 20:16:22
QuoteOriginally posted by zinden
Errors:

[20:01] Syntax lawmaker/components/postman.lmc:190: attempt to index local `f' (a nil value)
[20:04] Syntax lawmaker/components/checking.lmc:761: attempt to index field `Prefixes' (a nil value)

using latest lawmaker + latest Ptokax


Edit: Hurry :)  got kinda many prefixes error.....

Looks like there is no metafiles folder inside components. Make one and restart.
Title:
Post by: bastya_elvtars on 21 August, 2005, 21:13:22
OK, sory, found the bug. Open scripts\lawmaker\components\postman.lmc

find

local f=io.open("lawmaker/components/metafiles/postman.dat")
and replace to

local f=io.open("lawmaker/components/metafiles/postman.dat","w+")
Sorry. Fixed.
Title:
Post by: zinden on 21 August, 2005, 21:25:53
[21:01] <-LawMaker-> Alltime peak share total is now (1.3267 TB).
[21:01] <-LawMaker-> Alltime peak users is now (42).
[21:01] <-LawMaker-> Alltime peak memory use is now (872.0000 B).
[21:04] <-LawMaker-> Alltime peak share total is now (1.3964 TB).
[21:04] <-LawMaker-> Alltime peak users is now (43).
[21:04] <-LawMaker-> Alltime peak share total is now (1.4021 TB).
[21:04] <-LawMaker-> Alltime peak users is now (44).
[21:04] <-LawMaker-> Alltime peak share total is now (1.4437 TB).
[21:04] <-LawMaker-> Alltime peak users is now (45).
[21:04] <-LawMaker-> Alltime peak share total is now (1.5012 TB).
[21:04] <-LawMaker-> Alltime peak users is now (46).
[21:06] <-LawMaker-> Alltime peak share total is now (1.6471 TB).
[21:06] <-LawMaker-> Alltime peak share total is now (1.6472 TB).
[21:07] <-LawMaker-> Alltime peak share total is now (1.6528 TB).
[21:07] <-LawMaker-> Alltime peak users is now (47).
[21:07] <-LawMaker-> Alltime peak share total is now (1.7281 TB).


How to disable this?
Title:
Post by: bastya_elvtars on 21 August, 2005, 21:40:30
QuoteOriginally posted by zinden
[21:01] <-LawMaker-> Alltime peak share total is now (1.3267 TB).
[21:01] <-LawMaker-> Alltime peak users is now (42).
[21:01] <-LawMaker-> Alltime peak memory use is now (872.0000 B).
[21:04] <-LawMaker-> Alltime peak share total is now (1.3964 TB).
[21:04] <-LawMaker-> Alltime peak users is now (43).
[21:04] <-LawMaker-> Alltime peak share total is now (1.4021 TB).
[21:04] <-LawMaker-> Alltime peak users is now (44).
[21:04] <-LawMaker-> Alltime peak share total is now (1.4437 TB).
[21:04] <-LawMaker-> Alltime peak users is now (45).
[21:04] <-LawMaker-> Alltime peak share total is now (1.5012 TB).
[21:04] <-LawMaker-> Alltime peak users is now (46).
[21:06] <-LawMaker-> Alltime peak share total is now (1.6471 TB).
[21:06] <-LawMaker-> Alltime peak share total is now (1.6472 TB).
[21:07] <-LawMaker-> Alltime peak share total is now (1.6528 TB).
[21:07] <-LawMaker-> Alltime peak users is now (47).
[21:07] <-LawMaker-> Alltime peak share total is now (1.7281 TB).


How to disable this?

I thought that was fixed. Open scripts\lawmaker\components\basic_hubstats.lmc. What is the value of HubStats.ParseInterval?
Title:
Post by: zinden on 21 August, 2005, 21:52:53
function HubStats.OnTimer()
  if HubStats.Timer<3600 then
    HubStats.Timer=HubStats.Timer+1
  else
    HubStats.Parse()
    timer=0
    Clear()
  end
end



HubStats.Timer=0


The only things i could find that had some timing to do.....

Edit:   HubStats.ParseInterval   couldent be found
Title:
Post by: bastya_elvtars on 21 August, 2005, 22:17:17
QuoteOriginally posted by zinden
function HubStats.OnTimer()
  if HubStats.Timer<3600 then
    HubStats.Timer=HubStats.Timer+1
  else
    HubStats.Parse()
    timer=0
    Clear()
  end
end



HubStats.Timer=0


The only things i could find that had some timing to do.....

Edit:   HubStats.ParseInterval   couldent be found

08. 09.
fixed: typo in rightclick of randomcustomannounce
fixed: hubstats bug (thx TiMeTrAVelleR)
added: custom interval setting for hubstats parsing (idea by TiMeTrAVelleR)

My bad, uploaded the wrong file. LOL

-- // Edit

Download (http://ptxscriptdb.psycho-chihuahua.net/download.php?view.88)
Title:
Post by: zinden on 22 August, 2005, 14:32:48
can you in the feature announce which files that been modified for updating the script?
So i dont need to reinstall the whole thing once i see a update.

Good work so far  :D
Title:
Post by: bastya_elvtars on 22 August, 2005, 14:48:00
QuoteOriginally posted by zinden
can you in the feature announce which files that been modified for updating the script?
So i dont need to reinstall the whole thing once i see a update.

Good work so far  :D

Yes, I would like to do this in the future, but the SVN does not allow exporting of changed files only. Gonna make some workaround, and making an SVN howto.
Title:
Post by: zinden on 29 August, 2005, 21:52:12
got a request, can you make it easier to add new tags for the script?

like a own text for adding tags and which dc they belong.

like:
"Strong DC++"

(that tag cant the script recognice)  sorry for spelling...  :D

then the script reads from that text file and give the client thats in the hub right tag.

or make it some other way, just as long we can add own tags for the script in a easy way.

Same goes for cheking.lmc file, try to make it smaller and make a own config file for config the hub settings.
Title:
Post by: bastya_elvtars on 29 August, 2005, 21:59:10
It's problematic to add new tags, since they are recognized in a special way. I think I will create a separate file for client tags and gonna release updates for it soon. I don't get why it canot recognize StrongDC though, same for Goofy++.

And yes, I am going to split checking.lmc up, and will strip the config files as well. Please be patient, these will only be available in Sep. :(
Title:
Post by: gander on 12 September, 2005, 10:08:22
keep on getting these errors

lawmaker/components/checking.lmc:765: attempt to compare nil with number
[10:05:23] <-LawMaker-> lawmaker/components/checking.lmc:516: attempt to compare nil with number


running it on 3.3.21 ptokax
using your LawMaker 1.0 alpha (

got it fixed...

but now i cant get any users in?
Title:
Post by: Psycho_Chihuahua on 12 September, 2005, 12:52:54
The only Problem i'm having atm is when i try to use !help

then i get this
[12:51:16] <-SanitariuM-> ...\PtokaX\scripts\lawmaker.lua:553: attempt to compare nil with number


At first i thought i had made a botchup by translating it to german but i have the same effect with the original english SVN Version (SVN Revision 15)
Title:
Post by: bastya_elvtars on 12 September, 2005, 13:10:49
QuoteOriginally posted by Psycho_Chihuahua
The only Problem i'm having atm is when i try to use !help

then i get this
[12:51:16] <-SanitariuM-> ...\PtokaX\scripts\lawmaker.lua:553: attempt to compare nil with number


At first i thought i had made a botchup by translating it to german but i have the same effect with the original english SVN Version (SVN Revision 15)

I will fix it as soon as I can, but cannot do it now. If somebody made a fresh SVN export and posted it, I would be grateful.
Title:
Post by: Psycho_Chihuahua on 12 September, 2005, 15:14:55
Here you go Bastya

I just downloaded a fresh Copy of Lawmaker from the SVN Server and packed it as rar

You can find it here

http://ptokax.psycho-chihuahua.net/?dir=Scripts/Lawmaker-SVN/ (http://ptokax.psycho-chihuahua.net/?dir=Scripts/Lawmaker-SVN/)

My Germanized Version you can find here:

http://ptokax.psycho-chihuahua.net/?dir=Scripts/Deutsch/ (http://ptokax.psycho-chihuahua.net/?dir=Scripts/Deutsch/)
Title:
Post by: gander on 12 September, 2005, 23:38:53
what about making a profile.xml too in the package??

still gets this error:

 lawmaker/components/checking.lmc:48: attempt to index field `?' (a nil value)

running it on latest ptokax and script pack above

well im running it on a small hub now as a sort of beta test ..waiting for the script to be error free :-)  


with the setting on slots and so on like this:


========================================================================================
Connection type   #   Max. slots          Ratio      Max. hubs   Min.limit
========================================================================================
28.8Kbps      #   50 slots      0.1 slots per hub      50 hubs      5 kB/s
========================================================================================
33.6Kbps      #   10 slots      0.1 slots per hub      50 hubs      5 kB/s
========================================================================================
56Kbps      #   10 slots      0.1 slots per hub      20 hubs      5 kB/s
========================================================================================
Cable      #   20 slots      0.1 slots per hub      30 hubs      12 kB/s
========================================================================================
DSL      #   20 slots      0.1 slots per hub      30 hubs      8 kB/s
========================================================================================
GPRS      #   4 slots      0.1 slots per hub      2 hubs      6 kB/s
========================================================================================
ISDN      #   4 slots      0.1 slots per hub      20 hubs      6 kB/s
========================================================================================
LAN(T1)      #   50 slots      0.1 slots per hub      30 hubs      20 kB/s
========================================================================================
LAN(T3)      #   120 slots      0.1 slots per hub      30 hubs      Not allowed
========================================================================================
Modem      #   20 slots      0.1 slots per hub      30 hubs      5 kB/s
========================================================================================
Satellite      #   8 slots      0.1 slots per hub      30 hubs      8 kB/s
========================================================================================
Wireless      #   30 slots      0.1 slots per hub      30 hubs      8 kB/s
========================================================================================



is this line 48?
  local Maxslotsforconn,Ratioforconn,Maxhubsforconn,minlimitforconn=Checks.SlotHubLimit.Rules[speed].max_slots,Checks.SlotHubLimit.Rules[speed].min_ratio,Checks.SlotHubLimit.Rules[speed].max_hubs,Checks.SlotHubLimit.Rules[speed].min_limit


im all new to this but found this

local _,_,limit1 = string.find(user.sMyInfoString,"[BLU]:(%d+)")
where it before said

local _,_,limit1= string.find(user.sMyInfoString,"[BLU]:(%d+)")
and the line below had a space before and after the =
can that be it?
Title:
Post by: bastya_elvtars on 12 September, 2005, 23:42:00
QuoteOriginally posted by gander
what about making a profile.xml too in the package??

No. Let the default profiles be enough, I don't want others to rewrite scripts due to being incompatible with my bot.

QuoteOriginally posted by gander
still gets this error:

 lawmaker/components/checking.lmc:48: attempt to index field `?' (a nil value)

And I still don't have HDD, so don't know what the f*ck is in line 48. Patience is a virtue. :D No offences, but I really cannot fix it now, thx for reporting anyway. (I wonder why Zinden hasn't reported these thou.)
Title: Op chat
Post by: Fruitbat? on 21 September, 2005, 18:52:15
just trying this on a small test hub sorry i am not the best at script but 2 things i have noticed.

1)vips can see OPchat convo's.if you upgrade a user to VIP they can see op chat pm if you remove the vip they cant but if you restart the script again then they see opchat again. i might be doing something wrong if i am soz  :(

2) sometimes this shows up

Syntax ........\scripts\lawmaker.lua:552: attempt to compare nil with number

other than that it is working very well and thx for your hard work.

running newest version of ptokax and no other scripts
Title:
Post by: bastya_elvtars on 21 September, 2005, 19:31:42
QuoteOriginally posted by Fruitbat?
1)vips can see OPchat convo's.if you upgrade a user to VIP they can see op chat pm if you remove the vip they cant but if you restart the script again then they see opchat again. i might be doing something wrong if i am soz  :(

Already fixed on SVN.

QuoteOriginally posted by Fruitbat?
2) sometimes this shows up

Syntax ........\scripts\lawmaker.lua:552: attempt to compare nil with number

That shouldn't happen. Paste your profiles.xml here, looks like you are using the non-standard profiles.
Title:
Post by: Fruitbat? on 21 September, 2005, 19:51:27
Psycho_Chihuahua dled SVN version this user posted

i use dcdm++ 0.048 as client with no mods to profiles.xml

hope that helps.

regards
fruitbat
Title:
Post by: bastya_elvtars on 21 September, 2005, 19:56:21
QuoteOriginally posted by Fruitbat?
Psycho_Chihuahua dled SVN version this user posted

i use dcdm++ 0.048 as client with no mods to profiles.xml

hope that helps.

regards
fruitbat

OK, then I will test this more thoroughly.

-- // Edit

Fixed in SVN. Thanks for reporting. If you don't know how SVN works, see here (http://ptxwiki.psycho-chihuahua.net/doku.php/misc/using_svn).
Title: thx for SVN link
Post by: Fruitbat? on 21 September, 2005, 21:32:21
thx for the link i have installed SVN everythign has a green tick next to it but for 2 txt files which i edited.

motd.txt and rules.txt

as had to restart pc for SVN i check opchat and the vip does still c it i dont know if this helps but if you need more info please ask me thx for you input and hard work

regards
fruitbat
Title:
Post by: bastya_elvtars on 21 September, 2005, 21:46:59
QuoteOriginally posted by Fruitbat?
thx for the link i have installed SVN everythign has a green tick next to it but for 2 txt files which i edited.

motd.txt and rules.txt

as had to restart pc for SVN i check opchat and the vip does still c it i dont know if this helps but if you need more info please ask me thx for you input and hard work

regards
fruitbat

You should do an Export as well into a different folder if you see that files are changed, the working directory should never be touched, only updated into. Also please delete:
scripts\lawmaker\components\metafiles\opchat.dat
scripts\lawmaker\components\metafiles\vipchat.dat

If you have prviously perm invited people, you have to do it again, sorry for the inconvenience.
Title:
Post by: Fruitbat? on 21 September, 2005, 23:06:38
sorry for dealy in reply

remove opchat.dat and vipchat.dat. i did open opchat and the vip was in there i will do some test and write down step by step to c if it happens again. if it does not happen will let u know.

the files r in 2 different folder so not to corrupt oraginal SVN copy.

once again thx for you help:D

regards fruitbat
Title: test done
Post by: Fruitbat? on 21 September, 2005, 23:16:56
1) deleted VIP in ptokax
2) vip came into hub as guest.
3) used right click to reg themself
4) user logged out and back into hub
5) lawmaker/registry/Upgrade USER to/VIP   <-LawMaker-> You have upgraded *******'s profile to: VIP.

error message in ptokax  Syntax lawmaker/components/registry.lmc:99: attempt to concatenate global `mrg' (a nil value)

6) user logged out and logged back into hub
7) VIP could not c OPChat
8) restart scripts
9) VIP can see OPcaht and VIP in is OPcaht.dat list


it seems if i restart script all VIPS in HUB then appear in opchat.dat


i hope this helps you once again thx for your hard work on a great looking script

regards fruitbat
Title:
Post by: bastya_elvtars on 22 September, 2005, 00:55:24
OK, now I am testing it. Found the registry bug, will see this opchat craziness.

-- // Edit

A little benchmark:

[00:51:52] <-LawMaker-> Userinfo database prune process started. This might take long, so please be patient!
[00:51:52] <-LawMaker-> This cleanup took 1.5789999999979 seconds, during that 2003 items were processed, and 2000 were deleted.

AMD Athlon XP 2500+(@1837)/512M PC3200 Dual DDR/Chainthech 7NJL6(nForce2 U400 MCPS) mobo.

-- // Edit #2

The opchat works fine for me now. I don't know how you got that result.
Title:
Post by: Fruitbat? on 22 September, 2005, 21:15:07
thx for reg update :D

the opchat problem has gone so no more problems there

and no errors today at all :D

thx for help

l8rs

fruitbat
Title:
Post by: bastya_elvtars on 22 September, 2005, 22:32:37
QuoteOriginally posted by Fruitbat?
thx for reg update :D

the opchat problem has gone so no more problems there

and no errors today at all :D

thx for help

l8rs

fruitbat

Glad to hear. Please test it further, any commnts/requests/reports are highly appreciated.
Title:
Post by: Psycho_Chihuahua on 23 September, 2005, 15:23:10
Bastya i've found a small minor problem

this Guy
Quote[15:15:29] <-SanitariuM->

Information von youri
=====================================

Total time spent in the hub: Aus unbekannten Gr?nden unauffindbar.
Profil: Guest
Verbindungsart: DSL
Modus: Active
Shared: 0 B
Total hubs: 88
Hubs als guest: 88
Hubs als registered user: 0
Hubs als operator: 0
Anzahl slots: 3
Slot/hub ratio: 0.034090909090909
Bandbreitenlimite: N/A.
Client typ: DC++
Client version: 0.674
Tag: <++ V:0.674,M:A,H:88/0/0,S:3,O:3>
E-mail adresse: N/A
=====================================

keeps getting in the hub even though my settings are

Quote["DSL"]=
{--------- options for DSL

         max_slots=20
,
         min_ratio=0.1
,
         max_hubs=6
,
         min_limit=5
},

and
Quote-- Min share in gigabytes:
Checks.Share.MinShare=0.5

He finally gets kicked or dropped but he is always in the hub for a while.

Any Ideas?
Title: error
Post by: gander on 24 September, 2005, 09:33:51
getting this error:

lawmaker/components/checking.lmc:48: attempt to index field `?' (a nil value)

running it on latest ptokax using latest lawmaker script

and running script alone...

Title:
Post by: bastya_elvtars on 24 September, 2005, 13:16:21
QuoteOriginally posted by gander
getting this error:

lawmaker/components/checking.lmc:48: attempt to index field `?' (a nil value)

running it on latest ptokax using latest lawmaker script

and running script alone...



That can either be a result of misconfiguration, or a user with  a weird connection type. When does this error occur? Can you post lawmaker\components\cfg\slot_hub_limit.ini file?
Title:
Post by: gander on 24 September, 2005, 15:55:13
same as the one posted in top of this page
Title:
Post by: bastya_elvtars on 24 September, 2005, 16:11:24
QuoteOriginally posted by gander
same as the one posted in top of this page

I am gonna join your hub tomorrow evening and see what is causing this.
Title: ok
Post by: gander on 26 September, 2005, 15:19:54
QuoteOriginally posted by bastya_elvtars
QuoteOriginally posted by gander
same as the one posted in top of this page

I am gonna join your hub tomorrow evening and see what is causing this.


youre welcome.... not appared again that error...hope it never does again :-)
Title:
Post by: bastya_elvtars on 27 September, 2005, 01:19:19
QuoteOriginally posted by gander
QuoteOriginally posted by bastya_elvtars
QuoteOriginally posted by gander
same as the one posted in top of this page

I am gonna join your hub tomorrow evening and see what is causing this.


youre welcome.... not appared again that error...hope it never does again :-)

Since the hubaddress in your sig leads me to a hub not running LawMaker, I won't join. :D
Title:
Post by: gander on 27 September, 2005, 11:27:41
gonna change to lawmaker then
Title:
Post by: bastya_elvtars on 28 September, 2005, 11:15:05
Would like to remove the client checking thingy, but unsure if it really eats a lot of CPU. Please post your stats here, and also try to estimate (using the CMD window) the amount of new connections per minute or hour. Thanks.


-- // Edit

This is from gander's hub:

[11:30:04] <-LawMaker->
------------------------------------------------------------
Current stats:
------------------------------------------------------------
Version: PtokaX DC Hub 0.3.3.21 [debug] built on Aug  1 2005 04:03:42
Uptime: 0 days, 1 hours, 26 minutes
Users (Max/Actual Peak (Max Peak)/Logged) : 750 / 254 (351) / 252
Chat messages: 706 x
Unknown commands: 0 x
PM commands: 28 x
Key commands: 1228 x
Supports commands: 1158 x
MyINFO commands: 1283 x
ValidateNick commands: 1225 x
GetINFO commands: 0 x
Password commands: 52 x
Version commands: 913 x
UserIP commands: 374 x
GetNickList commands: 921 x
Search commands: 1715 x
SR commands: 5351 x
CTM commands: 7814 x
RevCTM commands: 5879 x
BotINFO commands: 1 x
------------------------------------------------------------
CPU usage (60 sec avg): 0.55%
CPU time: 0:00:37
Mem usage (Old style): 2165 kB
Mem usage (Peak): 11.42 MB (22.71 MB)
VM size (Peak): 11.85 MB (18.05 MB)
------------------------------------------------------------
SendRests (Peak): 1 (7)
RecvRests (Peak): 0 (1)
Data sent: 43.70 MB
Data received: 1.90 MB
Tx (60 sec avg): 19.41 kB/s (6.06 kB/s)
Rx (60 sec avg): 269 B/s (218 B/s)

Runs trivia as well, so this is not bad, I think that mass redirection to you can cause some performance increase. I will do a research on this later on. Also, the chatstats plugin is quite heavy.
Title:
Post by: gander on 28 September, 2005, 12:15:42
well youre allways welcome in my hub basty... great work..

and minimum use of mem too

the client check works great

takes care of plenty with fake tag among others

what about adding like a function for op's

like a chatlog where the op's thats not online can type
like +opchat

to get chat in opchat when they were off..like the opchat++ script..."gets errors in mine so i dont use the one here"

or is this a bad idea?

Title:
Post by: bastya_elvtars on 28 September, 2005, 12:55:07
QuoteOriginally posted by gander
well youre allways welcome in my hub basty... great work..

and minimum use of mem too

the client check works great

takes care of plenty with fake tag among others

what about adding like a function for op's

like a chatlog where the op's thats not online can type
like +opchat

to get chat in opchat when they were off..like the opchat++ script..."gets errors in mine so i dont use the one here"

or is this a bad idea?



Opchat and vipchat history? Not a bad idea at all.
Title:
Post by: gander on 28 September, 2005, 12:57:25
and maybe..just maybe a function for users to add request in... who also pops up in motd?


just mindspinning a bit  8)
Title:
Post by: bastya_elvtars on 28 September, 2005, 12:58:42
QuoteOriginally posted by gander
and maybe..just maybe a function for users to add request in... who also pops up in motd?

Meaning showing the request board for new users on connect you mean?
Title:
Post by: gander on 28 September, 2005, 13:03:24
yes something like that...

like the release thing...by the way..love that function
and also the fact that its possible to put motd on or off for the users...

brilliant.........

is it stupid to suggest a advertiseblocker too?
Title: latest stats
Post by: gander on 28 September, 2005, 14:39:29
------------------------------------------------------------
Current stats:
------------------------------------------------------------
Version: PtokaX DC Hub 0.3.3.21 [debug] built on Aug  1 2005 04:03:42
Uptime: 0 days, 4 hours, 35 minutes
Users (Max/Actual Peak (Max Peak)/Logged) : 750 / 302 (351) / 297
Chat messages: 1662 x
Unknown commands: 0 x
PM commands: 72 x
Key commands: 3582 x
Supports commands: 3316 x
MyINFO commands: 4102 x
ValidateNick commands: 3545 x
GetINFO commands: 0 x
Password commands: 73 x
Version commands: 2550 x
UserIP commands: 1670 x
GetNickList commands: 2576 x
Search commands: 6652 x
SR commands: 24568 x
CTM commands: 27601 x
RevCTM commands: 21365 x
BotINFO commands: 2 x
------------------------------------------------------------
CPU usage (60 sec avg): 2.35%
CPU time: 0:02:41
Mem usage (Old style): 2207 kB
Mem usage (Peak): 10.52 MB (22.71 MB)
VM size (Peak): 13.16 MB (18.05 MB)
------------------------------------------------------------
SendRests (Peak): 0 (7)
RecvRests (Peak): 0 (2)
Data sent: 139.74 MB
Data received: 7.44 MB
Tx (60 sec avg): 14.99 kB/s (11.20 kB/s)
Rx (60 sec avg): 353 B/s (966 B/s)


connecting about 50 a minute

many because of max hublimit reduced to 50
Title:
Post by: bastya_elvtars on 29 September, 2005, 12:43:41
Your CPU usage is so high because of the clientside trivia script, it trigs chatstats everytime.
Title:
Post by: gander on 29 September, 2005, 13:39:00
well im not using the pc to anything else...

and one more idea

topic changer?
Title:
Post by: bastya_elvtars on 29 September, 2005, 13:45:47
QuoteOriginally posted by gander
well im not using the pc to anything else...

and one more idea

topic changer?

Topic changer? !topic
Title:
Post by: gander on 29 September, 2005, 13:49:00
:P

meant in the rightclick

hmm should have had that trivia script written so it can go in pm not main.. i know there is scripts for that but this script got a bit soul i guess thats why i keep it on..tryed the other ones and my users pm me to death so i had to change it back... hehe

and what about putting a rightclick

enableing the master/owner to raise or lower

share and max hubs / slots
Title:
Post by: Psycho_Chihuahua on 02 October, 2005, 21:51:29
as i have already mentioned to bastya, i am going on holiday for 10 days as of tomorrow.....in this time i am going to get as much done as i can do on the implementation of language files in lawmaker so that it will be easier for other "foreign language" users to translate it ito their own language.

well i got a good 4 hours on the plane and another 2 in madrid tomorrow to get started on it :D

i'll post my progression when i get back from my "vacation"
Title:
Post by: bastya_elvtars on 07 October, 2005, 04:29:37
I have had discussions with some hubowners recently, and I decided to make a plugin that allows to submit configfiles to the bot through the client and it checks them for errors and saves them, and restarts the script. :)

The rangefucker plugin is going to be removed, since PtokaX will have built-in rangebans.

Also, I am testing PtokaX beta builds and rewriting LawMaker to support the new banlist. I will release a second beta after the new PtokaX (which is cool so far) is out.

These should not prevent you from posting your current issues/ideas/suggestions. ;)
Title: written from an internet terminal in mallorca
Post by: Psycho_Chihuahua on 07 October, 2005, 10:01:14
Well, i have already copied all english lines from lawmaker over to seperate "*.lng" files so i have a better view.....just not having much time to spare as i'm in the middle of my "7 day refresh course" to get back my diving liscence i lost :)

a pitty i cant hook my laptop up to this terminal otherwise i would send you the first bit via email....but i'll send it to you next friday when i get back home....

And even if you change lawmaker a bit i will still see that i can help integrating the language files so that your gr8 script can be used all over the world in every language.
Title:
Post by: zinden on 10 October, 2005, 16:28:52
Which file holds the rightclick commands?
want to edit it and make it little more nicer layout  :)

request:
15 botnames shows up when you enter the hub....

[16:17] <-LawMaker-> Hello, Zinden! You are logging in as Operator.
[16:17] You are using DC++, version 0.674.
[16:17] You are currently sharing 80.631463750266 GB. The minimum share is currently set to 0 GB.
[16:17] Your connection is Cable. You are in Active mode.
[16:17] Your IP is 192.168.0.115.
[16:17] You are on 3 hub(s) in total. 3 as guest, 0 as registered, 0 as operator.
[16:17] Maximum hubs allowed for your connection is 50.
[16:17] You have 6 slots open. The maximum allowed for you is 50.
[16:17] According to these, your slot/hub ratio is 2.
[16:17] The required minimum is 0.2 slots per each hub for this connection.
[16:17] You aren't limiting your upload, the minimum limit allowed for your connection is 12 kB/s.
[16:17] <-LawMaker-> Welcome to Old Games, enjoy your stay, happy chatting and downloading!
[16:17] <-LawMaker-> Type !help in mainchat or in PM session with me to see the commands you can use.
[16:17] <-LawMaker-> You just got 108 rightclick commands, please try them! :)
[16:17] <-LawMaker-> LawMaker 1.0 alpha (LMCA) by bastya_elvtars (the rock n' roll doctor). Licensed under the GNU GPL, type +license for details.


Is there a way to instead make max 5 lines instead?
like:
<-LawMaker-> Type !profile for your profile info
<-LawMaker-> ...........

etc... That will make the lines alot less when you enter the hub.
Title:
Post by: bastya_elvtars on 10 October, 2005, 17:17:04
QuoteOriginally posted by zinden
Which file holds the rightclick commands?
want to edit it and make it little more nicer layout  :)

Every plugin registers some. So it would be a huge work.

QuoteOriginally posted by zinden
request:
15 botnames shows up when you enter the hub....

[16:17] <-LawMaker-> Hello, Zinden! You are logging in as Operator.
[16:17] You are using DC++, version 0.674.
[16:17] You are currently sharing 80.631463750266 GB. The minimum share is currently set to 0 GB.
[16:17] Your connection is Cable. You are in Active mode.
[16:17] Your IP is 192.168.0.115.
[16:17] You are on 3 hub(s) in total. 3 as guest, 0 as registered, 0 as operator.
[16:17] Maximum hubs allowed for your connection is 50.
[16:17] You have 6 slots open. The maximum allowed for you is 50.
[16:17] According to these, your slot/hub ratio is 2.
[16:17] The required minimum is 0.2 slots per each hub for this connection.
[16:17] You aren't limiting your upload, the minimum limit allowed for your connection is 12 kB/s.
[16:17] <-LawMaker-> Welcome to Old Games, enjoy your stay, happy chatting and downloading!
[16:17] <-LawMaker-> Type !help in mainchat or in PM session with me to see the commands you can use.
[16:17] <-LawMaker-> You just got 108 rightclick commands, please try them! :)
[16:17] <-LawMaker-> LawMaker 1.0 alpha (LMCA) by bastya_elvtars (the rock n' roll doctor). Licensed under the GNU GPL, type +license for details.


Is there a way to instead make max 5 lines instead?
like:
<-LawMaker-> Type !profile for your profile info
<-LawMaker-> ...........

etc... That will make the lines alot less when you enter the hub.

Will include a simplified/detailed login tool.
Title:
Post by: bastya_elvtars on 10 October, 2005, 18:14:50
A minimalistic website is up and running. Not too much content yet, but will be soon.
LawMaker Website (http://lawmaker.no-ip.org/)
Title:
Post by: zinden on 10 October, 2005, 19:51:51
bastya_elvtars:
Check the rightclick commands in this one.
Its based on SVN 21, newest one you added on the site.

Is it possible for you to work on this script instead?
So the rightclicks looks always like this.
That would help me out alot  :)
i dont think i can change all commands all the time when you update the script.

http://dcmods.mine.nu/Lawmaker.rar
If not working then go to the site and i uploaded it in forum.
Title:
Post by: zinden on 15 October, 2005, 19:14:15
error:
 lawmaker/components/checking.lmc:44: attempt to index field `?' (a nil value)

keep up with GREAT job you are doing with the script.
Title:
Post by: bastya_elvtars on 15 October, 2005, 20:08:44
Please post bugs/feature requests to my forum instead, I cannot keep track of them otherwise.
Title: about zinden's error
Post by: gander on 16 October, 2005, 16:09:06
i think that error only appear if you have like netfounder profile or other profiles then the default ones..cause i dont get any on the 2 hubs im running it on
Title:
Post by: zinden on 16 October, 2005, 16:53:50
i got default profiles only.......
reg, vip, operator, master
Title:
Post by: bastya_elvtars on 16 October, 2005, 17:37:23
I'll look into this in the evening, but only if posted to my forum. Bugs posted only here are likely to be ignored.
Title:
Post by: bastya_elvtars on 18 October, 2005, 14:45:33
The SVN access has been frozen till new PtokaX is out.
Also a new beta has been released.
Read more in the news section of my site (http://lawmaker.no-ip.org/pages/news.php).
Title:
Post by: stageline on 18 October, 2005, 17:23:08
Hello coders :))

[17:20:44] *** Connecting to 127.0.0.1:4111...
[17:20:44] *** Connected
[17:20:44] <-LawMaker-> The nick you are using is reserved for someone other. Change your nick and get back again.
[17:20:44] *** Disconnected

Nick: [OP]Stageline any not OK
 ?(

Stageline = ok
[OP]Stageline = no

Prefix problem..
Title:
Post by: bastya_elvtars on 18 October, 2005, 17:25:12
This seems to be the Admin's Nick in PtokaX... reset it.

And see the reserved nicks file.
Title:
Post by: 6Marilyn6Manson6 on 18 October, 2005, 22:46:00
 For testing:
 
  TiMeTrAVelleR, Psycho_Chihuahua
  Nidaros, Libbe, Darkstar and other Golden Angel ops,
  zinden, kaotkbliss and all the ops of PC Gamers,
  Mickey, Makavelli-2Pac, 6Marylin6Manson6, Psycho_Chihuahua, LiqUiD~TrolL

This is comment in main lua of LawMaker svn23... my nick not is correct :P. C ya :P
Title: hmm
Post by: gander on 24 October, 2005, 12:40:03
could not get activated on your forum :rolleyes:
Title:
Post by: 6Marilyn6Manson6 on 24 October, 2005, 12:43:52
Good versione svn23 no error after 2 days. C ya
Title:
Post by: bastya_elvtars on 24 October, 2005, 13:04:08
QuoteOriginally posted by gander
could not get activated on your forum :rolleyes:

Didn't you get an email?

- // Edit

I activated your account, I guess. Please try to login.
Title:
Post by: Bumbi on 24 October, 2005, 15:29:36
QuoteOriginally posted by gander
could not get activated on your forum :rolleyes:

I could not eigher ... Got a error from your mail server Bastya

Bumbi
Title:
Post by: bastya_elvtars on 24 October, 2005, 15:49:19
QuoteOriginally posted by Bumbi
QuoteOriginally posted by gander
could not get activated on your forum :rolleyes:

I could not eigher ... Got a error from your mail server Bastya

Bumbi

Error from my mail server??? WTF?

-- // Edit

Please use the guest part of the forum for this.
Title:
Post by: gander on 24 October, 2005, 17:36:01
thanks basty :)
Title:
Post by: bastya_elvtars on 24 October, 2005, 17:46:06
Forgot to restart apache after a switch from PHP4 to PHP5.  ;(
Title: Re: LawMaker
Post by: SilvaO on 04 March, 2006, 17:00:55
Can?t find a slots command  ???
Title: Re: LawMaker
Post by: bastya_elvtars on 04 March, 2006, 17:03:39
Quote from: SilvaO on 04 March, 2006, 17:00:55
Can?t find a slots command  ???

What is such a command supposed to do? And why don't ask this in the dedicated board? :(
Title: Re: LawMaker
Post by: bastya_elvtars on 10 March, 2006, 00:22:34
Last revision before alpha out, see http://lawmaker.no-ip.org/pages/posts/needful-things...8.php
Title: Re: LawMaker
Post by: 6Marilyn6Manson6 on 10 March, 2006, 00:27:37
LawMaker... the best bot in Lua :D