Brian Cronin (Unknown Worlds Entertainment)
Natural Selection 2 is a sequel to a popular Half Life mod that has been in development for about 4 years. Lua has been used extensively throughout the project. All gameplay code in the project is written in Lua which provides some interesting advantages over a static language. I will go over the following topics:
Object oriented programming without a class hierarchy through the use of mixins in Lua
The Decoda Lua IDE and debugger
Detailed script error messages combined with a simple viewer tool allows us to see a snapshot of the environment when the error occurred
User submitted Lua code mods, bug fixes, and optimizations
![](https://i.ytimg.com/vi/EQhlp6rCrY8/mqdefault.jpg)