PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: NemeziS on 13 October, 2004, 17:33:08

Title: Prevent auto disconnect
Post by: NemeziS on 13 October, 2004, 17:33:08
Hi, guys!
I have a little problem/ My PtokaX 0.330 build 15.25 [debug] automatically disconnects my users =((.
A lot of users told to me about autodisconnects. So I wanted to ask you if it is possible to prevent auto disconnects somehow?
I've checked everything. But it still disconnects. My hub disconnects users after some time been on hub.

Help me please! :(
Title:
Post by: NemeziS on 13 October, 2004, 17:41:33
Or maybe I can download a new version of PtokaX...
Title:
Post by: Herodes on 13 October, 2004, 17:50:27
QuoteOriginally posted by NemeziS
Or maybe I can download a new version of PtokaX...
or downgrade since there is nothing newer and widespread ....

I suggest trying TD4 again ... maybe it will solve that problem ..
Title:
Post by: ??????Hawk?????? on 13 October, 2004, 18:50:56
hi m8  ..

just a few suggestions  ..

1.  delete any error logs you may have. ( look in the LOG  folder).

2.  if your running with User Statistics enabled,  close the hub and over write the Users.mdb (http://www.hawks-world.com/users.zip)   file with a clean one. ( this will delete all User info ).

3. Check its not your scripts disconnecting them.

4. if you have a very Busy computer using up your B/W then close some of it down to give the hub more.

Hope This helps   :))
Title:
Post by: bastya_elvtars on 13 October, 2004, 19:33:04
bcdc script by tezlo?

-- enable bcdc++ on testdrive 4 made by tezlo

function Main()
frmHub:EnableFullData(1)
end

function DataArrival(user, data)
if strsub(data, 1, 7) == "$UserIP" then
local s, e, nick = strfind(data, "^%$UserIP (%S+)%|$" )
if nick == user.sName then
user:SendData( "$UserIP "..nick.." "..user.sIP)
elseif user.bOperator then
local tmp = GetItemByName(nick)
if tmp then user:SendData( "$UserIP "..nick.." "..tmp.sIP) end
end return 1
end
end
Title:
Post by: Herodes on 13 October, 2004, 19:50:52
Uhm bast ... thats for anbling $UserIP support on Ptokax ..
I dont see how that would help on the user-Disconnected thing ..
Title:
Post by: bastya_elvtars on 13 October, 2004, 19:53:02
if a hub does not support $UserIP by default, it disconnects users sending that, cause its considered as an unknown RAW command
Title:
Post by: Herodes on 13 October, 2004, 20:02:34
QuoteOriginally posted by bastya_elvtars
if a hub does not support $UserIP by default, it disconnects users sending that, cause its considered as an unknown RAW command
pardon me .. I saw the light :)