PtokaX forum

Forum => News => Topic started by: PPK on 24 April, 2005, 02:40:25

Title: PtokaX 0.3.3.0 build 17.03 released...
Post by: PPK on 24 April, 2005, 02:40:25
Changelog:
QuoteFixed: Crash on bad AddRegUser from lua (thx NightLitch for report).
Fixed: !tempunban command (thx UwV for report).
Fixed: Division by zero in Lua crash.
Changed: !stat hub commands working as !stats too.

Download from PtokaX (http://www.ptokax.org) homepage :]
Title:
Post by: blackwings on 24 April, 2005, 03:23:59
Fixed: Division by zero in Lua crash. So you fixed it, nice ;)
Title:
Post by: Psycho_Chihuahua on 24 April, 2005, 04:08:29
QuoteOriginally posted by PPK
Changelog:
QuoteFixed: Crash on bad AddRegUser from lua (thx NightLitch for report).
Fixed: !tempunban command (thx UwV for report).
Fixed: Division by zero in Lua crash.
Changed: !stat hub commands working as !stats too.

Download from PtokaX (http://www.ptokax.org) homepage :]

Mirror (http://ptokax.psycho-chihuahua.net) also up to date  :D
Title:
Post by: blackwings on 24 April, 2005, 11:15:19
just a curious question:

PPK, do you consider that 17.03 is as stable as 15.25, or does ptokax needs more work on before it becomes as stable as 15.25??
Title: What has changed in $lock / $key ???
Post by: ruspant on 24 April, 2005, 18:08:01
Hy guys,
I've got a problem loggin in my multichat server on 17.03

I've got a multichat written by myself in VB6 wich use Lock2Key taken from

http://dcplusplus.sourceforge.net/wiki/index.php/LockToKey

(VB6 or VB.NET are almost the same)

Ptokax seems not to recognize the $key sent back by my multichat ... but only with 17.03.
With 16.09 all works fine.

Have I missed something ?
Maybe the code is incomplete but I'm not being able to find any docs about building the $key.

Could you please post here the correct code/algorithm needed ?

txh
Ruspant
Title:
Post by: ??????Hawk?????? on 24 April, 2005, 19:23:46
Taken from an early version of Hub Link

Also used in My  GUI/Link  working with px v17.03


'  I Copied this function from....
'
'  Shadows Direct Connect
'  Copyright (C) Andrew Osmond
'  E-Mail: [EMAIL]tasburrfoot@users.sourceforge.net[/EMAIL]
'
'  This program is free software; you can redistribute it and/or modify
'  it under the terms of the GNU General Public License as published by
'  the Free Software Foundation; either version 2 of the License, or
'  (at your option) any later version.
'
'  This program is distributed in the hope that it will be useful,
'  but WITHOUT ANY WARRANTY; without even the implied warranty of
'  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'  GNU General Public License for more details.
'
'  You should have received a copy of the GNU General Public License
'  along with this program; if not, write to the Free Software
'  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Public Function LockToKey(ByRef Lck As String, ByVal n As Long) As String

  Dim aByte() As Byte, h As Integer, ub As Integer
 
  'n = 5 for hub and client locks
 
  h = InStrB(1, Lck, " ")
  If h Then Lck = LeftB$(Lck, h - 1)
  'The lock only continues to the first space (Pk= comes after)
 
  'Convert it to a byte array
  ub = Len(Lck) - 1
  ReDim aByte(ub) As Byte
  aByte = StrConv(Lck, vbFromUnicode)
 
  'The first character is handled differently from the others
  h = aByte(0) Xor aByte(ub) Xor aByte(ub - 1) Xor n
  h = (h \ 16) Xor (h * 16)
  'Equivalent of bit shifting four to the right (\ 2^4) Xor four to the left (* 2^4)
 
  'If h is greater than 255, we can't get a character out of it
  Do While h > 255
    h = h - 256
  Loop
 
  'Check for illegal characters
  Select Case h
    Case 0, 5, 36, 96, 124, 126
      LockToKey = "/%DCN" & RightB$("00" & h, 6) & "%/"
    Case Else
      LockToKey = Chr$(h)
  End Select
 
  'Now the rest of the characaters in the lock are handled the same
  For n = 1 To ub
    h = aByte(n) Xor aByte(n - 1)
   
    h = (h \ 16) Xor (h * 16)

    Do While h > 255
      h = h - 256
    Loop
 
    Select Case h
      Case 0, 5, 36, 96, 124, 126
        LockToKey = LockToKey & "/%DCN" & RightB$("00" & h, 6) & "%/"
      Case Else
        LockToKey = LockToKey & Chr$(h)
    End Select
  Next
 
  Exit Function
 
End Function
Title:
Post by: PPK on 24 April, 2005, 19:57:58
QuoteOriginally posted by blackwings
as stable as 15.25
15.25 and stable  ?( 15.25 crash any small kid in few seconds  :D

QuoteOriginally posted by ruspant
Ptokax seems not to recognize the $key sent back by my multichat ... but only with 17.03.
With 16.09 all works fine.
Is your multichat server available to download  ?( I want to test it and find where is problem  :]
Title:
Post by: ??????Hawk?????? on 24 April, 2005, 20:08:22
No probs here  with my GUI/LINK  . no changes needed for 17.03

must be your end ruspant
Title:
Post by: PPK on 24 April, 2005, 20:40:06
Checked with DC1, DC2, DC++ 0.181, DC++ 0.668, CZDC++ 0.666x, StrongDC++ RC9f2 and no problems with $Key  :rolleyes:
Title:
Post by: witch on 24 April, 2005, 21:23:27
hola amigos!
is this version include LUASockets? lot's of ppl stays with old ptokax cose it's include LUASockets...

thx  :))
Title:
Post by: ??????Hawk?????? on 24 April, 2005, 21:31:48
QuoteOriginally posted by witch
hola amigos!
is this version include LUASockets? lot's of ppl stays with old ptokax cose it's include LUASockets...

thx  :))


NO  ...


but this is no reason to stay with an outdated hub soft...

what exactly do you need that you couldnt live without that requires Sockets  ????
Title:
Post by: witch on 24 April, 2005, 21:40:43
QuoteOriginally posted by ??????Hawk??????
QuoteOriginally posted by witch
hola amigos!
is this version include LUASockets? lot's of ppl stays with old ptokax cose it's include LUASockets...

thx  :))


NO  ...


but this is no reason to stay with an outdated hub soft...

what exactly do you need that you couldnt live without that requires Sockets  ????
i using very nice ShoutStats script, with out it my and some other psy trance hubs will look so poor, HERE (http://board.univ-angers.fr/thread.php?threadid=4078&boardid=28&sid=17d4c0e40beffc160f8a41863ae1aafa) is more info

thx  :))
Title:
Post by: PPK on 24 April, 2005, 22:22:56
QuoteOriginally posted by witch
is this version include LUASockets?
No here is no reason to include any other lib to PtokaX. If you want luasocket, lusql etc then compile dll and load lit from lua  :]
Title:
Post by: blackwings on 24 April, 2005, 22:43:23
QuoteOriginally posted by PPK
QuoteOriginally posted by blackwings
as stable as 15.25
15.25 and stable  ?( 15.25 crash any small kid in few seconds  :D
I have used 15.25 for a long time(was easy to find this leaked beta on DC:P) and I have never had problems with 15.25 :) So 17.03 is more stable, ok, thats good to know :)

btw, what did you mean with "crash any small kid" ?(
Title:
Post by: Tw?sT?d-d?v on 24 April, 2005, 22:51:28
QuoteOriginally posted by blackwings
QuoteOriginally posted by PPK
QuoteOriginally posted by blackwings
as stable as 15.25
15.25 and stable  ?( 15.25 crash any small kid in few seconds  :D
I have used 15.25 for a long time(was easy to find this leaked beta on DC:P) and I have never had problems with 15.25 :) So 17.03 is more stable, ok, thats good to know :)

