Lua for Blitz

Blitz3D Forums/Blitz3D Userlibs/Lua for Blitz

lo-tekk(Posted 2005) [#1]
Hi all there,

i have just created a decls for the Lua scripting language.
In the package there's the userlib, some helperfunctions,
the dll and a little blitz example.
Get it from my site below.
Updated to BlitzLua 1.1B
Added some Lua constants
Functions for retrieving values from tables


Xaron(Posted 2005) [#2]
Great, thanks! :)

Regards - Xaron

Ricky Smith(Posted 2005) [#3]
Nice - Thanks - will give it a try !

Picklesworth(Posted 2005) [#4]
I'm getting it right now :D
This may be quite useful...

Argh... You're using one of those cursed download sites!

Do you have any bigger examples of its useage... to, uhm... help this thickheaded oaf?

lo-tekk(Posted 2005) [#5]
Ouch, haven't looked in the code since posting. The bad thing is i don't know how we could call a blitzfunction from within a lua script. I had a look in the BMax forum, where there are some more usage examples. You should get yourself the header- and sourcefiles from and have a look in the programmers handbook available online. Sorry, but i don't know much more about this right now.


Picklesworth(Posted 2005) [#6]
Okay, a bit of fiddling has told me that this is probably exactly what I need.

You have participated in the future of the universe!
Thanks :)

lo-tekk(Posted 2005) [#7]
Today i received an interesting e-mail that pointed to the following code in the archives:

With this code you are able to call Blitz functions from C++, so why not from Lua since you can call C functions.
If someone is C/C++ capable, he might have a try with calling Blitz3D functions from within Lua. I think you must embed a function that registers the Blitz3D functions at startup from this dll.

Btw. thank you for all input so far.