Skip to main content

Lua 5 is out

Submitted by redwyre on

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 PMPermalink

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 PMPermalink

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 AMPermalink

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 AMPermalink

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 AMPermalink

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 AMPermalink

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 AMPermalink

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

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

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 AMPermalink

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

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

nice article, thanks

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

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 AMPermalink

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

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

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 PMPermalink

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 PMPermalink

Gaffer:

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

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

boo c! ruby is the best ;)

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

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 PMPermalink

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

Posted by redwyre on

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 PMPermalink

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 PMPermalink

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 AMPermalink

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 AMPermalink

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 AMPermalink

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 AMPermalink

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 AMPermalink

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

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

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 AMPermalink

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

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

nice article, thanks

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

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 AMPermalink

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

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

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 PMPermalink

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 PMPermalink

Gaffer:

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

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

boo c! ruby is the best ;)

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

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 PMPermalink

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