PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: GeceBekcisi on 20 April, 2006, 19:08:56

Title: UserBekcisi
Post by: GeceBekcisi on 20 April, 2006, 19:08:56
UserBekcisi is the third generation IPdbBOT (http://forum.ptokax.org/index.php?topic=5250.0) in practice.

Nearly all the script is rewritten for couple of times, tons of bugs fixed and lots of features added;
so changing project name was needed since it's completely different than old one.

It has user info (nick, IP, share size, tag, description, mail and connection type) logging in addition to
IP logging and lots of new features when compared to latest released IPdbBOT.

No readme nor changelog files available yet so use with attention, but you can check help command
(!ubhelp or !ubh as default) and settings file for some information about bot.

Ask your questions, report bugs and request features here please.


Download from here (http://scriptdb.ptokax.ath.cx/download.php?list.74)
? Current version: 1.00.RC2.b009
? Updated at: 09.05.2006 16:25 GMT+3
? Major Change since last build: User Checking



NOTES:
1. 2.51 was the latest release version of IPdbBOT
2. You can NOT use any of your old IPdbBOT files; so please download and run the script as is.

Title: Re: UserBekcisi
Post by: Markitos on 21 April, 2006, 08:36:04
Hi GeceBeckcisi...
I like your script but i isn't this function wrong???
--// ----------------------------------------------------------
--// General CIDR Correction (like 127.000.0.01/0021 to 127.0.0.1/21)
tFunctions.CIDR_Correction = function(sCIDR)
local _,_,a,b,c,d,CIDRPrefix = string.find(sCIDR, "^(%d+)%.(%d+)%.(%d+)%.(%d+)/(%d+)$")
if a and b and c and d and CIDRPrefix then
if a ~= tonumber(a) or b ~= tonumber(b) or c ~= tonumber(c) or d ~= tonumber(d) or CIDRPrefix ~= tonumber(CIDRPrefix) then
sIP = tonumber(a).."."..tonumber(b).."."..tonumber(c).."."..tonumber(d)
end
return sCIDR
else
OnError("\'"..sCIDR.."\' can not be corrected to form a CIDR!")
end
end
--// ----------------------------------------------------------

Because you created sIP but didnt return it...u returned sCIDR and correcting sIP wouldn't be something like this?
sIP = tonumber(a).."."..tonumber(b).."."..tonumber(c).."."..tonumber(d).."/"..tonumber(CIDRPrefix)  ???


Cheers
Title: Re: UserBekcisi
Post by: QuikThinker on 21 April, 2006, 12:11:49
I keep gettin this error
[12:08:01] <?MESSIAH?> Scanning registered users database and updating the database if nessesery!
[12:08:01] The px WSA files could not be found, copy them from the PxWSA folder inclued in this script
The files should in the folder specified in the WSAPath option in config
even tho i've done what it says. Plus there's a typo "necessary" not "nessesery"? :P
Title: Re: UserBekcisi
Post by: 6Marilyn6Manson6 on 21 April, 2006, 12:16:01
Quote from: QuikThinker on 21 April, 2006, 12:11:49
I keep gettin this error
[12:08:01] <?MESSIAH?> Scanning registered users database and updating the database if nessesery!
[12:08:01] The px WSA files could not be found, copy them from the PxWSA folder inclued in this script
The files should in the folder specified in the WSAPath option in config
even tho i've done what it says. Plus there's a typo "necessary" not "nessesery"? :P

Reinstall script and PxWSA library with PtokaX close :D
Title: Re: UserBekcisi
Post by: Psycho_Chihuahua on 21 April, 2006, 12:23:37
[22:19] No syntax errors in script file UserBekcisi v1.00.lua

[13:21:25] <-SanitariuM->

================================================================================
*Current Configuration* ( for *UserBekcisi v.1.00.RC1.b005* )
----------------------------------------------------------------------------------------------------------------------------------------------------------------
? Bot Name : -SanitariuM-
? Menu Title : -SanitariuM-
? Hub Owner Name : Psycho_Chihuahua
? Bot Reply Environment : PM
? Default Last X Times : 10
? Database Clean Interval (in weeks) : 4
? Exact Time Format : %d.%m.%Y - %X
? Date Format : %d.%m.%Y
? Command Spy : Enabled
? Performance Debugging : Disabled
? Setting Commands : Enabled
? PxWSA Library Usage : Enabled
? Device Usage (for database access) : CPU (more than RAM)
? ISP Queries : Enabled
? DNS Queries : Enabled
? High Amount of IP Queries : Enabled
? Range Access Control : Disabled
? Range Control Role : Block
? Range Control Applies To : Marked ISPs
----------------------------------------------------------------------------------------------------------------------------------------------------------------
*Current Statistics*
----------------------------------------------------------------------------------------------------------------------------------------------------------------
? PtokaX Version : 0.3.4.0
? Online Users : 5
? Stats Exec Time : 0.0160 seconds
? Database Size : 1620 bytes
? Total Entries : 16
? Memory Usage : 291 / 488 KiB
================================================================================



working fine so far - haven't tested all functions yet
Title: Re: UserBekcisi
Post by: Markitos on 21 April, 2006, 13:26:10
Quote from: QuikThinker on 21 April, 2006, 12:11:49
Plus there's a typo "necessary" not "nessesery"  :P
Indeed QuikThinker but that msg is from robocop not from UB...
Title: Re: UserBekcisi
Post by: GeceBekcisi on 21 April, 2006, 13:56:22
Quote from: Markitos on 21 April, 2006, 08:36:04
Hi GeceBeckcisi...
I like your script but i isn't this function wrong???
--// ----------------------------------------------------------
--// General CIDR Correction (like 127.000.0.01/0021 to 127.0.0.1/21)
tFunctions.CIDR_Correction = function(sCIDR)
local _,_,a,b,c,d,CIDRPrefix = string.find(sCIDR, "^(%d+)%.(%d+)%.(%d+)%.(%d+)/(%d+)$")
if a and b and c and d and CIDRPrefix then
if a ~= tonumber(a) or b ~= tonumber(b) or c ~= tonumber(c) or d ~= tonumber(d) or CIDRPrefix ~= tonumber(CIDRPrefix) then
sIP = tonumber(a).."."..tonumber(b).."."..tonumber(c).."."..tonumber(d)
end
return sCIDR
else
OnError("\'"..sCIDR.."\' can not be corrected to form a CIDR!")
end
end
--// ----------------------------------------------------------

Because you created sIP but didnt return it...u returned sCIDR and correcting sIP wouldn't be something like this?
sIP = tonumber(a).."."..tonumber(b).."."..tonumber(c).."."..tonumber(d).."/"..tonumber(CIDRPrefix)? ???

Cheers


It seems that I forgot to finish this function? ;D Thanks for your report; this will be corrected in next build

Quote from: QuikThinker on 21 April, 2006, 12:11:49
I keep gettin this error
[12:08:01] <•MESSIAH•> Scanning registered users database and updating the database if nessesery!
[12:08:01] The px WSA files could not be found, copy them from the PxWSA folder inclued in this script
The files should in the folder specified in the WSAPath option in config
even tho i've done what it says. Plus there's a typo "necessary" not "nessesery"? :P

This error is not from UserBekcisi? ::)

You can never get such an error from UserBekcisi since it has its own PxWSA lib (so anyone shouldn't touch anything because there's nothing to be corrected :) )
Title: Re: UserBekcisi
Post by: QuikThinker on 21 April, 2006, 15:35:18
My apologies, thanx 4 the help :)

Also I have this question which is probably simple too. I wanna change the right-clicker menu name. I checked the script and replaced -- User Commands Menu
sMenu = frmHub:GetHubName(),
with -- User Commands Menu
? ? ? ? ? ? ? ?? ? ? sMenu = "[?] UserBekcisi",
but it's still using the hub bot name :(
Title: Re: UserBekcisi
Post by: Markitos on 21 April, 2006, 16:24:35
Quote from: QuikThinker on 21 April, 2006, 15:35:18
My apologies, thanx 4 the help :)

Also I have this question which is probably simple too. I wanna change the right-clicker menu name. I checked the script and replaced -- User Commands Menu
sMenu = frmHub:GetHubName(),
with -- User Commands Menu
                     sMenu = "[?] UserBekcisi",
but it's still using the hub bot name :(
Did u restarted the script?
Title: Re: UserBekcisi
Post by: GeceBekcisi on 21 April, 2006, 16:31:02
Quote from: QuikThinker on 21 April, 2006, 15:35:18
My apologies, thanx 4 the help :)

Also I have this question which is probably simple too. I wanna change the right-clicker menu name. I checked the script and replaced -- User Commands Menu
sMenu = frmHub:GetHubName(),
with -- User Commands Menu
? ? ? ? ? ? ? ?? ? ? sMenu = "[?] UserBekcisi",
but it's still using the hub bot name :(

Erm.. If you enabled setting commands or if iAllowSettingCommands equals to 1 in your settings file; UserBekcisi will ignore Settings.lua file and use Settings.tbl

Why UserBekcisi does so? Because I don't want to overwrite Settings.lua file since when saving in overwrite mode; the comments, the only information you have at the moment are lost ?>:(

Possible Solutions:
1. Change the bot name by rightclick menu or by manually entering the command !ubmenur <NewName>
2. Disable usage of setting commands

Best regards.
Title: Re: UserBekcisi
Post by: GeceBekcisi on 22 April, 2006, 08:19:22
I am thinking of adding user info checking to UserBekcisi which will check user's info against forbidden words and sharesizes etc.

Does anyone want such a functionality?
Title: Re: UserBekcisi
Post by: Psycho_Chihuahua on 23 April, 2006, 20:41:06
Today it started and not even a clean install helps against it :(

UserBekcisi/Functions.lua:1677: attempt to perform arithmetic on global `iEntries' (a nil value)

** Edit: Working again after reboot of my pc ;)  - i guess this error was not script related **

**Edit 2: It's related to the "Performance Debug Setting" as soon as it's active i get the error - if i turn it off the error goes away **
Title: Re: UserBekcisi
Post by: GeceBekcisi on 24 April, 2006, 12:25:37
Thanks for the report. Will be corrected in b007 as well as some more.
Title: Re: UserBekcisi
Post by: Psycho_Chihuahua on 24 April, 2006, 13:29:59
Quote from: GeceBekcisi on 24 April, 2006, 12:25:37
Thanks for the report. Will be corrected in b007 as well as some more.

your'e welcome - took me a while to realise where the error came from  ::)
Title: Re: UserBekcisi
Post by: GeceBekcisi on 25 April, 2006, 20:12:24
1.00.RC2.b008 is out now with GeoIP support. Grab from here (http://scriptdb.ptokax.ath.cx/download.php?list.74)
Title: Re: UserBekcisi
Post by: GeceBekcisi on 26 April, 2006, 12:08:21
I am thinking of removing Range Access Control module, the IP checker based on ISP database, since PtokaX can handle range bans very well. Is there anyone using it and who wants it to stay?
Title: Re: UserBekcisi
Post by: Psycho_Chihuahua on 26 April, 2006, 13:28:41
remove it you want to  ;)
i don't use it
Title: Re: UserBekcisi
Post by: GeceBekcisi on 26 April, 2006, 13:34:43
And what about user info checking (check user's info against forbidden words and sharesizes etc) ? Shall I add it?
Title: Re: UserBekcisi
Post by: 6Marilyn6Manson6 on 26 April, 2006, 13:39:47
Quote from: GeceBekcisi on 26 April, 2006, 13:34:43
And what about user info checking (check user's info against forbidden words and sharesizes etc) ? Shall I add it?

Yes added it thanks ^^
Title: Re: UserBekcisi
Post by: Psycho_Chihuahua on 26 April, 2006, 14:20:03
that would be cool yeah  ;D
Title: Re: UserBekcisi
Post by: QuikThinker on 26 April, 2006, 17:45:54
I agree, would be a nice addition  ;)
Title: Re: UserBekcisi
Post by: GeceBekcisi on 02 May, 2006, 14:44:42
While working on UserBekcisi to add user info checking, I noticed that with some small improvements check module can be used to check main chat messages; private messages and even searches & search replies... But here comes an important question: Should UserBekcisi check only user's info or more than info?

I am too confused to answer; because if I add this, UserBekcisi will start to feel like an All-In-One bot, which I don't want UserBekcisi to be* That's why I am asking you, the users of this script; because I write this script for you...

Should UserBekcisi check only user's info or more than info?


* NOTE: Why I don't want? Because the bigger a script gets, the harder it gets to maintain it.
Title: Re: UserBekcisi
Post by: QuikThinker on 02 May, 2006, 15:20:02
I know it's gonna be harder to maintain but you've done an excellent job so far so I don't see why you don't progress it further. If you've got the time that is.

Keep it up  ;)
Title: Re: UserBekcisi
Post by: GeceBekcisi on 09 May, 2006, 15:24:43
1.00.RC2.b009 is out now with user info check + user share check functionality. Grab from here (http://scriptdb.ptokax.ath.cx/download.php?list.74)

NOTE: User share check functionality is working as any hubside bad file script, and you really should read the settings file before you start using the whole script.
Title: Re: UserBekcisi
Post by: GeceBekcisi on 21 May, 2006, 16:39:34
1.00.RC2.b010 is ready and CrazyGuy is preparing a GUI (a configuration application) for UserBekcisi; but we have a great problem? >:(


Currently, UserBekcisi has some commands which can change script configuration on-the-fly, and because of this; if these commands are enabled, UserBekcisi has to rewrite settings file each time it exits to be able to use new settings next time it starts.

A GUI will overwrite the settings file too if anything is changed, but if you use the GUI while script is working and configuration commands are enabled, the changes made with GUI will be lost sadly on next exit of UserBekcisi

We have 2 solutions for that.
First solution is to warn user each time user starts GUI about these, which may bore some users
Second solution is totally removing configuration commands and disable the script to overwrite the settings file when it exits.


We'll move forwards due to your replies and I'll release 1.00.RC2.b010 after that problem is solved; so which one do you prefer guyz?
Title: Re: UserBekcisi
Post by: CrazyGuy 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

Title: Re: UserBekcisi
Post by: Jorgo 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!
Title: Re: UserBekcisi
Post by: GeceBekcisi 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 :

• 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
Title: Re: UserBekcisi
Post by: GeceBekcisi on 29 May, 2006, 23:08:20
Quote from: GeceBekcisi on 29 May, 2006, 22:58:13
• 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.
Title: Re: UserBekcisi
Post by: Jorgo 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 :)
Title: Re: UserBekcisi
Post by: GeceBekcisi 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 :)
Title: Re: UserBekcisi
Post by: Jorgo on 02 June, 2006, 18:20:32
I've tried to contact that programmer, but he hasn't responded, sorry :(
Title: Database integration... why not ?
Post by: 7P-Darkman 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
Title: Re: UserBekcisi
Post by: Thor 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.
Title: Re: UserBekcisi
Post by: GeceBekcisi 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
Title: Re: UserBekcisi
Post by: Thor 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)
Title: Re: UserBekcisi
Post by: 7P-Darkman 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
Title: Re: UserBekcisi
Post by: Alexinno 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



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


10q in advance
Title: Re: UserBekcisi
Post by: GeceBekcisi 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?
Title: Re: UserBekcisi
Post by: Alexinno 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 ?
Title: Re: UserBekcisi
Post by: GeceBekcisi 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..
Title: Re: UserBekcisi
Post by: Alexinno on 18 June, 2006, 16:50:25
that will be nice

i'll be back for the new version ;)
Title: Re: UserBekcisi
Post by: Alexinno on 21 June, 2006, 21:26:13
Quote from: Alexinno 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



...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
...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
Title: Re: UserBekcisi
Post by: GeceBekcisi 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
Title: Re: UserBekcisi
Post by: Alexinno 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
Title: Re: UserBekcisi
Post by: GeceBekcisi 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..
Title: Re: UserBekcisi
Post by: Alexinno 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
Title: Re: UserBekcisi
Post by: Low 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. :)
Title: Re: UserBekcisi
Post by: bastya_elvtars on 20 August, 2006, 13:54:52
Quote from: Low 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. :)

GB is away from DC, won't come back too soon, you need a volunter.
Title: Re: UserBekcisi
Post by: Low 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.
Title: Re: UserBekcisi
Post by: bastya_elvtars on 21 August, 2006, 12:46:53
Quote from: Low 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.

OK, then create a new topic, run the converter program again and show what errors you get.
Title: Re: UserBekcisi
Post by: GeceBekcisi on 17 September, 2006, 19:43:39
Quote from: Low 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. :)

Possibly NO in few next months. As bastya_elvtars mentioned above, I am away from DC and scripting because I have loads of shit to fix my own life. As soon as everything turns to be normal, I'll be glad to return.

And a news for users of this script: When I quit working on UserBekcisi, I was close to finish rebuilding script's architecture to "plug-in" based architecture which means you'll be able to run the components only you will choose. I hope that will satistfy most of people complaining about "too many features".

Also, CrazyGuy has done a GUI for settings; and it will be added to next build if I find CrazyGuy when I return :)



Best regards from Ge(eBekcisi

Note: Gece means night in my language ;)
Title: Re: UserBekcisi
Post by: Pothead on 17 September, 2006, 22:18:33
Good luck with get everything sorted GeceBekcisi :)
Title: Re: UserBekcisi
Post by: amenay on 04 October, 2006, 07:57:13
I found an error on line 910 of functions2.lua.. simple oversight I'm sure.

fFunction = function(User)

Should be

fFunction = function(User,sReason,String,sWhere,sFile)
Title: Re: UserBekcisi
Post by: GeceBekcisi on 24 October, 2006, 20:53:06
Quote from: amenay on 04 October, 2006, 07:57:13
I found an error on line 910 of functions2.lua.. simple oversight I'm sure.

fFunction = function(User)

Should be

fFunction = function(User,sReason,String,sWhere,sFile)

Thanks for the report amenay, you can be sure it will be fixed in next version..

BTW, I started to sort stuff in my life and probabably I'll be back to scripting in a few months.. I have some brilliant ideas for UserBekcisi; when they are ready, I will share with you ;)
Title: Re: UserBekcisi
Post by: CrazyGuy on 10 November, 2006, 19:32:36
Hey folks,

Seems there's alot of questions about Userbekcisi being converted to LUA 5.1.1
And since newest PtokaX doesn't support 5.0.3 anymore, I tried to give it a go.
I would like to state though, that I haven't fully tested this modification, so there probably will be errors in it.

I have not added any new functionality to it ( if any chances, then now less stuff works  :P lol )

Hopefully Gecebekcisi will be having a chance soon to take a look and optimize it where needed.

*link removed*
Title: Re: UserBekcisi
Post by: speedX on 10 November, 2006, 20:38:07
showing me the following error in 0.3.5.1

Quote
[01:05] Syntax ...kaX DC Hub 0.3.5.1\scripts\UserBekcisi.v1.00.RC3.lua:170: bad argument #1 to 'find' (string expected, got nil)
Title: Re: UserBekcisi
Post by: CrazyGuy on 10 November, 2006, 20:58:45
Quote[01:05] Syntax ...kaX DC Hub 0.3.5.1\scripts\UserBekcisi.v1.00.RC3.lua:170: bad argument #1 to 'find' (string expected, got nil)


if not string.find(frmHub:GetHubDescr(),"UB.RC3") then
frmHub:SetHubDescr("\[UB.RC3\]."..frmHub:GetHubDescr())
end


Does not seem to be related to my modification. Calls valid for PtokaX 0.3.5.1i
But try changing it to this

if string.find(frmHubLGetHubDescr(), "UB.RC3") == nil then frmHub:SetHubDescr("\[UB.RC3\]."..frmHub:GetHubDescr()) end
Title: Re: UserBekcisi
Post by: GeceBekcisi on 10 November, 2006, 21:58:43
Well, I wasn't planning to release the LUA 5.1 version of UserBekcisi until I was sure of everything (I didn't have much time to test it); but here (http://forum.ptokax.org/index.php?topic=6542.0) you go folks.. Please do report all the problems you face.. Even if I can't help; I am sure the other scripters around will help you..
Title: Re: UserBekcisi
Post by: CrazyGuy on 10 November, 2006, 22:03:29
 ;D

My version, trashed, recylced, and retrashed :P