PDA

View Full Version : Lua scripting



overchord
19-08-2005, 12:29 PM
Hi guys

The lua users site includes a "luacore" set of wrappers for Delphi, but there is harldy any info on this, and I haven't really been able to dig up much on the net about good/bad experiences with it in Delphi.

Has any of you had any experience with integrating Lua as a scripting language in an existing Delphi application (/Engine)?

technomage
19-08-2005, 02:11 PM
Hi overchord

I haven't played with Lua in Delphi , but my understanding is that it's a nice simple language to use.

That said I would recommend Pascal Script over at Rem Objects http://www.remobjects.com/page.asp?id={9A30A672-62C8-4131-BA89-EEBBE7E302E6}.

Its a pascal based language that is eay to use and intergrate into your applications and requires no external dependencies. :D

overchord
19-08-2005, 07:01 PM
hi TM - thanks for the tip!
We will definetly look into that as well, but between me posting and reading your message, one of the guys on BNW (LasLego) hasgot Lua working pretty well, but I'll update our project thread once we get to a final decision.

laslego
19-08-2005, 09:06 PM
Hi,

As Overchord mentioned, I got Lua working pretty well in a little test platform. I miss alot of features in it(Objects for example :P) but they can be emulated so its not really that bad.

Does the SDK over at RemObjects supports all features of Object Pascal ?

tux
19-08-2005, 10:40 PM
just to add another one into the mix...

we use http://www.dwscript.com , based on pascal. can do objects (needs synedit as well)

technomage
19-08-2005, 10:57 PM
AFAIK RemObjects Pascal supports almost all of Object Pascal.

I know it can import Delphi Classes into the scripting system , they provide a utility to do this. ( I haven't used it though, I prefer a function/procedure based interface).

Sly
20-08-2005, 02:43 AM
Lua is quite widely used as scripting language in commercial games. Psychonauts by Double Fine (PC, Xbox, PS2) has more Lua code than C++ code. :)

Clootie
21-08-2005, 08:31 AM
FarCry uses Lua for scripting

Andreaz
31-08-2005, 02:54 PM
I'm using this lua headers:

http://kuma.webj.net/delphi/index.html

as the page is japaneese it's quite hard finding the downloads, but here it is:

http://kuma.webj.net/download/LuaDelphi009.lzh

I have tested poth paxscipt, dws2 and lua and all have it's uses nut lua is defiatly the one i would use for games.