btw, what did you mean with "crash any small kid" ?(

I think he means any one (kid) could crash that build :D
Title:
Post by: PPK on 24 April, 2005, 22:59:19
QuoteOriginally posted by blackwings
btw, what did you mean with "crash any small kid" ?(
Send $MyINFO > 256 chars, send looong $GetINFO$GetINFO$GetINFO$GetINFO$GetINFO$GetINFO$GetINFO, flood with $MyINFO with special description tag... and more  :D
Title:
Post by: bastya_elvtars on 24 April, 2005, 23:12:22
If we are here ask BCDC developers to use luasockets then you won't have to lag the hub and shoutstats will be available independent of hubsoft. There is a good reason why they cannot implement it.
Title:
Post by: witch on 24 April, 2005, 23:14:17
QuoteOriginally posted by PPK
QuoteOriginally posted by witch
is this version include LUASockets?
No here is no reason to include any other lib to PtokaX. If you want luasocket, lusql etc then compile dll and load lit from lua  :]
damn dude u talkin chinese now 4 me.....heheh..... can u help me with it ?(

dekuy  :))
Title:
Post by: blackwings on 24 April, 2005, 23:26:10
QuoteOriginally posted by PPK
QuoteOriginally posted by blackwings
btw, what did you mean with "crash any small kid" ?(
Send $MyINFO > 256 chars, send looong $GetINFO$GetINFO$GetINFO$GetINFO$GetINFO$GetINFO$GetINFO, flood with $MyINFO with special description tag... and more  :D
well, I know that 17.03 blocks most flooders, but that wasn't I was talking about ;)

I was speaking in general here. When I asked about being stable, I meant that these kind of problems (and other similar problems)doesn't happen or less chance it happens etc = bugs that makes the software the crash(which isn't because of a flooder), disconnect users, connection resets, timeouts, users have problems to connects to each other or just disconnect everyone and other problems that could cause problems for users ?(
Title:
Post by: PPK on 25 April, 2005, 00:24:21
QuoteOriginally posted by witch
can u help me with it ?(
No, i don't know how to do it...

QuoteOriginally posted by blackwings
well, I know that 17.03 blocks most flooders
15.25 is unstable without flooding :D

QuoteOriginally posted by blackwings
bugs that makes the software the crash(which isn't because of a flooder)
Any software contains bugs... and PtokaX is not exception X(

QuoteOriginally posted by blackwings
disconnect users, connection resets
Ptokax contains udp debug and OP running small app (http://czdcplusplus.no-ip.org/spion.png) is able to check why PtokaX disconnect users... most disconnect is "connection reset" on receiving data :rolleyes:
QuoteOriginally posted by blackwings
timeouts
If is timeout to hub then is hard to find where is problem :(
QuoteOriginally posted by blackwings
users have problems to connects to each other
Hub (PtokaX) only send connection request from one user to other. This working ok in PtokaX and not cause any problems.
QuoteOriginally posted by blackwings
or just disconnect everyone
Need to be checked why it do... udp debug help with this :)) But as i say before, most disconnect is "connection reset" on try to receive data from user, here is probably no way to fix this X(
Title:
Post by: witch on 25 April, 2005, 01:09:52
nah ja thx anyways, gona stay with 15.25.....love that version, very stable and no surprises 4 long time  :D
Title:
Post by: Herodes on 25 April, 2005, 01:27:39
QuoteOriginally posted by witch
nah ja thx anyways, gona stay with 15.25.....love that version, very stable and no surprises 4 long time  :D
how on earth can you balance the advantages of the latest PtXs with that old rusty 15.25 ?
It is possible to use sockets with the latest PtokaXs but the development of the sockets library is in beta stage, so it is not ppk's nor ptaczek's fault. You can still use it.. but you need to know how and you can't count on it perfoming.

anyhow .. just reading again through the fixes in the latest versions would make me forget the parting the of the sockets.

Many many thx to ppk for his hard hard work..
Title:
Post by: bastya_elvtars on 25 April, 2005, 01:33:57
QuoteOriginally posted by witch
nah ja thx anyways, gona stay with 15.25.....love that version, very stable and no surprises 4 long time  :D

Its up to you, but don't come here crying: "I have been flooded!"
Title:
Post by: blackwings on 25 April, 2005, 03:18:43
QuoteOriginally posted by bastya_elvtars
QuoteOriginally posted by witch
nah ja thx anyways, gona stay with 15.25.....love that version, very stable and no surprises 4 long time  :D

Its up to you, but don't come here crying: "I have been flooded!"
ehm, maybe he is running Deflood 5 ;)
Title:
Post by: PPK on 25 April, 2005, 04:54:22
QuoteOriginally posted by blackwings
ehm, maybe he is running Deflood 5 ;)
Maybe, but always is too easy to crash it :P
Title:
Post by: witch on 25 April, 2005, 12:10:22
lol guys!!!!
all i'm say is that i like Shoutstats a lot and i don't bloody know how to make socets on new ptokax, instead telling how bad i am will be COOL if u would help all of us who using 15.25 for same reason is me lol, but u do oposite.....yeah it's easy way ah?  :rolleyes:

and bastya_elvtars i never cryed that i'm was flooded or something lol, it is GOOD ppl on this world who make all my flooders say "sorry" for flood.

have a nice day  :))
Title:
Post by: dkt on 25 April, 2005, 22:21:42
i coulnt connect to my ptokax 17.02 or 17.03 hub
*** Connecting to 172.16.3.59...
*** Connected
after this nothing happens

this is my ptokaxdebug.log
---------------------------4/26/2005 1:08:38 AM---------------------------
Exception 'EAccessViolation' in module PTOKAX.HWD at 001A50D5
Access violation at address 005A60D5 in module 'PTOKAX.HWD'. Read of address FFFFFFFF

Call stack:
:005A60D5 [PTOKAX.HWD]
:BFF73A26 [KERNEL32.DLL]
:BFF6EF19 [KERNEL32.DLL]
:BFE89084 [COMCTL32.DLL]
:BFE89095 [COMCTL32.DLL]
:BFE890AA [COMCTL32.DLL]
:BFE9A01F [COMCTL32.DLL]
:BFF62A20 [KERNEL32.DLL]
:BFF42405 [USER32.DLL]
:BFEC51F2 [COMCTL32.DLL]
:BFEB0D78 [COMCTL32.DLL]
:BFF6BB26 [KERNEL32.DLL]
:0052313B [PTOKAX.HWD]
:005230BA [PTOKAX.HWD]
:0052313C [PTOKAX.HWD]
:BFEC164B [COMCTL32.DLL]
:005A06C1 [PTOKAX.HWD]
:BFEC15EF [COMCTL32.DLL]
:BFEACFF9 [COMCTL32.DLL]
:BFF45749 [USER32.DLL]
:BFE815C2 [COMCTL32.DLL]
:BFF6287A [KERNEL32.DLL]
:00522D46 [PTOKAX.HWD]
:BFF424B4 [USER32.DLL]
:BFE9A5E2 [COMCTL32.DLL]
:737139E0 [WS2_32.DLL]
:7371A090 [WS2_32.DLL]
:BFF6B8DC [KERNEL32.DLL]
:BFF641CF [KERNEL32.DLL]
:BFF70F89 [KERNEL32.DLL]
:79FB4418 [MSAFD.DLL]
:BFF6B8DC [KERNEL32.DLL]
:BFF641CF [KERNEL32.DLL]
:BFF6B8F7 [KERNEL32.DLL]
:BFF6B989 [KERNEL32.DLL]
:BFF641CF [KERNEL32.DLL]
:BFF9697C [KERNEL32.DLL]
:BFF969BF [KERNEL32.DLL]
:79FB4078 [MSAFD.DLL]
:79FB386A [MSAFD.DLL]
:7370124D [WS2HELP.DLL]
:BFF6BB26 [KERNEL32.DLL]
:7371391C [WS2_32.DLL]
:BFF6BB26 [KERNEL32.DLL]
:BFF6CA01 [KERNEL32.DLL]
:005A55EB [PTOKAX.HWD]
:00452E07 [PTOKAX.HWD] theLoop::AcceptUser (serviceLoop.cpp, line 181)
:BFF6BB0F [KERNEL32.DLL]
:005235F4 [PTOKAX.HWD]
:BFF6BB26 [KERNEL32.DLL]
:00452B84 [PTOKAX.HWD] theLoop::ProcessAccepts (serviceLoop.cpp, line 117)
:0045315C [PTOKAX.HWD] theLoop::FOnTimer (serviceLoop.cpp, line 228)
:0050AAB6 [PTOKAX.HWD]
:004F964D [PTOKAX.HWD]
:00502088 [PTOKAX.HWD]
:0059167F [PTOKAX.HWD]
:00595A73 [PTOKAX.HWD]
:00591B75 [PTOKAX.HWD]
:00591C0D [PTOKAX.HWD]
:005E0D2D [PTOKAX.HWD]
:0046703F [PTOKAX.HWD] LuaScriptsSet::GetGcInfo (luaInterface.cpp, line 3855)
:004074BB [PTOKAX.HWD] ThubForm::tmrGuiRefreshTimer (frmHub.cpp, line 919)
:0049CB31 [PTOKAX.HWD] lua_pcall (lapi.c, line 685)
:005688C2 [PTOKAX.HWD]
:005687A8 [PTOKAX.HWD]
:0050AAB6 [PTOKAX.HWD]
:BFF63613 [KERNEL32.DLL]
:BFF848F7 [KERNEL32.DLL]
:BFF619B8 [KERNEL32.DLL]
:BFF6186D [KERNEL32.DLL]
:005654DC [PTOKAX.HWD]
:00565513 [PTOKAX.HWD]
:00565733 [PTOKAX.HWD]
:00565776 [PTOKAX.HWD]
:00401B44 [PTOKAX.HWD] WinMain (PtokaX.cpp, line 43)
:005AE38F [PTOKAX.HWD]
:00400000 [PTOKAX.HWD]
:BFF7B9E4 [KERNEL32.DLL]
:BFF6B487 [KERNEL32.DLL]
:BFF7B896 [KERNEL32.DLL]
:BFF7A24F [KERNEL32.DLL]

Main Thread ID = FFFCE0CD, Current Thread ID = FFFCE0CD
Registers:
EAX = 7FFFFFFF  CS = 016F  EIP = 005A60D5  Flags = 00010206
EBX = 0210C773  SS = 0177  ESP = 008DF4A0    EBP = 008DF9CC
ECX = 00000000  DS = 0177  ESI = 006068B8    FS  = 2A4F
EDX = 0000271E  ES = 0177  EDI = 00000020    GS  = 0000
Code at CS:EIP
80 3A 00 75 EE E9 C9 00 00 00 F7 C7 00 01 00 00
Stack:
008DFA68 013E7748 0210C7A8 5359535B 6573205D
00000000 00000000 BFF7A24F 00524705 01645D3C
005E6B0B 01688FB0 0000000B 00000000 020B8AEC
BFF7A24F FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF

Additional info:
Application Title : PtokaX DC Hub 0.3.3.0 build 17.03
iJoins: 1, iParts: 0, iLogged: 0
NicklistLen : 69
OplistLen   : 67
MyInfosLen  : 29
MyInfosTagLen  : 29
QueueA Size : 15
QueueA Len : 0
QueueB Size   : 15
QueueB Len   : 0
PQueue Size  : 15
PQueue Len  : 0
HQueueA Size  : 68
HQueueA Len  : 0
HQueueB Size  : 15
HQueueB Len  : 0
OPQueueA Size  : 15
OPQueueA Len  : 0
OPQueueB Size  : 15
OPQueueB Len  : 0
InfoQueue Size  : 15
InfoQueue Len  : 0
OQ-QueueA Size  : 77
OQ-QueueA Len  : 0
OQ-QueueB Size  : 15
OQ-QueueB Len  : 0

:-(
Title:
Post by: Jorgo on 25 April, 2005, 23:12:40
Problem with 17.03:

With strongdc cvs 105:

[22:56] !banip 83.108.214.1
[22:56] *** Syntax error: The parameter '83.108.214.1' is not a valid IP address!

!nickban works

With dc++ 0.674:
!banip same problem as before
[22:56] !nickban prankster
[22:56]  ERR. Command is !nickban [Name] [Reason]..!

No, it isn't...  :P

Update: Oops, wrong thread, sorry!
Title:
Post by: bastya_elvtars on 25 April, 2005, 23:35:40
QuoteOriginally posted by blackwings
QuoteOriginally posted by bastya_elvtars
QuoteOriginally posted by witch
nah ja thx anyways, gona stay with 15.25.....love that version, very stable and no surprises 4 long time  :D

Its up to you, but don't come here crying: "I have been flooded!"
ehm, maybe he is running Deflood 5 ;)

ehm, maybe he is still not protected against connection floods.
Title:
Post by: blackwings on 25 April, 2005, 23:46:01
QuoteOriginally posted by bastya_elvtars
ehm, maybe he is still not protected against connection floods.
you mean reconnect alot of time during a short period? well, there is a function in deflood 5.0 which protects you against that.
Title:
Post by: bastya_elvtars on 26 April, 2005, 00:31:58
No, I mean some kind of SYN flood where you send TCP handshake requests to the hubs ip/port.
Title:
Post by: witch on 26 April, 2005, 01:06:40
my old server was protected from any kind of attacks, but this 1 is new and not really set yet, so fell free to atack......as i c u already doing that.....

.....dropin users off hub than hub went offline, some min after hub apears online again with same uptime like nothing hapends and hub was online

thx a lot and have fun   :rolleyes:
Title:
Post by: bastya_elvtars on 26 April, 2005, 01:42:56
QuoteOriginally posted by witch
my old server was protected from any kind of attacks, but this 1 is new and not really set yet, so fell free to atack......as i c u already doing that.....

.....dropin users off hub than hub went offline, some min after hub apears online again with same uptime like nothing hapends and hub was online

thx a lot and have fun   :rolleyes:

Well, it was not me but you can never feel safe unless you upgrade.
Title:
Post by: ruspant on 26 April, 2005, 02:03:18
QuoteOriginally posted by ??????Hawk??????
No probs here  with my GUI/LINK  . no changes needed for 17.03

must be your end ruspant

Thx Hawk
I've just fixed it.
I was running the same Locktokey code that you've posted here but the problem was that hubsoft no more sends "$HubName" to client after client sends correct "$Key....".

My app was hanging waiting for it.

Now I send "$ValidateNick..... " just after "$Key...." and all works fine.

Maybe your app was doing that before !  :D
Title:
Post by: ??????Hawk?????? on 26 April, 2005, 02:53:33
hi ruspant

heres my respone to $Lock

$Key
$ValidateNick
$MyPass
$MyINFO
$Version
$GetNickList


seems to work fine  ...  

??????Hawk??????
Title:
Post by: PPK on 26 April, 2005, 10:26:22
QuoteOriginally posted by dkt
:00452E07 [PTOKAX.HWD] theLoop::AcceptUser (serviceLoop.cpp, line 181)
Thx for report, bug found ;)
QuoteOriginally posted by Jorgo
With strongdc cvs 105:

[22:56] !banip 83.108.214.1
[22:56] *** Syntax error: The parameter '83.108.214.1' is not a valid IP address!
I check this, i have more reports with problems on !banip :(

QuoteOriginally posted by Jorgo
With dc++ 0.674:
[22:56] !nickban prankster
[22:56]  ERR. Command is !nickban [Name] [Reason]..!
Working in CZDC++ ... i check it in DC++ :))
Title:
Post by: dragos_sto on 26 April, 2005, 11:02:28
it possible to remove
"This hub is running PtokaX DC Hub 0.3.3.0 build 17.03 [debug]"
whit somting else or just be one posibiliti to be just:
"This hub is running PtokaX DC Hub" ?
whitout hubtime and version?






