Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Llelan D. on Thu 26/02/2009 17:19:27

Title: What script engine does AGS use?
Post by: Llelan D. on Thu 26/02/2009 17:19:27
What script engine does AGS use?
Is the script engine public or proprietary?
Is the script ECMA compliant?
If ECMA compliant, can AGS be configured to use a different script engine?

I ask because, with many applications that have a script engine, the application script documentation may be less complete than the docs that come with the script engine itself. The script engine docs could be used to answer more detailed and specific script questions.

Also, whenever possible I like to configure apps to only use JavaScript. I've memorized way too many script languages already.
Title: Re: What script engine does AGS use?
Post by: Pumaman on Thu 26/02/2009 18:38:07
AGS uses a proprietary custom scripting engine, with syntax based on and very similar to the standard Java/C#/C++ style languages that are common today.
Title: Re: What script engine does AGS use?
Post by: RickJ on Fri 27/02/2009 07:02:31
I would also add that the AGS script language documentation very useful, complete and kept up to date on a continual basis.   It is also well supported by a syntax high lighting, auto-completion, scintilla based editor and a very active community.   ;D   
Title: Re: What script engine does AGS use?
Post by: Llelan D. on Fri 27/02/2009 08:04:28
It does look better documented than most. Like I said, I only asked because I didn't see the answer to that question documented, and experience has taught me to find these things out up front. Thanks for the answer.

However, this does mean that this application does add yet another proprietary script to the world. Is there a reason that a publicly specified script (like an ECMA derivative) is not being used, or is this just historical?
Title: Re: What script engine does AGS use?
Post by: Trent R on Fri 27/02/2009 09:21:34
Basic answer: AGS is almost ten years old, and the scripting language has developed over that long period of time. I assume there was a point when there wasn't a scripting language at all (AC probably?)


~Trent
PS-I've only used AGS for a few years...
Title: Re: What script engine does AGS use?
Post by: Llelan D. on Fri 27/02/2009 10:19:04
Tha's what I figured. Thanks for the info folks.
Title: Re: What script engine does AGS use?
Post by: Pumaman on Fri 27/02/2009 19:20:57
Partly it's the age of AGS, but also it's partly to do with the fact that AGS automatically deals with save game handling. At the time when I investigated using an existing scripting engine, none of them easily supported saving and restoring the script state at run-time, and would have required game authors to write custom save/load code. So to avoid that, I wrote a custom scripting engine to deal with it automatically.
Title: Re: What script engine does AGS use?
Post by: Trent R on Fri 27/02/2009 20:56:30
Aha. Now see, that's a better answer.
But Llelan, you'll find AGS scripting ridiculously easy to pick up.


~Trent