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 logang · Feb 19, 2013 at 11:46 PM · javascripterrorcompiler

Got A error and dont know how to fix it

Okay so I am kinda new to java. i started a main menu script and some error came up and i do not know how to fix it. thanks i will post the code but its long and if you want you can have it. that is if you can fix it lol

Internal compiler error. See the console log for more information. output was:BCE0011: An error occurred during the execution of the step 'Boo.Lang.Compiler.Steps.EmitAssembly': 'Empty name is not legal Parameter name: fullname'.

HERES THE CODE:

 var GameName         =     true;
 var StartGame2D     =     true;
 var INFO2D             =     true;
 var WorldSelect2D     =     true;
 var StartGame3D     =     true;
 var INFO3D             =     true;
 var WorldSelect3D     =     true;
 var game3D           =     true;
 var text3D            =    true;
 
 //Game name and left right text
 var gamename         = "GameName";
 var TextRight        = "3D";
 var TextLeft        = "2D";
 
 //Menu text
 var TOPLeftText            = "Start Game";
 var MIDLeftText            = "World select";
 var BOTLeftText            = "INFO";
 var TOPRightText        = "Start Game";
 var MIDRightText        = "World select";
 var BOTRightText        = "INFO";
 
 private var info2D             =    false;
 private var info3D          =    false;
 private var backInfo2d        =     false;
 private var backInfo3d        =     false;
 
 function Start () {
     
     //vars
     GameName = true;
     StartGame2D = true;
     INFO2D = true;
     WorldSelect = true;
     GameName = true;
     StartGame2D = true;
     INFO2D = true;
     WorldSelect = true;
      
      //private vars
      info2D             =    false;
      info3D          =    false;
      backInfo2d        =     false;
      backInfo3d        =     false;
 
 }
 
 function OnGUI () {
 
     if(text3D == true) {
     
         GUI.Label (Rect(140, 70, 50, 50), "" + TextLeft);
     
     }    
     
     if(game3D == false) {
 
          StartGame3D     =     false;
          INFO3D             =     false;
          WorldSelect3D     =     false;
     }
     
     //2D game Text
     
     if(GameName == true) {
 
         GUI.Label (Rect(550, 70, 50, 50), "" + TextRight);
         GUI.Box (Rect(250, 10, 250, 35), "" + gamename );                    //Game name 
         GUI.Box (Rect(50, 50, 600, 500), "" );                               //Big Box for menu text
     
     }
     if(StartGame2D == true) {
     
         if(GUI.Button (Rect(100, 100, 100, 50), ""+ TOPLeftText)) {            //START GAME
     
             Application.LoadLevel(2);    
     
         }
     }
     
     if(WorldSelect2D == true) {
     
         if(GUI.Button (Rect(100, 200, 100, 50), ""+ MIDLeftText)) {            //WORLD SELECT
         
         //Makes Text go away ontill you click back
             GameName         =     false;
              StartGame2D     =     false;
              INFO2D             =     false;
              WorldSelect2D     =     false;
              StartGame3D     =     false;
              INFO3D             =     false;
              WorldSelect3D     =     false;
              
             GUI.Label (Rect(550, 70, 50, 50), "" + TextRight);
             GUI.Box (Rect(245, 10, 210, 35), "" + gamename );    
             ////////////////////////////////////////////////////////////////////////////////////////////////////////START HERE
             if(GUI.Button(Rect(650, 200, 50, 50), "back")) {
         
                 GameName         =     true;
                  StartGame2D     =     true;
                  INFO2D             =     true;
                  WorldSelect2D     =     true;
                  StartGame3D     =     true;
                  INFO3D             =     true;
                  WorldSelect3D     =     true;
                  info2D          =    false;
                  backInfo2d         =    false;
             
         
             }
             
         }
     }
     if(INFO2D == true) {
         
         if(GUI.Button (Rect(100, 300, 100, 50), "" + BOTLeftText)) {                    //INFO
     
         //Makes Text go away ontill you click back
             GameName         =     false;
              StartGame2D     =     false;
              INFO2D             =     false;
              WorldSelect2D     =     false;
              StartGame3D     =     false;
              INFO3D             =     false;
              WorldSelect3D     =     false;
              info2D          =    true;
              backInfo2d         =    true;
         
         }
     
     }
     
     
     
     //3D game Text                                                            //3D
     if(StartGame3D == true) {
     
         if(GUI.Button (Rect(500, 100, 100, 50), ""+ TOPRightText)) {
     
         
         
         }
     }
     
     if(WorldSelect3D ==  true) {    
         
         if(GUI.Button (Rect(500, 200, 100, 50), ""+ MIDRightText)) {
     
     
     
         }
     }
     
     if(INFO3D == true) {
         
         if(GUI.Button (Rect(500, 300, 100, 50), ""+ BOTRightText)) {
     
         
     
         }
     }
     
     if(info2D == true) {
     
         GUI.Box (Rect(100, 100, 600, 100), "");
         GUI.Label (Rect(125, 125, 550, 50),"" + gamename + ": Is a packed fun 2D side scroller with over 6 worlds of obstacles of brain bending tests to make it to the 6th world where you will find the altamont show down. And even replay the game in 3d.");                //Info here
     
     }    
     if(backInfo2d == true) {
     
         if(GUI.Button(Rect(650, 200, 50, 50), "back")) {
         
             GameName         =     true;
              StartGame2D     =     true;
              INFO2D             =     true;
              WorldSelect2D     =     true;
              StartGame3D     =     true;
              INFO3D             =     true;
              WorldSelect3D     =     true;
              info2D          =    false;
              backInfo2d         =    false;
             
         
         }
     }
 }
Comment
Add comment · Show 11
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 logang · Feb 19, 2013 at 11:22 PM 0
Share

And i do not know how to read errors really so it might not have to do with this script I do not know I was just making it and then the error can up.

avatar image logang · Feb 19, 2013 at 11:22 PM 0
Share

Came up* lol

avatar image logang · Feb 19, 2013 at 11:25 PM 0
Share

Never $$anonymous$$id i got it SORRY i post this long thing and figgerd it out im sorry

avatar image logang · Feb 19, 2013 at 11:28 PM 0
Share

BTW the code is not done

avatar image aldonaletto · Feb 19, 2013 at 11:52 PM 0
Share

When posting a question, select the code and press Ctrl-$$anonymous$$ (or the button 101/010) in order to get it formatted.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

Compiler error while switching to android 1 Answer

Javascript(Unityscript) returning Boo compiler error 0 Answers

How to use if statement with var? 3 Answers

All compiler errors have to be fixed before you can enter playmode 0 Answers

Animation Crossfade won't play but Animation Play does 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