You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the VBS code has not all 64 lamps available, this crashes the VBS code:
Uncaught TypeError: Cannot set property 'State' of undefined
at TimerApi.eval (tablescript.js:39)
at TimerApi.emit (events.js:146)
at EventProxy.fireDispID (event-proxy.js:52)
at EventProxy.fireGroupEvent (event-proxy.js:46)
at PlayerPhysics.updatePhysics (player-physics.js:307)
at Player.updatePhysics (player.js:84)
at player.worker.js:61
Here is tablescript.js
__items.PinMAMETimer.on('Timer', () => {
let ChgLamp, ii, tmp, idx;
ChgLamp = __vbsHelper.getOrCall(__vbsHelper.getOrCall(__scope.Controller).ChangedLamps);
if (!__stdlib.IsEmpty(ChgLamp)) {
for (ii = 0; ii <= __stdlib.UBound(ChgLamp); ii += 1) {
idx = __vbsHelper.getOrCall(ChgLamp, ii, 0);
__vbsHelper.getOrCall(__scope.Lights, idx).State = __vbsHelper.getOrCall(ChgLamp, ii, 1); << BOOM
}
}
#124 was about a first working WPC-Emu integration. there are some issues I want to address here:
DONE
PENDING
The text was updated successfully, but these errors were encountered: