Comparing version 3.0.2 to 3.1.0
{ | ||
"name": "demrec", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "Demo Recorder Renderer", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -108,5 +108,7 @@ let fs = require('fs') | ||
if (!a.pre) a.pre = 0 | ||
if (!a.ticks[0] || a.ticks[0] < 0) a.ticks[0] = 0 | ||
if (!a.ticks[1] || a.ticks[1] > total) a.ticks[1] = total | ||
if (a.ticks[1] - a.ticks[0] < 10) throw new Error('Invalid demo tick range!') | ||
if (a.ticks[0] - a.pre < 0) throw new Error('Tick pre setting not possible!') | ||
if (i !== 0 && a.ticks[0] <= arr[i - 1].ticks[1]) throw new Error(`Ticks of [${i}] & [${i + 1}] overlap!`) | ||
@@ -222,3 +224,4 @@ | ||
let same = a.out === arr[i - 1]?.out | ||
if (a.ticks[0] !== 0) vdm.add(last, [same ? '' : 'endmovie', 'volume 0', mark(a.out, 'Skipping'), `demo_gototick ${a.ticks[0]}`]) | ||
if (a.ticks[0] !== 0) vdm.add(last, [same ? '' : 'endmovie', 'volume 0', mark(a.out, 'Skipping'), `demo_gototick ${a.ticks[0] - a.pre}`]) | ||
if (a.pre) vdm.add(a.ticks[0] - a.pre, [a.cmd, 'volume 0']) | ||
vdm.add(a.ticks[0], [a.cmd, `startmovie ${a.out + '.mp4'} ${this.game.token}`]) | ||
@@ -225,0 +228,0 @@ vdm.add(a.ticks, [mark(a.out, 'Rendering', '*')], '*') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24803
485