Jump to content
  • Advertisement

Archived

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

Tylon

Embedding a scripting language in C# ?

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

Anyone done that before? Is it possible to embed LUA or Python or any other high level scripting language into my engine? I am guessing it might even be easier than other languages due to the reflection api? [edited by - Tylon on March 18, 2003 8:55:48 AM]

Share this post


Link to post
Share on other sites
Advertisement
The easiest you can do is to use the built-in scripting support that comes with the framework. This currently allows you to use either VB.NET or JScript.NET as the scripting language.

Unfortunately, the classes involved are somewhat poorly documented, so I had to go through a lot of examples before I got it working.

My code here is fairly heavily documented, and could serve as a starting point(the next thing to do would of course be to read the documentation that is available); http://sourcepost.sytes.net/sourceview.aspx?source_id=4417



"If there is a God, he is a malign thug."
-- Mark Twain

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!