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 DelownHill · Jun 03, 2015 at 11:43 AM · c#gameobjectgamerandom

How do I fix these two errors in my Number Wizard Game?

I tried all I could to get rid of these two errors for HOURS!I am sick of it! Every time I delete the Assembly-CSharp.dll file the error goes away.However, whenever I click on a browser and begin watch Unity game instruction videos and come back to Unity(which I never closed out) the same Internal compiler error comes up. In addition, when I looked where I deleted the Assembly file it showed up again in my folders after I deleted it! I even tested to make sure that is what really happening and it's true. So that explains my first issue.

My second issue is when I created a Gameobject and named it NumberWizard just as instructed.Next, I put down Number Wizard.cs as my script which I was also was instructed to do. I'm nearly 100% sure that there is nothing wrong with my code and that is not the cause of the Game object error. However, just in case I provided my script for you to read.So if it is the cause hopefully I will be notified by at least one of you.

using UnityEngine;

using System.Collections;

public class NumberWizard : MonoBehaviour {

 // Use this for initialization
 int max;
 int min;
 int guess;

 int maxGuessesAllowed = 10;

 void Start () {
     StartGame();
 }
 void StartGame () {
     max = 1000;
     min = 1;
     guess = 500;

     max = max + 1;
 }

 public void Guesslower(){
     max = guess;
     NextGuess();
 }
  
 public void GuessHigher(){
     min = guess;
     NextGuess();
 
 }

 void NextGuess () {
     guess = (max + min) / 2;
     maxGuessesAllowed = maxGuessesAllowed - 1;
     if (maxGuessesAllowed <= 0) {
         Application.LoadLevel("Win");

     }
 }

}

Here are the errors I'm struggling with.

GameObject (named 'Number Wizard') references runtime script in scene file. Fixing! UnityEditor.HostView:OnGUI() error

and

Internal compiler error.output was:error CS2015: Source file `Assets/NumberWizard levels_Data/Managed/Assembly-CSharp.dll' is a binary file and not a text file

Thanks in advance!

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by karma0413 · Jun 03, 2015 at 12:41 PM

First, your unity is bugged out somehow. If you have not found any solutions to the .dll bug problem. I would recommend transferring all of you project folders into a safe area and do a fresh install...I TAB back and forth between youtube on chrome, skype, and back into Unity with very little problems on only 4gb ram. In fact, also my work has never randomly crashed.

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 liibanhassan13 · Apr 23, 2016 at 04:06 PM

curly brace

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Object instantiating in a different transform when parent is active 0 Answers

How to respawn an object when collision happens with a different object? 1 Answer

Select a random GameObject (Rain) (C#) 1 Answer

Get Script from gameobject knowing only parent script 1 Answer

Moving GameObject to various position ? 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