Unity Web Player
FAILED TO DOWNLOAD DATA FILE
Solution for website admins only
-
Locate the web.config file in your website’s root folder
2. In the web.config file, between the <staticContent> and </staticContent> brackets, write this line of code:
<mimeMap fileExtension=”.unity3d” mimeType=”TYPE/SUBTYPE” />
3. Now the Unity Web Player should work
…
if your problem has the same cause as mine
If you don’t understand where the root folder exists, or where to actually insert the line of code, then skip to 4:36 in this video:
When this has been fixed, the game should load up right away, like the game at the end of the video does. Try it HERE
Pingback: Unity Tutorial - Web Player Failed To Download Data File | Unreal TutorialsUnreal Tutorials
So, how do you find the root folder? Do you actually have to own the website?
You don’t necessarily have to own the website, but you must have administrator-access to the files it’s made up of in order to edit the code in the web.config file. At least this is the case to fix the specific problem I encountered when finding this solution.
Well, that sucks. Since it seems to be a reoccurring issue with fangled.com/game/aog, I figured it would be an easy fix :/ time to go report a bug
pls where i find the webroot pls i cant understand
say the fuck where i can find the root folder
Oh, so you mean you didn’t even have the patience to read 7 or 8 lines of text until you came to the sentence where it says:
“If you don’t understand where the root folder exists, or where to actually insert the line of code, then skip to 4:36 in this video:”
Because, you know, at that point in the embedded video I literally show you where to find it.
My website doesn´t have this file in its root or anywhere else. The configurations of my website is all based on php. I’ve searched inside all of my php files but none of then has this line. You know other way or other place where i can put this line? I even created the web.config file, but it didn’t worked as well.
Hi Ricardo! I’m sorry, but I have no knowledge about php. However, my guess is that if there really is no web.config file in your site’s code, then most likely there’s something else wrong. As far as I know, there are a hundred and one potential different reasons why the Unity Player doesn’t work, and the solution I present here is just one of them.
where i cant find the webroot