Author Topic: UserBekcisi  (Read 32389 times)

0 Members and 1 Guest are viewing this topic.

Offline CrazyGuy

  • Viking
  • ****
  • Posts: 506
  • Karma: +83/-20
    • ?????=-_The NightHawk_-=?????
Re: UserBekcisi
« Reply #25 on: 21 May, 2006, 20:49:02 »
I wouldn't really call it a big problem, but it is possible that GUI settings do not match actual run-time script settings.
My advice is to run the GUI for only initial setup.
Another option might be to set the iAllowSettingCommands to 0 (disabled) when using the GUI


PtokaX forum

Re: UserBekcisi
« Reply #25 on: 21 May, 2006, 20:49:02 »

Offline Jorgo

  • Double Ace
  • *
  • Posts: 103
  • Karma: +6/-6
Re: UserBekcisi
« Reply #26 on: 29 May, 2006, 22:35:35 »
Hello :-)
I'd like to make a request for this bot, if I may. The bot is very nice so far and does almost everything I want, except:

"Show all IPs with their login/logout period for the last x hours"

I am thinking of quick overview for a fixed time period, one IP per line.

Example:

"Requested IP history for the last 6 hours:

1. 192.168.0.1 * Last Login: 15:36 * Last Logout 15:37 * Total Connections: 3"
2. 192.168.0.2 ...


This is mainly to identify those mysterious users who pop in for 1 sec and logoff again.
Thanks for considering it!

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
Re: UserBekcisi
« Reply #27 on: 29 May, 2006, 22:58:13 »
Good request ;) but.. You have to read below..

Now, I use normal methods to keep a database. These methods are directly storing data as a readable text on the disk and load them into memory (as LUA tables) on startup for faster access; and save the whole database on exit.

Below, you'll see my hub's current statistics; which UserBekcisi is collecting an average of 1500 users' data for over 6 weeks :

Code: [Select]
• PtokaX Version : 0.3.4.0i0
• Online Users : 1433
• Hub Uptime : 14 hours, 2 minutes, 53 seconds
• Script Uptime : 14 hours, 38 minutes, 14 seconds
• Database Size : 28153277 bytes
• Total Entries : 295389
• Stats Exec Time : 3.0150 seconds
• Memory Usage : 91703 / 171951 KiB

Notice the very high memory usage :o Even though UserBekcisi only keeps records for last time user has logged to hub and it has an automatic memory cleaner system as well as database cleaners & maintainers, it's still very high. But why?

I preferred short reply time with low CPU usage and high memory usage (which may turn into a bottleneck sometimes :-\ ) instead of loooong reply time with low memory usage and high CPU usage (again a bottleneck?>:( this causes hub to lag like hell sometimes) while developing this bot. But still, there's an experimental choice in user settings among high RAM & CPU usage.

To beat up bottlenecks, we need a faster mechanism to access the database from the disk and quit using memory. This is only possible using SQL technology. That's why I tried using SQLite in old IPdbBOT once; but on some systems it caused insane lags / process completion times. So I had to swtich back to old method? :'(

Your request is only reasonable when I dont have to use the memory to access database (accessing the database from hard disk is maybe 5 times slower and painful for CPU at the moment) I'll try to use MySQL next time I can start coding again in two weeks (I can't now, since I have some exams to study). If I can be successful; I'll absolutely add that functionality...

If I can't be successful, I'll think of adding that functionality in some way...


Best regards
« Last Edit: 29 May, 2006, 23:14:45 by GeceBekcisi »
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
Re: UserBekcisi
« Reply #28 on: 29 May, 2006, 23:08:20 »
Code: [Select]
• PtokaX Version : 0.3.4.0i0
• Hub Uptime : 14 hours, 2 minutes, 53 seconds
• Script Uptime : 14 hours, 38 minutes, 14 seconds

And a note; differences between Hub Uptime & Script Uptime (Script Uptime can never be greater than Hub Uptime) is caused by PtokaX 0.3.4.0i0 which is a BETA; not UserBekcisi.
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

Offline Jorgo

  • Double Ace
  • *
  • Posts: 103
  • Karma: +6/-6
Re: UserBekcisi
« Reply #29 on: 29 May, 2006, 23:40:40 »
Yes, I saw that already in the GeoIP bot. My guess is that the csv lookup makes the whole thing slow and that bot loads the whole csv file into memory.
I don't think SQL and lua make a good marriage, you will probably have to stretch yourself horribly to make sql calls from lua (apart from the fact that it would need an sql server and that's where it gets complicated for the average hub owner).

I saw in another programming project, that the programmer was able to speed up table-lookups by multiple times using a refined search algorithm called "stree". I am no programmer and have no clue if this could be used here, but I thought I'd mention it :)

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
Re: UserBekcisi
« Reply #30 on: 29 May, 2006, 23:53:48 »
I am not a LUA guru and I'll let more experienced coders here to understand what he does, if you can provide us a link hopefully :)
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

Offline Jorgo

  • Double Ace
  • *
  • Posts: 103
  • Karma: +6/-6
Re: UserBekcisi
« Reply #31 on: 02 June, 2006, 18:20:32 »
I've tried to contact that programmer, but he hasn't responded, sorry :(

Offline 7P-Darkman

  • Fulll Member
  • ****
  • Posts: 70
  • Karma: +8/-0
  • Owner of HUB Pantanal - Brasil
    • HUB Pantanal - Brasil
Database integration... why not ?
« Reply #32 on: 13 June, 2006, 18:38:11 »
Hello, GeceBekcisi,


First, it would like to congratulate you for excellent script? is being very useful for some HUBs where I collaborate, of Brazil, where alive.

It would like giving a suggestion to it, that I find that it would still more improve the utility of its excellent script: That such to integrate the databases of the GeoIP, with this database here:

http://www.fallingrain.com/world/

I think that it could create an option where, entering itself with the IP of user, we geographically to determine the probable localization of it, and link of the database ?Global Gazetteer? to start to be part of the UserINFO of this user.

Latitude, longitude, climate and other information to be situated user, of the database ?Global Gazetteer? can help to create more rules to filter users of the HUB.

Well, I wait to have collaborated to improve this still more its excellent script.

Respectfully,


7P-Darkman
Owner of HUB Pantanal - Brasil

Offline Thor

  • Scripter
  • Lord
  • ******
  • Posts: 290
  • Karma: +45/-5
    • Hungarian Direct Connect Site
Re: UserBekcisi
« Reply #33 on: 13 June, 2006, 20:02:58 »
Hm, i think this is impossible. You can't get the users city from his/her IP adress. Maybe country is possible via GeoIP, and then just send a link to the user, like this:
This user is from Hungary: http://www.fallingrain.com/world/HU/
But i think it is a too big reguest :o
But i don't know exactly, GeceBekcisi will answer it you.

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
Re: UserBekcisi
« Reply #34 on: 13 June, 2006, 21:03:52 »
Well..

First of all, there's not a proper database file there, so we have
to collect all the data to a single file like GeoIP is which is a gigantic
and hard work to do on my own...


Secondly, GeoIP works very accurately for countries because
(I think) maxmind fetches IP ranges directly from RIRs (Regional
Internet Registries, like ARIN, RIPE, LACNIC etc) which store exact
country data for IP ranges. But exact geographic data may differ
than the ISP reported to RIRs.


For example, my ISP reports the city which it has its HQ in it as
location, but I am not living in that city ;) So both problems avoid
us (scripters) to write such a script
...



About UserBekcisi development
Next release will be based on plugins system so that you'll be able
to select which functionalities you want to have in your UserBekcisi;
but as a confession, I have to say I had lots of problems in real life
and I want a break.. That means don't expect a new beta soon..

