Jump to content
OptixDev

Website > Server | Code Execution System (Node.JS)

Recommended Posts

Website > Server Code | Execution System (Node.JS)

Made By Optix

Special Thanks to KilzoneKid for his release of the URL_Fetch DLL's

V0.0.1

 

For those of you who do not understand or know what this is, in basic, it is a system of executing code on a server without physically being on it. How this works essentially it uses node.js to handle specific commands and does stuff with them.

I personally use Glitch.Io to host my node.js server. it is a free service that allows you host your node.js project online and develop upon it live. This system contains one mod folder @Optix_WebExec which contains the necessary files that hold the Arma functions that use KK's URL_Fetch dll. This is required to make the connection to the Node.js server and pull the content that is due to be executed.

 

BEFORE ANYONE STARTS THINKING THIS CAN BE USED MALICIOUSLY IT CANNOT ITS FULLY SERVER SIDED AND CAN ONLY BE USED IF PEOPLE HAVE THE SERVERS CORRECT LINK DEFINED IN A CONFIG! 

 

How to Use:

your Node.js server link here / exec / sqf code here         - This is what is used to add code to the file which Arma server checks every x amount of seconds, This can be defined in the config file found in Optix_WebExecConfig.pbo.

 

Please note that in the case you pass any code containing irrelevant content to sqf or code containing any syntax errors currently will stop the server loop from executing correctly (Due to the errors), I have been working on a system to automatically handle and log this but had issues during the process and wanted to release asap so currently this version does not contain this feature, but stay tuned for updates in the future.

 

your Node.js server link here / log        - This is what is used to view the systems logs. The system logs events such as server connections, code added to be executed and exec list clearing.

your Node.js server link here / v           - This returns the current version of Arma code exec.

 

Setup:

1) Host your node.js server using the code provided using your prefered method of hosting.

2) Install the Arma Addon onto your Server NOT Client. (This is a server sided add-on and is by no means needed on any clients)

3) Configure the config found in the Optix_WebExecConfig.pbo

4) Use the above commands to carry out the desired process.

 

Video Showcase:

 

 

Files:

Download the Project here: GitHub

 

Kind Regards,

Conner 'Optix'

Add me on Steam

:)

  • Like 6

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×