Skip to main content
gamedev.net
🔒 Locked

Script language programming

Started by NeonGE Dec 6, 2002 at 12:46 PM 2 replies 600+ views
Original Post
NeonGE
NeonGE
Hi, i allmost finished my engine, but i want to add a scripting language to manage a lot of events, i have used my own text files to get configuration at inicialization time, but i want to add a AOM-Like script to manage my missions. Anyone that can point me a resource? Tips? Code? Thanks. If God with me, Who against me?
--------------------------------------------- If God with me, Who against me?Personal Web Samuel Prince Blog...
calvin
calvin

Hi,

for a start I would learn to use lex and yacc which both are excellent tools for creating parsers and compilers. Or their partners Flex and Bison found at http://www.gnu.org/software/flex/flex.html and http://www.gnu.org/software/bison/bison.html.

Lex/Flex is a tool for creating scanners and yacc/bison is a tool for creating parsers. Lex/Flex are designed to work with Yacc/Bison and vica versa.

Check out this site for more info:
http://www.tcfb.com/freetechbooks/bookcp.html

Or http://www.gamasutra.com/features/19971003/huebner_01.htm for an article on adding scripting language to games.

- Calvin
().".() ((T))- Eirik Moseng - (ö)$(ö)+---------------------------+| Senior Programmer, || Digital Entertainment AS || eirik@digiment.no || http://www.digiment.no || ICQ #21948459 |+---------------------------+
jediknight219
jediknight219
Or if you want to check out scripting languages that already exist, instead of creating your own, then LUA, Ruby, and Python are the ones people around here usually mention.
Aaargh! Everyone save your workspaces before your program locks up your computer!
Xai
Xai
Ii personally program in PERL, Python, and Ruby ... but have not yet tackled the part about accessing / controlling my c++ applications with it.

At work we have an embedded PERL interpretter in our product, so we can add / change simple functionality by editing and hooking in perl scripts at run-time ... but at work we are using a specially created data tree as well ...

For my game work, I have not yet figured out the best way to give LIMITED control to game scripts ... but this is on our list of things to tackle in the next 2 months.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.