iOSGyroForCemuhook icon indicating copy to clipboard operation
iOSGyroForCemuhook copied to clipboard

Server crashes when used with new Cemu (v1.12)

Open Stephen-X opened this issue 6 years ago • 3 comments

I was trying to use the app with the new Cemu (I tested with v1.12, but this issue probably exists before this version), but the server crashed when I opened Cemu. Here's the error printout:

internal/buffer.js:35
    throw new ERR_OUT_OF_RANGE('value', `>= ${min} and <= ${max}`, value);
    ^

RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 4294967295. Received 3312645462408298
    at checkInt (internal/buffer.js:35:11)
    at writeU_Int32LE (internal/buffer.js:515:3)
    at Buffer.writeUInt32LE (internal/buffer.js:528:10)
    at BeginPacket (D:\Program Files\Games\Cemu\iOSGyroForCemuhook\app.js:51:8)
    at SendPacket (D:\Program Files\Games\Cemu\iOSGyroForCemuhook\app.js:63:15)
    at Socket.server.on (D:\Program Files\Games\Cemu\iOSGyroForCemuhook\app.js:132:7)
    at Socket.emit (events.js:182:13)
    at UDP.onMessage [as onmessage] (dgram.js:670:8)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Does anybody know what's going wrong? Thanks!

Stephen-X avatar May 19 '18 00:05 Stephen-X

I've got the same problem, same thing happens when trying to use padtest. I've tried using another router, running as admin and changing port.

johnnym90 avatar May 29 '18 14:05 johnnym90

Oh, this worked for me https://github.com/hjmmc/WebGyroForCemuhook/releases

johnnym90 avatar May 29 '18 14:05 johnnym90

@johnnym90 Thanks for the recommendation! Yes the new one works for me, although I have to use the packaged executable from release; if I run the source code directly with npm, I still face the same issue as shown above. I wonder what's the issue here?

Stephen-X avatar May 30 '18 01:05 Stephen-X