n-gon icon indicating copy to clipboard operation
n-gon copied to clipboard

Suggestion: log errors in in-game console

Open kgurchiek opened this issue 8 months ago • 1 comments

Many people either can't or don't know to open dev tools to access the console to view error messages when they encounter a bug, so if you had it log to the in-game console on the bottom left it could help people report bugs.

window.addEventListener('error', error => {
  simulation.makeTextLog(`<strong style='color:red;'>ERROR:</strong> ${error.message}  <u>${error.filename}:${error.lineno}</u>`)
});

kgurchiek avatar Jul 01 '24 00:07 kgurchiek