Package Exports
- @fraggen/scene-recorder
- @fraggen/scene-recorder/dist/src/SceneRecorder.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fraggen/scene-recorder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@fraggen/scene-recorder
Lossless recording of extracted Scenes. Outputs one folder with TGAs and a WAV per scene.
Installation
Prerequisites
NPM
npm install @fraggen/scene-recorder
Usage
const steamDir = 'C:\\Program Files (x86)\\Steam';
const sceneRecorder = new SceneRecorder(steamDir);
sceneRecorder.ready.then(async () => {
await sceneRecorder.recordScenes([{
file: 'C:\\demos\\ace.dem',
scenes: [{
eventSelector: zoomInSelector,
event: 'weapon_zoom',
startTick: 15068,
eventTick: 16142,
endTick: 17291,
playerToSpec: '76561198141234567',
length: 10,
}]
);
process.exit();
});