scripting?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
panda(monium)

scripting?

Post by panda(monium) »

Wow, this engine rocks!

I'm still trying to get my head around all the concepts, just wanted to say that on my XP+2000 w/lame on-board graphics I am getting 30 fps on the Q3 level, which rocks.

Anyways, my question is: has any work been done to add a scripting language to the mix? That way, you'd get a general system and make it do whatever you want based on the running script -- no more need to write C++ code and recompile each time to test bugs etc.

The scripting language I had in mind is Tcl: http://www.tcl.tk/

Cheers,

Panda(monium)
hearsedriver
Posts: 81
Joined: Fri Aug 22, 2003 12:06 pm
Location: Germany
Contact:

Post by hearsedriver »

Where could scripting make sense for a 3D engine (with emphasis on "engine")? Such a core component could profit from some general configuration data which could base on XML files or something like that. But where would you need control structures etc.? If you are writing a game, scripting is part of a superior layer (the GAME engine), but not of the 3D engine. But this is just my personal opinion, others might see this different.
We are using Lua for all our scripting. It's easy to use, amazingly fast, and well supported.

Cheers.
matthias gall, lead programmer at sechsta sinn - email matthias@sechsta-sinn.de
panda(Monium)

Post by panda(Monium) »

I guess I didnt explain well. What I want is to make all the capabilities of the engine available in a scripting language so that you dont have to write the demo programs in C++. Of course you still write the engine in C/C++ for efficiency.

Like you said, then you can write your games in a scripting language like Lua or Tcl.

So: is there any support for this? What would be needed is a way to both call all the engine's APIs from the scripting language, as well as delivering events to the scripting language for handling.

PandaMonium
hearsedriver
Posts: 81
Joined: Fri Aug 22, 2003 12:06 pm
Location: Germany
Contact:

Post by hearsedriver »

Maybe I just didn't get it right, English is not my native language ;)

There is no such functionality yet, and it would make sense at all. The reason is that still a lot of things change from version to version. If Niko would use scripts to write the demos, he would not only have to change the engine and demo source code, but also the scripting API.

Nevertheless, it's a nice idea for some final version.

Cheers.

Edit: Typo
Last edited by hearsedriver on Tue Sep 09, 2003 5:46 pm, edited 1 time in total.
matthias gall, lead programmer at sechsta sinn - email matthias@sechsta-sinn.de
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

A agree, would be a nice idea, but it is too soon. Maybe I'll write a java wrapper for irrlicht once the final version is out.
Panda(monium)

Post by Panda(monium) »

Java... Gag barf urk... yuck.

Get the bug spray out!

Panda(monium)
Raumkraut
Posts: 31
Joined: Fri Aug 22, 2003 9:41 am
Location: The North, UK

Post by Raumkraut »

A PHP wrapper would be just spanky! ;)

In the meantime, back to c++...
Post Reply