0.3.6.0f
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

0.3.6.0f

Started by PPK, 22 September, 2007, 08:39:10

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PPK

http://www.ptokax.org/files/0.3.6.0f.7z

Quote from: Changes
Added: SetMan.Save(), RegMan.Save(), BanMan.Save().
Added: ScriptMan metatable with GetScripts, MoveUp/Down, Start/Stop/Restart script to lua.

Fixed crash when script disable scripting interface.
Fixed motd saving.
Fixed crash on script stop when timer with default function is used.
Fixed script stopping on fatal error.
Fixed crash when script was stopped on error in some cases.
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

Nada@WTB

it kills robocop when you upgrade to this version
Welcome Thieving Bastards
PtokaX 0.4.1.1
Leviathan v.4.1
ApexDC++ 1.2.1
Windows 7 Ultimate

Rincewind

3.6.0d and later all use the new Lua API which is incompatible with older scripts.

bastya_elvtars

#3
Having to specify a string that represents a function name in the timer registration does not make sense to me. The second argument for TmrMan.AddTimer() should be a function type variable, not a string one.
Consider the advantages:
Code: lua
TmrMan.AddTimer(911, RapeMe)

TmrMan.AddTimer(911, function() RapeMe("now") end)



Oh, and please make PXLUA not throw errors when it expects a string and gets a number, since Lua has coercion.
Everything could have been anything else and it would have just as much meaning.

PPK

Quote from: bastya_elvtars on 24 September, 2007, 03:00:43
Consider the advantages:
Code: lua
TmrMan.AddTimer(911, RapeMe)

TmrMan.AddTimer(911, function() RapeMe("now") end)
Yes nice advantage giving function that is not possible to call by PtokaX on timer ;D Is given on stack to AddTimer, and removed from stack after this function returns .. afaik here is no way to call this function on timer interval.
Quote from: bastya_elvtars on 24 September, 2007, 03:00:43
Oh, and please make PXLUA not throw errors when it expects a string and gets a number, since Lua has coercion.
Lua has, but only for numbers. When it will have it for all types then yes, but for now is easyer to have it same for all types and not for one yes and for other no.
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

SMF spam blocked by CleanTalk