Squirrel

The programming language
Welcome to Squirrel Sign in | Join | Help
in Search

Squirrel embedding within C# - source available.

Last post 07-28-2008, 1:12 PM by TriLogic. 11 replies.
Sort Posts: Previous Next
  •  10-13-2006, 8:04 AM 1324

    Squirrel embedding within C# - source available.

    Hello all,

    I recently received an email from someone requesting the code I wrote to embed Squirrel within a C# project, and due to a laptop crash I thought I had lost the source codee.  Fortunately I was able to locate the Visual Studio '05 based project on a DVD backup.  The main goal of the project was to product a .NET wrapper for the Squirrel.DLL that would minimally expose the entire API to .NET, and eventually to re-create the Squirrel Object Hierarchy over the top of that.

    My approach was to follow very closely the path taken with the LuaInterface project and I have most of the C DLL api working from C#.  Unfortunately I have run out of "play" time.  Anyone who would like to continue this project please contact me through this forum and I will glady donate the code. 

    A fully functional Squirrel wrapper for .NET (where you can have an embedded scripting engine and a debugger) would be a welcome addition to the .NET world.

  •  10-17-2006, 9:31 AM 1342 in reply to 1324

    Re: Squirrel embedding within C# - source available.

    I see there have been a number of reads on this thread so I'm assuming that there is some interest out there for enbedding Squirrel within the .NET environment.  I have uploaded the code (in zip format) to my business website where it sill stay for a couple of weeks for anyone who wants it.  No one need commit to anything to download it and use it.

    here is the link: http://www.trilogicllc.com/squirrel2.zip

    Enjoy.

  •  11-04-2006, 6:13 PM 1381 in reply to 1342

    Re: Squirrel embedding within C# - source available.

    Heading into the final week.  Get it while you can!
  •  11-21-2006, 5:03 PM 1484 in reply to 1381

    Re: Squirrel embedding within C# - source available.

    The source code link is no longer valid.

  •  12-17-2006, 11:48 AM 1631 in reply to 1484

    Re: Squirrel embedding within C# - source available.

    Hello, I'm new here, I actually knew about Squirrel from a long time ago, from John Schultz, he told me about it at GameDev. I really liked this over Lua because of SqPlus which had better and easier integration with C++. Now, however, I mainly use C# and when I was looking for a scripting language to use in my upcoming game, I found this article at GameDev on integrating Lua with C#. I thought it was pretty neat, and remembered Squirrel. I've been searching and searching and this thread was one of my results, and so I was wondering, what happened? If this project picks up I'd be glad to contribute in any way I can, I was even thinking about writing a .Net implementation or wrapper, but I really don't know that much, however, if I ever to feel that I am capable of doing so, I will definitely give it a try and let you guys know about it, but I doubt it'd be any time soon. Anyways, I've been recommending Squirrel over Lua many times in many places, and so I was wondering if they it had a .Net implementation, which would be really neat. For the time being, I guess I'm going to use Lua. (I even feel like just using C++ for my project just so I can use Squirrel and other things, but I like C#'s simplicity)
  •  12-26-2006, 1:10 PM 1653 in reply to 1631

    Re: Squirrel embedding within C# - source available.

    Based on the forum activity there does not seem to be that much interest in having squirrel do anything other than play games.  The runtime with a nice debugger (which is where I was headed) would be an excellent addition to the .NET programming world.  I ran out of time to play with the project however I can put the project source back up on the server if you like.  Drop a line here if you absolutely need it.

  •  12-26-2006, 10:37 PM 1656 in reply to 1653

    Re: Squirrel embedding within C# - source available.

    Huh?   I am using Squirrel so I do not have to deal with .NET!

    TriLogic:

    Based on the forum activity there does not seem to be that much interest in having squirrel do anything other than play games.  The runtime with a nice debugger (which is where I was headed) would be an excellent addition to the .NET programming world.  I ran out of time to play with the project however I can put the project source back up on the server if you like.  Drop a line here if you absolutely need it.

  •  12-27-2006, 11:52 AM 1659 in reply to 1656

    Re: Squirrel embedding within C# - source available.

    atai:
    Huh?   I am using Squirrel so I do not have to deal with .NET!

    Off topic and unnecessary.  Now that we all know your distaste for .NET let's examine the fact that there are in fact people who are interested in scripting their applications written in a strongly typed language from .net framework and some of those would like to use Squirrel to that purpose. 

    Not every application, utility or game can be rendered entirely in script.  If that were the case Squirrel would itself be written in Squirrel, Lua, Ruby, Perl, Tcl,  CSL, or ??? It is written in a compiled language for speed.  Squirrel exists because someone wanted to script their compiled code with scripted code.  Programmers in the .NET environment like to do the same thing with their applications, even though they are not necessarily game writers.

  •  12-29-2006, 3:59 PM 1669 in reply to 1659

    Re: Squirrel embedding within C# - source available.

    I agree with you TriLogic. I could easily use Boo, C# itself, Lua (LuaInterface), or what I am going to use, IronPython. Although I myself am going to write a game (Hopefully), but yes, people would definately like to take advantage of scripting languages.

    I'm sorry, I took too long to respond because you did (Haha), if you don't mind, I'd definately like to have the source to see if I can work on it (I doubt I can do anything great at the moment, but when the time comes I'll definately want to improve it, if I can), so if you could post the source again I'd really appreciate it. I'll let you know if I do anything with it and of course give you credit, although I doubt that'll be anytime soon. Thanks again, TriLogic.
  •  10-10-2007, 8:49 PM 2183 in reply to 1324

    Re: Squirrel embedding within C# - The Phoenix Arises

    Hold the Press!  I actually found this code on a backup CD I was about to throw away.  The previous version of code I had posted links to was nothing nothing compared to what I just found.

    Here is the link: http://www.TriLogicLLC.com/opt_files/SQUIRREL-Sharp.zip

    Here is what you get: a Visual Studio 2005 Project that builds Squirrel as an unmanaged DLL, another project that builds a Managed Squirrel.NET DLL in C# which uses the unmanaged DLL, and last but not least a little test project to play with.

    I'm sure that you will have to clean up the project include references to squirrel.h because they are hard coded.  But if you are interested in embedding Squirrel in C# this just might help.

    Enjoy!

  •  12-27-2007, 12:32 PM 2321 in reply to 2183

    Re: Squirrel embedding within C# - The Phoenix Arises

    Thanks for that, Trilogic.
    I have been looking for a scripting solution to use from C# for a long time. My main interest was LuaInterface, but it has a lot of problems working under Mono (which is my platform of choice as I am using Linux as my desktop/development OS).

    I am going to have a go with your sourcecode and see if I can get it to work with Mono. I'll post any info regarding my progress here.
  •  07-28-2008, 1:12 PM 2655 in reply to 2321

    Re: Squirrel embedding within C# - The Phoenix Arises

    It's been a while since I heard from anyone.  How did this go?  Is anyone using this code?
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems