Author: maca134
Author Website: http://maca134.co.uk/portfolio/arma-c-extension-compile-on-the-fly/

Requirements: No addons required

Version: 0.1c
Signed: No

Short description: This is an extension/mod that will allow you to compile/run C# on the fly to ease rapid development of a c# ARMA extension.

Date: 2016-03-18 10:18


Comments: (1)
Rating:



 





ARMA C# & JS (NodeJS) Extension

by
maca134


Description:
This is an extension/mod that will allow you to compile/run C# on the fly to ease rapid development of a c# ARMA extension

The mod has only 2 functions:
  • Load some c# or javascript, returns a pointer
  • Run the script and return the results

Installation:
To install the ARMA C# & JS (NodeJS) Extension - Compile on the fly you should use modfolders to keep it seperate from the official game content to prevent issues.
With Arma 3 you can use different ways to set up your modfolders to use custom content you have downloaded.
Please visit the Arma 3 Mod install instructions page for more information about using custom mods and addons in Arma 3.


Included files:
armaext.pbo


Usage:
The mod has only 2 functions:
Load some c# or javascript, 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 stirng Invoke(string input)
    {
         return "Hello World";
    }
}
All paths starting .\ will be relative to ARMACS.dll
Additional libraries can be loaded as follows: #r ".\lib.dll" or #r "c:\path\to\lib.dll or #r "System.Data.dll"
Output is set to 10k
If you use this on clients, DISABLE BATTLEYE!


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


Changelog:
v0.1c
some examples

v0.1b
tweaks

v0.1a
readme update

v0.1
initial commit



Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: No tags