Scripting language

Advanced game related topics
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Scripting language

Post by Dreglor »

I look around on the forums and the web for some sort of better explantion for this but it seams it not much of a disscussed topic
i did look into the "let build a compiler" document wasn't exectly what i wanted and the code he was using was a bit werid i couldn't convert it as well as i thought...

so, i am doing a 2d/3d engine for a game proablem is i want to put a scripting lang into it and im kinda lost on how to do the such, on top of that i want the lang to be compilable meaning that the text is converted to byte code so it faster for the program to execute (in therory)

any help would be nice :)
~Dreglor
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Dreglor,

Why not use LUA?

FloHimself has already done all the hard work for you: http://www.florian-s.com/PBLua/index.html

Lua has already proven iteself in 3D engines and has been used in commercial games.
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post by Dreglor »

grr why didn't i find this earlier...
thx
~Dreglor
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

Not sure if Flo fixed the examples, but if you run into problems having a script call a function in your program, try declaring it as a ProcedureCDLL since Lua uses cdecl
BasicGuy
User
User
Posts: 70
Joined: Sat Apr 26, 2003 4:37 am
Location: US

Post by BasicGuy »

I remember someone in the Blitz3D forums who created a parser/compiler in Blitz (I think) that could read standard Blitz code like it was a scripting language. It was very cool because you didn't need to learn another language.

I've used LUA on a number of C/C++ projects and it works very well when it's integrated...

This: http://www.angelcode.com/angelscript/ is another very capapble and easy to use scripting language.
Post Reply