I have tried to edit html file of web build but than my player always stops playing. It shows “Error bad file length”.
I have tried to put simple text with
I have tried to edit html file of web build but than my player always stops playing. It shows “Error bad file length”.
I have tried to put simple text with
You can do that. The error message seems to be a different issue.
Here is my html. I left everything as it is, I only inserted lines 16 trough 20.
My page works for few hours. But when I try to load it a little later I get an error and a web player wont start up.
<body>
<p class="header"><span>Unity Web Player | </span>Game</p>
<div class="content">
<div id="unityPlayer">
<div class="missing">
<a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now!">
<img alt="Unity Web Player. Install now!" src="http://webplayer.unity3d.com/installation/getunity.png" width="193" height="63" />
</a>
</div>
<div class="broken">
<a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now! Restart your browser after install.">
<img alt="Unity Web Player. Install now! Restart your browser after install." src="http://webplayer.unity3d.com/installation/getunityrestart.png" width="193" height="63" />
</a>
</div>
</div>
<h1>Star Cadet</h1>You
fly an airplane and try to destroy your enemies. There are still no
objectives but you can fight against three airplanes and two armored
vehicles. If you come too close to the airplanes they will try to chase
you and shoot you down.
Controls:
mouse - control airplane
left click - fire
</div>
<p class="footer">« created with <a href="http://unity3d.com/unity/" title="Go to unity3d.com">Unity</a> »</p>
</body>
“Error bad file length” means the unity3d file your webpage loads has not downloaded successfully. As @Dantus says, this is unrelated to your web page coding.
Hmm, but when I don’t change html it works fine. I have put my html text in