Lua tutorials down or not working?

BlitzMax Forums/BlitzMax Programming/Lua tutorials down or not working?

Drakim(Posted 2008) [#1]
I've been looking around for how to use Lua in Blitzmax, but every link on these boards I find goes either to a site that is down (or post that is deleted) or a tutorial that seems horribly outdated and the example code won't compile in my blitzmax.

So, does anybody still have working links to something that works?


nino(Posted 2008) [#2]
Below is the .bmx file. you can get the lua package here:
http://www.lua.org/mirrors.html

I think the latest version is 5.1.3 but this wrapper uses 5.1.2
put the bmx file named lua.bmx and the base lua directory (lua-5.1.2) in the mods directory:

mod/axe.mod/lua.mod

(sorry - no link to the whole package)




nino(Posted 2008) [#3]
I will post some example code later but make sure you have the propper version. There was an older wrapper for Lua that was pretty buggy. It definately works and works well. I use it for level creation and scripting in almost all of my games.


nino(Posted 2008) [#4]
A basic implementation with "hello world"




Drakim(Posted 2008) [#5]
Ah, thank you. Just what I needed. I will try this tomorrow.