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 Agent101 · Mar 18, 2013 at 12:57 PM · errorcrashrenderstart

I rendered my game and it crashes when I start it, how can I fix it?

In unity my game would work fine, it would have errors but they weren't fatal but when I rendered the game it would crash when I start it, any suggestions?

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 nsxdavid · Mar 18, 2013 at 04:09 PM 0
Share

If a lot of things depend on that, then you should start by writing a clear and understandable question.

avatar image murkantilism · Mar 18, 2013 at 04:24 PM 0
Share

How are we supposed to help you if you don't provide any info?

"$$anonymous$$y game crashes, help." isn't enough.

Have you tried running the game in the editor? Have you checked the console for any error messages? Do you have any idea where a bug might be in your code, such as an infinite loop?

avatar image robertbu · Mar 18, 2013 at 04:26 PM 0
Share

@nsxdavid is absolutely right. There is no way we can help you with so little information. How did it crash? Hang? Not dispaly? Other? Can you show is the script it is hanging in? See the tutorial video about asking questions on this list.

avatar image Agent101 · Mar 18, 2013 at 09:51 PM 0
Share

sorry I gave little info, It works in the editor of cause and yes I have checked for errors. there is errors in the game but it can still run in the editor, and works exactly how I want it... its only when I have rendered the game it crashes.

avatar image robertbu · Mar 18, 2013 at 10:06 PM 0
Share

Do you have any red errors when you run it in the editor? What platform are you building for? How difficult is it to narrow down the problem (i.e. how many scripts do you have)? What have you done so far to figure out the problem?

Show more comments

1 Reply

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

Answer by robertbu · Mar 19, 2013 at 12:44 AM

You need to fix all the red errors, and it would not hurt to fix all others. It looks like either you've spelled the name of the tag incorrectly or have failed to define the tag 'waypoint'. Capitalization matters. Waypoint != waypoint != waypoints... So that means that when you do:

 wayPoints = GameObject.FindGameObjectsWithTag("waypoint");

You are getting back a list with nothing in it. So when you do attempt to access with wayPoints[rand] you get more errors because are attempting to access information from an empty list. This type of error will typically run in the editor but will crash a device.

A couple of notes:

  • When you post error messages and the code, you need to double click on the error and then add a comment to the line that has the error. The line number in the listing below do not line up with the line numbers in the listing, and knowing what lines the errors occur on is a huge help in figure out what is going on.

  • By posting followup information as answers, your question is now marked as having two answers (though you've not received any answers yet). Having it marked as having two answers makes it far more likely that people answering questions will not look at your question. You can convert your answers below to comments using the 'more' drop-down at the bottom of each answer.

Comment
Add comment · Show 2 · 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 Agent101 · Mar 19, 2013 at 04:50 AM 0
Share

I could not send the script through as a comment because it was over 3000 characters

avatar image robertbu · Mar 19, 2013 at 07:12 AM 0
Share

The original question can be larger than a comment. Edit the original question if you want to add a script later.

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

13 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

Related Questions

Stuck on splash screen android 0 Answers

Build Iphone Issue 0 Answers

Unity Editor silently crashes straight away no error logs 1 Answer

MonoDevelop Crashing On Startup with No Error Message 2 Answers

java.lang.Error running on Android 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