Old 11-06-2005, 04:38 AM   #1
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default jTQ

jTQ is trial/quota script

Code:
 - normal quota/trial for users
 - group quota for groups
 - on fail trial 
   * delete acount
   * disable acount
 - on fail quota
   * nothing
   * delete acount
   * disable acount
   * move acount to trial group
   * remove credits
jeza is offline   Reply With Quote
Old 11-07-2005, 04:03 PM   #2
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

hmm

Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\ioFTPD\system>jscripts.exe CHECK
ERROR: InitializeSharedMemory - FAILED
zOrP is offline   Reply With Quote
Old 11-07-2005, 04:12 PM   #3
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

and..

[22:07:54] [xxx] [22:07] can't read "jTQ(time_trigers)": no such element in array
[22:07:54] [xxx] while executing
[22:07:54] [xxx] "foreach prc $jTQ(time_trigers) {
[22:07:54] [xxx] set n [split $prc "-"]
[22:07:54] [xxx] [lindex $n 1] min hour day month year
[22:07:54] [xxx] }"
[22:07:54] [xxx] (procedure "jTQ:BiND" line 12)
[22:07:54] [xxx] invoked from within
[22:07:54] [xxx] "jTQ:BiND"
[22:07:54] [xxx] (file "scripts/jTQ/jTQ.tcl" line 1631)
[22:07:54] [xxx] invoked from within
[22:07:54] [xxx] "source scripts/jTQ/jTQ.tcl"
[22:07:54] [xxx] (file "eggdrop.conf" line 310)
[22:07:54] [xxx] [22:07] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
DCC session closed

on rehash
zOrP is offline   Reply With Quote
Old 11-07-2005, 04:31 PM   #4
anetacz
Junior Member
 
Join Date: Jul 2005
Posts: 6
Default

C:\ioFTPD\system>jscripts.exe CHECK

i have same problem ..failed
anetacz is offline   Reply With Quote
Old 11-07-2005, 05:21 PM   #5
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

blup

iNFO

jTQ With jScripts.exe will work only if u have :
- ioFTPD installed in c:\ioFTPD
- WindowName = ioFTPD::MessageWindow

---------------------------------------------------------------

INSTALATiON
...
jeza is offline   Reply With Quote
Old 11-07-2005, 05:39 PM   #6
anetacz
Junior Member
 
Join Date: Jul 2005
Posts: 6
Default

i have all option from your instalation nfo...but still failed
anetacz is offline   Reply With Quote
Old 11-07-2005, 06:28 PM   #7
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

yup..
here too.. i have set that.. :/
could it be because io is running as a service ?
zOrP is offline   Reply With Quote
Old 11-08-2005, 07:12 AM   #8
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

it should work if u have this message window
i tested with firedaemon and it worked
make sure u have interact with desktop checked

-> can't read "jTQ(time_trigers)": no such element in array
typo in jTQ.conf -
find set jTQ(time_triggers) and change to set jTQ(time_trigers)

if still doesnt work i sugest to use some other script for trial/quota
jeza is offline   Reply With Quote
Old 11-08-2005, 05:03 PM   #9
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

hehe..
No thanks.. i wanna try this one.. :>
and after i interact it works.

But

[23:06:43] [xxx] [23:06] ..jTQ...: LOCALE UPDATE
[23:06:43] [xxx] [23:06] ..jTQ...: C:/ioFTPD/system/jScripts.exe BCUSTATS 0 FAiLED (ERROR: InitializeSharedMemory - FAILED
[23:06:43] [xxx] child process exited abnormally)
[23:06:43] [xxx] [23:06] ..jTQ...: TRiAL CHECK
[23:06:43] [xxx] [23:06] ..jTQ...: QUOTA CHECK
[23:06:43] [xxx] [23:06] ..jTQ...: 528h To The End Of Month
[23:06:43] [xxx] [23:06] ..jTQ...: PASSED 'CREATE'
[23:06:43] [xxx] [23:06] Tcl error in file 'eggdrop.conf':
[23:06:43] [xxx] [23:06] syntax error in expression "1500-": premature end of expression
[23:06:43] [xxx] while executing
[23:06:43] [xxx] "expr $jTQ(quota_[lindex $n 0])-$jTQ(number_amount)"
[23:06:43] [xxx] (procedure "jTQ:PASSED" line 356)
[23:06:43] [xxx] invoked from within
[23:06:43] [xxx] "jTQ:PASSED nick uhost hand $jTQ(default_admin_chan) [lindex $line 0]"
[23:06:43] [xxx] (procedure "jTQ:QUOTACHECK" line 72)
[23:06:43] [xxx] invoked from within
[23:06:43] [xxx] "[lindex $n 1] min hour day month year"
[23:06:43] [xxx] (procedure "jTQ:BiND" line 14)
[23:06:43] [xxx] invoked from within
[23:06:43] [xxx] "jTQ:BiND"
[23:06:43] [xxx] (file "scripts/jTQ/jTQ.tcl" line 1631)
[23:06:43] [xxx]
[23:06:43] [xxx] [23:06] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
DCC session closed

