Talk:Embedding Lua in the Source Engine

From Valve Developer Community
Jump to: navigation, search

This page could really use an example SWEP or something. Additionally, the file directory structure should probably be outlined, and an explanation on how and what you can parse with Lua (weapons, gamemodes are both refered to via code) should also be added. --Foda 13:04, 31 May 2011 (UTC)

This page definitely needs some improvement, I apologize for the briefness of it. There are a multitude of new features I've added since the API had started development, such as scripted entities, panels and weapons, as well as the addition of LuaJIT. I'm not sure if I should continue to publish this information here, or add it to Sandpedia, though Sandpedia is meant for Half-Life 2: Sandbox primarily, and I'd like to keep the Source Engine Lua API side of things more generically rounded for developers here at the VDC.
I'll consider updating the article, but at the moment I'm not ready to package the Source Engine Lua API for usage. It's weakly tied to Half-Life 2: Sandbox, so I can easily go through the codebase and generate a patch for the LUA_SDK wrapped things, but as I see it, any slightly experienced developer can already go through the public codebase and rip out what they need.
--Andrewmcwatters 08:17, 18 February 2012 (PST)

Can you provide us with the latest lua 5.2.1 ? or atleast a tutorial on how to update on our own ?--Filip 10:36, 24 October 2012 (PDT)