This is an extension/mod that will allow you to compile/run C#/Javascript (NodeJS)/Python on the fly.
Python Other
Latest commit b88ece0 Apr 30, 2016 @maca134 Update Edge.cs
Permalink
Failed to load latest commit information.
addons typo Mar 17, 2016
examples iron python lib Mar 17, 2016
project Update Edge.cs Apr 30, 2016
.gitignore some examples Mar 17, 2016
Edge_LICENSE.txt Create Edge_LICENSE.txt Apr 30, 2016
armaext.dll iron python lib Mar 17, 2016
license.md initial commit Mar 16, 2016
mod.cpp initial commit Mar 16, 2016
package.json initial commit Mar 16, 2016
readme.md added python Mar 17, 2016

readme.md

ARMA EXT - Downloads

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

More languages can/will be added if requested.

The mod has only 2 functions:

Load script, returns a pointer

_pointer = [_path_to_script] 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:

class Startup {
    public static string Invoke(string input)
    {
        return "Hello World from C#";
    }
}

The Javascript has to return a function with 2 arguments:

module.exports = function (data, callback) {
    var err = null;
    callback(err, "Hello World from NodeJS");
};

You are free to use any nodejs modules

Python has to evaluate to a Python lambda expression that takes one parameter.

def example(input):
    return "Python welcomes " + input

lambda x: example(x)
  • If you use this on clients, DISABLE BATTLEYE!
  • Output is auto truncated, no way to get current output size yet

Credits

Most of this was inspired by the work done by tjanczuk on Edge

Licence

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

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

If you want to use this commercially (or include it in "ARMA Samples", like my ARMA c# extension pattern) you must ask permission. You know who you are!