PtokaX forum

Development Section => PtokaX Development Versions => Topic started by: PPK on 09 October, 2006, 00:09:29

Title: 0.3.5.1g
Post by: PPK on 09 October, 2006, 00:09:29
New testing version, only with Lua 5.1.1 (http://www.ptokax.org/files/0.3.5.1g.lua5.1.1.7z). Here is no version with Lua 5.0.3, compile failed because Lua 5.0.3 not support function needed by PtokaX  ::)

Full online PtokaX changelog is available in Wiki (http://www.ptxwiki.psycho-chihuahua.net/doku.php/changelogs/ptokax/changes_after_0.330_15.31).
Title: Re: 0.3.5.1g
Post by: bastya_elvtars on 09 October, 2006, 00:18:25
Quote from: PPK on 09 October, 2006, 00:09:29
Here is no version with Lua 5.0.3, compile failed because Lua 5.0.3 not support function needed by PtokaX  ::)

Does this mean that support for Lua 5.0 will be dropped?
Title: Re: 0.3.5.1g
Post by: PPK on 09 October, 2006, 02:21:38
Maybe, if nobody give me good reason why we need version with lua 5.0  ::)
Title: Re: 0.3.5.1g
Post by: Stormbringer on 09 October, 2006, 11:46:54
Good reason?
Maybe cause 80% of the hub are still running lua 5.0 hub.
Title: Re: 0.3.5.1g
Post by: Herodes on 09 October, 2006, 13:19:23
Quote from: Stormbringer on 09 October, 2006, 11:46:54
Good reason?
Maybe cause 80% of the hub are still running lua 5.0 hub.

Thats before they realize that PtokaX isn't going 5.0.x anymore ;)
I believe that having dual versions of PtokaX has made things lot more easier for the scripters and a lot more confusing for the hubowners. It was a great move from the part of PPK, strategicaly,  to do this, because he knows how strong this hubsoft is from its community and he made us the favour of doing a simple transition. As Lua moves forward the option for following smth less is definately getting thinner since the features of the new versions are ussually compensating in terms of less code and easier logic. Please keep up,... the community will definately be there ;) encourage people to script,.. its a nice hobby to have and a good reason to sit on the pc doing stuff for others, somewhat fulfilling. (shitty,.. I am ranting again...full stop.)


PPK: Could you please add the date a change in the changelog was made?
Maybe format the changelog like what follows?
[+] (06-10-2006) - Advanced password protection (thx plop for idea).

Changelog Legend
------------------
[+] Added, [-] Removed, [!] Fixed/Improved, [#] Changed
Title: Re: 0.3.5.1g
Post by: Rincewind on 09 October, 2006, 13:33:00
Personally I'd quite like to see support for Lua 5.0.3 dropped as it makes more work trying to make a script compatible with both. I'll continue doing so while the support is there so people have achoice but it is a pain to have to do so.
Title: Re: 0.3.5.1g
Post by: bastya_elvtars on 09 October, 2006, 14:29:26
Just asked 'cause I'll update LM for 5.1 :P
Title: Re: 0.3.5.1g
Post by: -SkA- on 09 October, 2006, 15:59:54
There's a bug on this version:

function RegBot doesn't works well: scripts with this function works but it's not operator (no key).
Title: Re: 0.3.5.1g
Post by: PPK on 09 October, 2006, 16:19:35
Change scripts from lua 5.0 to 5.1 is easy. If i don't drop support for lua 5.0 now, then i do it on end of year. Don't drop it now means to make 168 changes in lua interface compatible with lua 5.0 and add again bugs because is not possible to fix them with lua 5.0 ::)
Title: Re: 0.3.5.1g
Post by: Helios on 09 October, 2006, 20:21:44
nice work ppk a new release tnx
Title: Re: 0.3.5.1g
Post by: blackwings on 11 October, 2006, 02:47:46
maybe someone should release a list of what things needs to be changed in a 5.0 script to convert it into a 5.1 script.
Title: Re: 0.3.5.1g
Post by: Herodes on 11 October, 2006, 08:15:51
Quote from: blackwings on 11 October, 2006, 02:47:46
maybe someone should release a list of what things needs to be changed in a 5.0 script to convert it into a 5.1 script.
PtokaX can already tell you what is wrong with a 5.0.x script. just put it in the scirpts folder!
Also, anyone can go find the changes compared to the previous version for the Lua 5.1 version on the Lua website.
Title: Re: 0.3.5.1g
Post by: johny on 12 October, 2006, 21:24:07
hehehe lol now i get this error too
[21:21] Syntax E:\Robocop 10.023\scripts\newyear.lua5.lua:55: attempt to call field 'mod' (a nil value)
just after scripts restart, never seen it before
posibely the next line is the prob line:
   local hours, minutes,seconds = math.floor(math.mod(tmp/3600, 60)), math.floor(math.mod(tmp/60, 60)), math.floor(math.mod(tmp/1, 60))