after i changed time trigers
zOrP is offline   Reply With Quote
Old 11-08-2005, 05:18 PM   #10
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

yes
because ERROR: InitializeSharedMemory - FAILED
that means message window "ioFTPD::MessageWindow" was not found
jeza is offline   Reply With Quote
Old 11-08-2005, 06:03 PM   #11
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

[Threads]
Process_Priority = NORMAL # Suggested process base priority (Idle/Normal/High/Realtime)
Io_Threads = 2 # Number of io threads
Worker_Threads = 5 # Number of worker threads
Encryption_Threads = 2 # Number of encryption threads
WindowName = ioFTPD::MessageWindow

but after i did interact the cmd worked..

jscripts.exe CHECK

just bot ****ing..
zOrP is offline   Reply With Quote
Old 11-09-2005, 01:51 AM   #12
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

if jscripts.exe works its ok now
just to be sure u can run
jscripts.exe bcustats 0
to see if u get some feedback

for jTQ :
i didnt test the script with blowfish disabled
so thats why there was this error with jTQ(time_trigers)
so when u switch to blowfish u must change back to jTQ(time_triggers)

and when u rehash your bot
bot will auto update stats (.jTQ...: LOCALE UPDATE)
u will get output in chan for !trials and !quotas
and perhaps something else
so i suggest to use blowfish or wait until i post a fix
jeza is offline   Reply With Quote
Old 11-09-2005, 04:45 PM   #13
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

hmm..
nice script though.

Got everything working yesterday.

But now this morning i get

[08:34:09] [@xxx] !passed user
[08:34:09] [@xxx] -xxx/QUOTA- > user has 20 Day(s) To Pass 1500/1500MB (75MB/DAY) MNUP (#4)
[08:34:09] [@xxx] ..jTQ...: C:/ioFTPD/system/jScripts.exe CHANGECREDITS user -1000 FAiLED (couldn't duplicate input handle: bad file number)
[20:18] Tcl error [jTQ:PASSED]: invoked "break" outside of a loop

and besides, isnt it only supposed to take credits on failed and not on every check ?


and on !rehash
08:32:07] [@xxx] !rehash
[08:32:07] [@xxx] ..jTQ...: C:/ioFTPD/system/jScripts.exe BCUSTATS 0 FAiLED (couldn't duplicate input handle: bad file number)

strange though.
CAuse if i do cmd..
jscripts.exe bcustats 0
works fine
and all other cmds working fine too..


And any way to make it work without interact with desktop ?
otherwise sitebot window wont dissapear.. :/

And last error.

on !quotas i get
[13:28:15] [@xxx] -xxx/PASSED- > user (31340MB)

and !passed says
[13:28:11] [@xxx] -xxx/QUOTA- > user upped 29840MB/1500MB > MNUP (#1) with 20 Day(s) left

which is true ?

other than that. nice work. :>
zOrP is offline   Reply With Quote
Old 11-15-2005, 12:10 PM   #14
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

HMM..
seems i found the error.

Run your eggdrop in -nt mode, and first 2 errors dissapear.

But the !passed and !quotas still says different amount. 500mb

last problem.
how do i hide window when running -nt mode.
using firedaemon ?
zOrP is offline   Reply With Quote
Old 11-15-2005, 01:33 PM   #15
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

31340-1500=29840
on quotas u see total amount user upped
on passed u can choose betwen total , missing, how_many_over
try it like this:
xxx/QUOTA- > user upped 29840MB over the 1500MB quota > MNUP (#1) with 20 Day(s) left

yes allways use -nt

i use firedaemon
interact with desktop checked and runs on hiden mode

->
"credits" on end of month
in config says how many MB to take from user on fail
it should be kB not MB
jeza is offline   Reply With Quote
Reply

Tags
acount, disable, fail, jtq, trial

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:32 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)