Also I have to add my disappointment about your (users') feedbacks,
nobody doesn't report anything about the script.. Is it because nobody
can't find any bug or they find but don't report it?
I feel alone :(

Best Regards,
GeceBekcisi
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

Offline Thor

  • Scripter
  • Lord
  • ******
  • Posts: 290
  • Karma: +45/-5
    • Hungarian Direct Connect Site
Re: UserBekcisi
« Reply #35 on: 13 June, 2006, 21:19:50 »
I use it on 3 hubs, nowhere was errors. I search often IP-s and nicks, and this script works perfectly ;) Don't give up this great and standalone script, continue it 8)

Offline 7P-Darkman

  • Fulll Member
  • ****
  • Posts: 70
  • Karma: +8/-0
  • Owner of HUB Pantanal - Brasil
    • HUB Pantanal - Brasil
Re: UserBekcisi
« Reply #36 on: 13 June, 2006, 21:38:11 »
Hello GeceBekcisi,

I understand the difficulty, and I know that the inexacting of the databases can compromise the final result? but it does not want to try?

Well, I reported a problem, when found it, and readily was taken care of by you, and to be thankful? remembers to it again? 

http://ptxscriptdb.psycho-chihuahua.net/download.php?view.241

I am trying well to translate its script for the Portuguese of Brazil, to facilitate still more the adoption of it for the HUBs of my parents? as soon as will have a ready version, I will send to you, for its approval.

Respectfully,

7P-Darkman
Owner of HUB Pantanal - Brasil

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: UserBekcisi
« Reply #37 on: 17 June, 2006, 23:56:01 »
could you add another function to the script ?
I need something like this
let's pretend I added a range 81.180.171.1-81.180.171.255 to network It4web
so when the users from that network will connect to the hub they'll? receive a msg like this


Code: [Select]
...Your ISP is It4web you must set your nick to? [It4web]nick
..some larger text
Disconnected

10q in advance
« Last Edit: 18 June, 2006, 00:40:58 by Alexinno »

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
Re: UserBekcisi
« Reply #38 on: 18 June, 2006, 00:11:20 »
Well, that request is totally offtopic and will have low demand; so I will write a seperate script for it in 1-2 days. OK?
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: UserBekcisi
« Reply #39 on: 18 June, 2006, 00:48:27 »
yes, i'll wait for it

can you make it to use the UserBekcisi.v1.00.RC3.lua ISP database ?

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
Re: UserBekcisi
« Reply #40 on: 18 June, 2006, 13:44:07 »
hmm.. then it seems I'll add it to UserBekcisi as a plugin..

it will be in next build of UserBekcisi..
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: UserBekcisi
« Reply #41 on: 18 June, 2006, 16:50:25 »
that will be nice

i'll be back for the new version ;)

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: UserBekcisi
« Reply #42 on: 21 June, 2006, 21:26:13 »
could you add another function to the script ?
I need something like this
let's pretend I added a range 81.180.171.1-81.180.171.255 to network It4web
so when the users from that network will connect to the hub they'll  receive a msg like this


Code: [Select]
...Your ISP is It4web you must set your nick to  [It4web]nick
..some larger text
Disconnected

10q in advance

i wanna change my request , i wan't the script to do this

- if a user's IP matches with one of the ISP in the data base, then...he will be disconnected to make him fix the problem
Code: [Select]
...Your ISP is It4web you must set your nick to  [It4web]nick
Disconnected

if not then nothing happens with him
- and can you do somethig about the lag ?

10x

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
Re: UserBekcisi
« Reply #43 on: 21 June, 2006, 23:49:23 »
This weekend, I'll be able to start coding again; so I will code it just the way you want.

By the way, can you describe "the lag" more please? Like..
- When does it happen?
- How long does it take?
- Can you post your configuration here? (type !ubc in main chat and place the output here)
- Can you send your actions.log and commands.log files in private message? (both should be located under UserBekcisi\Logs folder)

Best regards
GeceBekcisi
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: UserBekcisi
« Reply #44 on: 22 June, 2006, 11:19:25 »
it happens only when i restart the scripts and it takes about 1-2 minutes, but i can live with that :D
maybe my server is the problem because it's a AMD Duron 500 Mhz + 128 Sdram :| and i have 400-500 users

Offline GeceBekcisi

  • Scripter
  • Lord
  • ******
  • Posts: 311
  • Karma: +10/-1
  • You don't need eyes to see, you need vision..
Re: UserBekcisi
« Reply #45 on: 22 June, 2006, 19:00:26 »
This is caused by database save method I used, and it depends on CPU power a lot. It overwrites database file with most up-to-date content on script exit. Sadly, it's not possible to create an effective fix for this at the moment (unless we have a faster SQL plugin); but there are some work arounds..

Most possible one is: Saving database on exit might be disabled and user data would be saved on-the-fly; which may result in gigantic database file sizes as well as long load times but I can add a command or timed action to compact database (which will result in longer lags when used).

I can create an option for that in next release..
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: UserBekcisi
« Reply #46 on: 27 June, 2006, 14:45:29 »
don't worry about , like i said i can live with that .... i would like to hear about the new version of the script :P

Offline Low

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: UserBekcisi
« Reply #47 on: 18 August, 2006, 18:48:03 »
Hello. Any chance that this script is going to be converted to LUA 5.1 ? Really like it. :)

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 753
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: UserBekcisi
« Reply #48 on: 20 August, 2006, 13:54:52 »
Hello. Any chance that this script is going to be converted to LUA 5.1 ? Really like it. :)

GB is away from DC, won't come back too soon, you need a volunter.
Everything could have been anything else and it would have just as much meaning.

Offline Low

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: UserBekcisi
« Reply #49 on: 21 August, 2006, 12:42:47 »
Hehe lets hope a kind harted volunter reads this and converts it to 5.1 ;) I've tried mutors 5.0-5.1 script but i didnt get it to work.

PtokaX forum

Re: UserBekcisi
« Reply #49 on: 21 August, 2006, 12:42:47 »