Jump to content
  • Advertisement
Sign in to follow this  
FFA702

Script language implementation in C#

This topic is 1336 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
What's the problem you're having trying it?

There's as billion different scripting languages for C# that work just fine and plenty of games use them.

You can even use C# as a scripting language with some of the sandboxing APIs and compiler-as-a-service APIs.

Share this post


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

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!