Yoko
http://forum.yoko.com.ua/

Scripting in any .NET language
http://forum.yoko.com.ua/viewtopic.php?f=12&t=16915
Page 1 of 1

Author:  kyanor [ 2012-02-27 17:13:42 ]
Post subject:  Scripting in any .NET language

I've modified script.dll to use native .NET languages. It's not parsing, but using it as a library(dll).

You can use any .NET language as C# or VB.Net.
You can fully debug your script with Visual Studio or any Just-In-Time Debugger.

It's working well, and you can make use of the Visual Studio or any IDE Intellisense to make life easier.

It's very new and not all functions are implemmented in the Interface, but its just a matter of time.

Ok, here is a short setup tutorial:
  1. Unzip Libraries.zip files in your Injection directory.
  2. Unzip CustomLibrary somewhere and open it with Visual Studio 2010 or Express. Its a template project (ill make a vs template file latter).
  3. Compile the Sample Project (retarget InjSharp library if needed)
  4. Open Injection and login. In the Scripts tab click load button: Navigate to - {Sample Project folder}/Bin/Debug/CustomLibrary.dll.
  5. Choose a script in the second dropdown and press Run.
  6. If you need debug, check debug and press Run. A Just-In-Time debugger will popup, select the already opened vs
    Now you can fully debug your script.

More information:
  • You can't load a script twice.
  • You can load multiple scripts at same time. (When you change Library dropdown, it update the second with the corresponding scripts).
  • If you want update script version, unload it and load again.
  • To call a script inside the game: exec fullScriptName

Keep in mind its just and alpha version.. Many things aren't implemmented yet.

thx

Attachments:
File comment: Libraries
Libraries 2012-02-29.zip [45.36 KiB]
Downloaded 364 times
File comment: Sample Project
CustomLibrary.zip [31.89 KiB]
Downloaded 353 times

Author:  Mirage [ 2012-02-27 17:35:32 ]
Post subject:  Re: Scripting in any .NET language

Yes, of course, post the link here. We will study it.

Author:  kyanor [ 2012-02-28 13:40:37 ]
Post subject:  Re: Scripting in any .NET language

Edited first topic

Author:  Nearga [ 2012-02-29 13:04:51 ]
Post subject:  Re: Scripting in any .NET language

Wow, sounds really good.

Author:  kyanor [ 2012-03-01 03:48:18 ]
Post subject:  Re: Scripting in any .NET language

New version uploaded.

  • UI Bug fixes
  • Added all Attributes to UO Class (Life, STR, Mana, etc)
  • Added many functions

If you find any bug, please report.

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/