Just me and my stuppind question
Title:
Post by: 6Marilyn6Manson6 on 26 April, 2005, 11:10:36
QuoteOriginally posted by dragos_sto
it possible to remove
"This hub is running PtokaX DC Hub 0.3.3.0 build 17.03 [debug]"
whit somting else or just be one posibiliti to be just:
"This hub is running PtokaX DC Hub" ?
whitout hubtime and version?






Just me and my stuppind question

Not good idea... ;)
Title:
Post by: dragos_sto on 26 April, 2005, 11:58:26
ok .. i just ask
Title:
Post by: 6Marilyn6Manson6 on 26 April, 2005, 12:09:27
^____^
Title:
Post by: wegface on 26 April, 2005, 12:45:26
LOL not without the source code you cant its impossible. Ive tried on both ptokax and ynhub using hex editor- but none of them are that dumb. :)
heheheeee.
Title:
Post by: Typhoon on 26 April, 2005, 18:55:19
QuoteOriginally posted by wegface
LOL not without the source code you cant its impossible. Ive tried on both ptokax and ynhub using hex editor- but none of them are that dumb. :)
heheheeee.

haven't tryed with shittyHub , but on PtokaX it is possible , you just need to know the trick before it works , i messed around with it for a while , and got it to work .. but "my" secret/trick will remain non public  .. as i only did it for testing purpose and no need to hex ptokax hex crappyHub instead.. :)


Typhoon?
Title:
Post by: Psycho_Chihuahua on 26 April, 2005, 19:31:41
i guess for that it would be better to wait untill Language Files are used...then it will/would be much easier to do so ^^ as in older versions
Title:
Post by: Typhoon on 26 April, 2005, 20:08:23
QuoteOriginally posted by Psycho_Chihuahua
i guess for that it would be better to wait untill Language Files are used...then it will/would be much easier to do so ^^ as in older versions
indeed much easier and nicer through Lan. files.. but still there should not be made changes to standard ptokax message, as requested above in this thread :)


Typhoon?
Title:
Post by: GeceBekcisi on 26 April, 2005, 21:16:29
------------------------------------------------------------
Current stats:
------------------------------------------------------------
Version: PtokaX DC Hub 0.3.3.0 build 17.03 [debug] built on Apr 24 2005 01:20:52
Uptime: 0 days, 18 hours, 45 minutes
Users (Max/Actual Peak (Max Peak)/Logged) : 5000 / 1253 (1253) / 1243
Chat messages: 2259 x
Unknown commands: 37 x
PM commands: 2698 x
Key commands: 97503 x
Supports commands: 79867 x
MyINFO commands: 104539 x
ValidateNick commands: 93213 x
GetINFO commands: 101045 x
Password commands: 2364 x
Version commands: 29219 x
UserIP commands: 138488 x
GetNickList commands: 29120 x
Search commands: 113764 x
SR commands: 1018104 x
CTM commands: 782818 x
RevCTM commands: 605203 x
BotINFO commands: 6 x
------------------------------------------------------------
CPU usage (60 seconds average): 12.65%
CPU time: 0:45:29
Mem usage (Old style) : 5639 kB
Mem usage (Peak) : 51.68 MB (59.14 MB)
VM size (Peak) : 53.72 MB (61.66 MB)
------------------------------------------------------------
SendRests (Peak): 57 (82)
RecvRests (Peak): 1 (12)
SendBytes: 5.29 GB
RecvBytes: 248.23 MB
------------------------------------------------------------
Working Scripts:
RoboCop 10.01c + RightClickCMDs by Optimus
Spam King (spam blocker) by gg3k
Whisper 1.01 by Mutor


Here stands an excellent work, applause please  :]
Title:
Post by: Typhoon on 26 April, 2005, 22:30:00
QuoteOriginally posted by GeceBekcisi
------------------------------------------------------------
Current stats:
------------------------------------------------------------
Version: PtokaX DC Hub 0.3.3.0 build 17.03 [debug] built on Apr 24 2005 01:20:52
Uptime: 0 days, 18 hours, 45 minutes
Users (Max/Actual Peak (Max Peak)/Logged) : 5000 / 1253 (1253) / 1243
Chat messages: 2259 x
Unknown commands: 37 x
PM commands: 2698 x
Key commands: 97503 x
Supports commands: 79867 x
MyINFO commands: 104539 x
ValidateNick commands: 93213 x
GetINFO commands: 101045 x
Password commands: 2364 x
Version commands: 29219 x
UserIP commands: 138488 x
GetNickList commands: 29120 x
Search commands: 113764 x
SR commands: 1018104 x
CTM commands: 782818 x
RevCTM commands: 605203 x
BotINFO commands: 6 x
------------------------------------------------------------
CPU usage (60 seconds average): 12.65%
CPU time: 0:45:29
Mem usage (Old style) : 5639 kB
Mem usage (Peak) : 51.68 MB (59.14 MB)
VM size (Peak) : 53.72 MB (61.66 MB)
------------------------------------------------------------
SendRests (Peak): 57 (82)
RecvRests (Peak): 1 (12)
SendBytes: 5.29 GB
RecvBytes: 248.23 MB


Here stands an excellent work, applause please  :]

max it out then i'll be happy to applaud to you and especially PPK and Ptaczek :) .. but looking good anyway :)

Typhoon?
Title:
Post by: GeceBekcisi on 26 April, 2005, 22:39:24
QuoteOriginally posted by Typhoon?
max it out then i'll be happy

Redirect me some more users to max it out, and I'll report instantly (I promise)  :D
Title:
Post by: Corayzon on 27 April, 2005, 05:54:53
Would be good to see some stuff likes so:

Share, Slots and Hub Message have translations:

ie. the bad share message
'*** You arnt sharing enough! Minimum share size is {0:ShareSize} {1:ShareSizeType}!'

would display to users like so...
'*** You arnt sharing enough! Minimum share size is 5 GB!'

this should also be done for:
MinSlots\MaxSlots (a message for min and max would be nice!)
Hub Slots Ratio
Max Hubs

Something else: users arnt able to change ban messages, reg messages, kick messages and heaps more!

Would be nice to have a lang file, that also contains translations like

'*** {0:KickedUser} has been kicked and banned by {1:KickerUser} because: {2:KickReason}'
'*** {0:ReggedUser} has been registered to profile {1:Profile} by {2:ReggerUser}'

This would make ptokax so much better because this would make it more functional (meaning, it doesnt act in one way!!!!!)

btw, Wicked job so far on the new version guys!

Matt
Title:
Post by: GeceBekcisi on 27 April, 2005, 13:19:26
Crash report:

---------------------------27.04.2005 13:14:52---------------------------
Exception 'EAccessViolation' in module PtokaX.exe at 000A493D
Access violation at address 004A593D in module 'PtokaX.exe'. Read of address 6576754F

Call stack:
:004A593D [PtokaX.exe]
:004A76EF [PtokaX.exe]
:7739CA68 [USER32.dll]
:7739CA73 [USER32.dll]
:7C8315DC [ntdll.dll]
:7C8315E1 [ntdll.dll]
:005341F7 [PtokaX.exe]
:0053439D [PtokaX.exe]
:005B187D [PtokaX.exe]
:0053407C [PtokaX.exe]
:005B1769 [PtokaX.exe]
:0048E0D7 [PtokaX.exe]
:004A55F0 [PtokaX.exe]
:0048AC44 [PtokaX.exe]
:004AA021 [PtokaX.exe]
:0048A2CF [PtokaX.exe]
:0048A2C1 [PtokaX.exe]
:0048AFC3 [PtokaX.exe]
:004AA004 [PtokaX.exe]
:004AA084 [PtokaX.exe]
:004AA004 [PtokaX.exe]
:0046CDDA [PtokaX.exe]
:0046F345 [PtokaX.exe]
:0045A212 [PtokaX.exe]
:005A273B [PtokaX.exe]
:005A6B2F [PtokaX.exe]
:005A2CC9 [PtokaX.exe]
:005F89DD [PtokaX.exe]
:0046FAF4 [PtokaX.exe]
:773AD01A [USER32.dll]
:00408361 [PtokaX.exe]
:0057997E [PtokaX.exe]
:00579864 [PtokaX.exe]
:0051BB72 [PtokaX.exe]
:7739C3B7 [USER32.dll]
:7739C484 [USER32.dll]
:7739C43A [USER32.dll]
:7739C73C [USER32.dll]
:0051F257 [PtokaX.exe]
:0051F3EB [PtokaX.exe]
:7738E406 [USER32.dll]
:00576598 [PtokaX.exe]
:005765CF [PtokaX.exe]
:005767EF [PtokaX.exe]
:00576832 [PtokaX.exe]
:00401B44 [PtokaX.exe]
:005BF47B [PtokaX.exe]
:00400000 [PtokaX.exe]
:77E523CD [kernel32.dll]

Main Thread ID = 00000A7C, Current Thread ID = 00000A7C
Registers:
EAX = 65767547  CS = 001B  EIP = 004A593D  Flags = 00010216
EBX = 00ED7038  SS = 0023  ESP = 0012F948    EBP = 0012F94C
ECX = 01A20909  DS = 0023  ESI = 0057996C    FS  = 003B
EDX = 000001FF  ES = 0023  EDI = 0012FE30    GS  = 0000
Code at CS:EIP
23 50 08 C1 E2 03 8D 14 92 8B 4D 08 03 51 10 89
Stack:
01A20978 0012FB24 004A76EF 019D2954 65767547
00000000 00000000 77E523CD 00535805 01EF844C
005FE80B 00DE2460 00000000 00000000 01EF8228
77E523CD FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF

Additional info:
Application Title : PtokaX DC Hub 0.3.3.0 build 17.03 [debug]
iJoins: 413, iParts: 65, iLogged: 297
NicklistLen : 3495
OplistLen   : 170
MyInfosLen  : 14151
MyInfosTagLen  : 26496
QueueA Size : 15
QueueA Len : 0
QueueB Size   : 15
QueueB Len   : 0
PQueue Size  : 82
PQueue Len  : 0
HQueueA Size  : 69
HQueueA Len  : 0
HQueueB Size  : 40
HQueueB Len  : 0
OPQueueA Size  : 292
OPQueueA Len  : 0
OPQueueB Size  : 249
OPQueueB Len  : 0
InfoQueue Size  : 107
InfoQueue Len  : 0
OQ-QueueA Size  : 239
OQ-QueueA Len  : 0
OQ-QueueB Size  : 30
OQ-QueueB Len  : 0

Title:
Post by: ruspant on 27 April, 2005, 21:40:17
Could it be useful ????

---------------------------27/04/2005 19.48.37---------------------------
Exception 'EAccessViolation' in module PtokaX.exe at 0006E2B4
Access violation at address 0046F2B4 in module 'PtokaX.exe'. Read of address 0E0E0E3E

