Error WebGl

Hey everyone,


Today, I made the update from 1.2 to 1.3.1 however if I start the project, I get the error:


Cannot read property WEBGL of Undefined.


Worst of it, I can't open the console with F8. I tried disabling all my plugins and I didn't work 🙁


I'm sure I updated my game right.


Edit: Just seen that I have to use a template for bug reports.

  • Are you using plugins? Did you disable them first? Does the bug still happen? Then report here.
    All disabled, still happening
  • Is your bug already reported by another person? Don't make a new topic. Reply to that thread instead if you have anything substantial to add.

          No, nothing.

  • Bug Explanation: (What is the bug in your own words? Keep this detailed. "It isn't working right" is not a valid bug report.)
  • If I playtest the game, I get the error message Cannot read property WEBGL of Undefined.
  • Error Report: (If you received an error message, press F8 when the message is received to open up the debug console, then copy/paste the entire error log and paste it here).

          Console does not open when pressing F8

  • Exact Steps on How to Replicate Bug: (Write out IN DETAIL, a step-by-step guide on how to replicate the bug.)

          To be honest, I don't know. It just happened so after updating.

  • Sample Project (REQUIRED): A sample project MUST be attached to the bug report. All steps MUST be followed. If a single step is ignored, the bug report is invalid and I will move on to the next bug report.  If you do not attach a sample project to the bug report, your bug report WILL BE ignored. This must be kept under 90 MB lower. Do not include RTP Graphics save for the ones used. You must make this project as small as possible. There are NO exceptions.



         I don't think I can give a sample right now, as it only happens at my specific game. I have to test my other projects though.
In your index.html page, put this before any of the other scripts:


<script type="text/javascript">
require('nw.gui').Window.get().showDevTools();
</script>


This should force the console open before any script has a chance to load and therefore crash, so you should be able to get more information. But given that it crashes early and doesn't let you press F8 to get in, the issue is likely somewhere in the core of MV.
In your index.html page, put this before any of the other scripts:



<script type="text/javascript">
require('nw.gui').Window.get().showDevTools();
</script>


This should force the console open before any script has a chance to load and therefore crash, so you should be able to get more information. But given that it crashes early and doesn't let you press F8 to get in, the issue is likely somewhere in the core of MV.

Thank you, I'll try this out
How did it go...?
How did it go...?

unfortunatly I didn't find any html file, but luckly, I had a backup of my project so I tried an "inverse" update process.


Instead of sending the new js files to the old project, I made a new project and sent the old project files to the new project and now everything's fine.
The html file is the one named "index" or "index.html" in the project folder? It's in the same folder as Game.rpgproject? You can't not have one, as that's the file that loads all the scripts and resources into the window and allows them to be played.
The html file is the one named "index" or "index.html" in the project folder? It's in the same folder as Game.rpgproject? You can't not have one, as that's the file that loads all the scripts and resources into the window and allows them to be played.

Oh right this one, I was looking at the wrong folder.


But thanks for your tipp anyway, i'll keep it in mind for next time.

Original thread: https://forums.rpgmakerweb.com/threads/error-webgl.66733/