Buffer Exceeded Error When Trying to Save [Solved]

Started by Ewery1, Sat 28/12/2013 03:06:17

Previous topic - Next topic

Ewery1

Hey, I have been searching and looking for an answer to my problem. I found I post that outlines the problem, which seems to be a missing quotation mark, however I have vigorously scanned through my entire script and I have not found anything wrong. In case you need it, the error:

room1.asc(115): Error (line 115): buffer exceeded: you probably have a missing closing bracket on a previous line

And here is my script so far:

Code: ags
//room script file

function hTv_Look()
{
    cRachel.Walk(280, 170, eBlock, eWalkableAreas);
    cRachel.FaceLocation(318, 128);
    cRachel.Say("It's my television. Alright! Yes, I know it's old fashioned. You don't have to rub it in...");
}

function hTv_Interact()
{
    cRachel.Walk(280, 170, eBlock, eWalkableAreas);
    cRachel.FaceLocation(318, 128);
    cRachel.Say("I have no time to watch television now. I should try and find my key.");
}

function hTv_Talk()
{
    cRachel.Walk(280, 170, eBlock, eWalkableAreas);
    cRachel.FaceLocation(318, 128);
    cRachel.Say("Wow. I really am going insane, talking to inanimate objects."); 
}

function hLamp_Interact()
{
    cRachel.Walk(360, 160, eBlock, eWalkableAreas);
    cRachel.FaceLocation(373, 122);
    cRachel.Say("Fine, I'll turn it off.");
}

function hLamp_Look()
{
    cRachel.Walk(360, 160, eBlock, eWalkableAreas);
    cRachel.FaceLocation(373, 122);
    cRachel.Say("It's my bedside lamp.");
}

function hLamp_Talk()
{
    cRachel.Walk(360, 160, eBlock, eWalkableAreas);
    cRachel.FaceLocation(373, 122);
    cRachel.Say("Wow. I really am going insane, talking to inanimate objects."); 
}

function hBed_Interact()
{
    cRachel.Walk(325, 200, eBlock, eWalkableAreas);
    cRachel.FaceLocation(343, 167);
    cRachel.Say("Is my key under here? No.");
}

function hBed_Look()
{
    cRachel.Walk(325, 200, eBlock, eWalkableAreas);
    cRachel.FaceLocation(343, 167);
    cRachel.Say("It's my bed. I'm kind of sleepy...");
}

function hBed_Talk()
{
    cRachel.Walk(325, 200, eBlock, eWalkableAreas);
    cRachel.FaceLocation(343, 167);
    cRachel.Say("Wow. I really am going insane, talking to inanimate objects.");
}

function hPainting_Interact()
{
    cRachel.Walk(263, 168, eBlock, eWalkableAreas);
    cRachel.FaceLocation(262, 118);
    cRachel.Say("I'm pretty sure my key's not there.");
}

function hPainting_Look()
{
    cRachel.Walk(263, 168, eBlock, eWalkableAreas);
    cRachel.FaceLocation(262, 118);
    cRachel.Say("It's some random painting my mom gave me.");
}

function hPainting_Talk()
{
    cRachel.Walk(263, 168, eBlock, eWalkableAreas);
    cRachel.FaceLocation(262, 118);
    cRachel.Say("Wow. I really am going insane, talking to inanimate objects.");
}

function hLampb_Interact()
{
    cRachel.Walk(80, 170, eBlock, eWalkableAreas);
    cRachel.FaceLocation(80, 64);
    cRachel.Say("Fine, I'll turn it off.");
}

function hLampb_Look()
{
    cRachel.Walk(80, 170, eBlock, eWalkableAreas;
    cRachel.FaceLocation(80, 64);
    cRachel.Say("It's my big lamp. Can you believe this place came without a light?");
}

function hLampb_Talk()
{
    cRachel.Walk(80, 170, eBlock, eWalkableAreas);
    cRachel.FaceLocation(80, 64);
    cRachel.Say("Wow. I really am going insane, talking to inanimate objects."); 
}

function oPants_Look()
{
    cRachel.Walk(276, 188, eBlock, eWalkableAreas);
    cRachel.FaceLocation(274, 177);
    cRachel.Say("PANTS ON THE GROUND! PANTS ON THE GROUND! LOOKIN' LIKE A FOOL WITH YOUR PANTS ON THE GROUND!");
}

function oPants_Interact()
{
    cRachel.Walk(276, 188, eBlock, eWalkableAreas);
    cRachel.FaceLocation(274, 177);
    cRachel.AddInventory(iPants);
    oPants.Visible = false;
    cRachel.Say("My keys aren't in them. Might as well keep it.");
}

function room_AfterFadeIn()
{
    dDialog0.Start();
}

function oShirt_Interact()
{
    cRachel.Walk(172, 172, eBlock, eWalkableAreas);
    cRachel.FaceLocation(130, 190);
    cRachel.AddInventory(iShirt);
    oShirt.Visible = false;
    cRachel.Say("My keys aren't under it. Who knows. A shirt could come in handy some day.");
}

function oShirt_Look()
{
    cRachel.Walk(172, 172, eBlock, eWalkableAreas);
    cRachel.FaceLocation(130, 190);
    cRachel.Say("A shirt with a smiley face on it. Honestly I don't know where I get half my clothes.");
}

function oShirt_Talk()
{
    cRachel.Walk(172, 172, eBlock, eWalkableAreas);
    cRachel.FaceLocation(130, 190);
    cRachel.Say("Wow. I really am going insane, talking to inanimate objects.");
}

function oSock_Interact()
{
    cRachel.Walk(225, 185, eBlock, eWalkableAreas);
    cRachel.FaceLocation(207, 181);
    cRachel.AddInventory(iSock);
    oSock.Visible = false;
    cRachel.Say("Yes! Found my key! What it was doing in my sock I have no idea. I should get my other things before I leave.");
    cRachel.AddInventory(iKey);
}

function oSock_Look()
{
    cRachel.Walk(225, 185, eBlock, eWalkableAreas);
    cRachel.FaceLocation(207, 181);
    cRachel.Say("It's a neon pink sock. Eww what a disgusting color.");
}

function oSock_Talk()
{
    cRachel.Walk(225, 185, eBlock, eWalkableAreas);
    cRachel.FaceLocation(207, 181);
    cRachel.Say("Wow. I really am going insane, talking to inanimate objects.");
}    

function oDoor_Interact()
{
    cRachel.Walk(34, 168, eBlock, eWalkableAreas);
    cRachel.FaceLocation(32, 48);
    cRachel.Say("It's locked. Yup, I don't have my key!");
}

function oDoor_Look()
{
    cRachel.Walk(34, 168, eBlock, eWalkableAreas);
    cRachel.FaceLocation(32, 48);
    cRachel.Say("It's a door that's blocking my way.");
}

function oDoor_Talk()
{
    cRachel.Walk(34, 168, eBlock, eWalkableAreas);
    cRachel.FaceLocation(32, 48);
    cRachel.Say("Wow. I really am going insane, talking to inanimate objects.");
}

function oDoor2_Interact()
{
    cRachel.Walk(34, 168, eBlock, eWalkableAreas);
    cRachel.FaceLocation(32, 48);
    cRachel.Say("It's open, no need to do anything with it now.");
}

function oDoor2_Look()
{
    cRachel.Walk(34, 168, eBlock, eWalkableAreas);
    cRachel.FaceLocation(32, 48);
    cRachel.Say("It's a door that I just opened.");
}

function oDoor2_Talk()
{
    cRachel.Walk(34, 168, eBlock, eWalkableAreas);
    cRachel.FaceLocation(32, 48);
    cRachel.Say("Wow. I really am going insane, talking to inanimate objects.");
}

function oDoor_UseInv()
{
  if (cRachel.ActiveInventory == iKey) {
    cRachel.Walk(34, 168, eBlock, eWalkableAreas);
    cRachel.FaceLocation(32, 48);
    oDoor.Visible = false;
    oDoor2.Visible = true;
    cRachel.Say("Finally the door is opened. Well, before I go I should get all my stuff.");
  }
}

Slasher

At first glance:

Code: ags

function hLampb_Look()
{
 cRachel.Walk(80, 170, eBlock, eWalkableAreas; // You do not have a closing bracket )
 cRachel.FaceLocation(80, 64);
 cRachel.Say("It's my big lamp. Can you believe this place came without a light?");
}



Ewery1

Quote from: slasher on Sat 28/12/2013 05:16:20
At first glance:

Code: ags

function hLampb_Look()
{
 cRachel.Walk(80, 170, eBlock, eWalkableAreas; // You do not have a closing bracket )
 cRachel.FaceLocation(80, 64);
 cRachel.Say("It's my big lamp. Can you believe this place came without a light?");
}


Well crap. Thanks for helping, I can't believe I missed that.

Crimson Wizard

There's a method that can help in the situation like this when it is difficult to find missing bracket quickly: comment out functions starting from the line where you received the error and go up (you may have to comment out the lower functions too if the call upper ones).
Use /* */ commenting symbols to disable larger blocks of script at once (not //).
Recompile after each step.
This may take some time, but in the end may be faster (and simplier) than searching for missing characters by eye.

Khris

You can also position the cursor next to a bracket and press Ctrl-B to make the other one light up.

SMF spam blocked by CleanTalk