NIOD - A node JS API for your dynamic campaign - ED Forums


Thread Tools Display Modes
Old 10-18-2018, 10:49 PM   #1
Join Date: Feb 2017
Posts: 108
Default NIOD - A node JS API for your dynamic campaign

Hello everyone, today I'm introducing NIOD.

NIOD is a Node JS application that will allow you to use DCS World natives. You will basicaly be able to request data from your Dcs mission (groups, zones, etc...) and interract with it. It uses a lua socket to communicate with the app.

I'm just getting started, still working on building a healthy base to evolve on. Right now you can:
  • Connect to your DCS server
Here are the thing that are planned:

-Concerning the DCS environment
  • Export every x seconds data for groups, zones, weather, players, ...
  • Export events
  • Handle functions like (Spawn, AI Tasks, radio menus, server management, ...)
-Concerning the NodeJS environment:
  • Save data from previous sessions and reload it
  • Request data from the server
  • Execute functions like (Spawn, AI Tasks, radio menus, server management, ...)
  • Compute and expose stats over an API
  • Have an administration interface to create dynamic campaigns (create polygon zones, set zones as capturable, set objectives for a coalition, have a scoring system, ...)
So as you can see it's not ready for use but I'm still opening this thread so I can get a feel for what you guys would want to be implemented.
And of course, this project is open source and any contribution is welcomed

I've set up a github repository for the project:

DISCLAIMER: to run a socket through your mission environment you need to make sure DCS doesn't sanitize the require function. This is done by edition your MissionScripting.lua file in DCS World/Scripts/MissionScripting.lua
This could make your server vulnerable to any other app trying to connect on that port. I'll make sure to document good practices to not have a vulnerable public server.

And I want to give a HUGE shoutout to Drex from Dynamic DCS for his help on getting the socket to work properly. It's not an ideal situation but it's what we have.

Make sure to leave your thougths and suggestions below or as issues on the github repository. I'm also thinking about opening a discord server so we can discuss this more in depth.


Last edited by ked; 10-18-2018 at 11:13 PM.
ked is offline   Reply With Quote
Old 10-18-2018, 11:03 PM   #2
Senior Member
uscstaylor's Avatar
Join Date: May 2010
Location: Galloway, NJ
Posts: 1,804

Good Luck with this man!

Gigabyte Z-270X G7 Motherboard, Intel i7- 6700K @ 4.2 Ghz, Water Cooled | 2TB FireCuda Gaming SSHD l 32gb Cruicbal Ballistix Sport LT DDR4 2400 Mhz l Gigayte GeForce GTX 1070 Xtreme video card | TM Warthog HOTAS+ Extension|T-Rudder Pedals Mk. III |Track IR5 Pro| Windows 10 64 bit
uscstaylor is offline   Reply With Quote
Old 10-21-2018, 03:07 AM   #3
Join Date: Feb 2015
Posts: 431

I'll be keeping a sharp eye on this thread. Keep us posted, buddy.
Carrier Script.
Wrench is offline   Reply With Quote

api, lua, niod, nodejs

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 09:27 AM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.