Build Settings

I am using unity 4.6. & Windows 10. When I go to the build setting and build my game it build an HTML file. I compress the file into a zip then upload it to GameBucket. However the game doesn’t work. I have also tried to place the HTML file into another folder and then zip that folder and upload it. Still doesn’t work. The screen below is what persists. I am using Firefox.

Game Link: Game

Hello @X-lem,

What’s the URL for your game on GameBucket?

Are you sure it doesn’t work? I’m using Firefox as well, and usually I have to wait a few minutes until a game on Gamebucket.io starts. Perhaps you might want to share a link?

Updated post

First thing I get prompted with:

Second thing;

and then, the same as you…

Using Version 50.1.0 - I did however have to test this several times as Firefox apparently likes being restarted to make all of its incremental changes, in my case from version 47…

It might be worth trying to publish via Itch.io also just as a test to see if GameBucket.io is having issues again, probably not in this case though.

The older version of Unity use the WebPlayer which has lost support on most new browsers now. The newer alternative is building via WebGL, but that won’t be an option for you until you move to Unity5 - you do come to this in the course, so if you are unsuccessful getting this to work, then I would recommend moving to Unity5 in due course and then upgrade these projects to that version, build in WebGL and republish to GameBucket.io / Itch.io.

I have also read that for 32bit plugins you need to run the 32bit version of Firefox, although I have yet to determine where I can tell which version is running, I only use Firefox to try to test peoples games on here which are not made with WebGL! :slight_smile:


Updated Tue Jan 17 2017 22:16

Also, I just had a dig through the source on that page and can see the full URL for your game;

<iframe id="game" src="https://gamebucket-io.s3.amazonaws.com:443/GAMES/0931cf6c-4216-465e-9dea-be97bb5bd957/Brick%20Breaker%20Game/Brick%20Breaker%20Game.html"

I see that there are spaces in the title (indicated by the %20 being repeated etc)… try removing these and republishing, I think I saw a mention of someone else having issues because of spaces, this may not solve it obviously but worth trying.


Updated Tue Jan 17 2017 22:25

I just grabbed someone else’s game, a Text101 game which is also published to GameBucket.io, it also has spaces in it’s title/url and appears to be running loading in the WebPlayer installed in my instance of Firefox, so that pretty much rules out my “bit” version, the Firefox browser, the spaces in the title/url…

It might be worth trying to republish it and see if you get a different result, or, if you can, share it via Dropbox or something briefly and let me see if I can run it locally myself?

I have tried republishing it several times with the same result. Are you wanting the build file or for me to export my whole game and share it via Dropbox?

It would be easier if you could do the whole project so I can try buildig it at this end too.

Doesn’t have to be Dropbox obviously, anywhere where I can download it as a zip file…

I have uploaded to dropbox

Here

Grabbing it now… just syncing across…


Updated Tue Jan 17 2017 22:46

Got it… will take a look now…


Opened it up and upgraded it to Unity5 (only version I have installed) - a fair few warnings but nothing to stop it running. Ran it in the Unity Editor without problems (few minor games issues but that’s a separate issue)… decided to build it for WebGL… that was at least 5 minutes ago and the CPU has been maxed out at 100% since… hard drive light is constantly on… fan in over drive… something isn’t quite right here :slight_smile:


Updated Tue Jan 17 2017 23:09

Ok - it’s just finished… wow… that was quite epic!

Trying to upload the WebGL version to GameBucket.io for you…


And here we go @X-lem

Works in Chrome:
http://www.gamebucket.io/game/93be3a3c-86f4-41cc-98bf-9886f09bcb7a

Grey screen takes around 20-30 seconds to disappear before it kicks in, or at least, did here…

Hope this is of help - you can share this link now instead… would definitely recommend moving to Unity5 as and when you can :slight_smile:

Thank you for your help I appreciate it a lot! Any idea as to why it wasn’t working from Unity 4?

1 Like

Not entirely sure. In an ideal world I’d have built it locally using the same version as you and then tried to upload that.

It’s quite an old version now though to be honest, it would have taken too much time to have all the videos re-recorded for Unity5 but the team did add various extra resources and bits of info so that you could upgrade your projects to Unity5, I believe they go through some of the differences as a few things have changed.

Incidentally, when you die, you get the game over scene and there’s no obvious way to get back to the menu, I noticed two little blue dots at the bottom in the middle of the screen, when I clicked on that I got back to the menu, maybe I needed to run it in full screen mode to see that option more easily.

Anyway… the main thing is that it wasn’t your code :wink:

Like your music and the colours that you have used, nice start scene also - well done. :slight_smile: