I get the following error in my Terminal when I try and use the command ::interface 17220
Code:
Error: T2 - 97,65,81 - 2,3088,3496 - 67,68,
This obviously tries to open the Interface 17220.
This is my RebuildInterface which has the ID of 17220.
Code:
public static void RebuildInterface(TextDrawingArea[] TDA) {
RSInterface rsinterface = addTabInterface(17220);
addText(17211, "Rebuild Minigame", 0xff9040, false, true, 52, TDA, 0);
addText(17212, "Time Left:", 0xff9040, false, true, 52, TDA, 0);
addText(17213, "Resources Gathered", 0xff9040, false, true, 52, TDA, 0);
addText(17214, "Resources Left", 0xff9040, false, true, 52, TDA, 0);
addText(17215, "XP Gained", 0xff9040, false, true, 52, TDA, 0);
addText(17216, "0", 0x66FFFF, false, true, 52, TDA, 0);// armadyl
addText(17217, "0", 0x66FFFF, false, true, 52, TDA, 0);// bandos
addText(17218, "0", 0x66FFFF, false, true, 52, TDA, 0);// saradomin
addText(17219, "0", 0x66FFFF, false, true, 52, TDA, 0);// zamorak
rsinterface.scrollMax = 0;
rsinterface.children = new int[9];
rsinterface.childX = new int[9];
rsinterface.childY = new int[9];
rsinterface.children[0] = 17211;
rsinterface.childX[0] = -52 + 375 + 30;
rsinterface.childY[0] = 7;
rsinterface.children[1] = 17212;
rsinterface.childX[1] = -52 + 375 + 30;
rsinterface.childY[1] = 30;
rsinterface.children[2] = 17213;
rsinterface.childX[2] = -52 + 375 + 30;
rsinterface.childY[2] = 44;
rsinterface.children[3] = 17214;
rsinterface.childX[3] = -52 + 375 + 30;
rsinterface.childY[3] = 58;
rsinterface.children[4] = 17215;
rsinterface.childX[4] = -52 + 375 + 30;
rsinterface.childY[4] = 73;
rsinterface.children[5] = 17216;
rsinterface.childX[5] = -52 + 460 + 60;
rsinterface.childY[5] = 31;
rsinterface.children[6] = 17217;
rsinterface.childX[6] = -52 + 460 + 60;
rsinterface.childY[6] = 45;
rsinterface.children[7] = 17218;
rsinterface.childX[7] = -52 + 460 + 60;
rsinterface.childY[7] = 59;
rsinterface.children[8] = 17219;
rsinterface.childX[8] = -52 + 460 + 60;
rsinterface.childY[8] = 74;
}
I don't understand how even basic interfaces work and so I copied the RebuildInterface off the GodWars interface which is also shown below:
Code:
public static void GodWars(TextDrawingArea[] TDA) {
RSInterface rsinterface = addTabInterface(16220);
addText(16211, "NPC killcount", 0xff9040, false, true, 52, TDA, 0);
addText(16212, "Armadyl kills", 0xff9040, false, true, 52, TDA, 0);
addText(16213, "Bandos kills", 0xff9040, false, true, 52, TDA, 0);
addText(16214, "Saradomin kills", 0xff9040, false, true, 52, TDA, 0);
addText(16215, "Zamorak kills", 0xff9040, false, true, 52, TDA, 0);
addText(16216, "0", 0x66FFFF, false, true, 52, TDA, 0);// armadyl
addText(16217, "0", 0x66FFFF, false, true, 52, TDA, 0);// bandos
addText(16218, "0", 0x66FFFF, false, true, 52, TDA, 0);// saradomin
addText(16219, "0", 0x66FFFF, false, true, 52, TDA, 0);// zamorak
rsinterface.scrollMax = 0;
rsinterface.children = new int[9];
rsinterface.childX = new int[9];
rsinterface.childY = new int[9];
rsinterface.children[0] = 16211;
rsinterface.childX[0] = -52 + 375 + 30;
rsinterface.childY[0] = 7;
rsinterface.children[1] = 16212;
rsinterface.childX[1] = -52 + 375 + 30;
rsinterface.childY[1] = 30;
rsinterface.children[2] = 16213;
rsinterface.childX[2] = -52 + 375 + 30;
rsinterface.childY[2] = 44;
rsinterface.children[3] = 16214;
rsinterface.childX[3] = -52 + 375 + 30;
rsinterface.childY[3] = 58;
rsinterface.children[4] = 16215;
rsinterface.childX[4] = -52 + 375 + 30;
rsinterface.childY[4] = 73;
rsinterface.children[5] = 16216;
rsinterface.childX[5] = -52 + 460 + 60;
rsinterface.childY[5] = 31;
rsinterface.children[6] = 16217;
rsinterface.childX[6] = -52 + 460 + 60;
rsinterface.childY[6] = 45;
rsinterface.children[7] = 16218;
rsinterface.childX[7] = -52 + 460 + 60;
rsinterface.childY[7] = 59;
rsinterface.children[8] = 16219;
rsinterface.childX[8] = -52 + 460 + 60;
rsinterface.childY[8] = 74;
}
The GodWars interface works absolutely fine however the RebuildInterface does not, even though they are a direct copy of eachother with different numbers.
Can anybody explain how I can fix this error please.