Minecraft Transit Railway (Automated trains, planes, and more!)

Minecraft Transit Railway (Automated trains, planes, and more!)

2M Downloads

Website does not state that WebGL is required

totallytavi opened this issue ยท 1 comments

commented

Before reporting, I have confirmed that

  • This bug does not appear to be reported on GitHub Issues before.
  • This bug still exists in the latest version of the Minecraft Transit Railway mod.
  • I have tested this in the official version of Minecraft Transit Railway, not a modified, custom, or unofficial build.

Describe the Bug

WebGL is required for the website to function properly, even though it is not stated publicly. The website will load but shows an empty page. The web requests are still being sent and the responses contain the proper data but nothing appears on the screen. There are no errors in the console either. When turning on WebGL through about:config (As I discovered firsthand), the website works without issue.

Reproduction Steps

  1. Use LibreWolf with no modifications to about:config
  2. Open a MTR world and wait for the server to startup
  3. Navigate to localhost:8888 (Or whatever you use to access your world map)

In-game Log and Crash Report

N/A

Mod Loader

Fabric

Minecraft Version

1.20.1

Minecraft Transit Railway Version

4.0.0

Operating System

Windows 10

List of Mods or Modpack You Were Using

  • MTR

Extra Information

I've gone to SO about this and found a simple function that can determine whether WebGL is supposed. It may be useful to the website developers since I lack Angular experience

function webgl_support () { 
   try {
    var canvas = document.createElement('canvas'); 
    return !!window.WebGLRenderingContext &&
      (canvas.getContext('webgl') || canvas.getContext('experimental-webgl'));
   } catch(e) {
     return false;
   }
 };
commented

Ideally, some sort of dialog box should inform users that WebGL is required so people don't complain to server owners that "oh your server map is broken fix!!1!!1"