Hey, uh… I feel like I’m completely missing something here, but are there docs available for this, or for similar systems that this might be based on…?
I’m looking through the source code on the repo (and the connected/related modules/repos) and there are explanations of what these modules are, but not a whole lot on how they can be used.
I could probably figure it out after a week of studying the source code, but there’s a chance that I poke the wrong stuff and destabilize it without realizing what’s off-limits and what’s meant to be exposed to rest of the node server.
EDIT: I’m mostly trying to figure out how something like this could be done:
const emglken = require("emglken");
const gameProcess = emglken.run("game/path/here");
gameProcess.on('output', (data) => {
// Do stuff with the JSON output
});
gameProcess.sendPlayerInput('get lamp');
Assuming this is a node module, as it’s on npm.
If it’s run-from-terminal-only, then I’ll incorporate it with the process wrapper I’ve made during my previous experiment.