Page 1 of 1

LUA-Script

Posted: Mon Jul 26, 2010 7:15 am
by OrangeJuice
I would really love if LUA (http://www.lua.org/) was included in PureBasic as an scripting engine, that is, not as a means to write PureBasic Programs in LUA, but to have a native PureBasic way to instantiate an/multiple LUA interpreter/interpreters and let it run Custom scripts.

That way it would be easy to write script expandable PureBasic applications.
I'm aware of the fact that there was once an external Library for that, but it was Windows only unfortunately.

LUA is distributed under the MIT license, so from a licensing perspective it wouldn't be a problem to integrate.

Re: LUA-Script

Posted: Fri Jul 30, 2010 10:59 pm
by DoubleDutch
Good idea.

Re: LUA-Script

Posted: Sat Jul 31, 2010 1:22 am
by IdeasVacuum
I have only used it on the Windows Platform but I find LUA to be a really nice language.

Re: LUA-Script

Posted: Fri Aug 06, 2010 1:09 pm
by max_aigneraigner@web.de
but.. isn't there already an userlib?
Lua Purebasic Download

it's for pb 4.0 but it should work fine with pb 4.5 aswell, i hope. (it did with pb 4.4)
good luck. I hope it's not all german (but I don't think so..^^)

Re: LUA-Script

Posted: Tue Aug 10, 2010 9:53 pm
by X
Does that library work well in both 32bit and 64bit compilers?

Re: LUA-Script

Posted: Tue Aug 10, 2010 9:57 pm
by jamirokwai
Hi,

is LUA available (and usable) with Linux and Mac OS X?
If so, I'd like to see some kind of support for LUA in PB...

Re: LUA-Script

Posted: Thu Aug 12, 2010 8:08 pm
by OrangeJuice
The Userlib is Win32 only, not in development for years and for an old version.

Re: LUA-Script

Posted: Thu Aug 12, 2010 8:34 pm
by Little John
jamirokwai wrote:is LUA available (and usable) with Linux and Mac OS X?
The Lua website writes:
"Lua is distributed in a small package and builds out-of-the-box in all platforms that have an ANSI/ISO C compiler."

Regards, Little John

Re: LUA-Script

Posted: Thu Aug 12, 2010 11:16 pm
by Seymour Clufley
But why LUA?

Re: LUA-Script

Posted: Thu Aug 12, 2010 11:31 pm
by max_aigneraigner@web.de
Lua is very fast.
you can easily update your software by changing the lua-code instead of recompiling the whole exe etc.
you can use your lua-skills in plenty other software that use lua skripts (for example you can use lua in the leadwerks engine aswell etc)
but the major positive aspekt is - in my opinion - that you can change your running software just by writing some codelines into your program (without compiling).

Here is a link of who and how/why uses Lua

Re: LUA-Script

Posted: Sat Aug 14, 2010 9:33 pm
by OrangeJuice
Not to mention it is insanely small and likely not much pain to support.
It is one of the most widely used scripting languages in game development, powering titles such as the Far Cry/Crysis franchise and World of Warcraft.