Jump to content
  • Advertisement

Archived

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

NeonGE

Script language programming

This topic is 5821 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

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?

Share this post


Link to post
Share on other sites
Advertisement

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

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!