Title: Re: 0.3.5.1g
Post by: Rincewind on 12 October, 2006, 21:32:22
Lua 5.1.1 uses modf instead of mod; the function had its name changed.
Title: Re: 0.3.5.1g
Post by: johny on 12 October, 2006, 21:41:27
thanks man just changed all .mod to .modf now and testing script

[21:39:54] <newyear> Time left till new year: 80 Day's 2 Hours 140 Minutes 8406 Seconds

hehehe and its working again, now i have to check all other scripts and change all .mod to .modf i presume
Title: Re: 0.3.5.1g
Post by: Herodes on 13 October, 2006, 08:12:38
Quote from: johny on 12 October, 2006, 21:41:27
thanks man just changed all .mod to .modf now and testing script

[21:39:54] <newyear> Time left till new year: 80 Day's 2 Hours 140 Minutes 8406 Seconds

hehehe and its working again, now i have to check all other scripts and change all .mod to .modf i presume
although it is buggy....
8days 2hours 140mins 8406seconds
^ ok   ^ok     ^no*     ^no!**

* 140mins = 2hrs 20min
** 8406s / 60 = 140.01 mins = 2hrs 20mins 6mins

Post the problem at the appropriate thread. This is no place for this ;)
Title: Re: 0.3.5.1g
Post by: bastya_elvtars on 13 October, 2006, 16:26:41
math.mod has become math.fmod, not math.modf.
Title: Re: 0.3.5.1g
Post by: Herodes on 13 October, 2006, 16:59:16
Quote from: bastya_elvtars on 13 October, 2006, 16:26:41
math.mod has become math.fmod, not math.modf.
quite true,...
Quote from: Lua 5.1 Manual
from the Lua manual (http://www.lua.org/manual/5.1/manual.html)
math.fmod (x, y)
Returns the remainder of the division of 'x' by 'y'.
math.modf (x)
Returns two numbers, the integral part of 'x' and the fractional part of 'x'
Title: Re: 0.3.5.1g
Post by: johny on 14 October, 2006, 00:35:06
yep just found that out, changed them all from modf to fmod and whalla script works perfect again

thanks for your help guys.
Title: Re: 0.3.5.1g
Post by: ruler on 16 October, 2006, 19:56:20
dont know if its a bug so i thought i'd ask and see if any other hubs are having the same probs...
seems i changed from 0.3.5.1b to 0.3.5.1g and many users including OPs are having problems downloading or getting filelists in my hub, they have no probs in other hubs. i have several SU in my favs and on auto slot in my hub yet they get sonnecting... connecting... timeout. only thing changed was the hubsoft version. any ideas?

thanks
Title: Re: 0.3.5.1g
Post by: PPK on 16 October, 2006, 22:58:11
Don't look like bug here, tested and without problems downloaded filelist from all users on my hub  ::)
Title: Re: 0.3.5.1g
Post by: ruler on 17 October, 2006, 14:34:43
it doesnt seem to effect everyone just a handful at the moment, it maybe something ive over looked. i'll do a little more checking just to make sure. thanks
Posted on: 17 October 2006, 00:10:32
hmm strange, i changed back to the version 0.3.5.1b same settings and same scripts and now they can connect again  ??? i dont know why this is but i think i will stick with the 'b' version for now ;D
Title: Re: 0.3.5.1g
Post by: Nada@WTB on 18 October, 2006, 23:09:22
SuspendAccepts(iTime) to lua for suspending listening sockets when hub is attacked.

Is that automatic or is there a command to activate it?


Ok I figured out that it does it auto, but even tho the flood is not showing in the accept/parts total anymore, the end result is the same. I have tried to narrow down the ip ranges doing this but they are random. 8x.xxx.xxx is alot of em, but they are also using 15x.xxx.xxx.
and of course I can not ban those ranges because alot of my users are from the UK with 8x.xxx.xxx ips.

I am at a loss as to what to do about this, they had left us alone for about a month, but now they start hitting us every afternoon.

If anyone has any suggestions how to stop this, please let me know. Thank You.