Hello, so my game doesn’t seem to be working on IE 9.0 though it works fine on both Chrome Firefox but I have seen Unity games which works fine on IE so I’m guessing I’m missing something, a line of code that I need to add on to the html file maybe? Any help would be appreciated!
Cheers!
sure they don’t work and that it isn’t related to usage of the javascript call functionality in the page?
Well this is what I have on the WebPlayer.html file not including the default HTML coding for the Web Player:
<?php
$app_id = "......";
$canvas_page = "https://apps.facebook.com/the_rsg/";
$auth_url = "http://www.facebook.com/dialog/oauth?client_id="
. $app_id . "&redirect_uri=" . urlencode($canvas_page);
$signed_request = $_REQUEST["signed_request"];
list($encoded_sig, $payload) = explode('.', $signed_request, 2);
$data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true);
if (empty($data["user_id"])) {
echo("<script> top.location.href='" . $auth_url . "'</script>");
}
else {
$pageContent = file_get_contents('http://graph.facebook.com/' . $data["user_id"]);
$parsedJson = json_decode($pageContent);
$user_id = $parsedJson->id;
$use_name = $parsedJson->name;
session_start();
$_SESSION['UserID'] = $user_id;
}
$IDexists = "false";
$db = mysql_connect('localhost', '...', '....') or die('Could not connect: ' . mysql_error());
mysql_select_db('...') or die('Could not select database');
//$hash = $_GET['hash'];
//$secretKey=".....";
//$real_hash = md5($UserID . $Level . $CheckpointsArray . $secretKey);
//if($real_hash == $hash) {
$query = "SELECT * FROM `RSG_SaveData` ORDER by `UserID` DESC LIMIT 5";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
$num_results = mysql_num_rows($result);
for($i = 0; $i < $num_results; $i++) {
$row = mysql_fetch_array($result);
if ($row['UserID'] == $user_id) {
$IDexists = "true";
}
}
if ($IDexists == "true") {
}
else {
// Send variables for the MySQL database class.
$query_third = "INSERT INTO `RSG_SaveData`(`UserID`, `UserName`, `Level`, `CheckpointsArray`) VALUES('$user_id', '$use_name', '$Level', '$CheckpointsArray')";
$result_third = mysql_query($query_third) or die('Query failed: ' . mysql_error());
}
?>
I’m not really sure what’s wrong 
try it with the generated html, its impossible to say anything from this DB fetch mess as the outcome counts not what you ‘push in’ 
and not including the default html is fine but you will not really get around using the default js, either the one only or a copy of it, unsure what you feed there into the script so I wanted to mention it
Lol 
Well the generated html is already there I mean of course, I just meant I didn’t include it in the post 
But yeah I just removed all that code tried it just only the generated HTML it still didn’t work, keeps saying “Invalid data file: Data file is corrupt or not a Unity Web Player file”.
that sounds like a webserver error normally
without the html its hard to say, potentially you cut the IE relevant code blocks ‘for the fun of it’ and get these problems therefor
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Unity Web Player | WebPlayer</title>
<script type="text/javascript" src="UnityObject.js"></script>
<script type="text/javascript">
<!--
function GetUnity() {
if (typeof unityObject != "undefined") {
return unityObject.getObjectById("unityPlayer");
}
return null;
}
if (typeof unityObject != "undefined") {
unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 720, 600);
}
-->
</script>
<style type="text/css">
<!--
body {
font-family: Helvetica, Verdana, Arial, sans-serif;
background-color: white;
color: black;
text-align: center;
}
a:link, a:visited {
color: #000;
}
a:active, a:hover {
color: #666;
}
p.header {
font-size: small;
}
p.header span {
font-weight: bold;
}
p.footer {
font-size: x-small;
}
div.content {
margin: auto;
width: 720px;
}
div.missing {
margin: auto;
position: relative;
top: 50%;
width: 193px;
}
div.missing a {
height: 63px;
position: relative;
top: -31px;
}
div.missing img {
border-width: 0px;
}
div#unityPlayer {
cursor: default;
height: 600px;
width: 720px;
}
-->
</style>
</head>
<body>
<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>
</div>
</body>
</html>
That’s the Unity generated HTML just as I am using it no changes made to it.
Hey, I still can’t figure this out on top of this, I just found a new error as well, I had such an old version of Firefox, like V 3. something it working perfectly fine but when I updated FF to 8.0 the latest it wasn’t working on that properly either, it loads around half way or so(Different lengths everytime I try) I keep getting an error which says “Bad file length” but unlike IE it starts to load where in IE it doesn’t even start to load just says Corrupt data file so apparently now my game only properly works on Chrome! This sucks really! 
Oh just FYI, if you want to try it out, this is the URL for my game: http://apps.facebook.com/the_rsg/