Another Lua Question

BlitzMax Forums/BlitzMax Programming/Another Lua Question

Diordna(Posted 2005) [#1]
Okay. I didn't like the tutorial, but after much gnashing of teeth, I got Lua to work, except for one thing: how do I get it to recognize the "standard" Lua functions such as print()? I can, of course, write replacements myself, but it sure is annoying as heck.


N(Posted 2005) [#2]
Call luaopen_base on your state.


Diordna(Posted 2005) [#3]
Okay, so I didn't even know that a ScriptEngine type even existed until I looked through the mods and read the luascript.mod source. So now I actually know what I am doing.

Methinks I will write my own tutorial on BlitzWiki. BTW, I think that a Lua mod is an excellent addition, and I appreciate your work (assuming I'm right in thinking that it's you who wrote it).


N(Posted 2005) [#4]
TommyBear wrote it, I only contributed a few changes.