Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Web Player through dropbox link?

Discussion in 'Editor & General Support' started by Littlenorwegians, May 4, 2012.

  1. Littlenorwegians

    Littlenorwegians

    Joined:
    Dec 14, 2011
    Posts:
    41
    Hi, so I need help with something.
    I've seen people link their games through a dropbox address and I want to do that with my game.

    Looking around, but I'm finding no proper and easy answers as of yet. Please, help.
     
  2. npsf3000

    npsf3000

    Joined:
    Sep 19, 2010
    Posts:
    3,830
    Put the webplayer folder in your db public folder.

    Right click the html doc in that folder, go to Dropbox -> Copy public link.

    Paste link in web-browser... and enjoy.
     
    Okido likes this.
  3. Littlenorwegians

    Littlenorwegians

    Joined:
    Dec 14, 2011
    Posts:
    41
    Thanks. Seem to be working.
     
    Last edited: May 4, 2012
  4. CreepyGnome

    CreepyGnome

    Joined:
    Oct 10, 2009
    Posts:
    9
    This doesn't seem to work anymore, I tried this on my Mac with Dropbox and when you go to the public link it just shows you the HTML in a dropbox viewer.

    Is there something else that has to be done?
     
  5. CreativeChris

    CreativeChris

    Unity Technologies

    Joined:
    Jun 7, 2010
    Posts:
    457
    You do have the .unity3d file in the same location as the html file right?

    Thanks,
    Chris
     
  6. Deleted User

    Deleted User

    Guest

    you have to place your .unity3d file along with the exported html in the public folder of dropbox

    it does work , i even used to host a simple website on dropbox , anything that is just client side works only server side stuff doesnt
    it just has to be in the public folder
     
  7. alexthan13

    alexthan13

    Joined:
    Jul 1, 2012
    Posts:
    19
    its not work.... $χωρίς τίτλο.jpg
     
  8. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    you need to upload the html and the unity3d file, not the desktops 'background and other color' configuration file (desktop.ini)
     
  9. alexthan13

    alexthan13

    Joined:
    Jul 1, 2012
    Posts:
    19
    $χωρίς τίτλο.jpg $χωρίς τίτλο.jpg what about this?
     
  10. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,663
    You need to put your Webplayer.html and Webplayer.unity3d-file in this location, not your desktop.ini and the npUnity3D-thing.
     
  11. alexthan13

    alexthan13

    Joined:
    Jul 1, 2012
    Posts:
    19
    i install the player,the installer put the files in this location:C:\Documents and Settings\ user name\Local Settings\Application Data\Unity.inside this ,there are 2 folders,temp and web player.i search inside but i cant find that you ask.where else i can look to?
     
  12. solomillo

    solomillo

    Joined:
    Jan 6, 2013
    Posts:
    2
    you were doing it ok, but public dropbox folders are no longer public since several months ago, to get a public ,public folder you need to look for it here:

    https://www.dropbox.com/help/16/en

    I had the same problem, the folder sould show the earth inside.
     
  13. Fredrum

    Fredrum

    Joined:
    Jan 12, 2013
    Posts:
    14
    Hi,

    I am also trying to add a webplayer export to Dropbox as a friend of mine suggested this is a good way to let others test your stuff.
    I followed the above link to create a 'Public' folder (with the earth Icon) but when I give Chrome the url the 'game' does not start.
    The browser asks me to install Unity Web Player but I already have that installed and it is working fine when the files are on disk.

    Anyone has any luck with this?

    Cheers
    Fred
     
  14. iTweak0r

    iTweak0r

    Joined:
    Feb 28, 2013
    Posts:
    1
    and for me the page shows up but it says Unity 3D File Not Found

    EDIT: Oh, never mind, I just had to change the HTML to add the new DropBox link.
     
    Last edited: Mar 2, 2013
  15. Maklaud

    Maklaud

    Joined:
    Apr 2, 2013
    Posts:
    551
    Guys, I have the same problem. I have read a few topics and instructions, but it doesn't work.
    I uploaded my html and unity3d files to DropBox, updated link to the game in the html file (tried both https and http, file name with and without spaces). Then I try to open my file in different browsers (where I logged on and not logged on) - it doesn't work. I also tried not to insert the link to the unity3d file in the html file, just used it's name - the same result.
     
  16. Maklaud

    Maklaud

    Joined:
    Apr 2, 2013
    Posts:
    551
    No ideas? Does anybody use DropBox for their Unity games? How do you install them? Is there a really workable instruction?
     
  17. Eyeofgod

    Eyeofgod

    Joined:
    Jun 25, 2010
    Posts:
    126
    What I do is exactly the same as everybody:

    1. Create a public folder
    2. Upload to that folder the .html and the .unity3D
    3. Get the public url of the HTML

    I have done all this steps directly from the Dropbox web
     
  18. Maklaud

    Maklaud

    Joined:
    Apr 2, 2013
    Posts:
    551
    But it's impossible now to make a public folder. It's only possible to create a folder and make it public for some particular users, using their mails...
    How do you create a public folder?
     
  19. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,462
    FYI you also have to remove the "s" in "https://" so that it reads only "http://" by default it copies the public link as a secure link and never works right for the webplayer.
     
  20. Maklaud

    Maklaud

    Joined:
    Apr 2, 2013
    Posts:
    551
    It doesn't help me. What I did:
    1. Created a folder.
    2. Made it public (buy sharing access to my mail only, because now it's impossible to share it to everybody in the DropBox).
    3. Uploaded my .html and .unity3d files to this folder. The .html file contains a line:

    u.initPlugin(jQuery("#unityPlayer")[0], "Web.unity3d");
    And the .unity3d lays in the same folder.

    4. Then I copy the link to the .html file, remove 's' from the 'https' and try to open it in another browser, where I'm not logged in the DropBox. Then I'm supposed just to download the file, nothing else.

    I expect a bit different behavior - I open the link and Unity Web Player starts to load the file and play the game. But I can't do that.
    I've also tried to change the line above and specify a full path to the .unity3d file - I have an error. So after I upload my files to the DropBox folder, I can't play the game at all...
     
  21. MihaPro

    MihaPro

    Joined:
    Dec 23, 2010
    Posts:
    13
    For some countries Dropbox limit the use of Public folder. Appropriately of there not start script for Unity web-player.
     
  22. achingupta87

    achingupta87

    Joined:
    Apr 9, 2012
    Posts:
    144
  23. BigDaz

    BigDaz

    Joined:
    Apr 8, 2013
    Posts:
    54
    Thanks mate :)
     
  24. ytwithlove

    ytwithlove

    Joined:
    Mar 14, 2013
    Posts:
    26
    Hey guys! I've been having this problem myself and figured out how to get the link to work. I've had a Dropbox account for a while so I already had the public folder set up. Hopefully the link achingupta87 posted can help you get the public folder set up if one isn't already available in your account.

    Anyway, here are the directions I wrote up on how to get the link to work for a wordpress.com site. I made them simple enough for me to understand for those times when I will most likely try to do this while sleep deprived - which will probably be often. Hope this helps! :)

    How to Create a Link to a Unity3d Web Player Game to a WordPress.com Blog
    1. Login to Dropbox
    2. Create a folder for your game and upload the files to the folder
    3. Click the Dropbox icon to go back to the root level of your account
    4. Click the Public folder and create a folder for the game you want to show
    5. Click the newly made folder and upload the html and unity file for the web player version of the game
    6. After the files have uploaded select the html file in the list by clicking on the far right of the row. A small menu will appear above the file list
    7. Click Copy Public Link then click copy to clipboard button to copy the link (there is also a link to shorten the url to be copied instead at the top right of the window)
    8. Create the link in the WordPress post, click preview and test the link to make sure it works
    9. Publish the post for public view
     
  25. BitNied

    BitNied

    Joined:
    May 28, 2014
    Posts:
    1
    Did Dropbox stopped working as a Unity Web Player? Here's what I did:
    1. Exported my game as a web player | 2. Put it on dropbox in a public folder | 3. Copied the link of the HTML file.
    But when I put the link on browser (tested on Chrome and Safari), the player doesn't starts. It just gives me the option to download the HTML file fo my game. Can someone help me, please? Thanks!
     
  26. Patico

    Patico

    Joined:
    May 21, 2013
    Posts:
    886
    I'm interested too. Dropbox does not open my .html file, and just propose me to download it... How to fix it? I saw some demo games that use dropbox as simple hosting.
     
  27. glennseso

    glennseso

    Joined:
    Nov 11, 2011
    Posts:
    34
    Hi, i got this working doing this:

    1 - upload the files

    2 - right click in html file and copy the shared link, in instance
    "https://www.dropbox.com/s/kj543haauguh2l8/test.html?dl=0"

    3 - Replace the "https://www.dropbox.com" part for "https://dl.dropboxusercontent.com" and remove the "?dl=0", so the url will be:
    https://dl.dropboxusercontent.com/s/kj543haauguh2l8/test.html
    This will load the page but the unity3d file won't play yet.

    4 - Copy the shared link for your unity3d file, in this case
    "https://www.dropbox.com/s/r6r4tsqaqfdp0iz/test.unity3d?dl=0"
    and repete the same processe above, changing the url by "https://dl.dropboxusercontent.com//s/r6r4tsqaqfdp0iz/test.unity3d"

    5 - Open the html page in a text editor, like notepad and replace the line
    u.initPlugin(jQuery("#unityPlayer")[0], "test.unity3d");
    by
    u.initPlugin(jQuery("#unityPlayer")[0], "https://dl.dropboxusercontent.com//s/r6r4tsqaqfdp0iz/test.unity3d");
    and it's done.

    Now you can share your url https://dl.dropboxusercontent.com/s/kj543haauguh2l8/test.html
    You can just update the unity3d file to avoid need to do everything again for future releases.
     
  28. Jonathan-Bro

    Jonathan-Bro

    Joined:
    Apr 11, 2013
    Posts:
    35
    Thank you glennseso!
    Worked like a charm!
     
  29. sir_luke

    sir_luke

    Joined:
    Aug 19, 2014
    Posts:
    46
    thankyou @glennseso, you really saved me a couple of headaches ;)
     
  30. subGlitch

    subGlitch

    Joined:
    Jan 27, 2015
    Posts:
    23
  31. EDevJogos

    EDevJogos

    Joined:
    Jul 24, 2014
    Posts:
    75