- Home /
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;
}
}
}
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.
Never $$anonymous$$id i got it SORRY i post this long thing and figgerd it out im sorry
When posting a question, select the code and press Ctrl-$$anonymous$$ (or the button 101/010) in order to get it formatted.
Your answer
![](https://koobas.hobune.stream/wayback/20220613093020im_/https://answers.unity.com/themes/thub/images/avi.jpg)