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: 110
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,667

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: 495

I'll be keeping a sharp eye on this thread. Keep us posted, buddy.
Carrier Script.
Wrench is online now   Reply With Quote
Old 12-13-2018, 12:08 AM   #4
Join Date: Feb 2017
Posts: 110

Hello everyone ! I know it's been a while but I had some personnal issues and a lot of work to do.

I'm not abandoning this project, I actualy have redone the whole thing in typescript. There's a lot to do but right now I am able to:
- Send and receive data from/to the DCS server reliably
- Retrieve data from all groups within a coalition

I know it's not much but it was a huge pain, and I had a lot of work to do to get the foundation mechanisms for the next functionalities !

Incomming functionalities are:
- Spawning
- Zone retrieval
- Event handling
- Data persistance
- Triggers
- A nice interface to create triggers
- Functionnalities comparable to MOOSE (AI_Dispatcher, etc ...) to create dynamic campaigns
- Statistics

Stay tuned !

Last edited by ked; 12-13-2018 at 12:12 AM.
ked is offline   Reply With Quote
Old 12-13-2018, 01:03 PM   #5
71st_AH Rob
71st_AH Rob's Avatar
Join Date: Aug 2014
Location: Canada
Posts: 561

Sounds promising
Georgian Spring Server: Join the Revolution!

Training for Sabre Pilots
71st_AH Rob is offline   Reply With Quote
Old 12-17-2018, 09:53 AM   #6
Junior Member
Join Date: Mar 2017
Posts: 14

Is it going to have GUI?
Avat is offline   Reply With Quote
Old 12-18-2018, 07:37 PM   #7
Join Date: Feb 2017
Posts: 110

Originally Posted by Avat View Post
Is it going to have GUI?

At some point, yes
ked 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 11:09 PM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.