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
0
Question by Conect11 · Mar 15, 2014 at 01:22 AM · androidapplication.loadlevelouya

Game doesn't move to next scene on Ouya

Hello everyone,

Well, after months of developing my game, hundreds of hours of playtesting, coding, bugtesting, fixing, and then porting to Android I thought I'd still have some hurdles, but not the kinds I'm having. Welcome to coding, I suppose.

I'm trying to develop for the Ouya, and am having a strange issue. My game goes Splash Screen - Main Menu - (if select new game) - Are you sure screen - (If Yes) Intro. Now, when going from Are You Sure to Intro a command is inserted to delete PlayerPrefs and install new ones. (script below) In Windows, everything works fine. On the Ouya, however, when the player selects new the music for the intro begins, but the scene never changes, and after the intro would have ended (estimated guess based on the music's playthrough) the entire thing crashes. Now, am prepared to deal with it crashing when the gamescene starts, but the intro scene makes no sense, as it's just slides and music. I don't know if it's the Playerprefs commands that have something to do with it, or the limits of the Ouya itself. Any help is greatly appreciated. Thanks, and God bless.

EDIT:

Ok, well I've been able to locate WHAT is giving the Ouya nightmares, but not WHY.

After playing around with what scenes the player was sent to I determined that the PlayerPrefs commands were not the problem. Instead, my introslidechanger script is the culprit. I figured this out by sending to a different scene without it, with no issue. I then sent the player to another scene that held (and only held) a functionally identical script, and the same exact thing happened. It's not Playerprefs. Those are fine. It's the intro slide changer. Just not sure WHY. So here's what I've got: The player goes into the scene and there's supposed to be a background. After a few seconds, the camera fades out, the background is replaced with another background, the camera fades back , rinse, repeat. Somewhere in there the Ouya isn't liking something.

EDIT 2:

Maybe a Eureka! moment =)

Got the debugger working, and it started throwing up an error from my inventory script.

My inventory script? That's weird, we're not even in game yet. This is just the intro.

Hold on... I made a placeholder that contains the inventory script, which Playerprefs accesses in preparation for game start. The menu chooser is functionally identical, meaning the inputs used for the menu chooser are EXACTLY THE SAME as the ones in the inventory script. Meaning that if I have to press "Action" to make a choice in the menu chooser, something is being chosen from the inventory script as well...

Which is probably leading to a stack overflow... or something....

So I'm thinking the answer lay in making the placeholder into a prefab, and simply moving it to another scene...

Intro Slide Changer, just in case it might be that

 var BG1 : GameObject;
 var BG2 : GameObject;
 var BG3 : GameObject;
 var BG4 : GameObject;
 var BG5 : GameObject;
 var BG6 : GameObject;
 var BG7 : GameObject;
 var BG8 : GameObject;
 var BG9 : GameObject;
 var BG10 : GameObject;
 var BG11 : GameObject;
 var BG12 : GameObject;
 var BG13 : GameObject;
 var BG14 : GameObject;
 var BG15 : GameObject;
 var BG16 : GameObject;
 var Cam1 : Camera;
 
 
 
 function Start () {
 yield WaitForSeconds(8.0);
 Cam1.SendMessage("fadeOut");
 yield WaitForSeconds(3.0);
 BG1.active = false;
 BG2.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut"); 
 yield WaitForSeconds(3.0);
 BG2.active = false;
 BG3.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut"); 
 yield WaitForSeconds(3.0);
 BG3.active = false;
 BG4.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut");
 yield WaitForSeconds(3.0);
 BG4.active = false;
 BG5.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut");
 yield WaitForSeconds(3.0);
 BG5.active = false;
 BG6.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut");
 yield WaitForSeconds(3.0);
 BG6.active = false;
 BG7.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut"); 
 yield WaitForSeconds(3.0);
 BG7.active = false;
 BG8.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut");
 yield WaitForSeconds(3.0);
 BG8.active = false;
 BG9.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut");
 yield WaitForSeconds(3.0);
 BG9.active = false;
 BG10.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut");
  yield WaitForSeconds(3.0);
 BG10.active = false;
 BG11.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut");
  yield WaitForSeconds(3.0);
 BG11.active = false;
 BG12.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut"); 
 yield WaitForSeconds(3.0);
 BG12.active = false;
 BG13.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(20.0);
 Cam1.SendMessage("fadeOut");
  yield WaitForSeconds(3.0);
 BG13.active = false;
 BG14.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut");
  yield WaitForSeconds(3.0);
 BG14.active = false;
 BG15.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut");
  yield WaitForSeconds(3.0);
 BG15.active = false;
 BG16.active = true;
 Cam1.SendMessage("fadeIn");
 yield WaitForSeconds(12.0);
 Cam1.SendMessage("fadeOut");
  yield WaitForSeconds(3.0);
 Application.LoadLevel(6);
 }
 
 function Update () { 
 if(Input.GetButtonUp("Action"))
   Application.LoadLevel(6);
     {
     }
 }
Comment
Add comment
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 Reply

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

Answer by Conect11 · Mar 19, 2014 at 04:01 AM

all that, and it was the font size. The freaking font size. Ugh.

=)

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

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

20 People are following this question.

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

Related Questions

Main camera zoom, rotation, position (android) 0 Answers

Ouya iap help BCE0017 0 Answers

Solving a crash with help from logcat 0 Answers

How to read "mp3" or "other Audio" file from SDcard in runtime 0 Answers

Strange GUITexture prefab problem with pixelInset.width 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