Peksa / dcs-http

Expose DCS World data over HTTP
MIT License
36 stars 7 forks source link

Error in Instructions #1

Open ghost opened 7 years ago

ghost commented 7 years ago

Hello. Just wanted to point out 3 things about your path to dcs\scripts instruction step.

  1. I believe you were looking for %USERPROFILE% instead of %HOME% (as far as I know home DNE)

  2. you have ' / ' in your path instead of ' \ ' (I know the internet causes trouble for many people when trying to include slashes in their pages & blogs etc.

  3. If you made the corrections I suggested then you would still have a problem if the user just installed (or recently installed) DCS in that there would be no script folder within the DCS user directory.

EX: %USERPROFILE%\Saved Games\DCS\ EX: %USERPROFILE%\Saved Games\DCS\Scripts

Peksa commented 7 years ago

Cheers, I updated the README. I haven't tried this in quite a while, i.e. not with DCS 1.5 nor DCS 2.0. Did you manage to get it going?

ghost commented 7 years ago

My bad on the delayed reply, been away from a pc for months.. I tested this a 2nd time on DCS World 1.2.16.xxxxx and this is all I was able to recieve:

C:\Users\divine\Documents\GitHub\dcs-http>play run --%prod
~        _            _
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/
~
~ play! 1.4.4, https://www.playframework.com
~ framework ID is prod
~
~ Ctrl+C to stop
~
~ using java version "1.7.0_80"
17:48:23,044 INFO  ~ Starting C:\Users\divine\Documents\GitHub\dcs-http
17:48:23,450 INFO  ~ Precompiling ...
17:48:27,241 INFO  ~ Application 'dcs-http' is now started !
17:48:27,302 INFO  ~ Waiting for connection by DCS on: 0.0.0.0:9595
17:48:27,429 INFO  ~ Listening for HTTP on port 9000 ...
17:51:29,971 INFO  ~ Got connection from DCS 127.0.0.1:64652
17:53:06,676 INFO  ~ Waiting for connection by DCS on: 0.0.0.0:9595
17:53:11,559 INFO  ~ Got connection from DCS 127.0.0.1:64806

I tried looking at /maps and /objects and all that was returned was an empty map in the area of the scenario (was there supposed to be a marker of where my plane is?) and objects only had "[]". From my observations it connects fine but I don't know what's next? Is it working and I am not doing something right?

How do you produce the Example Response as seen on the main github page? That was supposed to be returned on the objects page correct?

bigmillertime commented 7 years ago

Hello sir, any updates to this project?

bigmillertime commented 7 years ago

I posted a thread on hoggit, and someone has updated the lua code to work, if this helps.

https://www.reddit.com/r/hoggit/comments/50p0s8/dcs_map_data_via_browser_window/

Peksa commented 7 years ago

Sorry for these super late replies. It's been quite a while since I played DCS..

@hairypaulsack Based on the log entries, the game seems to have connected correctly. You're also correct in that /objects should have returned a list of objects, and not just an empty array. I've seen this behavior when running on some multiplayer servers - were you running a local scenario or were you online? It used to work on some multiplayer servers, but not all. This might have changed in DCS also.

@bigmillertime No updates, haven't been playing DCS really.. If you're still interested, based on the comment on the reddit thread, then you might be able to drop in @xbb's lua code and still run this server. From a quick glance the "protocol" seems to be compatible. Bear in mind I haven't tried this. The lua code is here for reference: https://gist.github.com/xbb/ab13cdfabb8ef384d67dbb7de0031867.

bigmillertime commented 7 years ago

Thanks for the help Peksa!

snakesn commented 6 years ago

Hey Peksa, 2018-07-10 02:42:45.413 ERROR Lua::Config: Call error LuaExportStart:[string "C:\Users\Owner\Saved Games\DCS.Area512\Scripts\Export.lua"]:15: module 'net.main' not found:

can you help please,

Cheers