maca134

ARMA C#/JS/Python Extension - Compile on the fly

8 posts in this topic

Download

This is an extension/mod that will allow you to compile/run C#/Javascript (NodeJS)/Python on the fly.

The mod has only 2 functions:

Load some c# or JS, returns a pointer

_pointer = [_path_to_cs] call ARMAEXT_fnc_load

Run the script and return the results

_result = [_pointer, _args] call ARMAEXT_fnc_run;

The c# has to implement the follow pattern so its as close as possible to the actual DllExport:

class Startup {
    public static string Invoke(string input)
    {
        return "Hello World";
    }
}
  • If you use this on clients, DISABLE BATTLEYE!

This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Edited by maca134
  • Like 6

Share this post


Link to post
Share on other sites
Advertisement

I have the same question as above - can I use this with Battleye active on server?
(thought all external calls to DLL's would make Battleye go apeshit unless whitelisted.)

I can see a bright future replacing a bit of exilemod script with equivalent native code.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.