[HELP] WEB GL builds an empty folder

Hi. I’m trying to compile my game for Web GL. When I hit “build” it starts the build like usual but it seems to be skipping the JS compiler. I made a build successfully and went back to make changes to my script and some particle effects. After that I can not get it to build correctly. It just makes an empty folder.

Morning,

just a couple of questions,
what version of Unity are you using?
any errors in console?
does switching platform to test a PC build work?

Good morning. I am in 2017. No errors pop up. the first time it took a long time to compile. Every other time it flies through. I tried switching back to pc build, saving, shutdown and restart. I get no errors. So the other boo boo I think I did was try to load it on my surface to try it there and I think I have to re insert all my assets now. I learned the hard way not to save to OneDrive also lol…

ok I just reloaded to check everything and it seems to work but I get this in the console window

Hi Aaron,

If you look at the console, top right hand corner, you can see the red warning icon has a 1 next to it. This is most likely something preventing your build from completing.

Have a look through the console and see what the error is. You could click on both the messages and warnings icons to temporarily hide those from the console, thus leaving just the error.

Thank you. It says Facebook Gameroom Dll missing. I’m not sure if I hit something by mistake but I haven’t tried making a facebook build. Does Unity make temp files while building. This seems to be an odd issue. It still skips JS compile.

1 Like

There will be a temp/cached version of the build during the build process.

Happy to take a quick look if you want to zip up the project and share it via a link to Google Drive / Dropbox - or, if it’s under 10mb you can just upload it into a reply.

yes, Ill zip it for you. I have no clue what i did. do you have access to onedrive?

I don’t use Onedrive, but I believe you can pop it on so that itself public and just give me the URL, I can then download from the web etc.

https://1drv.ms/f/s!AreelLBAEHx9dJUp_RishR5WwHw

Here you go. Its a mess lol. I need to clean it up and remove an asset pkg i got from the store. Thanks again

I noticed 2 C# projects named after my pcs. I’m not sure if that holds info that’s keeping me from building. Also in the Library folder there is a Facebook folder and web GL cache. I’m afraid to delete anything

Meow Ball yes?

yes. I made a copy and I’m gonna try to delete the webGL Cache to see if it Fixes anything.

Ok, grabbing it now - it’s very big!

Also, you have other stuff available via that link - just so you know…

yeah, I need to remove an asset package from it. The other stuff in Onedrive is ok. nothing important. I ve got a load screen error somehow I’m looking for right now

Ok, I’m just taking a look at your project now.

I had to removed Lives = 18 from lvl manager load Level (). to fix loading

Hi Aaron,

Ok, firstly, I have to say, that is probably one of the best paddles I have seen in a very long time :wink:

A quick play of the game reveals an error upon the second scene loading, a nullreferenceexception - line 82 of LevelManager - this is related to your LivesSystem (it doesn’t exist at this point).

It took quite a very long time to build, but, given enough time, I did not receive an empty folder. I do have a WebGL build of your game.

When you built it, and selected a folder, did you have a space in the name of the folder?

For example; “meow ball”?

Also - which services have you enabled? I am unable to check at this end because I cannot log in as you, obviously.

Yes I had a space. It was Meow Ball WebGL. I think I clicked on FB somehow. I’m exporting my entire assets pkg and in the export files theres a FB library that I cant see in my assets. I left that out and I’m gonna load my assets into a new project and try again. I’m glad you like it. thank you. I had lots of fun making it. I’m really enjoying this course. I’m glad the N2 Cat Crew guy let me use his music.

What kind of “services” . Is that something that I choose when I click build. All I did was set aspect ratio i believe.

I did spot the FacebookSDK in your /library directory.

I believe this is what is adding the Facebook.Unity.Settings reference within the project;

image

I have a feeling though that your space is also going to be a problem. When I built it I created a folder on my desktop called TOGO, all of the relevant files were built using that name;

image

I don’t think you will get away with the spaces in the folder name.

Try building again without them and see what happens. Make sure you wait a fairly long time though, for me, the Unity editor window instance I had open with your project building in became unresponsive, but I just left it and eventually it finished and created the built version.

When I built it the first time it took a very long time also. I do have a web GL build but its has tons of bugs and bricks left off screen. I fixed all of that and was trying to build again when this happened. by reimporting I was able to leave out all the sprite sheets and prefabs that were in an assets pkg so the file should be considerably smaller this time also. Ill try without spaces this time too. Thanks!

1 Like

Ok, let us know how you get on… time for some :sleeping: for me now :slight_smile: