Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game breaking that need to be fixed. #14

Open
JanssenSimon opened this issue Nov 22, 2022 · 0 comments
Open

Game breaking that need to be fixed. #14

JanssenSimon opened this issue Nov 22, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JanssenSimon
Copy link
Owner

error: Uncaught TypeError: Cannot read properties of undefined (reading 'addPlayer')
games.get(sockets.get(uid).game).addPlayer(uid, sockets.get(uid).name);
^
at Object.joinGame [as method] (file:///home/simon/le10/state_machine.js:96:35)
at file:///home/simon/le10/server.js:100:13
at Array.forEach ()
at WebSocket.websocket.onmessage (file:///home/simon/le10/server.js:96:25)
at WebSocket.wrappedHandler (deno:ext/web/02_event.js:1362:14)
at innerInvokeEventListeners (deno:ext/web/02_event.js:755:9)
at invokeEventListeners (deno:ext/web/02_event.js:795:7)
at dispatch (deno:ext/web/02_event.js:664:11)
at WebSocket.dispatchEvent (deno:ext/web/02_event.js:1043:14)
at WebSocket.[[[eventLoop]]] (deno:ext/websocket/01_websocket.js:427:18)

TLS alert received: AlertMessagePayload {
level: Fatal,
description: CertificateUnknown,
}

error: Uncaught TypeError: Cannot read properties of undefined (reading 'state')
if (sockets.get(identifier).state === "InGame")
^
at WebSocket.websocket.onclose(file:///home/simon/le10/server.js:79:32)
at WebSocket.wrappedHandler(deno:ext/web/02_event.js:1302:14)
at innerInvokeEventListeners(deno:ext/web/02_event.js:754:9)
at invokeEventListeners(deno:ext/web/02_event.js:794:7)
at dispatch(deno:ext/web/02_event.js:663:11)
at WebSocket.dispatchEvent(deno:ext/web/02_event.js:1036:14)
at WebSocket.[[eventLoop]]

Game breaking errors that have surfaced. Need to be fixed.

@JanssenSimon JanssenSimon self-assigned this Nov 22, 2022
@JanssenSimon JanssenSimon added the bug Something isn't working label Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant