Skip to main content

Lua 5 is out

Submitted by redwyre on
Forum

If you didn't know, Lua 5 was released last week.

http://www.lua.org

I created a vc6 project for it http://members.optusnet.com.au/redwyre/files/lua-5.0-vc6.rar (Project files & source)

I also compiled release binaries that use the MSVCRT DLL http://members.optusnet.com.au/redwyre/files/lua-5.0-win32.rar

If you want debug binaries you will have to download the source and compile them yourself

Submitted by lava monkey on Sat, 19/04/03 - 12:58 PM Permalink

if anyone doesn?t know what lua is, its the best, its a scripting language design to be used through something like C/C++, not designed to be a standalone and then hacked to be used by something else (*cough python)
and its very low level and powerful, writing a good c/c++ wrapper for it isn?t that hard, and there?s a few out there already.
its my scripting language of choice.

Submitted by Kezza on Sat, 19/04/03 - 9:43 PM Permalink

how does lua compare to writing a game specific script?
does it have support for nifty things like latent functions and virtual object states?

Submitted by Daemin on Sun, 20/04/03 - 1:10 AM Permalink

I've checked it out briefly, but currently for my projects I am developing a unique scripting system langauge and associated utilities set. I'll release it when its finished to an appropriate level.

I would be interested in looking at stuff like Lua, Ruby, Tcl, and Python more, but I don't have enough free time at the moment.

Submitted by redwyre on Sun, 20/04/03 - 4:10 AM Permalink

Lua is designed to be embeded into a host program, as lava_monkey says. It is small, fast, and very simple and clean (is the way that you make me feeeeeel toniiight... er.. *cough*), and is gaining popularity very fast as a game scripting engine. It can also be used on XBox or PS2, except for the garbage collection problems, which are top priority for 5.1.

As a measure of how easy it is to integrate, I had it running in less then a day after writing a simple wrapper for it.

Submitted by Kezza on Fri, 02/05/03 - 10:03 AM Permalink

Let me see if i got this right...
step 1: build lua lib files
step 2: make project that uses them
step 3: scream in pain as it causes linking errors with msvcrt.lib... for stuff it shouldn't
step 4: failing to fix step 3, perform the strong-bad patented computer desk vault on your keyboard.

no seriously, is it meant to be this hard to get an interpreter that can write hello world to work?

Submitted by lava monkey on Fri, 02/05/03 - 10:09 AM Permalink

the biggest problem i had with lua to start with was compiling the lib + dll files, once thats done getting started shouldnt be too hard.
I havent looked at redwyre's project files yet or lua5 cause i been so busy, but i'll give it a go and see what happens

Submitted by Kezza on Fri, 02/05/03 - 11:09 AM Permalink

yay!!! lua works, now to add stuff!

Submitted by Gaffer on Sat, 03/05/03 - 1:21 AM Permalink

my personal preference is ruby which i use for a game i'm developing at home, very nice c++ integration, but a very high level, and elegant language.

we used python for freedom force, the next best choice imo -- but LUA, it does seem to be a bit lower level than what i want, but i'm sure its much faster and better suited to embedding in a game than either python or ruby, but how ELEGANT is its syntax? is it OO for example?

cheers

Submitted by Kezza on Sat, 03/05/03 - 3:18 AM Permalink

Woo yay & houpla to you sir! That is a very handy article.

Submitted by Gaffer on Sat, 03/05/03 - 6:57 AM Permalink

nice article, thanks

Submitted by Gaffer on Sat, 03/05/03 - 11:24 AM Permalink

hmmmmm i looked at its syntax, its got ; at the end of each line, ghey :)

i use scripting languages to escape from such C-isms, lua is not for me =)

i'm sure its more efficient than ruby tho, cheers

Submitted by Kezza on Sat, 03/05/03 - 11:34 AM Permalink

err... the ; at the end of each line is optional... does nothing

Submitted by redwyre on Sat, 03/05/03 - 11:55 AM Permalink

If you don't link with msvcrt (and why the hell not??), then you will have to goto http://lua-users.org and find the win32 source there. Otherwise you will get lots of linking errors.

Submitted by Gaffer on Sat, 03/05/03 - 11:03 PM Permalink

oh thats nice then, i cant understand why the guy in the example felt compelled to put a redundant char after every line tho, cheers :)

Submitted by AndrewM on Wed, 07/05/03 - 6:49 PM Permalink

Gaffer:

C is good tho :}
It's actually slightly more like pascal than C

Submitted by Gaffer on Wed, 07/05/03 - 8:53 PM Permalink

boo c! ruby is the best ;)

Submitted by inglis (not verified) on Tue, 09/09/03 - 11:58 AM Permalink

sorry for necro-ing this thread...
sould anybody still happen to have redwyre's vc6 project files?
i found this thread a bit too late it seems [:D]

Submitted by redwyre on Tue, 09/09/03 - 11:34 PM Permalink

heh, I'll upload them again when I get a chance :)

