• Advertisement
Sign in to follow this  

Script language implementation in C#

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

Any one had any luck doing something similar ? In the future i'd like to outsource some of my code to some runtime script stored in text format in the game directories and interpret it with my application. This would be very useful in a game engine context in witch you would be able do distribute the engine with large modding capabilities without distributing the source code.

Share this post


Link to post
Share on other sites
Advertisement
If you're on a platform where this is available, I highly recommend using it:

http://msdn.microsoft.com/en-us/library/microsoft.csharp.csharpcodeprovider(v=vs.90).ASPX

It allows your own program/game to compile C# DLLs from source code, which you can then load and use immediately. It pretty much removes the need to implement your own scripting system. The main downside is that it may not be available on some platforms (such as iOS). Edited by Nypyren

Share this post


Link to post
Share on other sites

I remember playing with LuaIntefcace a few years ago. I didn't do anything serious with it, as it had problems with 64-bit windows. I haven't had the need to use scripting language since then.

 

If the need arises today, I'd probably do it with Mono.

 

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement