LawMaker - Page 5
 

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

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

Psycho_Chihuahua

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/

My Germanized Version you can find here:

http://ptokax.psycho-chihuahua.net/?dir=Scripts/Deutsch/
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

gander

#102
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?

bastya_elvtars

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

Fruitbat?

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

bastya_elvtars

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

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

bastya_elvtars

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

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

bastya_elvtars

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

Fruitbat?

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

Fruitbat?

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

bastya_elvtars

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

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

bastya_elvtars

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

Psycho_Chihuahua

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?
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

gander

#116
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...


bastya_elvtars

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

gander

same as the one posted in top of this page

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

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

bastya_elvtars

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

gander

gonna change to lawmaker then

bastya_elvtars

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

gander

#124
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?


SMF spam blocked by CleanTalk