Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by K_zero · Dec 18, 2014 at 01:20 AM · errordatawebuploaddropbox

How to upload a web game to dropbox without errors?

I uploaded my Unity web game (both html and unity3d files) to a subfolder inside my "public" dropbox folder. However, when I middle-click on my html file (to open the file in another tab), the unity player gives this error:

"Failed to download data file"

How can I fix this?

(link: https://dl.dropboxusercontent.com/s/pnujomw81i3umvn/Space_Shooter_1_0.html)

EDIT: Thanks to the community's help, my game now fully functions! Why not try it out?

Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SkaredCreations · Dec 18, 2014 at 01:26 AM 0
Share

Can you provide the link? I'm not having any issues using Dropbox (at least not if I don't use WWW class of course)

avatar image K_zero · Dec 18, 2014 at 01:28 AM 0
Share

Here's the link: https://dl-web.dropbox.com/get/Public/Games/Space%20Shooter%201.0/Space_Shooter_1_0.html?_subject_uid=62482309&w=AADeF$$anonymous$$OsoTXgaJfGgjnY2WkEi4w7-oR$$anonymous$$c0nej6vYiE2N-g

EDIT: Actually, I think that's the wrong one. Here's another link: https://www.dropbox.com/s/pnujomw81i3umvn/Space_Shooter_1_0.html

EDIT: Ok, I don't think I actually know how to provide the link.

avatar image K_zero · Dec 18, 2014 at 01:36 AM 0
Share

Try this one: https://dl.dropboxusercontent.com/s/pnujomw81i3umvn/Space_Shooter_1_0.html

It doesn't work, but it does take you to the game.

EDIT: I put the link in the original question.

avatar image SkaredCreations · Dec 18, 2014 at 02:30 AM 0
Share

Are you sure it's the Public folder? If I try to download the .unity3d file, Dropbox is denying access.

avatar image K_zero · Dec 18, 2014 at 02:48 AM 0
Share

Absolutely, the path to the html and unity3d files is public/games/space shooter 1.0

I tried moving the files directly into the root of the public folder, and the game still had the same error.

I have checked the sharing options for all my folders and subfolders inside Public (including Public itself) and they are all publicly visible.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Bunny83 · Dec 18, 2014 at 03:11 AM

Dropbox has "dropped" the support of public folders (at least for free users)quite some time ago. It's no longer possible to have an old public folder like in the past. Those who still have such an old account can still use it (like myself.)

Those links look different than the new ones:

https://dl.dropboxusercontent.com/u/7761356/UnityAnswers/Web/ExpressionParser/ExpressionParser.html

It's basically just the user ID (which is constant for one user) followed by any directory structure you have inside your public folder. The new public folders have, like @VesuvianPrime guessed right an individual path for each file. It might work if you get the link for your ".unity3d" file seperately and use this link inside you HTML file.

In your HTML file you have a line that looks like:

 u.initPlugin(jQuery("#unityPlayer")[0], "Space_Shooter_1_0.unity3d");

Here you have to exchange "Space_Shooter_1_0.unity3d" with the new public link to your unity3d file. This should work.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image K_zero · Dec 18, 2014 at 03:22 AM 0
Share

I changed the line to this:

 u.initPlugin(jQuery("#unityPlayer")[0], "https://dl.dropboxusercontent.com/s/pnujomw81i3umvn/Space_Shooter_1_0.unity3d");

However, I still have the exact same error upon loading my game from dropbox.

avatar image Bunny83 · Dec 18, 2014 at 03:30 AM 0
Share

@$$anonymous$$_zero: Your link doesn't seem to be correct. Are you sure you obtained that link from the Dropbox website? As i said, you can't just exchange the filename at the end. You should have a different share-id as well. That's why you have to change the URL.

avatar image K_zero · Dec 18, 2014 at 03:48 AM 0
Share

Yeah, I know, I realized that a $$anonymous$$ute or two after posting that last comment, I fixed the error and was about to tell you guys when I had a blackout.

Thanks for all the help, everyone!

avatar image Bunny83 · Dec 18, 2014 at 04:10 AM 0
Share

@$$anonymous$$_zero:
Great it's working now. Are those asteroids actual meshes or just animated sprites? Looks like a mesh to me ;)

ps: You should aim for a smaller window size (actually height only). You can only play it reasonable with a screen resolution height > 1080p with the taskbar hidden ^^. I usually don't have my browser maximized.

What's the standard $$anonymous$$imum resolution i should support with a website (stackoverflow)

If it's just a test upload and it's actually an android or iOS game, just ignore that advice ^^.

avatar image K_zero · Dec 18, 2014 at 04:40 AM 0
Share

@Bunny83: The asteroids are meshes, as are all the objects that appear in the scene.

About the resolution, I actually created this game from a tutorial on the Unity site and I used the same resolution that was used in the tutorial. I generally give my games less window height though.

I also downloaded the models, textures and sounds from a pack made specifically for the tutorial.

avatar image
0

Answer by Kiwasi · Dec 18, 2014 at 03:12 AM

Did you modify the HTML file to point to your dropbox file? The HTML generated by Unity will point to the C drive of your computer. Open it in a text editor, find the .unity3d file name, and adjust the path.

For easier deployment you can experiment with FaceBook or Kongregate. Both will take your .unity3d file with no need for extra HTML.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bunny83 · Dec 18, 2014 at 03:33 AM 0
Share

By default the URL to the unity3d file is a relative path (without domain name or path). A relative path simply uses the same base URL as the HT$$anonymous$$L file that references that file. So usually when both files are in the same folder you don't have to change anything. However as said in my answer the new DB creates a unique share ID for every file. So relative URLs won't work here.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Terrain Modification Script index out of range? 1 Answer

Uploading files to DropBox using UnityWebRequest. 1 Answer

How to save game in a dropbox hosted unity web app? 1 Answer

Does implementing cryptocurrency in game Safe? -1 Answers

how to uninstall asset store tools from project? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges