mrSkortch/DCS-SLmod

Technical info: Either the DB "api/db/db.json" does not exist, or there is no ["server"] index within it

Closed this issue · 3 comments

Few things here (probably related to the documentation and elaboration on specifics):

  1. the db.json file exists, however has dummy content in it:
{
    "token": {
        "server-1": "server-1 secret token",
        "second-server": "second-server secret token",
        "229th-server": "229th-server secret token"
    }
}

What would be useful here is elaboration on the "server" index, which the base file does not reference (seen from this error mention):

Technical info: Either the DB "api/db/db.json" does not exist, or there is no ["server"] index within it

  1. Elaboration in the tokens.json file (that you need to create based off the example) would probably be useful to indicate what SLSC is, and more specifically the examples you include, how they're pertinent:
  "SLSC": {
    "server-1": "server-1 secret token",
    "second-server": "second-server secret token",
    "229th-server": "229th-server secret token"
  },

Finally, it should also be noted this will not fire up without the use of nvm and specifically node version 8 at the moment.

I assume you are talking about this other script https://github.com/Bango1999/SLSC?

I'm not involved with that script at all. However part of its functionality can be done directly with slmod as the latest versions of slmod can save a copy of the stats file in json format.

@mrSkortch - I see, basically it's ambiguous on the SLSC dependency -- for instance, nothing currently gets logged and digging into it, there are SLSC definitions while apparently not "required" ? seems to be made noted that they are (the SLSC token reference in tokens.json. So current running processes are, SLSC, SLMod, SLBot and DCS -- and SLBot indicates there are no active changes (or the "db.json" file not existing, which it does). Debugging further (i.e. using your SLBot_Debug.bat throws this error, but this is for a separate ticket.

app.on('ready', createWindow)
   ^

TypeError: Cannot read property 'on' of undefined

Slbot and SLSC aren't mine though. I haven't done anything with either of those scripts.