neophob / wpc-emu

Williams Pinball machine emulator, Play it @
https://playfield.dev
Apache License 2.0
70 stars 12 forks source link

Active solenoids when game is started #72

Closed neophob closed 3 years ago

neophob commented 3 years ago

once game is started those solenoids are enabled

MM: 2, 34, 36 (TROUGH EJECT, LEFT TROLL, RIGHT TROLL) MB: 31, 32, 34, 36 (LOWER LEFT FLIPPER, LOWER LEFT FLIPPER, NOT USED, NOT USED) CC: 9, 34, 36 (TROUGH EJECT, NOT USED, BART TOY HAT) CV: 9, 32, 34, 36 (TROUGH EJECT, LOWER LEFT FLIPPER, DIVERTER HOLD, UPPER POST)

COS:

neophob commented 3 years ago
case OP.WPC95_FLIPPER_COIL_OUTPUT:
        console.log('WPC95_FLIPPER_COIL_OUTPUT', value);
        debug('WRITE', REVERSEOP[offset], value);
        this.outputSolenoidMatrix.writeFliptronic(value);
        break;

this asic code is VERY wrong and the reason why solenoid 34 and 36 are always on when the game is started. question to be fixed is, what should this call do?

neophob commented 3 years ago

fixed, however flipper for wpc95 do not trigger a solenoid

neophob commented 3 years ago

summary: manually is shitty: Flipper Circuits starts at position/line 29 - but it should be position 32 (as there are 40 solenoid connections): const OFFSET_SOLENOID_HIGHPOWER = 0; const OFFSET_SOLENOID_LOWPOWER = 8; const OFFSET_SOLENOID_FLASHLIGHT = 16; const OFFSET_SOLENOID_GENERIC = 24; const OFFSET_SOLENOID_FLIPTRONIC = 32;