Host unity3d/html files on separate servers?

can i host the .unity3d file and the page that plays it on different servers?

i kinda have a maze maker but i wanted to see if i could play it with unity. i cant host the .unity3d file on the web host and i asked and they said they would not allow it. the database is on the web host and it would be a pain to transfer everything and even if i did i would not be able to transfer the mazes. if i need to could i maybe find another web host but i dont want to make mazemaker again.

also if i DID do this would i be able to access the data in the databse or would they have to be on the same server?

You know that the unity3d file never runs on the webhost at all, do you?
It will run on the local computer of the player so they can not access the DB anyway, the access to the db is normally done through WWW and a php file on the server.

Also you don’t need any help from the webhost to host the game. put the html and unity3d file up and it should work (unless its a windows host, then you might need to expand your own environments MIME types)

i believe he is implying that his webhost has a strict filetype allowance, meaning files that aren’t basic html/php/css might not be allowed by default.

If you open the HTML file unity generates and find all instances (should be 2 I think, both in the head and the body - one each)of:

value="game.unity3d"

THAT is what is calling your game data.

You can host that HTML on any site and just edit:

value="game.unity3d"

With the above values, it looks in the root dir of the html file - or, right next to itself.

If your site is http://yoursite.com, and you want that file to be hosted on another site like google for example if you could upload it there, you would upload to, say, google.com/game/game.unity3d

then, you would update the HTML on yoursite.com to look like this:

value="http://google.com/game/game.unity3d"

So, that is your “path to the file”, no matter what site it is hosted on. Locally, it won’t need http://www.yoursite.com/, but remotely, you need to include all of that so that the browser knows to look outside of your domain for this element of the page, in this case, your game object.

Works on any and every embedded file, but I haven’t tested this. It’s basic embed source though, so it should work easily.

so could i use the variable data used to store the mazes on my site to alter what walls load in the game (at run time)(no need to get data from the server after the game is loaded)? and will it work with the game one a different server?

and can someone tell me how to get variable date from the site and use it in the game? (again to determin what cubes load to form walls and what cubes dont to form passages.)

oh and also i know it is posible to make the game communicate with the server. fusionfall does it all the time to save everyones location and to save who has what items.