Author Topic: 0.3.6.0f  (Read 2488 times)

0 Members and 1 Guest are viewing this topic.

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 480
  • Karma: +209/-22
  • PtokaX developer
0.3.6.0f
« on: 22 September, 2007, 08:39:10 »
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

PtokaX forum

0.3.6.0f
« on: 22 September, 2007, 08:39:10 »

Offline Nada@WTB

  • Double Ace
  • *
  • Posts: 117
  • Karma: +6/-3
Re: 0.3.6.0f
« Reply #1 on: 22 September, 2007, 20:15:52 »
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

Offline Rincewind

  • Scripter
  • Lord
  • ******
  • Posts: 403
  • Karma: +60/-7
    • Rincewind's Scripts
Re: 0.3.6.0f
« Reply #2 on: 22 September, 2007, 21:33:28 »
3.6.0d and later all use the new Lua API which is incompatible with older scripts.

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 744
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: 0.3.6.0f
« Reply #3 on: 24 September, 2007, 03:00:43 »
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
  1. TmrMan.AddTimer(911, RapeMe)
  2.  
  3. 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.
« Last Edit: 24 September, 2007, 03:33:31 by bastya_elvtars »
Everything could have been anything else and it would have just as much meaning.

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 480
  • Karma: +209/-22
  • PtokaX developer
Re: 0.3.6.0f
« Reply #4 on: 24 September, 2007, 07:18:20 »
Consider the advantages:
Code: Lua
  1. TmrMan.AddTimer(911, RapeMe)
  2.  
  3. 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.
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

PtokaX forum

Re: 0.3.6.0f
« Reply #4 on: 24 September, 2007, 07:18:20 »