zerratar Posted January 28, 2014 Share Posted January 28, 2014 Hello there everyone!As a first time poster, I would like to introduce myself a bit!My name is Karl, go by the nick Zerratar =) I'm a System Developer from sweden, with the passion of creating lots of crazy stuff.Which ends up for me being here today.For the last 3 weeks I've been working on a experimental tool for Converting C# into Papyrus.Basically, making it possible for anyone to write their scripts using C#, compile it using Visual Studio or any other IDE that supports C# (MonoDevelop or SharpDevelop could be a few of those).And then generate a Papyrus Assembly Code file, that can later be Compiled/ Assembled using CreationKit!I noticed since the start the lack of a good script editor for Papyrus and it buggered me, well not too much since in the end. I've actually never once created a complete Papyrus script.I can't be blamed though, I just recently started looking up on how Papyrus works!The project is called PapyrusDotNet, I've uploaded it to GitHub for everyone to use! Open Source that is and with a few guidelines and what else that could be needed.I've written a more extensive readme and information about the project there aswell. http://github.com/zerratar/PapyrusDotNet I hope this has waken up some interest as I will continue to work on this project on my spare time.For now, peace out!/ Zerratar Link to comment Share on other sites More sharing options...
ragnaroklucifer Posted January 28, 2014 Share Posted January 28, 2014 maybe a SKSE plugin can import assemblies functions for the scripts to call umm I don't know Link to comment Share on other sites More sharing options...
meh321 Posted January 28, 2014 Share Posted January 28, 2014 I agree with ragnaroklucifer better would be if you made SKSE import the assemblies and use as native papyrus function implementations so you could use real C# code to write papyrus scripts. It would be faster and easy to use. Example in papyrus psc file: scriptname MyNetCode int function ParseInt(string x) global native and in C#: int ParseInt(string x){int r;if(int.TryParse(x, out r))return r;return 0;} Then load this DLL with SKSE and register this implementation to MyNetCode.ParseInt function. It's already possible to write papyrus functions in C++ so why not C#. :) Link to comment Share on other sites More sharing options...
zerratar Posted January 28, 2014 Author Share Posted January 28, 2014 Thank you for yor replies. And yes, i am currently exploring that idea already. To create a skse plugin to give more functionality/ enable the use of the .net framework :) it is planned for the future ;) Link to comment Share on other sites More sharing options...
Recommended Posts