List Info

Thread: Ruby/Python/LUA scripting within a C/C++ SDL game?




Ruby/Python/LUA scripting within a C/C++ SDL game?
country flaguser name
United States
2007-04-09 18:48:27
We are interested in developing some commercial games in
C/C++ using SDL, but
are interested in keeping some of the AI and game logic in a
higher-level
scripting language.

Anyone have any experience with using a built-in interpreter
using Python, Ruby,
or LUA to write a good portion of your higher-level game
logic?

I have seen PyGame and Ruby/SDL but these are really geared
for writing the
entire game in Python or Ruby, but I am only interested in
scripting parts of it.

Thanks!
Christopher
Executive Producer
DreamQuest Software

_______________________________________________
SDL mailing list
SDLlists.libsdl.org
h
ttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: Ruby/Python/LUA scripting within a C/C++ SDL game?
country flaguser name
Italy
2007-04-10 01:00:36
Watch this: www.emthesis.com/elf/

Signatu<wbr>re Alessandro Rasulo
Emthesis Development s.n.c.
www.emthesis.com | emthesis.com">rasuloemthesis.com

Get Firefox! Get Thunderbird!  Use OpenOffice.org My status



Christopher Williamson ha scritto:
post.gmane.org" type="cite">
We are interested in developing some commercial games in C/C++ using SDL, but
are interested in keeping some of the AI and game logic in a higher-level
scripting language.


Anyone have any experience with using a built-in interpreter using Python, Ruby,
or LUA to write a good portion of your higher-level game logic?

I have seen PyGame and Ruby/SDL but these are really geared for writing the
entire game in Python or Ruby, but I am only interested in scripting parts of it.

Thanks!
Christopher
Executive Producer
DreamQuest Software

_______________________________________________
SDL mailing list
lists.libsdl.org">SDLlists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


  
Re: Ruby/Python/LUA scripting within a C/C++ SDL game?
country flaguser name
United States
2007-04-10 10:58:43
Christopher Williamson <chrisw <at> dqsoft.com>
writes:

> Anyone have any experience with using a built-in
interpreter using Python, 
> Ruby, or LUA to write a good portion of your
higher-level game logic?

http://boost.org/ has a
module called Boost.Python that allows the use of Python
scripting in a C++ application.  LUA might be better to use,
however.

> 
> I have seen PyGame and Ruby/SDL but these are really
geared for writing the
> entire game in Python or Ruby, but I am only interested
in scripting parts of 
> it.

You are right about that.

One other engine you might look into is http://Panda3d.org .  It
doesn't use SDL
but has been ported to several platforms.  It uses Python
and/or C++ as its
scripting language.

_______________________________________________
SDL mailing list
SDLlists.libsdl.org
h
ttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: Ruby/Python/LUA scripting within a C/C++ SDL game?
country flaguser name
Germany
2007-04-10 12:23:47
Christopher Williamson wrote:
> We are interested in developing some commercial games
in C/C++ using SDL, but
> are interested in keeping some of the AI and game logic
in a higher-level
> scripting language.
> 
> Anyone have any experience with using a built-in
interpreter using Python, Ruby,
> or LUA to write a good portion of your higher-level
game logic?
> 
> I have seen PyGame and Ruby/SDL but these are really
geared for writing the
> entire game in Python or Ruby, but I am only interested
in scripting parts of it.
> 
> Thanks!
> Christopher
> Executive Producer
> DreamQuest Software
> 
> _______________________________________________
> SDL mailing list
> SDLlists.libsdl.org
> h
ttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> 
> 

http://www.gaffer.org
shows you how to embed the python interpreter into
you c++ application and easily execute scripts from within
your c++ app.
inclusive parameter passing.
http://
www.gaffer.org/archives/category/ruby/

_______________________________________________
SDL mailing list
SDLlists.libsdl.org
h
ttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: Ruby/Python/LUA scripting within a C/C++ SDL game?
country flaguser name
United States
2007-04-11 13:33:41
> Anyone have any experience with using a built-in
interpreter using Python, Ruby,
> or LUA to write a good portion of your higher-level
game logic?

For Lua you should use LuaBind. It has a bit of a learning
curve but 
works very well. Keep in mind that Lua was specifically
designed to be 
embedded, which is not the case with many other scripting
languages.

http:/
/www.rasterbar.com/products/luabind.html

_______________________________________________
SDL mailing list
SDLlists.libsdl.org
h
ttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: Ruby/Python/LUA scripting within a C/C++ SDL game?
country flaguser name
Switzerland
2007-04-12 04:31:14
On 11 Apr 2007, at 8:33 PM, Ilya Olevsky wrote:

>> Anyone have any experience with using a built-in
interpreter using  
>> Python, Ruby,
>> or LUA to write a good portion of your higher-level
game logic?
>
> For Lua you should use LuaBind. It has a bit of a
learning curve but
> works very well. Keep in mind that Lua was specifically
designed to be
> embedded, which is not the case with many other
scripting languages.

If you plan to use LUA in plain C (like we do), read that:

htt
p://www.debian-administration.org/articles/264

Surely there are other tutorials, but I found that one to be
really  
simple.

Regards

--
Kuon

"Your computer requests another OS, deny or
allow?"
"You should stop playing with that, or it will
eventually works."

Company website:
http://www.goyman.com/

Personal blog:
http://
arkhi.goyman.com/blojsom/blog/default/



_______________________________________________
SDL mailing list
SDLlists.libsdl.org
h
ttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )