Scripting in any .NET language

ASM, Perl, IRW, other injections and script modules

Moderators: Murderator+, Murderator

Post Reply
kyanor
Posts: 7
Joined: 2012-02-14 19:52:10

Scripting in any .NET language

Post by kyanor »

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
Libraries 2012-02-29.zip
Libraries
(45.36 KiB) Downloaded 396 times
CustomLibrary.zip
Sample Project
(31.89 KiB) Downloaded 387 times
Last edited by kyanor on 2012-03-01 03:45:55, edited 3 times in total.
Mirage
Posts: 2802
Joined: 2009-05-28 09:58:28
Location: Иваново
Contact:

Re: Scripting in any .NET language

Post by Mirage »

Yes, of course, post the link here. We will study it.
kyanor
Posts: 7
Joined: 2012-02-14 19:52:10

Re: Scripting in any .NET language

Post by kyanor »

Edited first topic
Nearga
Posts: 53
Joined: 2012-02-10 15:17:10

Re: Scripting in any .NET language

Post by Nearga »

Wow, sounds really good.
kyanor
Posts: 7
Joined: 2012-02-14 19:52:10

Re: Scripting in any .NET language

Post by kyanor »

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.
Post Reply