Jump to content

Recommended Posts

Posted (edited)

Announcing Dcs Remote (2)

 

A REST api to the dcs lua environments. If you're looking for a simple way to grab data from dcs and/or inject your own scripts without having to reload the game, or even getting dcs data up on a webpage, check it out.

 

You can get the latest development version here

- but first read the readme over at github!

 

It's still very much beta and intended for developers/modders.

Edited by =RvE=Yoda

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted (edited)
Could you provide some instructions on how to use the API? I followed the readme but I'm not really sure if I'm launching it correctly.

 

Just jump on to 104th teamspeak and Ill be sitting in the RvE channel, european evening times.

Or PM me for skype details.

 

Basically it only requries you to

1. Drop the lua script files into your dcs script directory (https://github.com/GiGurra/dcs-remote2/tree/master/src/main/lua)

2. launch the remote (for example by 'sbt run'), or build the jar with 'sbt assembly' and run that - you will see a tray icon

Edited by =RvE=Yoda

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted
Does this offer differences to the LUA commandline from FSF Ian? in witchcraft?

 

What is "LUA commandline from FSF Ian"? :). Can you show me please so I can check?

(If you're asking if you can use dcs-remote to construct a REPL to the dcs lua environment, the answer is yes)

 

witchcraft or which craft? :)

Probably a different spell school..

dcs-remote runs a finagle http server backed by a simple tcp connection to a thin lua tcp server. it also has some other utility features.

 

I'm going to announce a proper release soon with ready-to-use zips for download.

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted
I'm not sure what LUA command line from FSF Ian is but DCS Witchcraft is/was a lua debug console for DCS. I don't know if it still works:

https://github.com/jboecker/dcs-witchcraft

 

Seems like that project is more web oriented, not sure if it offers a REST api, but maybe it does. Witchcraft looks to be prepared out of the box for multiple environments (dcs remote supports this too but requires you to insert the lua hooks yourself).

 

Not sure if witchcraft has a cache function.

 

Witchcraft seems to have a built in web frontend (unline dcs remote), served by a node.js back-end backed by a semi-thin lua layer (similar to dcs remote).

However Witchcraft has built in application code/data exports - Something dcs remote explicitly was made not to include. Dcs remote doesnt really even require dcs for that matter, it will work with any lua game (or standalone as a storage box).

 

So, both have their pros and cons. Dcs remote _requires_ you to inject/store your export functions from an outside app before you can access any game data.

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

  • 6 months later...
Posted
This can also be great to create new flights, or give specific orders during the game.

 

Yes I got the basics to work using postman, wil dive in some more to see if I can inject comms menu commands e.g. send a 'break right' command to wingman (normally triggered by F-keys menus).

I'm guessing this lives outside of export context but no idea on all this yet. Guess I have some research time ahead :joystick: all tips welcome

 

Anyways good stuff this is a potentially powerful tool it seems.

There is no spoon.

 

Avatar_old_80x80.gif.0c105925ce4b9f5b87697ea37cbde317.gif

VAICOM PRO plugin for DCS World

www.vaicompro.com

  • 1 year later...
Posted

Hi gents,

 

Can I have a naive question before I dive deeper into this one: "Can this API spawn AI units to a multiplayer session dynamically?" If it this is more a question about the underlining lua and the rest api wrapper has to be enhanced for that that is also fine, I can maybe work on that.

 

PS: Yes, another idiot here who see this as a way to be a dungeon master for a multiplayer mission, or even make simple dynamic campaigns with this with the campaign logic hosted externally. But let me know if I am naive for something like this.

"Vympel offers R-27EP anti-radar air-to-air missile, I really want to do a SEAD against F15s :lol:"

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...