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 RingOfStorms · Jan 05, 2011 at 07:19 AM · playerwebplayerwebftp

Ive spent 3 hours on this x.X

Ok so I am using the 000webhost thing and am trying to put up a game just to see if it works. This is my first time ever trying to get a game onto the web, and I am epicly failing. SO basically I'm using the SmartFTP client. I also have my html and unity file ready to upload. so from there under the first folder, I created a folder named "web_unity." I continued to up load my html and unity files. These are named:
Html file is~ "web_player.html"
Unity file is~ "WebPlayer.unity3d"

After this I got extremely lost. I am not sure how to link the file or whatever in my website. I also tried my:
"www.websitename.site50.net/public_html/web_unity/web_player.html"
I physicaly worte that into the URL and it only brought me to my homepage. so basically my question(s) are.

Should I have made the second folder ("web_unity") to place my files into?

If the above answer is "It doesn't matter." then how do I access my Unity Game?

Also,if your answer is to delete everything else and only have the unity files in the "public_html" then how could I find a way around this. because I want a functional site, that you can browse through, then click the video game tab, and then click the link to the game which will let you play it.

My websites name is:
http://www.inkproductions-ringofstorms.site50.net/

If you click video game trails in the tab menu, you will see very little, with a link that says first test. In my mind, you click on it, then it should bring up the web_player.html file, and your gaming. But it just redirects you to the home page, and if you l ook at your URL, it says its ~
http://www.inkproductions-ringofstorms.site50.net/public_html/WebPlayer/WebPlayer.html
Instead of the regular hoem page of~
http://www.inkproductions-ringofstorms.site50.net/

Thanks for all of your guy's help in advance!

Comment
Add comment · Show 1
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 · Jan 29, 2011 at 02:34 AM 0
Share

You really should read the FAQ! Don't post comments as answers and your title isn't a question. If you have new information related to the question, edit your post! This is not a forum to run a discussion with answers. Read the FAQ! http://answers.unity3d.com/faq

7 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by kici · Jan 05, 2011 at 08:45 AM

Um, it doesn't matter where you put the files as long as they're out for the public.

You're problem is somewhere with the website.

My suggestion will be to find where you're index.php is and all of those and than put the WebPlayer.html there, and than try loading that,,, if it still doesn't work, its something from your website, hosting or what ever that automatically redirects you back to the homepage.

Comment
Add comment · 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
0

Answer by efge · Jan 05, 2011 at 08:50 AM

Maybe you have to rename your WebPlayer.html to index.html when stored in a seperate (not root) directory.

In your html code there is something like this:

if (typeof unityObject != "undefined") {
  unityObject.embedUnity("unityPlayer", "YourGame.unity3d", 1000, 600, params);
}

Check for the right name of the ".unity3d" file. It should be stored in the same directory as the html file.

Comment
Add comment · 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
0

Answer by RingOfStorms · Jan 05, 2011 at 01:34 PM

Hey I'm not sure what I'm doing wrong, I have tried both suggestions, and neither worked. Is there a special way on how to link to the page? I'm am not an expert in html formating, only know the basics.

Comment
Add comment · 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
0

Answer by Landern · Jan 05, 2011 at 09:58 PM

I found your web player html @ http://www.inkproductions-ringofstorms.site50.net/webplayer.html

Using the public_html in the path is making images not be found, i couldn't find the webplayer.unity3d file, so i would make sure it's located in the same folder/directory as the webplayer.html. Also on line 15:

unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 600, 450);

is the literal name ("WebPlayer.unity3d") of the packaged unity 3d built, make sure that is in the same folder that the case is correct for the file name if it's there, some servers are case sensitive some are not.

hope that helps a little.

Comment
Add comment · 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
0

Answer by RingOfStorms · Jan 05, 2011 at 11:27 PM

ok so I renamed it and thanks for finding that, your great, now is the 600,450) something important or is that just like the size of the Unity Preview Box?

Edit:

On a side note, i changed it and put it into its own folder, so you have to change ur url to this now.. http://www.inkproductions-ringofstorms.site50.net/unity/game1.html

Also, it is still not playing the game, I did rename the unity3d file, but it still just shows a download link for the Unity Web Player

Comment
Add comment · 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
  • 1
  • 2
  • ›

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

No one has followed this question yet.

Related Questions

Change Web Player Size? 1 Answer

web player overlays HTML layers 2 Answers

Web Player Disable Mouse Look 1 Answer

Error installing WebPlayer 1 Answer

Failed to Update Unity Web Player on multiple browsers 0 Answers


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