Call stack:
:0046F2B4 [PtokaX.exe] LuaScriptsSet::DataArrival (luaInterface.cpp, line 3771)
:004BA8EC [PtokaX.exe] cDcCommands::ConnectToMe (DcCommands.cpp, line 389)
:014E3D31 [nl_lsp.dll]
:004B966B [PtokaX.exe] cDcCommands::ProcessData (DcCommands.cpp, line 88)
:71A34379 [WS2_32.dll]
:71A32B32 [WS2_32.dll]
:71A34382 [WS2_32.dll]
:71A52EA3 [WSOCK32.DLL]
:004515D6 [PtokaX.exe] clsUser::ProcessLines (clsUser.cpp, line 611)
:00451545 [PtokaX.exe] clsUser::DoRecv (clsUser.cpp, line 586)
:77D18BB1 [USER32.dll]
:77D18832 [USER32.dll]
:77D187FF [USER32.dll]
:7C8404F8 [kernel32.dll]
:77D40494 [USER32.dll]
:77D1E2F7 [USER32.dll]
:005208B1 [PtokaX.exe]
:00459196 [PtokaX.exe] theLoop::ProcessAccepts (serviceLoop.cpp, line 121)
:005A1E24 [PtokaX.exe]
:004598EB [PtokaX.exe] theLoop::FOnTimer (serviceLoop.cpp, line 265)
:0046FAF4 [PtokaX.exe] LuaInterpret::GetGC (luaInterface.cpp, line 3953)
:0048AC56 [PtokaX.exe] luaD_call (ldo.c, line 314)
:004AA021 [PtokaX.exe] f_call (lapi.c, line 672)
:0048A2C1 [PtokaX.exe] luaD_rawrunprotected (ldo.c, line 87)
:0048AFC3 [PtokaX.exe] luaD_pcall (ldo.c, line 416)
:004AA004 [PtokaX.exe] lua_call (lapi.c, line 657)
:004A59A1 [PtokaX.exe] luaH_get (ltable.c, line 472)
:00586CF8 [PtokaX.exe]
:004AA084 [PtokaX.exe] lua_pcall (lapi.c, line 685)
:004AA004 [PtokaX.exe] lua_call (lapi.c, line 657)
:00570392 [PtokaX.exe]
:0046D05A [PtokaX.exe] lua_OnTimer (luaInterface.cpp, line 3236)
:77D1EDA9 [USER32.dll]
:0057997E [PtokaX.exe]
:00579864 [PtokaX.exe]
:0051BB72 [PtokaX.exe]
:77D18709 [USER32.dll]
:77D187EB [USER32.dll]
:77D40494 [USER32.dll]
:77D189A5 [USER32.dll]
:0051F3EB [PtokaX.exe]
:77D40494 [USER32.dll]
:77D1BCCC [USER32.dll]
:00576598 [PtokaX.exe]
:005765CF [PtokaX.exe]
:005767EF [PtokaX.exe]
:00576832 [PtokaX.exe]
:00401B44 [PtokaX.exe] WinMain (PtokaX.cpp, line 43)
:005BF47B [PtokaX.exe]
:00400000 [PtokaX.exe]
:7C816D4F [kernel32.dll]
:7C8399F3 [kernel32.dll]

Main Thread ID = 000002C4, Current Thread ID = 000002C4
Registers:
EAX = 0E0E0E0E  CS = 001B  EIP = 0046F2B4  Flags = 00010202
EBX = 00ED2F54  SS = 0023  ESP = 0012FA4C    EBP = 0012FA60
ECX = 0E0E0E0E  DS = 0023  ESI = 0057996C    FS  = 003B
EDX = 0E0E0E0E  ES = 0023  EDI = 0012FE38    GS  = 0000
Code at CS:EIP
8B 4A 30 89 4D EC 8B 45 08 8B 55 F0 80 7C 02 18
Stack:
0E0E0E0E 0E0E0E0E 025D9170 02C20B0C 00E421F0
00000000 00000000 7C8399F3 00535805 026FA2A4
005FE80B 02DE01C4 0000000B 00000000 026D1E54
7C8399F3 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF

Additional info:
Application Title : PtokaX DC Hub 0.3.3.0 build 17.03 [debug]
iJoins: 97374, iParts: 97077, iLogged: 294
NicklistLen : 3731
OplistLen   : 299
MyInfosLen  : 17009
MyInfosTagLen  : 25680
QueueA Size : 15
QueueA Len : 0
QueueB Size   : 15
QueueB Len   : 0
PQueue Size  : 624
PQueue Len  : 0
HQueueA Size  : 129
HQueueA Len  : 0
HQueueB Size  : 52
HQueueB Len  : 0
OPQueueA Size  : 368
OPQueueA Len  : 0
OPQueueB Size  : 265
OPQueueB Len  : 0
InfoQueue Size  : 145
InfoQueue Len  : 0
OQ-QueueA Size  : 333
OQ-QueueA Len  : 0
OQ-QueueB Size  : 179
OQ-QueueB Len  : 0



Have a nice debug  :D
Title:
Post by: zehrkool on 28 April, 2005, 13:32:24
I must say that since PPK has been releasing PtokaX the efficiency of the hub software has imporved so much, for example these are my settings:

PtokaX 17.03
Robocop 10.01d
Windows 98se
Apache Web Server
256k  Upload Speed
DC++ 0.403

With all this running my pc can still handle around 200 users without any drops. Before my pc could only handle around 70 users.

So thats an increament of almost 300% !!!!
Now thats efficiency, something that all other hub softs cannot contend with, especially with the ability to add scripts.

I applaud you PPK, Ptacez and anyone else envolved with the programming.
:D

Even though we may come across bugs and problems this is still the best hub software avaliable.
Title:
Post by: Corayzon on 29 April, 2005, 01:10:33
hey guys,

i found that all the new ptokax's do some strange things when doing so ...

Say we use this function to load a file that has new lines and special chars in it ...

function getFileAsString(sFile)
local fileHandle = io.open (sFile , "r")
local sFile = fileHandle:read ("*a")
fileHandle:close()
return sFile
end

Next, we output this string to a client,
User:SendData(getFileAsString("test.txt"))
Now when the send completes, the client gets weird box chars when there is newlines and other special chars ...

It seems that maybe conversions somewhere along the line corrupt themselfs, because maybe they are to simple and very similar to the others.

cheers guys
Title:
Post by: Herodes on 29 April, 2005, 01:39:46
I think that this thingie is from Lua Corayzon.. I noticed it too..
it seems like \r\n is not as it used to be in lua ..
it comes out as a simple \n ...

just saving the trouble. ..
string.sub( contents, "\n", "\r\n" )
Title:
Post by: Corayzon on 29 April, 2005, 04:04:31
*** Correction

local sResult = string.gsub (sString, "\n", "\r\n")
And it does seem to be in SendData.

ex. get a file and resave to another location. Its the same!

and the pipeline char also converts to weird blocks

isnt it a waist of process redoing a conversion something else should have allready?
Title:
Post by: ruspant on 29 April, 2005, 10:49:01
I've got a problem with GetOnlineUsers function.

tReg=GetOnlineUsers()

gives me

-->> attempt to call global `GetOnlineUsers' (a nil value)

seems the function is private....
Any idea ?
Title:
Post by: NightLitch on 29 April, 2005, 10:56:00
QuoteOriginally posted by ruspant
I've got a problem with GetOnlineUsers function.

tReg=GetOnlineUsers()

gives me

-->> attempt to call global `GetOnlineUsers' (a nil value)

seems the function is private....
Any idea ?

it is:   frmHub:GetOnlineUsers()
Title:
Post by: NightLitch on 29 April, 2005, 11:03:45
QuoteOriginally posted by Corayzon
hey guys,

i found that all the new ptokax's do some strange things when doing so ...

Say we use this function to load a file that has new lines and special chars in it ...

function getFileAsString(sFile)
local fileHandle = io.open (sFile , "r")
local sFile = fileHandle:read ("*a")
fileHandle:close()
return sFile
end

Next, we output this string to a client,
User:SendData(getFileAsString("test.txt"))
Now when the send completes, the client gets weird box chars when there is newlines and other special chars ...

It seems that maybe conversions somewhere along the line corrupt themselfs, because maybe they are to simple and very similar to the others.

cheers guys

I have never had this problem. And I run the newest PX 2.

Sometimes it is the client that shows those blocks, that problem I have had, I just changed client and it worked ok.

but if you get it when rewritting the file to a new one then it could possibly be some problems.

Have never had such as problem though.

// NL
Title:
Post by: Kono on 29 April, 2005, 11:27:10
QuoteOriginally posted by zehrkool

PtokaX 17.03
Robocop 10.01d
Windows 98se
Apache Web Server
256k  Upload Speed
DC++ 0.403

With all this running my pc can still handle around 200 users without any drops. Before my pc could only handle around 70 users.


PtokaX 17.03
w2k
128kbit upld

255 users   lag 2-3s max.

any other competitors?   :D
Title:
Post by: ruspant on 29 April, 2005, 11:34:24
QuoteOriginally posted by NightLitch
QuoteOriginally posted by ruspant
I've got a problem with GetOnlineUsers function.

tReg=GetOnlineUsers()

gives me

-->> attempt to call global `GetOnlineUsers' (a nil value)

seems the function is private....
Any idea ?

it is:   frmHub:GetOnlineUsers()


!!! THX  Nightlich !
I forgor my brain at home NightLitch !     eheheh
Title:
Post by: Herodes on 29 April, 2005, 12:23:08
QuoteOriginally posted by NightLitch
Sometimes it is the client that shows those blocks, that problem I have had, I just changed client and it worked ok.
it _is_ like that..
Title:
Post by: zehrkool on 30 April, 2005, 18:25:24
Crash Log:

_____________________________________________

---------------------------30/04/05 16:01:37---------------------------
Exception 'EAccessViolation' in module PTOKAX.EXE at 001B5245
Access violation at address 005B6245 in module 'PTOKAX.EXE'. Read of address FFFFFFFF

Call stack:
:005B6245 [PTOKAX.EXE]
:BFF7B9C5 [KERNEL32.DLL]
:00511871 [PTOKAX.EXE]
:00566141 [PTOKAX.EXE]
:005859F7 [PTOKAX.EXE]
:00585A0E [PTOKAX.EXE]
:0051ABF6 [PTOKAX.EXE]
:00585DF3 [PTOKAX.EXE]
:00582DD7 [PTOKAX.EXE]
:0051ABF6 [PTOKAX.EXE]
:00585DF3 [PTOKAX.EXE]
Recursive call (2 times):
:00582DD7 [PTOKAX.EXE]
:76003A5B [WS2_32.DLL]
:7600A2F4 [WS2_32.DLL]
:76001284 [WS2_32.DLL]
:BFF7B77B [KERNEL32.DLL]
:BFF741F7 [KERNEL32.DLL]
:BFF80DF0 [KERNEL32.DLL]
:7B414435 [MSAFD.DLL]
:BFF7B77B [KERNEL32.DLL]
:BFF741F7 [KERNEL32.DLL]
:BFF7B796 [KERNEL32.DLL]
:BFF7B828 [KERNEL32.DLL]
:BFF741F7 [KERNEL32.DLL]
:BFFA6325 [KERNEL32.DLL]
:BFFA6368 [KERNEL32.DLL]
:7B41408E [MSAFD.DLL]
:7B413880 [MSAFD.DLL]
:75FE1256 [WS2HELP.DLL]
:BFF7B9C5 [KERNEL32.DLL]
Recursive call (2 times):
:76003997 [WS2_32.DLL]
:BFF7C8A0 [KERNEL32.DLL]
:005B575B [PTOKAX.EXE]
:004584E6 [PTOKAX.EXE] theLoop::AcceptUser (serviceLoop.cpp, line 181)
:0053327C [PTOKAX.EXE]
:00533734 [PTOKAX.EXE]
:BFF7B9C5 [KERNEL32.DLL]
:00458216 [PTOKAX.EXE] theLoop::ProcessAccepts (serviceLoop.cpp, line 117)
:0045884A [PTOKAX.EXE] theLoop::FOnTimer (serviceLoop.cpp, line 228)
:00582DD7 [PTOKAX.EXE]
:00585CAE [PTOKAX.EXE]
Recursive call (2 times):
:BFF7B9C5 [KERNEL32.DLL]
:00511871 [PTOKAX.EXE]
:00566141 [PTOKAX.EXE]
:005859F7 [PTOKAX.EXE]
:00585A0E [PTOKAX.EXE]
:0051ABF6 [PTOKAX.EXE]
:BFF71826 [KERNEL32.DLL]
:BFF9440C [KERNEL32.DLL]
:BFF719B8 [KERNEL32.DLL]
:BFF7186D [KERNEL32.DLL]
:BFF71547 [KERNEL32.DLL]
:00578A02 [PTOKAX.EXE]
:005788E8 [PTOKAX.EXE]
:0051ABF6 [PTOKAX.EXE]
:BFF7363B [KERNEL32.DLL]
:BFF94407 [KERNEL32.DLL]
:BFF719B8 [KERNEL32.DLL]
:BFF7186D [KERNEL32.DLL]
:0057561C [PTOKAX.EXE]
:00575653 [PTOKAX.EXE]
:00575873 [PTOKAX.EXE]
:005758B6 [PTOKAX.EXE]
:00401B44 [PTOKAX.EXE] WinMain (PtokaX.cpp, line 43)
:005BE4FF [PTOKAX.EXE]
:00400000 [PTOKAX.EXE]
:BFF8B560 [KERNEL32.DLL]
:BFF7B326 [KERNEL32.DLL]
:BFF8B412 [KERNEL32.DLL]
:BFF89DD5 [KERNEL32.DLL]

Main Thread ID = FFF55C9B, Current Thread ID = FFF55C9B
Registers:
EAX = 7FFFFFFF  CS = 017F  EIP = 005B6245  Flags = 00010206
EBX = 01836673  SS = 0187  ESP = 008FF490    EBP = 008FF9BC
ECX = 00000000  DS = 0187  ESI = 0061D7AC    FS  = 215F
EDX = 0000271E  ES = 0187  EDI = 00000020    GS  = 0000
Code at CS:EIP
80 3A 00 75 EE E9 C9 00 00 00 F7 C7 00 01 00 00
Stack:
008FFC14 005789F0 01836618 5359535B 6573205D
00000000 00000000 BFF89DD5 00534805 01814BEC
005FD90B 00E25ADC 0000000B 00000000 017C8EB4
BFF89DD5 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF

Additional info:
Application Title : PtokaX DC Hub 0.3.3.0 build 17.03 [debug]
iJoins: 2, iParts: 0, iLogged: 0
NicklistLen : 44
OplistLen   : 42
MyInfosLen  : 228
MyInfosTagLen  : 228
QueueA Size : 15
QueueA Len : 0
QueueB Size   : 15
QueueB Len   : 0
PQueue Size  : 15
PQueue Len  : 0
HQueueA Size  : 51
HQueueA Len  : 51
HQueueB Size  : 15
HQueueB Len  : 0
OPQueueA Size  : 68
OPQueueA Len  : 68
OPQueueB Size  : 15
OPQueueB Len  : 0
InfoQueue Size  : 15
InfoQueue Len  : 0
OQ-QueueA Size  : 201
OQ-QueueA Len  : 201
OQ-QueueB Size  : 15
OQ-QueueB Len  : 0  
_____________________________________________

This only occurs under windows 98se, nt version seems to work fine.
Title:
Post by: Corayzon on 01 May, 2005, 03:46:55
QuoteOriginally posted by NightLitch
QuoteOriginally posted by Corayzon
hey guys,

i found that all the new ptokax's do some strange things when doing so ...

Say we use this function to load a file that has new lines and special chars in it ...

function getFileAsString(sFile)
local fileHandle = io.open (sFile , "r")
local sFile = fileHandle:read ("*a")
fileHandle:close()
return sFile
end

Next, we output this string to a client,
User:SendData(getFileAsString("test.txt"))
Now when the send completes, the client gets weird box chars when there is newlines and other special chars ...

It seems that maybe conversions somewhere along the line corrupt themselfs, because maybe they are to simple and very similar to the others.

cheers guys

I have never had this problem. And I run the newest PX 2.

Sometimes it is the client that shows those blocks, that problem I have had, I just changed client and it worked ok.

but if you get it when rewritting the file to a new one then it could possibly be some problems.

Have never had such as problem though.

// NL

Night: Its not the client dude, lol! have u actually tried to do what causes this, or have u just replied without seeing? :/

Also, i didnt say these errors are parsed into into an output of another file when coping them. I said, if u input the files contents and output to a new file location. The file size and contents are exactly the same. Therefor prooving the api doesnt have the problem!

Herodes allready showed me the most likly outcome of this which is ptokax's conversions with newline chars. When u send "\n\n\n\n\n" u get blocks!" when sending "\r\n\r\n\r\n" u dont!

In past versions "\n" is sent fine, and seems to be translated into "\r\n" automaticly so this never happens.

neways this fix's the problem by waisting process :/

-- Fix lua\ptokax error
sFile = string.gsub (sFile, "\n", "\r\n")
Title:
Post by: Madman on 01 May, 2005, 04:18:31
QuoteOriginally posted by Corayzon
When u send "\n\n\n\n\n" u get blocks!" when sending "\r\n\r\n\r\n" u dont!

Isnit the other way around? \r\n give blocks and \n dont...
Title:
Post by: PPK on 01 May, 2005, 05:17:15
QuoteOriginally posted by Corayzon
When u send "\n\n\n\n\n" u get blocks!
Yes with bad client you have blocks (is something like windows have "\r\n" and *nix "\n" ), i see this in old DC++ versions, don't know if is fixed... i have it fixed in my client :P
Title:
Post by: johny on 02 May, 2005, 22:47:48
lol man, my hub just crashed.
error log below.
---------------------------2-5-2005 21:32:21---------------------------
Exception 'EAccessViolation' in module ntdll.dll at 0000FE03
Access violation at address 7C910E03 in module 'ntdll.dll'. Write of address 6C432D5D

Call stack:
:7C910E03 [ntdll.dll]
:7C910E91 [ntdll.dll]
:7C91056D [ntdll.dll]
:00534375 [PtokaX.exe]
:0044FE38 [PtokaX.exe] clsUser::~clsUser (?) (clsUser.cpp, line 154)
:71AB9610 [WS2_32.dll]
:71AB95F1 [WS2_32.dll]
:71AB96A4 [WS2_32.dll]
:00452D97 [PtokaX.exe] classUsers::DisconnectAll (colUsers.cpp, line 171)
:7C810B75 [kernel32.dll]
:005341F7 [PtokaX.exe]
:00534048 [PtokaX.exe]
:005341D4 [PtokaX.exe]
:005341F7 [PtokaX.exe]
:004A5889 [PtokaX.exe] luaH_getany (ltable.c, line 426)
:004A9082 [PtokaX.exe] luaA_indexAcceptable (lapi.c, line 89)
:00534375 [PtokaX.exe]
:0053439D [PtokaX.exe]
:005BF7FC [PtokaX.exe]
:005BF80C [PtokaX.exe]
:005B4EE4 [PtokaX.exe]
:005BF80C [PtokaX.exe]
:005B69C3 [PtokaX.exe]
:004A982F [PtokaX.exe] lua_touserdata (lapi.c, line 350)
:004AD69B [PtokaX.exe] pushresult (liolib.c, line 74)
:004AD947 [PtokaX.exe] io_close (liolib.c, line 165)
:0048AABF [PtokaX.exe] luaD_precall (ldo.c, line 260)
:004A8922 [PtokaX.exe] luaV_execute (lvm.c, line 685)
:7C90D8EF [ntdll.dll]
:71A55908 [MSWSOCK.dll]
Recursive call (2 times):
:71A5597C [MSWSOCK.dll]
:71AB42F8 [WS2_32.dll]
:71AB2B32 [WS2_32.dll]
:71AB4301 [WS2_32.dll]
:00450E07 [PtokaX.exe] clsUser::Try2Send (clsUser.cpp, line 480)
:00450D42 [PtokaX.exe] clsUser::Try2Send (clsUser.cpp, line 464)
:0053407C [PtokaX.exe]
:005B177D [PtokaX.exe]
:0048E106 [PtokaX.exe] luaM_realloc (lmem.c, line 77)
:004A4C2D [PtokaX.exe] newlstr (lstring.c, line 59)
:004A59A1 [PtokaX.exe] luaH_get (ltable.c, line 472)
:004506C5 [PtokaX.exe] clsUser::PutInSendBuf (clsUser.cpp, line 325)
:00450CE2 [PtokaX.exe] clsUser::SendChar (clsUser.cpp, line 445)
:00459006 [PtokaX.exe] theLoop::~theLoop (?) (serviceLoop.cpp, line 83)
:0053466F [PtokaX.exe]
:00535BF9 [PtokaX.exe]
:0045BA33 [PtokaX.exe] theLoop::Terminate (serviceLoop.cpp, line 633)
:0041A5AF [PtokaX.exe] ThubForm::StopServer (frmHub.cpp, line 2276)
:77D80577 [USER32.dll]
:77D8052F [USER32.dll]
:0041E42A [PtokaX.exe] ThubForm::FormClose (frmHub.cpp, line 2815)
:773F9662 [COMCTL32.DLL]
:0056FBC9 [PtokaX.exe]
:00573102 [PtokaX.exe]
:005723C5 [PtokaX.exe]
:00427C23 [PtokaX.exe] ThubForm::Dispatch (frmHub.h, line 778)
:00583D53 [PtokaX.exe]
:77D4F4BB [USER32.dll]
:77D4F4E2 [USER32.dll]
:77D4B3A7 [USER32.dll]
:773F9606 [COMCTL32.DLL]
:773F9662 [COMCTL32.DLL]
:77D4E905 [USER32.dll]
:00586DDC [PtokaX.exe]
:00586CF8 [PtokaX.exe]
:77D48734 [USER32.dll]
:00570392 [PtokaX.exe]
:77D48BD9 [USER32.dll]
:0041F238 [PtokaX.exe] ThubForm::PxWndProc (frmHub.cpp, line 3268)
:00586973 [PtokaX.exe]
:0051BB72 [PtokaX.exe]
:77D48734 [USER32.dll]
:77D48816 [USER32.dll]
:77D618F4 [USER32.dll]
:77D4B4C0 [USER32.dll]
:77D4B50C [USER32.dll]
:7C90EAE3 [ntdll.dll]
:77D494BE [USER32.dll]
:77D4B42D [USER32.dll]
:77D484FC [USER32.dll]
:77D4BA0E [USER32.dll]
:77D484FC [USER32.dll]
:77D485A4 [USER32.dll]
:77D4D598 [USER32.dll]
:5AD73C20 [uxtheme.dll]
:5AD8E300 [uxtheme.dll]
:5AD71AC7 [uxtheme.dll]
:5AD7367A [uxtheme.dll]
:5AD8E2D5 [uxtheme.dll]
:77D5F134 [USER32.dll]
:77D48734 [USER32.dll]
:77D48816 [USER32.dll]
:77D4C63F [USER32.dll]
:77D4E905 [USER32.dll]
:00586DDC [PtokaX.exe]
:00571743 [PtokaX.exe]
:00588396 [PtokaX.exe]
:005724A6 [PtokaX.exe]
:00427C23 [PtokaX.exe] ThubForm::Dispatch (frmHub.h, line 778)
:00583D53 [PtokaX.exe]

Main Thread ID = 0000096C, Current Thread ID = 0000096C
Registers:
EAX = 017FA310  CS = 001B  EIP = 7C910E03  Flags = 00010287
EBX = 01420178  SS = 0023  ESP = 0012EAF8    EBP = 0012EBB4
ECX = 01C02880  DS = 0023  ESI = 017FA308    FS  = 003B
EDX = 6C432D5D  ES = 0023  EDI = 01420000    GS  = 0000
Code at CS:EIP
89 02 89 41 04 56 8B 75 C8 56 E8 BA FD FF FF 8B
Stack:
0012F3D8 0056FBAC 00DE62D0 01BE0000 7C910E91
00000000 00000000 00583D53 00535805 01585B00
005FE80B 00ED8508 0000000B 00000000 00DE2880
00583D53 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF

Additional info:
Application Title : PtokaX DC Hub 0.3.3.0 build 17.03 [debug]
iJoins: 65879, iParts: 65695, iLogged: 83
NicklistLen : 1186
OplistLen   : 257
MyInfosLen  : 5722
MyInfosTagLen  : 8314
QueueA Size : 15
QueueA Len : 0
QueueB Size   : 15
QueueB Len   : 0
PQueue Size  : 182
PQueue Len  : 0
HQueueA Size  : 69
HQueueA Len  : 0
HQueueB Size  : 69
HQueueB Len  : 69
OPQueueA Size  : 233
OPQueueA Len  : 0
OPQueueB Size  : 229
OPQueueB Len  : 0
InfoQueue Size  : 168
InfoQueue Len  : 0
OQ-QueueA Size  : 297
OQ-QueueA Len  : 0
OQ-QueueB Size  : 297
OQ-QueueB Len  : 297

Title:
Post by: PPK on 02 May, 2005, 23:43:22
QuoteOriginally posted by johny
Call stack:
:7C910E03 [ntdll.dll]
I don't know why, same code is used long time without problems and now cause crash in ntdll... testversion with changes is in testing  :rolleyes:
Title:
Post by: Corayzon on 03 May, 2005, 03:19:56
QuoteOriginally posted by PPK
QuoteOriginally posted by johny
Call stack:
:7C910E03 [ntdll.dll]
I don't know why, same code is used long time without problems and now cause crash in ntdll... testversion with changes is in testing  :rolleyes:

Maybe it could be a script causing this somehow?
Title:
Post by: PPK on 03 May, 2005, 04:16:48
QuoteOriginally posted by Corayzon
Maybe it could be a script causing this somehow?
No this is not script...  :(
Title:
Post by: Jaakko on 03 May, 2005, 06:32:14
A small feature request.
Could the next PtokaX release be made so that !gettempbanlist would allso show remaining bantime.
For example:

<[Admin]Cain> !gettempbanlist
<-Raziel-> TempBanList:

- [ 0 ]  80.220.***.** (blazee) 72hours
- [ 1 ]  84.249.***.*** (Klemma) 140minutes
- [ 2 ]  80.252.***.** ((0.5Mbit)REW) 138minutes
- [ 3 ]  62.237.**.*** (Koolll) 57minutes
- [ 4 ]  84.230.**.*** ([FUN]saco) 55minutes
- [ 5 ]  217.210.***.*** ([Telia]Eriksson) 27minutes
- [ 6 ]  84.248.**.** (MtZorc) 4minutes

Use !tempunban to unban
Title:
Post by: NightLitch on 03 May, 2005, 10:59:38
QuoteOriginally posted by Corayzon
QuoteOriginally posted by NightLitch
QuoteOriginally posted by Corayzon
hey guys,

i found that all the new ptokax's do some strange things when doing so ...

Say we use this function to load a file that has new lines and special chars in it ...

function getFileAsString(sFile)
local fileHandle = io.open (sFile , "r")
local sFile = fileHandle:read ("*a")
fileHandle:close()
return sFile
end

Next, we output this string to a client,
User:SendData(getFileAsString("test.txt"))
Now when the send completes, the client gets weird box chars when there is newlines and other special chars ...

It seems that maybe conversions somewhere along the line corrupt themselfs, because maybe they are to simple and very similar to the others.

cheers guys

I have never had this problem. And I run the newest PX 2.

Sometimes it is the client that shows those blocks, that problem I have had, I just changed client and it worked ok.

but if you get it when rewritting the file to a new one then it could possibly be some problems.

Have never had such as problem though.

// NL

Night: Its not the client dude, lol! have u actually tried to do what causes this, or have u just replied without seeing? :/

Also, i didnt say these errors are parsed into into an output of another file when coping them. I said, if u input the files contents and output to a new file location. The file size and contents are exactly the same. Therefor prooving the api doesnt have the problem!

Herodes allready showed me the most likly outcome of this which is ptokax's conversions with newline chars. When u send "\n\n\n\n\n" u get blocks!" when sending "\r\n\r\n\r\n" u dont!

In past versions "\n" is sent fine, and seems to be translated into "\r\n" automaticly so this never happens.

neways this fix's the problem by waisting process :/

-- Fix lua\ptokax error
sFile = string.gsub (sFile, "\n", "\r\n")

Well I did try, but I forgot using only \n hehe, I never use a single \n I always use \r\n  :D

well this is nothing to argue about  ;)

Cheers....
Title:
Post by: Dessamator on 03 May, 2005, 11:10:59
QuoteOriginally posted by Jaakko
A small feature request.
Could the next PtokaX release be made so that !gettempbanlist would allso show remaining bantime.
For example:

<[Admin]Cain> !gettempbanlist
<-Raziel-> TempBanList:

- [ 0 ]  80.220.***.** (blazee) 72hours
- [ 1 ]  84.249.***.*** (Klemma) 140minutes
- [ 2 ]  80.252.***.** ((0.5Mbit)REW) 138minutes
- [ 3 ]  62.237.**.*** (Koolll) 57minutes
- [ 4 ]  84.230.**.*** ([FUN]saco) 55minutes
- [ 5 ]  217.210.***.*** ([Telia]Eriksson) 27minutes
- [ 6 ]  84.248.**.** (MtZorc) 4minutes

Use !tempunban to unban

it already does that !!
Title:
Post by: Dessamator on 03 May, 2005, 11:11:40
QuoteOriginally posted by Jaakko
A small feature request.
Could the next PtokaX release be made so that !gettempbanlist would allso show remaining bantime.
For example:

<[Admin]Cain> !gettempbanlist
<-Raziel-> TempBanList:

- [ 0 ]  80.220.***.** (blazee) 72hours
- [ 1 ]  84.249.***.*** (Klemma) 140minutes
- [ 2 ]  80.252.***.** ((0.5Mbit)REW) 138minutes
- [ 3 ]  62.237.**.*** (Koolll) 57minutes
- [ 4 ]  84.230.**.*** ([FUN]saco) 55minutes
- [ 5 ]  217.210.***.*** ([Telia]Eriksson) 27minutes
- [ 6 ]  84.248.**.** (MtZorc) 4minutes

Use !tempunban to unban

It already does that !!, except for converting to hours, i doubt that, havent tested it though.
Title:
Post by: jadehenry04 on 03 May, 2005, 11:32:17
im using ptokax 17.03 and every thing works fine here? how come i never get any problems lol???
Title:
Post by: Anna on 03 May, 2005, 19:58:33
started using ptokax 17.03 today, found something defo not good when trying to ban an IP: [19:53] *** Syntax error: The parameter '82.21.38.162' is not a valid IP address!

since the !banip command is a built in ptokax command I assume thats where the problem is (run robocop 10.01e but this error come even with robocop script stoped)

no scripting errors are reported in ptokax script area
Title:
Post by: EMIN3M on 03 May, 2005, 20:24:28
Yep i have the same problem :(
Title:
Post by: PPK on 03 May, 2005, 20:42:59
QuoteOriginally posted by Anna
!banip
Yes !banip is broken in 17.03 ... fixed for next release  :rolleyes:
Title:
Post by: bastya_elvtars on 03 May, 2005, 20:43:59
QuoteOriginally posted by PPK
QuoteOriginally posted by Corayzon
Maybe it could be a script causing this somehow?
No this is not script...  :(

Buggy WinXP NT driver? :P

Everything is possible... its M$.
Title:
Post by: blackwings on 03 May, 2005, 21:12:09
QuoteOriginally posted by bastya_elvtars
QuoteOriginally posted by PPK
QuoteOriginally posted by Corayzon
Maybe it could be a script causing this somehow?
No this is not script...  :(

Buggy WinXP NT driver? :P

Everything is possible... its M$.
or some of the new changes/code in ptokax comes in conflict with that code that is showing error now. Check new code that comes in "contact" with this code PPK. Or maybe some of the new code/changes forces a bug to appear, which could give a reason for why the code didn't give errors before. I dunno, I'm just trying to give you ideas to help you PPK :)
Title:
Post by: Psycho_Chihuahua on 04 May, 2005, 01:08:26
Hey PPK

First of all, thanks a lot for your work done on PtokaX..

Swcondly, i'm using the latest Beta of yours 17.03a, and i'v noticed a minor bug in it....i have Min Share set to 500 Mb  and also works that way on Share Size Check, but in all statistics it shows 500 Tb which is not quit correct..

and for last, finally the hublist pinger works in a registered User only Hub ^^ for the first time ever since reg only it connected 20 minutes ago :D

Quote[00:41] *** Pinger from IP: 82.141.122.30 with nick: {HubListPinger} detected.
Title:
Post by: PPK on 04 May, 2005, 03:14:51
QuoteOriginally posted by blackwings
Or maybe some of the new code/changes forces a bug to appear, which could give a reason for why the code didn't give errors before.
I check everything and not find any problem.
Code is changed and now working without crashes, but it looks like it now leaking virtual mem  X(
Title:
Post by: Tw?sT?d-d?v on 04 May, 2005, 07:34:44
hub pinger working fine here - not a usre registered hub either

[06:22] <(JAY's)-BodyGaurd> *** Pinger from IP: 82.141.122.30 with nick:  {HubListPinger} detected.
Title:
Post by: Psycho_Chihuahua on 04 May, 2005, 10:30:19
has anyone else noticed the minor bug i mentioned in my last post?

I have Min Share set to 500 Mb in the Hub but look here (http://www.hublist.org/?p=hub&id=123895)  even on the hublist it says Min Share is 500 TB.....  Weird  :D

Another is OpChat Email does not get saved correcltly to PtokaX.ini

always gives --> pChatEmail=

i guess OpChatEmail is correct but it should save input as well  ;)
Title:
Post by: PPK on 04 May, 2005, 19:41:01
QuoteOriginally posted by Psycho_Chihuahua
I have Min Share set to 500 Mb in the Hub but look here (http://www.hublist.org/?p=hub&id=123895)  even on the hublist it says Min Share is 500 TB.....  Weird  :D
You use any botinfo script ??? Or internal botinfo support in PtokaX ?(
QuoteOriginally posted by Psycho_Chihuahua
Another is OpChat Email does not get saved correcltly to PtokaX.ini
I check this...  :rolleyes:
// EDIT: Bug found, bug fixed ... stupid typo :(
Title:
Post by: Psycho_Chihuahua on 04 May, 2005, 20:23:32
yes i do still have yout BotINFO script in there

-- PtokaX Lua 5 version by PPK

owneremail = "me@mydoma.in"

function UnknownArrival(curUser, sData)
--// simple $BotINFO implementation //--
if string.sub(sData, 1, 8) == "$BotINFO" then
local minshare = frmHub:GetMinShare()*1024*1024
curUser:SendData("$HubINFO "..frmHub:GetHubName().."$"..frmHub:GetHubAddress()..":"..frmHub:GetHubPort().."$"..frmHub:GetHubDescr()..
"$"..frmHub:GetMaxUsers().."$"..minshare.."$"..frmHub:GetMinSlots().."$"..frmHub:GetMaxHubs().."$PtokaX$"..owneremail)
return 1
end
end

But i dont think thats the problem because even if call upon frmHub:GetMinShare() in a script it gives it out as if it were set on 500TB even though the check itself is correct (ie User with 500MB still gets in as supposed to as is set so in hubsoft itself)

My Settings:
(http://ptokax.psycho-chihuahua.net/images/ptx.jpg)

On Hublist.org (same phenomenon when using statistic scripting) (http://www.hublist.org/?p=hub&id=123895)  well see for yourself it shows 500 TB
Title:
Post by: PPK on 04 May, 2005, 20:32:13
QuoteOriginally posted by Psycho_Chihuahua
frmHub:GetMinShare()*1024*1024

could that be the problem?
Yes this is problem, PtokaX return minshare in bytes :D
Title:
Post by: Psycho_Chihuahua on 04 May, 2005, 20:33:46
hmm oh then that means i should erase one *1024 then?

Thnx for the hint *g* i'll see if i got it now next time the pinger comes round
Title:
Post by: PPK on 04 May, 2005, 20:39:02
QuoteOriginally posted by Psycho_Chihuahua
hmm oh then that means i should erase one *1024 then?
Not one, both :D Pinger want in hubinfo bytes and PtokaX return bytes  :))
Title:
Post by: bastya_elvtars on 04 May, 2005, 20:44:06
Why don't you implement pinger response into the hubsoft? Just asking...
Title:
Post by: LoTeK_ on 04 May, 2005, 22:54:07
..also a mainchat blocker will be very useful.
(just a mainchat block except ops, without any other feature that can be implemented with other scripts)
Title:
Post by: PPK on 04 May, 2005, 23:28:30
QuoteOriginally posted by bastya_elvtars
Why don't you implement pinger response into the hubsoft? Just asking...
Maybe you need to more read changelog, is implemented from 16.09 :D

QuoteOriginally posted by LoTeK_
..also a mainchat blocker will be very useful.
Why ?( Only few hubowners need it, and is very easy to do it with script :))
Title:
Post by: dragos_sto on 05 May, 2005, 00:27:49
PPK one question how to make description overwrite , i made a little code seem to be not working

i use function MyINFOArrival(User, Data) , but it little strange

if a user it connected and new user ho connect to the server it operator or master, the user see the description modify whit the script ,
but if the operator it online and user connect to the hub the description will not appear to none of them

and one thing , i will put the code bellow and the result from serv when a user connect and a operator connect

         login = {
["BotName"] = frmHub:GetHubBotName().."_Login",
}


function MyINFOArrival(User, Data)
SendToAll(changedesc(User, Data))

end

--//ip calculate
function compip(ips)
local _,_,a,b,c,d = string.find(ips, "(%d+).(%d+).(%d+).(%d+)")
return ((a*16777216) + (b*65536) + (c*256) + d)
end


function changedesc(user, data)
local s,e,name,desc,tag,speed,email,share = string.find(user.sMyInfoString, "$MyINFO $ALL (%S+)%s+([^$]*)<([^$]*)$ $([^$]*)$([^$]*)$([^$]+)")
local ipuser = compip(user.sIP)

desc = "Dont work"
if ipuser == (127*16777216 + 1) then desc = "Test"
      elseif ipuser > (10*16777216 + 48*65536 + 8*256 ) and ipuser < (10*16777216 + 48*65536 + 8*256 + 255) then desc = "DTNET ... ADY 0722144079"
      elseif ipuser > (10*16777216 + 48*65536 + 9*256 ) and ipuser < (10*16777216 + 48*65536 + 9*256 + 255) then desc = "DTNET ... Bogdan 0744910529"
      elseif ipuser == (10*16777216 + 48*65536 + 10*256 + 14) then desc = "Sebastian"
      elseif ipuser > (10*16777216 + 48*65536 + 10*256 ) and ipuser < (10*16777216 + 48*65536 + 10*256 + 255) then desc = "DTNET ... ADY 0722144079"
      elseif ipuser > (10*16777216 + 48*65536 + 11*256 ) and ipuser < (10*16777216 + 48*65536 + 11*256 + 255) then desc = "DTNET ... Dragos 0723657274"
      elseif ipuser > (10*16777216 + 48*65536 + 12*256 ) and ipuser < (10*16777216 + 48*65536 + 15*256 + 255) then desc = "Sebastian"
end
desc = "$MyINFO $ALL "..name.." "..desc.."<"..tag.."$ $"..speed.."$"..email.."$"..share.."$"
user:SendData(login.BotName, "\r\n nume "..name.." \r\n desc "..desc.." \r\n tag <"..tag.." \r\n speed "..speed.."\r\n")
return desc
end


when user connect, hub return to client

        [01:18:55] *** Connecting to 127.0.01...
[01:18:55] *** Connected
[01:18:55]
 nume isdhfk
 desc $MyINFO $ALL isdhfk Test$ $Cable$$72206716964$
 tag
 speed Cable

[01:18:55] This hub is running PtokaX DC Hub 0.3.3.0 build 17.03 [debug] (UpTime: 0 days, 0 hours, 23 minutes)
[01:18:56] bine ati venit


when operator connect ,hub return to client

        [01:20:28] *** Connecting to 127.0.0.1...
[01:20:28] *** Connected
[01:20:28] *** Stored password sent...
[01:20:28]
 nume _sdcxp_
 desc $MyINFO $ALL _sdcxp_ Test$ $Cable$$72206716964$
 tag
 speed Cable

[01:20:28] This hub is running PtokaX DC Hub 0.3.3.0 build 17.03 [debug] (UpTime: 0 days, 0 hours, 25 minutes)
[01:20:28] bine ati venit
[01:20:28]
 nume _sdcxp_
 desc $MyINFO $ALL _sdcxp_ Test$ $Cable$$72206716964$
 tag
 speed Cable


when operator connect receive messege from server twice,any idea ?
Title:
Post by: Herodes on 05 May, 2005, 00:35:26
QuoteOriginally posted by dragos_sto
when operator connect receive messege from server twice,any idea ?
Yep .. his client is sending the $MyINFO twice .. .
Title:
Post by: PPK on 05 May, 2005, 02:05:21
QuoteOriginally posted by dragos_sto
PPK one question how to make description overwrite
Here is no way to do it now with PtokaX ;)
QuoteOriginally posted by dragos_sto
when operator connect receive messege from server twice,any idea ?
$MyINFO is not blockable, PtokaX always send it and here is no way to change it without wasting badwith (send it twice)  :P
Title:
Post by: Corayzon on 05 May, 2005, 05:07:11
When a operator connects to a hub, its first myinfo send has the client hub amount as a vip because it sent a password to the hub.

When the client then receives its own name in the oplist, it then resets the hubs count in its tag, and then has to resend it.



will change to



not sure if this has relavence to ya
Title:
Post by: dragos_sto on 05 May, 2005, 07:10:13
Herodes in both case i use same client ,and have same result whit other client

10x for explain , now i know why dont work  
 :D and to not to try in vain to obtain something ho will not working.
maybe athor time whit new version will work   :P
otherwise good work
Title:
Post by: Corayzon on 05 May, 2005, 16:29:39
QuoteOriginally posted by PPK
QuoteOriginally posted by Psycho_Chihuahua
frmHub:GetMinShare()*1024*1024

could that be the problem?
Yes this is problem, PtokaX return minshare in bytes :D

the scripting help file still states frmHub:GetMinShare()'s return is in megabytes =[

i got confused for alittle while there.

GetMinShare() - return minshare in MB
And please add text formating to bad share, slot and hub messages! so us
hubowners dont have to rewrite messages when we change the sharesize or minslots =]
Title:
Post by: electronic_Psycho on 05 May, 2005, 16:53:38
Hi Ppl ..  :D
---------------
How can i do that the motd be come befor the

my Scripts, welcome,Release Bot .. -?-

SomeoN Can Help Me Please -?-  :(
Title:
Post by: Psycho_Chihuahua on 05 May, 2005, 16:54:30
Well my Prob on the Hublist was due to something else anyways, as i just found out.
There you have the possibility to edit a couple of settings if you are using the same IP as the hub is running on.
As for the Hubscript....took it out now, and everything is still working  :D
Title:
Post by: PPK on 05 May, 2005, 18:33:28
QuoteOriginally posted by Corayzon
the scripting help file still states frmHub:GetMinShare()'s return is in megabytes =[
I know, fixed... :]
QuoteOriginally posted by Corayzon
And please add text formating to bad share, slot and hub messages!
I try, but here is problem with old saved messages... hubowners need to change it manually to new :(
Title:
Post by: Corayzon on 06 May, 2005, 03:28:31
QuoteOriginally posted by PPK
QuoteOriginally posted by Corayzon
And please add text formating to bad share, slot and hub messages!
I try, but here is problem with old saved messages... hubowners need to change it manually to new :(

Dont worry about them, they can do it PPK. This would make the hubsoft more
functional, meaning more ppl might want to download! Would u prefer to make a
few lazy hubowners change the share, slots and hub messages. Or have the new
hubowners, go 'wow, this is nice' ?!?

Would be good to also get access to the profiles enabled commands with a
profile class. So then scripts dont have to read through the profiles.dat to get a clients
enabled commands.

ie...

tProfile = GetProfile(User.iProfile)

where the return profile can be build like so...

tProfile.bEnterFullHub = set/nil
tProfile.bKick = set/nil

and so on.

I know this would be abit of work to do, but from the scripters side, it would be awsome mate!

btw, nice work once again PPK
Title:
Post by: jiten on 06 May, 2005, 23:17:51
---------------------------5/6/2005 10:59:09 PM---------------------------
Exception 'EAccessViolation' in module PtokaX.exe at 000C21EE
Access violation at address 004C31EE in module 'PtokaX.exe'. Read of address 736E6128

Call stack:
:004C31EE [PtokaX.exe] cDcCommands::MyPass (DcCommands.cpp, line 1607)
:773F8F6B [COMCTL32.DLL]
:71A5163E [MSWSOCK.dll]
:71A60F49 [MSWSOCK.dll]
:71A544B0 [MSWSOCK.dll]
:004B9BA2 [PtokaX.exe] cDcCommands::ProcessData (DcCommands.cpp, line 191)
:71AB4379 [WS2_32.dll]
:71AB2B32 [WS2_32.dll]
:71AB4382 [WS2_32.dll]
:71AD2EA3 [WSOCK32.DLL]
:004515D6 [PtokaX.exe] clsUser::ProcessLines (clsUser.cpp, line 611)
:00451545 [PtokaX.exe] clsUser::DoRecv (clsUser.cpp, line 586)
:77D4E366 [USER32.dll]
:00586DDC [PtokaX.exe]
:0058847F [PtokaX.exe]
:00583D53 [PtokaX.exe]
:00586DDC [PtokaX.exe]
:77D48C26 [USER32.dll]
:005798CA [PtokaX.exe]
:005208B1 [PtokaX.exe]
:00459196 [PtokaX.exe] theLoop::ProcessAccepts (serviceLoop.cpp, line 121)
:004598EB [PtokaX.exe] theLoop::FOnTimer (serviceLoop.cpp, line 265)
:0046FAF4 [PtokaX.exe] LuaInterpret::GetGC (luaInterface.cpp, line 3953)
:0048AC56 [PtokaX.exe] luaD_call (ldo.c, line 314)
:004AA021 [PtokaX.exe] f_call (lapi.c, line 672)
:00586C2A [PtokaX.exe]
:005670BD [PtokaX.exe]
:00586973 [PtokaX.exe]
:0058698A [PtokaX.exe]
:0051BB72 [PtokaX.exe]
:77D48709 [USER32.dll]
:77D4EDA9 [USER32.dll]
:74730E6C [MSCTF.dll]
:0057997E [PtokaX.exe]
:00579864 [PtokaX.exe]
:0051BB72 [PtokaX.exe]
:77D48709 [USER32.dll]
:77D487EB [USER32.dll]
:77D70494 [USER32.dll]
:77D489A5 [USER32.dll]
:0051F3EB [PtokaX.exe]
:77D70494 [USER32.dll]
:77D4BCCC [USER32.dll]
:00576598 [PtokaX.exe]
:005765CF [PtokaX.exe]
:005767EF [PtokaX.exe]
:00576832 [PtokaX.exe]
:00401B44 [PtokaX.exe] WinMain (PtokaX.cpp, line 43)
:005BF47B [PtokaX.exe]
:00400000 [PtokaX.exe]
:7C816D4F [kernel32.dll]
:7C8399F3 [kernel32.dll]

Main Thread ID = 00000644, Current Thread ID = 00000644
Registers:
EAX = 736E6128  CS = 001B  EIP = 004C31EE  Flags = 00010202
EBX = 0180D9E0  SS = 0023  ESP = 0012F9D0    EBP = 0012FA80
ECX = 00000000  DS = 0023  ESI = 0057996C    FS  = 003B
EDX = 0359A460  ES = 0023  EDI = 0012FE38    GS  = 0000
Code at CS:EIP
8B 08 FF 51 54 89 85 64 FF FF FF FF 4D B8 8D 45
Stack:
0180D9E0 00000001 0012FA88 773F8F6B 0023F348
00000000 00000000 7C8399F3 00535805 0359B494
005FE80B 0359A64C 0000000B 00000000 01C08490
7C8399F3 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF

Additional info:
Application Title : PtokaX DC Hub 0.3.3.0 build 17.03 [debug]
iJoins: 24224, iParts: 23972, iLogged: 250
NicklistLen : 2802
OplistLen   : 107
MyInfosLen  : 10423
MyInfosTagLen  : 22803
QueueA Size : 15
QueueA Len : 0
QueueB Size   : 15
QueueB Len   : 0
PQueue Size  : 287
PQueue Len  : 0
HQueueA Size  : 156
HQueueA Len  : 0
HQueueB Size  : 93
HQueueB Len  : 0
OPQueueA Size  : 590
OPQueueA Len  : 0
OPQueueB Size  : 412
OPQueueB Len  : 0
InfoQueue Size  : 172
InfoQueue Len  : 0
OQ-QueueA Size  : 336
OQ-QueueA Len  : 0
OQ-QueueB Size  : 245
OQ-QueueB Len  : 0

---------------------------5/6/2005 11:06:08 PM---------------------------
Exception 'EAccessViolation' in module PtokaX.exe at 000B817F
Access violation at address 004B917F in module 'PtokaX.exe'. Read of address 736E6128

Call stack:
:004B917F [PtokaX.exe] cDcCommands::~cDcCommands (DcCommands.cpp, line 44)
:005B125C [PtokaX.exe]
:0041A676 [PtokaX.exe] ThubForm::StopServer (frmHub.cpp, line 2293)
:77F17C5D [GDI32.dll]
:77F17C6D [GDI32.dll]
:77D488A9 [USER32.dll]
:77D488B2 [USER32.dll]
:004068BA [PtokaX.exe] ThubForm::ButtonStartClick (frmHub.cpp, line 615)
:773F9662 [COMCTL32.DLL]
:005359DF [PtokaX.exe]
:00583EEE [PtokaX.exe]
:005482A9 [PtokaX.exe]
:0054839D [PtokaX.exe]
:00583D53 [PtokaX.exe]
:773F9662 [COMCTL32.DLL]
:77D48709 [USER32.dll]
:77D48BB1 [USER32.dll]
:77D48832 [USER32.dll]
:77D487FF [USER32.dll]
:77D48BB1 [USER32.dll]
:7C90F0AA [ntdll.dll]
:7C90D9C1 [ntdll.dll]
:7C80CB09 [kernel32.dll]
:7C80CB22 [kernel32.dll]
:00586CF8 [PtokaX.exe]
:77D4B94C [USER32.dll]
:0054821D [PtokaX.exe]
:00583B23 [PtokaX.exe]
:00586E30 [PtokaX.exe]
:0058748C [PtokaX.exe]
:00583D53 [PtokaX.exe]
:0051BB72 [PtokaX.exe]
:77D48709 [USER32.dll]
:7C9106EB [ntdll.dll]
:7C91056D [ntdll.dll]
:77C2C2DE [msvcrt.dll]
:77C2C2E3 [msvcrt.dll]
:77F1AC7C [GDI32.dll]
:00586CF8 [PtokaX.exe]
:77C2C2E3 [msvcrt.dll]
:5AD78AD2 [uxtheme.dll]
:005127ED [PtokaX.exe]
:005670BD [PtokaX.exe]
:00586973 [PtokaX.exe]
:00586CF8 [PtokaX.exe]
:00586973 [PtokaX.exe]
:0051BB72 [PtokaX.exe]
:77D48709 [USER32.dll]
:77D487EB [USER32.dll]
:77D487FF [USER32.dll]
:77D70494 [USER32.dll]
:77D4B743 [USER32.dll]
:77D4B7AB [USER32.dll]
:773F6FF6 [COMCTL32.DLL]
:773F70D8 [COMCTL32.DLL]
:773F93DD [COMCTL32.DLL]
:77D48709 [USER32.dll]
:77D48BB1 [USER32.dll]
:77D48832 [USER32.dll]
:77D487FF [USER32.dll]
:77D48709 [USER32.dll]
:77D487EB [USER32.dll]
:77D70494 [USER32.dll]
:77D4C00E [USER32.dll]
:77D4E366 [USER32.dll]
:00586DDC [PtokaX.exe]
:005842F3 [PtokaX.exe]
:00583D53 [PtokaX.exe]
:7C8399F3 [kernel32.dll]
:7C802600 [kernel32.dll]
:7C802542 [kernel32.dll]
:7C90E2F1 [ntdll.dll]
:7C8024B7 [kernel32.dll]
:74754C96 [MSCTF.dll]
:74755225 [MSCTF.dll]
:00586C2A [PtokaX.exe]
:77D6EBE2 [USER32.dll]
:00586CF8 [PtokaX.exe]
:005127ED [PtokaX.exe]
:005670BD [PtokaX.exe]
:00586973 [PtokaX.exe]
:0058698A [PtokaX.exe]
:74724636 [MSCTF.dll]
:77D4C623 [USER32.dll]
:77D4DCED [USER32.dll]
:00586B20 [PtokaX.exe]
:77D4EDA9 [USER32.dll]
:00586CF8 [PtokaX.exe]
:0054821D [PtokaX.exe]
:00586973 [PtokaX.exe]
:0058698B [PtokaX.exe]
:0051BB72 [PtokaX.exe]
:77D48709 [USER32.dll]
:77D487EB [USER32.dll]
:77D70494 [USER32.dll]
:77D489A5 [USER32.dll]
:0051F3EB [PtokaX.exe]
:77D70494 [USER32.dll]
:77D4BCCC [USER32.dll]
:00576598 [PtokaX.exe]

Main Thread ID = 00000644, Current Thread ID = 00000644
Registers:
EAX = 736E6128  CS = 001B  EIP = 004B917F  Flags = 00010206
EBX = 00DEF07C  SS = 0023  ESP = 0012F4FC    EBP = 0012F528
ECX = 736E6128  DS = 0023  ESI = 00548288    FS  = 003B
EDX = 015B0104  ES = 0023  EDI = 0012F780    GS  = 0000
Code at CS:EIP
8B 10 89 55 FC 66 C7 45 E4 14 00 BA 03 00 00 00
Stack:
0012F550 005B24F7 00630048 0012F4FC 00000000
00000000 00000000 00576598 00535805 00DFD570
005FE80B 024E0078 0000000B 00000000 00DE2A40
00576598 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF

Additional info:
Application Title : PtokaX DC Hub 0.3.3.0 build 17.03 [debug]
iJoins: 24278, iParts: 24224, iLogged: 0
QueueA Size : 15
QueueA Len : 0
QueueB Size   : 15
QueueB Len   : 0
PQueue Size  : 287
PQueue Len  : 0
HQueueA Size  : 156
HQueueA Len  : 0
HQueueB Size  : 93
HQueueB Len  : 0
OPQueueA Size  : 590
OPQueueA Len  : 0
OPQueueB Size  : 412
OPQueueB Len  : 0
InfoQueue Size  : 172
InfoQueue Len  : 0
OQ-QueueA Size  : 336
OQ-QueueA Len  : 0
OQ-QueueB Size  : 245
OQ-QueueB Len  : 82

Title:
Post by: KillerOfDay on 08 May, 2005, 02:39:32
Hello

Ptokax 17.03 crashed 2 times.

This is the log


---------------------------07/05/2005 20.21.57---------------------------
Exception 'EAccessViolation' in module PtokaX.exe at 000C21EE
Access violation at address 004C31EE in module 'PtokaX.exe'. Read of address 302C3139

Call stack:
:004C31EE [PtokaX.exe] cDcCommands::MyPass (DcCommands.cpp, line 1607)
:719D44B0 [MSWSOCK.dll]
:10003D31 [nl_lsp.dll]
:004B9BA2 [PtokaX.exe] cDcCommands::ProcessData (DcCommands.cpp, line 191)
:71A34379 [WS2_32.dll]
:71A32B32 [WS2_32.dll]
:71A34382 [WS2_32.dll]
:71A52EA3 [WSOCK32.DLL]
:004515D6 [PtokaX.exe] clsUser::ProcessLines (clsUser.cpp, line 611)
:00451545 [PtokaX.exe] clsUser::DoRecv (clsUser.cpp, line 586)
:77D18BB1 [USER32.dll]
:77D18832 [USER32.dll]
:77D187FF [USER32.dll]
:00459734 [PtokaX.exe] theLoop::AcceptUser (serviceLoop.cpp, line 220)
:77D40494 [USER32.dll]
:77D1E2F7 [USER32.dll]
:005208B1 [PtokaX.exe]
:00459196 [PtokaX.exe] theLoop::ProcessAccepts (serviceLoop.cpp, line 121)
:005A1E24 [PtokaX.exe]
:004598EB [PtokaX.exe] theLoop::FOnTimer (serviceLoop.cpp, line 265)
:005A6B2F [PtokaX.exe]
:005A2C31 [PtokaX.exe]
:005A2CC9 [PtokaX.exe]
:005F89DD [PtokaX.exe]
:0046FAF4 [PtokaX.exe] LuaInterpret::GetGC (luaInterface.cpp, line 3953)
:77D1E2F7 [USER32.dll]
:00408361 [PtokaX.exe] ThubForm::tmrGuiRefreshTimer (frmHub.cpp, line 921)
:77D1EDA9 [USER32.dll]
:746C0E6C [MSCTF.dll]
:0057997E [PtokaX.exe]
:00579864 [PtokaX.exe]
:0051BB72 [PtokaX.exe]
:77D18709 [USER32.dll]
:77D187EB [USER32.dll]
:77D40494 [USER32.dll]
:77D189A5 [USER32.dll]
:0051F3EB [PtokaX.exe]
:77D40494 [USER32.dll]
:77D1BCCC [USER32.dll]
:00576598 [PtokaX.exe]
:005765CF [PtokaX.exe]
:005767EF [PtokaX.exe]
:00576832 [PtokaX.exe]
:00401B44 [PtokaX.exe] WinMain (PtokaX.cpp, line 43)
:005BF47B [PtokaX.exe]
:00400000 [PtokaX.exe]
:7C816D4F [kernel32.dll]
:7C8399F3 [kernel32.dll]

Main Thread ID = 0000069C, Current Thread ID = 0000069C
Registers:
EAX = 302C3139  CS = 001B  EIP = 004C31EE  Flags = 00010202
EBX = 01C9FF40  SS = 0023  ESP = 0012F9D0    EBP = 0012FA80
ECX = 00000000  DS = 0023  ESI = 0057996C    FS  = 003B
EDX = 01C9C3C4  ES = 0023  EDI = 0012FE38    GS  = 0000
Code at CS:EIP
8B 08 FF 51 54 89 85 64 FF FF FF FF 4D B8 8D 45
Stack:
01C9FF40 0012F9DC 014DC970 00000870 0000069C
00000000 00000000 7C8399F3 00535805 01CD094C
005FE80B 0283C644 0000000B 00000000 028668D4
7C8399F3 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF

Additional info:
Application Title : PtokaX DC Hub 0.3.3.0 build 17.03 [debug]
iJoins: 63729, iParts: 63433, iLogged: 295
NicklistLen : 3440
OplistLen   : 250
MyInfosLen  : 13884
MyInfosTagLen  : 26384
QueueA Size : 15
QueueA Len : 0
QueueB Size   : 15
QueueB Len   : 0
PQueue Size  : 2214
PQueue Len  : 0
HQueueA Size  : 52
HQueueA Len  : 0
HQueueB Size  : 51
HQueueB Len  : 0
OPQueueA Size  : 2046
OPQueueA Len  : 0
OPQueueB Size  : 1412
OPQueueB Len  : 0
InfoQueue Size  : 188
InfoQueue Len  : 0
OQ-QueueA Size  : 253
OQ-QueueA Len  : 0
OQ-QueueB Size  : 253
OQ-QueueB Len  : 0



What is the problem???