LawMaker
 

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, 03 March, 2005, 02:07:11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bastya_elvtars

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!
Everything could have been anything else and it would have just as much meaning.

Skynet

#1
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:2099attempt to index local `f' (a nil value)
sky

Copyright SkynetSystems 2000-2005 @Phoenix Network

6Marilyn6Manson6

#2
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

6Marilyn6Manson6

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 :)

bastya_elvtars

#4
@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.
Everything could have been anything else and it would have just as much meaning.

6Marilyn6Manson6

#5
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 :)

bastya_elvtars

Thanks for your reports. Fixed the text file handling, also tried to fix the loading crash - successfully. :D

Putting it to web soon.
Everything could have been anything else and it would have just as much meaning.

6Marilyn6Manson6

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 :)

bastya_elvtars

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.
Everything could have been anything else and it would have just as much meaning.

6Marilyn6Manson6

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

MAKAVELI-2PAC

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
Only God Can Judge Me !!!!!

bastya_elvtars

#11
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."
Everything could have been anything else and it would have just as much meaning.

kbeh273300

#12
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)
-=United Kings network=-
Network Webpage?
Hub address: houseofkings.no-ip.org:420
hub webpage
hub forum

bastya_elvtars

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.
Everything could have been anything else and it would have just as much meaning.

bastya_elvtars

#14
OK, done. Download from my sig.

    [*]getn error fixed
    [*]textfiles error hopefully fixed at last
    [*]some other small shit
    [/list]

    Enjoy!

    -- // edit


    Found a critical bug. Fixed and DL link updated.
    Everything could have been anything else and it would have just as much meaning.

    kbeh273300

    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 :)
    -=United Kings network=-
    Network Webpage?
    Hub address: houseofkings.no-ip.org:420
    hub webpage
    hub forum

    6Marilyn6Manson6

    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 ;)

    bastya_elvtars

    @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.
    Everything could have been anything else and it would have just as much meaning.

    6Marilyn6Manson6

    #18
    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 :) ]

    bastya_elvtars

    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.
    Everything could have been anything else and it would have just as much meaning.

    bastya_elvtars

    QuoteSyntax 2lawmaker_0.7_bigmem.lua5.lua:4698: attempt to concatenate field `sMyInfoString' (a nil value)

    What other scripts do you run?
    Everything could have been anything else and it would have just as much meaning.

    kbeh273300

    just wanted to let ya know that the  !uptime   isnt working either,always says Current hub uptime is: 0 minutes
    -=United Kings network=-
    Network Webpage?
    Hub address: houseofkings.no-ip.org:420
    hub webpage
    hub forum

    bastya_elvtars

    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. ;)
    Everything could have been anything else and it would have just as much meaning.

    bastya_elvtars

    #23
    New version is:

    LawMaker 0.8 RC3 (test1)

    Changes:



    • Adapted to PtokaX API almost fully (thx PPK and Typhoon)
    • Fixed uptime error (thx PPK, he put it into API)
    • Topic is fixed, however it's a PtokaX fix (thx PPK)
    • Fixed broken file handlers (releases, etc) (thx angelsanges for report)
    • Hopefully fixed myinfo crash (thx bastya_elvtars :D)
    • Fixed lagtest crash (thx RabidWombat)

    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.)
    Everything could have been anything else and it would have just as much meaning.

    6Marilyn6Manson6

    QuoteP. S.: Multilanguage is on the way (Italian will be the second language.)


    Can I made it? Please

    SMF spam blocked by CleanTalk