Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

no one

Best Scripting Language(s)....?

This topic is 5213 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I really hate having to go through a metric ton of crap to interface my C++ code with lua, even when using tolua it''s still anoying, plus the language isn''t really suitable for my purposes. To ask "what is the best script language" would be very vague since the best would be the one that worked the ''best'' with your project. So, ill explain what Im doing... Alrighty, Im going to be using the script language for two things: the level files will contain the ai scripts, and information to load in all of the game objects and then add them to the scene graph, also, gameplay logic will be stored in each level. As you can see, quite a lot will be scripted. I need a fast, lightweight language that is easy to bind my C++ code to. Ive looked at python, can''t really understand wtf you do to bind your code with it, lol. Any suggestions? Thanks in advance. ~Jason

Share this post


Link to post
Share on other sites
Advertisement
Have you had a look at LuaBind? It''s a libary for binding C++ code to LUA and it''s pretty easy to use.

What about LUA isn''t suitable for your project anyway?

Share this post


Link to post
Share on other sites
Check out this book called "Programming Linux Games", the ebook version is free. It has a chapter (or more) about scripting in games, I think the example it uses is Tcl.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
To bind python and C++, there are (easier than standard awful way ) ways :
Boost -> Template based
Swig -> Code parser that generate C++ interface.

I''m using SWIG that I found faster a few years ago, but things could have changed since.

Share this post


Link to post
Share on other sites
Have you tried the tolua++ bindings generator? It does pretty much everything automatically. Just cut'n'paste class definitions into a package file and use it to generate bindings for that class.
You don't have to write a single line of code :D

Edit: I should had read your message twice before replying. What is it you don't like about tolua?


[edited by - Codexus on June 6, 2004 9:16:44 AM]

Share this post


Link to post
Share on other sites
Ive used luaBind and its fairly simple to use.

Even better (and little more complete - but bigger footprint) I prefer Python and using the Boost.Python module to integrate it into your app is a simplicity itself.

Generally i like the boost stuff as its always well documented and tested (most modules come with unit test that you can run yourself and the designs tend to be nice as they are peer reviewed before submissions.

Share this post


Link to post
Share on other sites
JavaScript (a la SpiderMonkey) is a lot easier to bind to C++ than Lua. The only thing I don''t think it can do is call script-defined functions from the Host. It probably can, I just can''t work out how to do it yet

Share this post


Link to post
Share on other sites
EOSScript
eosscript.org
you will read there:
EOSscript is a powerfull library for applications to easily extend their functionality through an easy scripting interface. EOSscript is a light-weight scripting language. This means that you can''t develope entire applications only with EOSscript... the main functionality is given by the host application which implents and uses EOSscript. The idea was to create a scripting language which is easy to use (both for the developer and the scripter), supports object-oriented programming and easy data transfer of the script and host (C++) enviroment. EOSscript was developed for being used in games so their main goal is to fit all the needs a game scripting language have to offer...


eosscript.org

Share this post


Link to post
Share on other sites
Try Squirrel
Its a nice scripting language with C++ like syntax, it appears to be flexable, reasonably fast and not very memory hungry.

Well, I am happy with it, at least, and though I used to use both Lua and Python for scripting, I use Squirrel exclusively now.

[edited by - issch on June 12, 2004 11:21:11 AM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!