Posted by redwyre on
Forum

If you didn't know, Lua 5 was released last week.

http://www.lua.org

I created a vc6 project for it http://members.optusnet.com.au/redwyre/files/lua-5.0-vc6.rar (Project files & source)

I also compiled release binaries that use the MSVCRT DLL http://members.optusnet.com.au/redwyre/files/lua-5.0-win32.rar

If you want debug binaries you will have to download the source and compile them yourself


Submitted by lava monkey on Sat, 19/04/03 - 12:58 PM Permalink

if anyone doesn?t know what lua is, its the best, its a scripting language design to be used through something like C/C++, not designed to be a standalone and then hacked to be used by something else (*cough python)
and its very low level and powerful, writing a good c/c++ wrapper for it isn?t that hard, and there?s a few out there already.
its my scripting language of choice.

Submitted by Kezza on Sat, 19/04/03 - 9:43 PM Permalink

how does lua compare to writing a game specific script?
does it have support for nifty things like latent functions and virtual object states?

Submitted by Daemin on Sun, 20/04/03 - 1:10 AM Permalink

I've checked it out briefly, but currently for my projects I am developing a unique scripting system langauge and associated utilities set. I'll release it when its finished to an appropriate level.

I would be interested in looking at stuff like Lua, Ruby, Tcl, and Python more, but I don't have enough free time at the moment.

Submitted by redwyre on Sun, 20/04/03 - 4:10 AM Permalink

Lua is designed to be embeded into a host program, as lava_monkey says. It is small, fast, and very simple and clean (is the way that you make me feeeeeel toniiight... er.. *cough*), and is gaining popularity very fast as a game scripting engine. It can also be used on XBox or PS2, except for the garbage collection problems, which are top priority for 5.1.

As a measure of how easy it is to integrate, I had it running in less then a day after writing a simple wrapper for it.

Submitted by Kezza on Fri, 02/05/03 - 10:03 AM Permalink

Let me see if i got this right...
step 1: build lua lib files
step 2: make project that uses them
step 3: scream in pain as it causes linking errors with msvcrt.lib... for stuff it shouldn't
step 4: failing to fix step 3, perform the strong-bad patented computer desk vault on your keyboard.

no seriously, is it meant to be this hard to get an interpreter that can write hello world to work?

Submitted by lava monkey on Fri, 02/05/03 - 10:09 AM Permalink

the biggest problem i had with lua to start with was compiling the lib + dll files, once thats done getting started shouldnt be too hard.
I havent looked at redwyre's project files yet or lua5 cause i been so busy, but i'll give it a go and see what happens

Submitted by Kezza on Fri, 02/05/03 - 11:09 AM Permalink

yay!!! lua works, now to add stuff!

Submitted by Gaffer on Sat, 03/05/03 - 1:21 AM Permalink

my personal preference is ruby which i use for a game i'm developing at home, very nice c++ integration, but a very high level, and elegant language.

we used python for freedom force, the next best choice imo -- but LUA, it does seem to be a bit lower level than what i want, but i'm sure its much faster and better suited to embedding in a game than either python or ruby, but how ELEGANT is its syntax? is it OO for example?

cheers

Submitted by Kezza on Sat, 03/05/03 - 3:18 AM Permalink

Woo yay & houpla to you sir! That is a very handy article.

Submitted by Gaffer on Sat, 03/05/03 - 6:57 AM Permalink

nice article, thanks

Submitted by Gaffer on Sat, 03/05/03 - 11:24 AM Permalink

hmmmmm i looked at its syntax, its got ; at the end of each line, ghey :)

i use scripting languages to escape from such C-isms, lua is not for me =)

i'm sure its more efficient than ruby tho, cheers

Submitted by Kezza on Sat, 03/05/03 - 11:34 AM Permalink

err... the ; at the end of each line is optional... does nothing

Submitted by redwyre on Sat, 03/05/03 - 11:55 AM Permalink

If you don't link with msvcrt (and why the hell not??), then you will have to goto http://lua-users.org and find the win32 source there. Otherwise you will get lots of linking errors.

Submitted by Gaffer on Sat, 03/05/03 - 11:03 PM Permalink

oh thats nice then, i cant understand why the guy in the example felt compelled to put a redundant char after every line tho, cheers :)

Submitted by AndrewM on Wed, 07/05/03 - 6:49 PM Permalink

Gaffer:

C is good tho :}
It's actually slightly more like pascal than C

Submitted by Gaffer on Wed, 07/05/03 - 8:53 PM Permalink

boo c! ruby is the best ;)

Submitted by inglis (not verified) on Tue, 09/09/03 - 11:58 AM Permalink

sorry for necro-ing this thread...
sould anybody still happen to have redwyre's vc6 project files?
i found this thread a bit too late it seems [:D]

Submitted by redwyre on Tue, 09/09/03 - 11:34 PM Permalink

heh, I'll upload them again when I get a chance :)