WebGL build, error message

That’s an awesome thing to know, thanks for sharing it Rob! :smiley:

1 Like

You’re welcome, I have had to do a bit of digging to help a few people out with these errors and the above can be really useful - just getting a method name out of it is a real bonus!

By not striping the engine code and not minimising you do increase the size of the build, as such, it may take longer to publish and load when browsed to initially. For Number Wizard I doubt this would be a big issue.

Let’s see what Dominic comes back with after trying the above, I don’t want to interject and get in your way of helping etc. So just give me a yell if I’m required, if not, I’ll butt out :slight_smile:

Enjoy playing hunt the NullReferenceException :slight_smile:

1 Like

In my way of helping? of course not xD The important thing is that the problem get solved :slight_smile:
This is such an valuable information, I’m sure I will make use of it in the future too!

1 Like

I’ll create a separate topic later than, and add some links for additional info too, I’ll ping ya the link :slight_smile:

1 Like

That would be nice :smiley: and it will be just in time for the GGJ which I will probably build an WebGL game

Here ya go Johnny;

@Dominic_Addonizio, if you follow the instructions in this topic, could you post a link to the development build version before fixing the issue with Johnny for me, I would really like to grab another screenshot for the topic I’ve just written, one which will show the code not obfuscated.

Thanks in advance :slight_smile:

1 Like

Awesome, thanks Rob

1 Like

I am not too sure what you’re asking me to do. But I will try and rebuilding the game and messing with those settings are you illustrated.

1 Like

Hi Dominic,

All I was after was the URL to your re-published game, e.g. after making the changes in the build settings listed above, then republishing your game so that Johhny and/or I can help you fix the error.

What I would be able to do is then take another screenshot of the browser’s console which I can use in the topic I wrote earlier to help other students when it comes to debugging WebGL games.

Obviously, I need a link to the game whilst it is still erroring, but as a development build, so that what we will see in the browser’s console is a list of methods which are being called, rather than the obfuscated method names.

I note that the topic now states Solved, does that mean you have identified the problem and resolved it?

1 Like

I thought that the instructions that you gave me would of fixed it so I changed it are you not positive that it will be fixed?

also I could not find these setting when I went to rebuild the game.
image

currently I am trying to repost my new build on share my game.com but its still processing…its taking a lot longer than last time which is concerning.

1 Like

When you build the webgl, just after it there usually are some information in the console, can you print it and send so we can see?

1 Like

What I posted wasn’t to fix the issue, but instead to provide a detailed error message so that you/we could better understand the actual problem is - and then fix it :slight_smile:

A development build will be larger than a non-development build and as such will take a little longer to both upload and process at the other end.

also I could not find these setting when I went to rebuild the game.

Which version of Unity are you using? These settings will appear in the Inspector when you click the Player Settings…, button (they may vary depending on Unity version)

I am using unity 2017

humm… it does return some warnings about the use of obsolete methods (Application.LoadLevel in this case), would you mind changing this method for SceneManager.LoadScene in those 4 lines? You should include the using UnityEngine.SceneManagement in the namespaces for this to work.

Although it would be nice to have the screenshot of the browser’s console as Rob suggested before you fix it, it may help more people with similar problems eventually

Is this what you are looking for?

Edit: its not, sorry >.<

Sorry, no it’s not. That URL is the same as the one you had in your original screenshot.

What I need is the URL for your game, when built using Development Build and republished. When you publish the game you will get a different URL. When I then inspect the console of the development build version of your game, I will see the method names from your scripts, as opposed to the text in red we can see in the screenshot above.

All I need is the new URL, I will do the rest.

Or, if it’s easier for you Dominic, if you could zip up your entire project and upload it to a reply here, I will just quickly do the build for you. Happy to :slight_smile:

1 Like

Stay tuned I fixed my code as Joao_Davlvi instructed, rebuilt the game, and am waiting for it to finish processing to be posted on sharemygames.com. I will let you know if it then works.

After that has completed I will rebuild the game with the development build and do the same uploading process, once that is done processing i will send you the send you the URL (sound good?).

1 Like

Ok…

Only minor thing is though, if you fix the issue first, I won’t really get a screenshot which is of any use, as there won’t be an error :wink:

Carry on as you are, and let’s see what happens, its more important you can get passed the error than I have the ability to get a screenshot, I can always recreate in a different way if needs be. :slight_smile:

Privacy & Terms