Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Yuri Patrick on Mon 26/08/2013 15:57:30

Title: C# Plugins
Post by: Yuri Patrick on Mon 26/08/2013 15:57:30
Wow it's been a long time. I can't find my old AGS C# wrapper for writing plugins or any of the old tutorials I use to have on writing plugins. Does anyone know where any of that is? I did a search for the C# wrapper and the forums kept throwing blanks back at me.

And the tutorials, well, I'm not finding those either anymore. :( There use to be a nice one that taught you a hello world plugin in C# and now I can't find it anymore. :(
Title: Re: C# Plugins
Post by: Gilbert on Mon 26/08/2013 16:03:29
Is it this thread (http://www.adventuregamestudio.co.uk/forums/index.php?topic=41465.0)? You had at least replied to it.
I just went into your profile, clicked "Show Posts" and went straight to the last page to check your earlier posts.

Edit: I just entered "C#" into the forum search and it returned nothing. It's possible that the search term was too short (2 characters) or that the # character somehow doesn't work as search keyword.
Title: Re: C# Plugins
Post by: Yuri Patrick on Mon 26/08/2013 16:14:45
Alright. I did a new search in google and found a section in the AGS documentation pages that covers C# plugins and it says that C# only works for the Editor, not the engine at this time. Still. Please tell me that I can use C# finally to write a plugin that says hello world with an ingame trigger...

Like the plugin can use a click on a rock as a trigger to say hello world ingame?
Title: Re: C# Plugins
Post by: Crimson Wizard on Mon 26/08/2013 18:27:26
wolverine79936, did you check the link Iceboty gave to you in the post above? I ask because it looks a bit like you were typing your post at close time, and so could miss his answer.

To answer your question directly: yes, it is possible to write Engine plugins in C#, but you need a C++/CLR wrapper to transit function calls and data between C++ and C#. I think the code from the referenced topic does that, although, frankly, I never tried that out myself.
Title: Re: C# Plugins
Post by: Yuri Patrick on Mon 26/08/2013 18:39:45
Hey, Crimson. Long time no see. I checked out the link that Ice gave me, but all the links to the wrapper are dead. And if they are not, then I was looking at the wrong links and wouldn't mind some suggestions here about where to get a C# wrapper. Thanks. :)