urbanyoung / Phasor

Phasor is a server extension for Halo PC which focuses on giving the end-user the ability to deeply customize gameplay. Phasor does this via its scripting system, which uses the Lua language. Scripters are able to react to and change many different aspects of the game.
MIT License
19 stars 9 forks source link

Lua function "unpack" defined as nil #5

Closed twhitcomb closed 11 years ago

twhitcomb commented 11 years ago

Whenever I try to call the Lua function unpack, it gives me a "Cannot call a nil value" error. I've used the function unpack all over the place in previous versions of Phasor; perhaps this version is using an outdated Lua library?

urbanyoung commented 11 years ago

umm it uses Lua 5.2 and old version use 5.14, maybe it's been removed?

urbanyoung commented 11 years ago

unpack is now a member of table so use table.unpack